diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3379e45 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +src/lib/earthengine.js +src/locales diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..6a67119 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,14 @@ +const { config } = require('@dhis2/cli-style') + +module.exports = { + extends: [config.eslint], + // Needed to add this to support ?? and ?. operators, for some reason + parserOptions: { ecmaVersion: 'latest' }, + // These are common lint errors + // TODO: address lines flagged with these rules (either turn off or back on) + rules: { + 'import/extensions': 'warn', + 'max-params': 'warn', + 'no-unused-vars': 'warn', + }, +} diff --git a/.github/workflows/comment-and-close.yml b/.github/workflows/comment-and-close.yml new file mode 100644 index 0000000..a8ddd03 --- /dev/null +++ b/.github/workflows/comment-and-close.yml @@ -0,0 +1,12 @@ +name: comment-and-close + +on: + issues: + types: [opened] + +jobs: + comment-and-close: + uses: dhis2/workflows-platform/.github/workflows/comment-and-close.yml@v1 + if: '!contains(fromJson(''["dhis2-bot", "kodiakhq", "dependabot"]''), github.event.issue.sender.login)' + with: + issue_number: ${{ github.event.issue.number }} diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml new file mode 100644 index 0000000..fc915d1 --- /dev/null +++ b/.github/workflows/deploy-pr.yml @@ -0,0 +1,14 @@ +name: deploy-pr + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + deploy: + uses: dhis2/workflows-platform/.github/workflows/deploy-pr.yml@v1 + if: '!github.event.pull_request.head.repo.fork' + secrets: inherit diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml new file mode 100644 index 0000000..eb59072 --- /dev/null +++ b/.github/workflows/lint-pr-title.yml @@ -0,0 +1,13 @@ +name: lint-pr-title + +on: + pull_request: + types: ['opened', 'edited', 'reopened', 'synchronize'] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + lint-pr-title: + uses: dhis2/workflows-platform/.github/workflows/lint-pr-title.yml@v1 diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml new file mode 100644 index 0000000..2fdc2b9 --- /dev/null +++ b/.github/workflows/test-and-release.yml @@ -0,0 +1,35 @@ +name: test-and-release + +on: push + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + # Cancel previous runs if not on a release branch + cancel-in-progress: ${{ !contains(fromJSON('["refs/heads/main", "ref/heads/main"]'), github.ref) }} + +jobs: + lint-commits: + uses: dhis2/workflows-platform/.github/workflows/lint-commits.yml@v1 + lint: + uses: dhis2/workflows-platform/.github/workflows/lint.yml@v1 + test: + uses: dhis2/workflows-platform/.github/workflows/test.yml@v1 + + # -- e2e tests are currently not implemented + # e2e: + # uses: dhis2/workflows-platform/.github/workflows/legacy-e2e.yml@v1 + # # Skips forks and dependabot PRs + # if: '!github.event.push.repository.fork' + # secrets: inherit + # with: + # api_version: 42 + + release: + needs: [lint-commits, lint, test] # Add e2e here when implemented + uses: dhis2/workflows-platform/.github/workflows/release.yml@v1 + # Skips forks and dependabot PRs + if: '!github.event.push.repository.fork' + secrets: inherit + with: + publish-apphub: true + publish-github: true diff --git a/.gitignore b/.gitignore index fdf105b..137555c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules .d2 src/locales build -.DS_Store \ No newline at end of file +.DS_Store +.vscode diff --git a/.hooks/commit-msg b/.hooks/commit-msg new file mode 100755 index 0000000..9975a81 --- /dev/null +++ b/.hooks/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +yarn d2-style check commit "$1" diff --git a/.hooks/pre-commit b/.hooks/pre-commit new file mode 100755 index 0000000..50ae359 --- /dev/null +++ b/.hooks/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +yarn d2-style check --staged diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..def7934 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,5 @@ +const { config } = require('@dhis2/cli-style') + +module.exports = { + ...require(config.prettier), +} diff --git a/d2.config.js b/d2.config.js index a4e9d6e..06ed811 100644 --- a/d2.config.js +++ b/d2.config.js @@ -1,9 +1,12 @@ const config = { - type: "app", - title: "DHIS2 Climate App", - entryPoints: { - app: "./src/App.js", - }, -}; + type: 'app', + title: 'DHIS2 Climate App', + id: 'effb986c-a3c7-485e-a2f6-5e54ff9df7c3', + minDHIS2Version: '2.37', -module.exports = config; + entryPoints: { + app: './src/App.js', + }, +} + +module.exports = config diff --git a/package.json b/package.json index 1aa25e2..66537c3 100644 --- a/package.json +++ b/package.json @@ -1,28 +1,31 @@ { - "name": "climate-data", - "version": "1.5.1", - "description": "Explore and import weather and climate data in DHIS2.", - "license": "BSD-3-Clause", - "private": true, - "scripts": { - "build": "d2-app-scripts build", - "start": "d2-app-scripts start", - "test": "d2-app-scripts test", - "deploy": "d2-app-scripts deploy" - }, - "devDependencies": { - "@dhis2/cli-app-scripts": "^11.7.0" - }, - "dependencies": { - "@dhis2/app-runtime": "^3.10.6", - "@dhis2/multi-calendar-dates": "1.0.0-alpha.27", - "@turf/area": "^6.5.0", - "highcharts": "^10.3.3", - "react-router-dom": "^6.26.1", - "zustand": "^4.5.5" - }, - "resolutions": { - "@dhis2/cli-app-scripts/**/@dhis2/multi-calendar-dates": "1.2.3", - "@dhis2/multi-calendar-dates": "1.0.0-alpha.27" - } + "name": "climate-data", + "version": "1.5.1", + "description": "Explore and import weather and climate data in DHIS2.", + "license": "BSD-3-Clause", + "private": true, + "scripts": { + "build": "d2-app-scripts build", + "start": "d2-app-scripts start", + "test": "d2-app-scripts test", + "deploy": "d2-app-scripts deploy", + "lint": "d2-style check", + "format": "d2-style apply" + }, + "devDependencies": { + "@dhis2/cli-app-scripts": "^11.7.0", + "@dhis2/cli-style": "^10.7.5" + }, + "dependencies": { + "@dhis2/app-runtime": "^3.10.6", + "@dhis2/multi-calendar-dates": "1.0.0-alpha.27", + "@turf/area": "^6.5.0", + "highcharts": "^10.3.3", + "react-router-dom": "^6.26.1", + "zustand": "^4.5.5" + }, + "resolutions": { + "@dhis2/cli-app-scripts/**/@dhis2/multi-calendar-dates": "1.2.3", + "@dhis2/multi-calendar-dates": "1.0.0-alpha.27" + } } diff --git a/src/App.js b/src/App.js index 26db642..33c6c9a 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,5 @@ -import Routes from "./components/Routes"; +import Routes from './components/Routes' -const App = () => ; +const App = () => -export default App; +export default App diff --git a/src/components/AboutPage.js b/src/components/AboutPage.js index 2ce0560..4c5a532 100644 --- a/src/components/AboutPage.js +++ b/src/components/AboutPage.js @@ -1,81 +1,85 @@ -import i18n from "@dhis2/d2-i18n"; -import GEETokenCheck from "./shared/GEETokenCheck"; -import styles from "./styles/AboutPage.module.css"; +import i18n from '@dhis2/d2-i18n' +import GEETokenCheck from './shared/GEETokenCheck' +import styles from './styles/AboutPage.module.css' // TODO: How to combine links and i18n.t? const AboutPage = () => ( -
-

{i18n.t("About this app")}

- -

- {i18n.t( - "This pilot app is part of the ongoing “DHIS2 for Climate“ project. It will get frequent updates, so please make sure you have the latest version from the DHIS2 App Hub. The app is developed by the University of Oslo, but it is not a DHIS2 core app. Useful parts of this app might be incorporated into the DHIS2 core in the future, based on your feedback." - )} -

-

- {i18n.t( - "The app allows you to explore and import temperature, precipitation, humidity and heat stress data in DHIS2. The main data source is ERA5-Land, which is considered the most accurate and complete global climate dataset available. The video below shows you how this dataset was created by combining weather observations with a weather model (climate reanalysis)." - )} -

- -

- - {i18n.t("Read about ERA5-Land on Copernicus Climate Data Store")} - -

-

- {i18n.t( - "In additon to ERA5-Land, precipitation data can also be imported from the CHIRPS dataset. For heat stress we use data from ERA5-HEAT." - )} -

-

- - {i18n.t("Read about CHIRPS on Climate Hazards Center")} - -

-

- - {i18n.t("Read about ERA5-HEAT on Copernicus Climate Data Store")} - -

-

- {i18n.t( - "If you just want to look at weather and climate data for your organisation units, click on “Explore data” in the left menu. No configuration is needed." - )} -

-

- {i18n.t( - "We recommend importing data into DHIS2 data elements. This will allow you to combine weather and climate data with your health data across all DHIS2 analytics apps. You need to configure your DHIS2 instance before you can import data. See our guide by clicking on “Setup guide”." - )} -

-

- {i18n.t( - "After the configuration is done, you can import temperature and precipitation data under “Import data”." - )} -

-

- {i18n.t( - "After the data is imported, you should generate the analytics tables in the Data Administration app. This will allow you to see the data in the DHIS2 analytics apps." - )} -

-

{i18n.t("How the data is calculated")}

-

- {i18n.t( - "The data is calculated for your organsation units on Google Earth Engine. Pleace check the resolution of the data. If you select a health facility we use the value where the facility is located. If you select a district we automatically aggregate the values within that district. If two org units are close to each other (within the resolution), they will have the same data values." - )} -

-
-); +
+

{i18n.t('About this app')}

+ +

+ {i18n.t( + 'This pilot app is part of the ongoing “DHIS2 for Climate“ project. It will get frequent updates, so please make sure you have the latest version from the DHIS2 App Hub. The app is developed by the University of Oslo, but it is not a DHIS2 core app. Useful parts of this app might be incorporated into the DHIS2 core in the future, based on your feedback.' + )} +

+

+ {i18n.t( + 'The app allows you to explore and import temperature, precipitation, humidity and heat stress data in DHIS2. The main data source is ERA5-Land, which is considered the most accurate and complete global climate dataset available. The video below shows you how this dataset was created by combining weather observations with a weather model (climate reanalysis).' + )} +

+ +

+ + {i18n.t( + 'Read about ERA5-Land on Copernicus Climate Data Store' + )} + +

+

+ {i18n.t( + 'In additon to ERA5-Land, precipitation data can also be imported from the CHIRPS dataset. For heat stress we use data from ERA5-HEAT.' + )} +

+

+ + {i18n.t('Read about CHIRPS on Climate Hazards Center')} + +

+

+ + {i18n.t( + 'Read about ERA5-HEAT on Copernicus Climate Data Store' + )} + +

+

+ {i18n.t( + 'If you just want to look at weather and climate data for your organisation units, click on “Explore data” in the left menu. No configuration is needed.' + )} +

+

+ {i18n.t( + 'We recommend importing data into DHIS2 data elements. This will allow you to combine weather and climate data with your health data across all DHIS2 analytics apps. You need to configure your DHIS2 instance before you can import data. See our guide by clicking on “Setup guide”.' + )} +

+

+ {i18n.t( + 'After the configuration is done, you can import temperature and precipitation data under “Import data”.' + )} +

+

+ {i18n.t( + 'After the data is imported, you should generate the analytics tables in the Data Administration app. This will allow you to see the data in the DHIS2 analytics apps.' + )} +

+

{i18n.t('How the data is calculated')}

+

+ {i18n.t( + 'The data is calculated for your organsation units on Google Earth Engine. Pleace check the resolution of the data. If you select a health facility we use the value where the facility is located. If you select a district we automatically aggregate the values within that district. If two org units are close to each other (within the resolution), they will have the same data values.' + )} +

+
+) -export default AboutPage; +export default AboutPage diff --git a/src/components/ErrorPage.js b/src/components/ErrorPage.js index 2beab55..49a9e52 100644 --- a/src/components/ErrorPage.js +++ b/src/components/ErrorPage.js @@ -1,18 +1,18 @@ -import { useRouteError } from "react-router-dom"; +import { useRouteError } from 'react-router-dom' const ErrorPage = () => { - const error = useRouteError(); - console.error(error); + const error = useRouteError() + console.error(error) - return ( -
-

Oops!

-

Sorry, an unexpected error has occurred.

-

- {error.statusText || error.message} -

-
- ); -}; + return ( +
+

Oops!

+

Sorry, an unexpected error has occurred.

+

+ {error.statusText || error.message} +

+
+ ) +} -export default ErrorPage; +export default ErrorPage diff --git a/src/components/Root.js b/src/components/Root.js index c5d6e18..c9bff50 100644 --- a/src/components/Root.js +++ b/src/components/Root.js @@ -1,67 +1,72 @@ -import { Fragment, useEffect } from "react"; -import { CssVariables, CssReset, Menu, MenuItem } from "@dhis2/ui"; -import { Outlet, useResolvedPath, useNavigate } from "react-router-dom"; -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/Root.module.css"; -import OrgUnitTree from "./explore/OrgUnitTree"; -import CheckOrgUnitTree from "./check/OrgUnitTree"; -import useAppSettings from "../hooks/useAppSettings"; +import i18n from '@dhis2/d2-i18n' +import { CssVariables, CssReset, Menu, MenuItem } from '@dhis2/ui' +import { Fragment, useEffect } from 'react' +import { Outlet, useResolvedPath, useNavigate } from 'react-router-dom' +import useAppSettings from '../hooks/useAppSettings' +import CheckOrgUnitTree from './check/OrgUnitTree' +import OrgUnitTree from './explore/OrgUnitTree' +import styles from './styles/Root.module.css' export const appPages = [ - { path: "/", name: i18n.t("Home") }, - { path: "/explore", name: i18n.t("Explore data") }, - { path: "/import", name: i18n.t("Import data") }, - { path: "/setup", name: i18n.t("Setup guide") }, - { path: "/settings", name: i18n.t("Settings") }, -]; + { path: '/', name: i18n.t('Home') }, + { path: '/explore', name: i18n.t('Explore data') }, + { path: '/import', name: i18n.t('Import data') }, + { path: '/setup', name: i18n.t('Setup guide') }, + { path: '/settings', name: i18n.t('Settings') }, +] const Root = () => { - const { settings } = useAppSettings(); - const { pathname } = useResolvedPath(); - const navigate = useNavigate(); + const { settings } = useAppSettings() + const { pathname } = useResolvedPath() + const navigate = useNavigate() - useEffect(() => { - if (pathname === "/" && settings?.startPage) { - navigate(settings.startPage); - } - }, [settings]); + useEffect(() => { + if (pathname === '/' && settings?.startPage) { + navigate(settings.startPage) + } + }, [settings]) - return ( - <> - - -
-
- - {appPages.map(({ path, name }) => ( - - - {path === "/explore" && pathname.startsWith("/explore") && ( - - )} - - ))} - {pathname.startsWith("/check") && ( - <> - - - - )} - -
-
- -
-
- - ); -}; + return ( + <> + + +
+
+ + {appPages.map(({ path, name }) => ( + + + {path === '/explore' && + pathname.startsWith('/explore') && ( + + )} + + ))} + {pathname.startsWith('/check') && ( + <> + + + + )} + +
+
+ +
+
+ + ) +} -export default Root; +export default Root diff --git a/src/components/Routes.js b/src/components/Routes.js index dc80c7c..7fd5bf3 100644 --- a/src/components/Routes.js +++ b/src/components/Routes.js @@ -1,171 +1,171 @@ -import { RouterProvider, createHashRouter } from "react-router-dom"; -import { useDataEngine } from "@dhis2/app-runtime"; -import Root from "./Root"; -import AboutPage from "./AboutPage"; -import ExplorePage from "./explore/ExplorePage"; -import OrgUnit from "./explore/OrgUnit"; -import Tabs from "./explore/Tabs"; -import Forecast from "./explore/forecast/Forecast"; -import TemperatureMonthly from "./explore/temperature/TemperatureMonthly"; -import TemperatureDaily from "./explore/temperature/TemperatureDaily"; -import PrecipitationMonthly from "./explore/precipitation/PrecipitationMonthly"; -import PrecipitationDaily from "./explore/precipitation/PrecipitationDaily"; -import HumidityMonthly from "./explore/humidity/HumidityMonthly"; -import HumidityDaily from "./explore/humidity/HumidityDaily"; -import HeatMonthly from "./explore/heat/HeatMonthly"; -import HeatDaily from "./explore/heat/HeatDaily"; -import ClimateChange from "./explore/climateChange/ClimateChange"; -import ImportPage from "./import/ImportPage"; -import SetupPage from "./setup/SetupPage"; -import SettingsPage from "./settings/SettingsPage"; -import ErrorPage from "./ErrorPage"; -import CheckPage from "./check/CheckPage"; -import orgUnitLoader from "../utils/orgUnitLoader"; -import checkPlaceLoader from "../utils/checkPlaceLoader"; +import { useDataEngine } from '@dhis2/app-runtime' +import { RouterProvider, createHashRouter } from 'react-router-dom' +import checkPlaceLoader from '../utils/checkPlaceLoader' +import orgUnitLoader from '../utils/orgUnitLoader' +import AboutPage from './AboutPage' +import CheckPage from './check/CheckPage' +import ErrorPage from './ErrorPage' +import ClimateChange from './explore/climateChange/ClimateChange' +import ExplorePage from './explore/ExplorePage' +import Forecast from './explore/forecast/Forecast' +import HeatDaily from './explore/heat/HeatDaily' +import HeatMonthly from './explore/heat/HeatMonthly' +import HumidityDaily from './explore/humidity/HumidityDaily' +import HumidityMonthly from './explore/humidity/HumidityMonthly' +import OrgUnit from './explore/OrgUnit' +import PrecipitationDaily from './explore/precipitation/PrecipitationDaily' +import PrecipitationMonthly from './explore/precipitation/PrecipitationMonthly' +import Tabs from './explore/Tabs' +import TemperatureDaily from './explore/temperature/TemperatureDaily' +import TemperatureMonthly from './explore/temperature/TemperatureMonthly' +import ImportPage from './import/ImportPage' +import Root from './Root' +import SettingsPage from './settings/SettingsPage' +import SetupPage from './setup/SetupPage' -const monthlyPath = "monthly/:startTime/:endTime/:referencePeriodId"; -const dailyPath = "daily/:startTime/:endTime"; +const monthlyPath = 'monthly/:startTime/:endTime/:referencePeriodId' +const dailyPath = 'daily/:startTime/:endTime' // Shared routes for explore and check sections const tabRoutes = [ - { - path: "forecast10days", - element: , - children: [ - { - index: true, - element: , - }, - ], - }, - { - path: "temperature", - element: , - children: [ - { - path: monthlyPath, - element: , - }, - { - path: dailyPath, - element: , - }, - ], - }, - { - path: "precipitation", - element: , - children: [ - { - path: monthlyPath, - element: , - }, - { - path: dailyPath, - element: , - }, - ], - }, - { - path: "humidity", - element: , - children: [ - { - path: monthlyPath, - element: , - }, - { - path: dailyPath, - element: , - }, - ], - }, - { - path: "heat", - element: , - children: [ - { - path: "monthly/:startTime/:endTime", - element: , - }, - { - path: dailyPath, - element: , - }, - ], - }, - { - path: "climatechange", - element: , - children: [ - { - path: ":month/:referencePeriodId", - element: , - }, - ], - }, -]; - -const Routes = () => { - const engine = useDataEngine(); - - const router = createHashRouter([ { - path: "/", - element: , - errorElement: , - children: [ - { - path: "/", - element: , - }, - { - path: "explore", - children: [ + path: 'forecast10days', + element: , + children: [ { - index: true, - element: , + index: true, + element: , }, + ], + }, + { + path: 'temperature', + element: , + children: [ { - path: ":orgUnitId", - element: , - loader: orgUnitLoader(engine), - children: tabRoutes, + path: monthlyPath, + element: , }, - ], - }, - { - path: "check", - children: [ { - index: true, - element: , + path: dailyPath, + element: , }, + ], + }, + { + path: 'precipitation', + element: , + children: [ { - path: ":placeId", - element: , - loader: checkPlaceLoader, - children: tabRoutes, + path: monthlyPath, + element: , }, - ], - }, - { - path: "import", - element: , - }, - { - path: "setup", - element: , - }, + { + path: dailyPath, + element: , + }, + ], + }, + { + path: 'humidity', + element: , + children: [ + { + path: monthlyPath, + element: , + }, + { + path: dailyPath, + element: , + }, + ], + }, + { + path: 'heat', + element: , + children: [ + { + path: 'monthly/:startTime/:endTime', + element: , + }, + { + path: dailyPath, + element: , + }, + ], + }, + { + path: 'climatechange', + element: , + children: [ + { + path: ':month/:referencePeriodId', + element: , + }, + ], + }, +] + +const Routes = () => { + const engine = useDataEngine() + + const router = createHashRouter([ { - path: "settings", - element: , + path: '/', + element: , + errorElement: , + children: [ + { + path: '/', + element: , + }, + { + path: 'explore', + children: [ + { + index: true, + element: , + }, + { + path: ':orgUnitId', + element: , + loader: orgUnitLoader(engine), + children: tabRoutes, + }, + ], + }, + { + path: 'check', + children: [ + { + index: true, + element: , + }, + { + path: ':placeId', + element: , + loader: checkPlaceLoader, + children: tabRoutes, + }, + ], + }, + { + path: 'import', + element: , + }, + { + path: 'setup', + element: , + }, + { + path: 'settings', + element: , + }, + ], }, - ], - }, - ]); + ]) - return ; -}; + return +} -export default Routes; +export default Routes diff --git a/src/components/check/CheckPage.js b/src/components/check/CheckPage.js index 1619d5c..9316227 100644 --- a/src/components/check/CheckPage.js +++ b/src/components/check/CheckPage.js @@ -1,13 +1,13 @@ -import i18n from "@dhis2/d2-i18n"; -import styles from "../explore/styles/ExplorePage.module.css"; +import i18n from '@dhis2/d2-i18n' +import styles from '../explore/styles/ExplorePage.module.css' const CheckPage = () => { - return ( -
-

{i18n.t("Check weather and climate data")}

-

{i18n.t("Select a location in the left panel")}

-
- ); -}; + return ( +
+

{i18n.t('Check weather and climate data')}

+

{i18n.t('Select a location in the left panel')}

+
+ ) +} -export default CheckPage; +export default CheckPage diff --git a/src/components/check/OrgUnitTree.js b/src/components/check/OrgUnitTree.js index 4e6ba2e..e06a2f2 100644 --- a/src/components/check/OrgUnitTree.js +++ b/src/components/check/OrgUnitTree.js @@ -1,69 +1,71 @@ -import { useNavigate } from "react-router-dom"; -import { CustomDataProvider } from "@dhis2/app-runtime"; -import { OrganisationUnitTree } from "@dhis2/ui"; -import exploreStore from "../../store/exploreStore"; -import { locations, findLocation } from "../../data/locations"; -import styles from "../explore/styles/OrgUnitTree.module.css"; +import { CustomDataProvider } from '@dhis2/app-runtime' +import { OrganisationUnitTree } from '@dhis2/ui' +import { useNavigate } from 'react-router-dom' +import { locations, findLocation } from '../../data/locations' +import exploreStore from '../../store/exploreStore' +import styles from '../explore/styles/OrgUnitTree.module.css' // Inspired by https://github.com/dhis2/ui/blob/master/components/organisation-unit-tree/src/__stories__/shared.js const createResponse = ({ fields, id, path, displayName, children }) => ({ - ...(fields.includes("id") ? { id } : {}), - ...(fields.includes("path") ? { path } : {}), - ...(fields.includes("displayName") ? { displayName } : {}), - ...(fields.includes("children::size") ? { children: children.length } : {}), - ...(fields.includes("children[id,path,displayName]") ? { children } : {}), -}); + ...(fields.includes('id') ? { id } : {}), + ...(fields.includes('path') ? { path } : {}), + ...(fields.includes('displayName') ? { displayName } : {}), + ...(fields.includes('children::size') ? { children: children.length } : {}), + ...(fields.includes('children[id,path,displayName]') ? { children } : {}), +}) const getOrganisationUnitData = (id, { fields }) => - Promise.resolve( - createResponse({ - fields, - ...findLocation(id), - }) - ); + Promise.resolve( + createResponse({ + fields, + ...findLocation(id), + }) + ) const customData = { - organisationUnits: (_, { id, params = {} }) => { - const data = getOrganisationUnitData(id, params); + organisationUnits: (_, { id, params = {} }) => { + const data = getOrganisationUnitData(id, params) - if (!data) { - return Promise.reject(new Error("404 - Org unit not found")); - } + if (!data) { + return Promise.reject(new Error('404 - Org unit not found')) + } - return Promise.resolve(data); - }, -}; + return Promise.resolve(data) + }, +} const OrgUnitTree = () => { - const { orgUnit } = exploreStore(); - const navigate = useNavigate(); + const { orgUnit } = exploreStore() + const navigate = useNavigate() - const roots = [locations]; - const path = orgUnit?.path.split("/"); + const roots = [locations] + const path = orgUnit?.path.split('/') - const initiallyExpanded = - path?.length > 2 ? [path.slice(0, -1).join("/")] : roots.map((r) => r.path); + const initiallyExpanded = + path?.length > 2 + ? [path.slice(0, -1).join('/')] + : roots.map((r) => r.path) - const selected = orgUnit?.path ? [orgUnit.path] : []; + const selected = orgUnit?.path ? [orgUnit.path] : [] - const onChange = (orgUnit) => navigate(`/check/${orgUnit.id}`); + const onChange = (orgUnit) => navigate(`/check/${orgUnit.id}`) - return ( -
-
- - r.id)} - selected={selected} - onChange={onChange} - singleSelection={true} - initiallyExpanded={initiallyExpanded} - /> - -
-
- ); -}; + return ( +
+
+ + r.id)} + selected={selected} + onChange={onChange} + singleSelection={true} + initiallyExpanded={initiallyExpanded} + /> + +
+
+ ) +} -export default OrgUnitTree; +export default OrgUnitTree diff --git a/src/components/explore/Chart.js b/src/components/explore/Chart.js index f88b963..d08a935 100644 --- a/src/components/explore/Chart.js +++ b/src/components/explore/Chart.js @@ -1,28 +1,28 @@ -import PropTypes from "prop-types"; -import Highcharts from "highcharts"; -import accessibility from "highcharts/modules/accessibility"; -import highchartsMore from "highcharts/highcharts-more"; -import exporting from "highcharts/modules/exporting"; -import patternFill from "highcharts/modules/pattern-fill"; -import React, { useRef, useLayoutEffect } from "react"; +import Highcharts from 'highcharts' +import highchartsMore from 'highcharts/highcharts-more' +import accessibility from 'highcharts/modules/accessibility' +import exporting from 'highcharts/modules/exporting' +import patternFill from 'highcharts/modules/pattern-fill' +import PropTypes from 'prop-types' +import React, { useRef, useLayoutEffect } from 'react' -accessibility(Highcharts); -exporting(Highcharts); -highchartsMore(Highcharts); -patternFill(Highcharts); +accessibility(Highcharts) +exporting(Highcharts) +highchartsMore(Highcharts) +patternFill(Highcharts) const Chart = ({ config }) => { - const chartRef = useRef(); + const chartRef = useRef() - useLayoutEffect(() => { - Highcharts.chart(chartRef.current, config); - }, [config, chartRef]); + useLayoutEffect(() => { + Highcharts.chart(chartRef.current, config) + }, [config, chartRef]) - return
; -}; + return
+} Chart.propTypes = { - config: PropTypes.object.isRequired, -}; + config: PropTypes.object.isRequired, +} -export default Chart; +export default Chart diff --git a/src/components/explore/DailyPeriodSelect.js b/src/components/explore/DailyPeriodSelect.js index 193b716..01b6c4c 100644 --- a/src/components/explore/DailyPeriodSelect.js +++ b/src/components/explore/DailyPeriodSelect.js @@ -1,47 +1,49 @@ -import { useState } from "react"; -import i18n from "@dhis2/d2-i18n"; -import { Button } from "@dhis2/ui"; -import DatePicker from "../shared/DatePicker"; -import { getNumberOfDays } from "../../utils/time"; -import exploreStore from "../../store/exploreStore"; -import styles from "./styles/Period.module.css"; +import i18n from '@dhis2/d2-i18n' +import { Button } from '@dhis2/ui' +import { useState } from 'react' +import exploreStore from '../../store/exploreStore' +import { getNumberOfDays } from '../../utils/time' +import DatePicker from '../shared/DatePicker' +import styles from './styles/Period.module.css' -const maxDays = 1000; +const maxDays = 1000 const DailyPeriodSelect = () => { - const { dailyPeriod, setDailyPeriod } = exploreStore(); - const [period, setPeriod] = useState(dailyPeriod); + const { dailyPeriod, setDailyPeriod } = exploreStore() + const [period, setPeriod] = useState(dailyPeriod) - const { startTime, endTime } = period; - const days = getNumberOfDays(startTime, endTime); + const { startTime, endTime } = period + const days = getNumberOfDays(startTime, endTime) - return ( -
-
- setPeriod({ ...period, startTime })} - /> - setPeriod({ ...period, endTime })} - /> - -
- {days > maxDays && ( -
- {i18n.t("Maximum {{maxDays}} days allowed", { maxDays })} + return ( +
+
+ + setPeriod({ ...period, startTime }) + } + /> + setPeriod({ ...period, endTime })} + /> + +
+ {days > maxDays && ( +
+ {i18n.t('Maximum {{maxDays}} days allowed', { maxDays })} +
+ )}
- )} -
- ); -}; + ) +} -export default DailyPeriodSelect; +export default DailyPeriodSelect diff --git a/src/components/explore/ExplorePage.js b/src/components/explore/ExplorePage.js index 5ac7ef7..3637c5b 100644 --- a/src/components/explore/ExplorePage.js +++ b/src/components/explore/ExplorePage.js @@ -1,14 +1,14 @@ -import i18n from "@dhis2/d2-i18n"; -import GEETokenCheck from "../shared/GEETokenCheck"; -import styles from "./styles/ExplorePage.module.css"; +import i18n from '@dhis2/d2-i18n' +import GEETokenCheck from '../shared/GEETokenCheck' +import styles from './styles/ExplorePage.module.css' const ExplorePage = () => ( -
-

{i18n.t("Explore weather and climate data")}

- -

{i18n.t("Select an organisation unit in the left panel")}

- Explore data screenshots -
-); +
+

{i18n.t('Explore weather and climate data')}

+ +

{i18n.t('Select an organisation unit in the left panel')}

+ Explore data screenshots +
+) -export default ExplorePage; +export default ExplorePage diff --git a/src/components/explore/MonthSelect.js b/src/components/explore/MonthSelect.js index 3c63de8..4c9b19a 100644 --- a/src/components/explore/MonthSelect.js +++ b/src/components/explore/MonthSelect.js @@ -1,72 +1,76 @@ -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import exploreStore from "../../store/exploreStore"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import exploreStore from '../../store/exploreStore' export const months = [ - { - id: 1, - name: i18n.t("January"), - }, - { - id: 2, - name: i18n.t("February"), - }, - { - id: 3, - name: i18n.t("March"), - }, - { - id: 4, - name: i18n.t("April"), - }, - { - id: 5, - name: i18n.t("May"), - }, - { - id: 6, - name: i18n.t("June"), - }, - { - id: 7, - name: i18n.t("July"), - }, - { - id: 8, - name: i18n.t("August"), - }, - { - id: 9, - name: i18n.t("September"), - }, - { - id: 10, - name: i18n.t("October"), - }, - { - id: 11, - name: i18n.t("November"), - }, - { - id: 12, - name: i18n.t("December"), - }, -]; + { + id: 1, + name: i18n.t('January'), + }, + { + id: 2, + name: i18n.t('February'), + }, + { + id: 3, + name: i18n.t('March'), + }, + { + id: 4, + name: i18n.t('April'), + }, + { + id: 5, + name: i18n.t('May'), + }, + { + id: 6, + name: i18n.t('June'), + }, + { + id: 7, + name: i18n.t('July'), + }, + { + id: 8, + name: i18n.t('August'), + }, + { + id: 9, + name: i18n.t('September'), + }, + { + id: 10, + name: i18n.t('October'), + }, + { + id: 11, + name: i18n.t('November'), + }, + { + id: 12, + name: i18n.t('December'), + }, +] const MonthSelect = () => { - const { month, setMonth } = exploreStore(); + const { month, setMonth } = exploreStore() - return ( - setMonth(Number(selected))} - > - {months.map((d) => ( - - ))} - - ); -}; + return ( + setMonth(Number(selected))} + > + {months.map((d) => ( + + ))} + + ) +} -export default MonthSelect; +export default MonthSelect diff --git a/src/components/explore/MonthlyPeriodSelect.js b/src/components/explore/MonthlyPeriodSelect.js index 2e60979..618fdc8 100644 --- a/src/components/explore/MonthlyPeriodSelect.js +++ b/src/components/explore/MonthlyPeriodSelect.js @@ -1,47 +1,51 @@ -import { useState } from "react"; -import i18n from "@dhis2/d2-i18n"; -import { Button } from "@dhis2/ui"; -import MonthPicker from "../shared/MonthPicker"; -import { getNumberOfMonths } from "../../utils/time"; -import exploreStore from "../../store/exploreStore"; -import styles from "./styles/Period.module.css"; +import i18n from '@dhis2/d2-i18n' +import { Button } from '@dhis2/ui' +import { useState } from 'react' +import exploreStore from '../../store/exploreStore' +import { getNumberOfMonths } from '../../utils/time' +import MonthPicker from '../shared/MonthPicker' +import styles from './styles/Period.module.css' -const maxMonths = 60; +const maxMonths = 60 const MonthlyPeriodSelect = () => { - const { monthlyPeriod, setMonthlyPeriod } = exploreStore(); - const [period, setPeriod] = useState(monthlyPeriod); + const { monthlyPeriod, setMonthlyPeriod } = exploreStore() + const [period, setPeriod] = useState(monthlyPeriod) - const { startTime, endTime } = period; - const months = getNumberOfMonths(startTime, endTime); + const { startTime, endTime } = period + const months = getNumberOfMonths(startTime, endTime) - return ( -
-
- setPeriod({ ...period, startTime })} - /> - setPeriod({ ...period, endTime })} - /> - -
- {months > maxMonths && ( -
- {i18n.t("Maximum {{maxMonths}} months allowed", { maxMonths })} + return ( +
+
+ + setPeriod({ ...period, startTime }) + } + /> + setPeriod({ ...period, endTime })} + /> + +
+ {months > maxMonths && ( +
+ {i18n.t('Maximum {{maxMonths}} months allowed', { + maxMonths, + })} +
+ )}
- )} -
- ); -}; + ) +} -export default MonthlyPeriodSelect; +export default MonthlyPeriodSelect diff --git a/src/components/explore/OrgUnit.js b/src/components/explore/OrgUnit.js index ae702d3..99e5302 100644 --- a/src/components/explore/OrgUnit.js +++ b/src/components/explore/OrgUnit.js @@ -1,63 +1,67 @@ -import { useEffect } from "react"; -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' +import { useEffect } from 'react' import { - Outlet, - useLoaderData, - useLocation, - useNavigate, -} from "react-router-dom"; -import OrgUnitType from "./OrgUnitType"; -import exploreStore from "../../store/exploreStore"; -import styles from "./styles/OrgUnit.module.css"; + Outlet, + useLoaderData, + useLocation, + useNavigate, +} from 'react-router-dom' +import exploreStore from '../../store/exploreStore' +import OrgUnitType from './OrgUnitType' +import styles from './styles/OrgUnit.module.css' const tabIsValid = (tab, orgUnit) => - tab === "forecast10days" && orgUnit.geometry.type !== "Point" ? false : true; + tab === 'forecast10days' && orgUnit.geometry.type !== 'Point' ? false : true const OrgUnit = () => { - const { pathname } = useLocation(); - const orgUnit = useLoaderData(); - const { tab, setTab, setOrgUnit } = exploreStore(); - const navigate = useNavigate(); - const path = pathname.split("/"); + const { pathname } = useLocation() + const orgUnit = useLoaderData() + const { tab, setTab, setOrgUnit } = exploreStore() + const navigate = useNavigate() + const path = pathname.split('/') - const section = path[1]; - const uriTab = path[3]; + const section = path[1] + const uriTab = path[3] - useEffect(() => { - setOrgUnit(orgUnit); - return () => { - setOrgUnit(null); - }; - }, [orgUnit, setOrgUnit]); + useEffect(() => { + setOrgUnit(orgUnit) + return () => { + setOrgUnit(null) + } + }, [orgUnit, setOrgUnit]) - // Set default type based on org unit geometry type - useEffect(() => { - if (!uriTab && orgUnit.geometry) { - if (tab && tabIsValid(tab, orgUnit)) { - navigate(`/${section}/${orgUnit.id}/${tab}`); - } else { - setTab( - orgUnit.geometry.type === "Point" ? "forecast10days" : "temperature" - ); - } - } - }, [orgUnit, section, tab, uriTab, setTab, navigate]); + // Set default type based on org unit geometry type + useEffect(() => { + if (!uriTab && orgUnit.geometry) { + if (tab && tabIsValid(tab, orgUnit)) { + navigate(`/${section}/${orgUnit.id}/${tab}`) + } else { + setTab( + orgUnit.geometry.type === 'Point' + ? 'forecast10days' + : 'temperature' + ) + } + } + }, [orgUnit, section, tab, uriTab, setTab, navigate]) - return ( -
-
-

- {orgUnit.properties.name}{" "} - -

- {orgUnit.geometry ? ( - - ) : ( -
{i18n.t("No geometry found")}
- )} -
-
- ); -}; + return ( +
+
+

+ {orgUnit.properties.name}{' '} + +

+ {orgUnit.geometry ? ( + + ) : ( +
+ {i18n.t('No geometry found')} +
+ )} +
+
+ ) +} -export default OrgUnit; +export default OrgUnit diff --git a/src/components/explore/OrgUnitTree.js b/src/components/explore/OrgUnitTree.js index 89f56dd..078da0a 100644 --- a/src/components/explore/OrgUnitTree.js +++ b/src/components/explore/OrgUnitTree.js @@ -1,37 +1,37 @@ -import { useNavigate } from "react-router-dom"; -import { OrganisationUnitTree } from "@dhis2/ui"; -import exploreStore from "../../store/exploreStore"; -import useOrgUnitRoots from "../../hooks/useOrgUnitRoots"; -import styles from "./styles/OrgUnitTree.module.css"; +import { OrganisationUnitTree } from '@dhis2/ui' +import { useNavigate } from 'react-router-dom' +import useOrgUnitRoots from '../../hooks/useOrgUnitRoots' +import exploreStore from '../../store/exploreStore' +import styles from './styles/OrgUnitTree.module.css' const OrgUnitTree = () => { - const { orgUnit } = exploreStore(); - const { roots } = useOrgUnitRoots(); - const navigate = useNavigate(); - const path = orgUnit?.path.split("/"); + const { orgUnit } = exploreStore() + const { roots } = useOrgUnitRoots() + const navigate = useNavigate() + const path = orgUnit?.path.split('/') - const initiallyExpanded = - path?.length > 2 - ? [path.slice(0, -1).join("/")] - : roots?.map((r) => r.path); + const initiallyExpanded = + path?.length > 2 + ? [path.slice(0, -1).join('/')] + : roots?.map((r) => r.path) - const selected = orgUnit?.path ? [orgUnit.path] : []; + const selected = orgUnit?.path ? [orgUnit.path] : [] - const onChange = (orgUnit) => navigate(`/explore/${orgUnit.id}`); + const onChange = (orgUnit) => navigate(`/explore/${orgUnit.id}`) - return roots ? ( -
-
- r.id)} - selected={selected} - onChange={onChange} - singleSelection={true} - initiallyExpanded={initiallyExpanded} - /> -
-
- ) : null; -}; + return roots ? ( +
+
+ r.id)} + selected={selected} + onChange={onChange} + singleSelection={true} + initiallyExpanded={initiallyExpanded} + /> +
+
+ ) : null +} -export default OrgUnitTree; +export default OrgUnitTree diff --git a/src/components/explore/OrgUnitType.js b/src/components/explore/OrgUnitType.js index 67b14b8..0ccf1a9 100644 --- a/src/components/explore/OrgUnitType.js +++ b/src/components/explore/OrgUnitType.js @@ -1,23 +1,25 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { Tooltip, IconLocation24, IconEmptyFrame24 } from "@dhis2/ui"; +import i18n from '@dhis2/d2-i18n' +import { Tooltip, IconLocation24, IconEmptyFrame24 } from '@dhis2/ui' +import PropTypes from 'prop-types' const OrgUntType = ({ type }) => ( - - {type === "Point" && } - {(type === "Polygon" || type === "MultiPolygon") && } - -); + + {type === 'Point' && } + {(type === 'Polygon' || type === 'MultiPolygon') && ( + + )} + +) OrgUntType.propTypes = { - type: PropTypes.string, -}; + type: PropTypes.string, +} -export default OrgUntType; +export default OrgUntType diff --git a/src/components/explore/PeriodTypeSelect.js b/src/components/explore/PeriodTypeSelect.js index 0419f2f..1b39431 100644 --- a/src/components/explore/PeriodTypeSelect.js +++ b/src/components/explore/PeriodTypeSelect.js @@ -1,31 +1,31 @@ -import i18n from "@dhis2/d2-i18n"; -import { SegmentedControl } from "@dhis2/ui"; -import { DAILY, MONTHLY } from "../../utils/time"; -import exploreStore from "../../store/exploreStore"; -import styles from "./styles/PeriodTypeSelect.module.css"; +import i18n from '@dhis2/d2-i18n' +import { SegmentedControl } from '@dhis2/ui' +import exploreStore from '../../store/exploreStore' +import { DAILY, MONTHLY } from '../../utils/time' +import styles from './styles/PeriodTypeSelect.module.css' const PeriodTypeSelect = () => { - const { periodType, setPeriodType } = exploreStore(); + const { periodType, setPeriodType } = exploreStore() - return ( -
- setPeriodType(value)} - options={[ - { - label: i18n.t("Monthly"), - value: MONTHLY, - }, - { - label: i18n.t("Daily"), - value: DAILY, - }, - ]} - selected={periodType} - /> -
- ); -}; + return ( +
+ setPeriodType(value)} + options={[ + { + label: i18n.t('Monthly'), + value: MONTHLY, + }, + { + label: i18n.t('Daily'), + value: DAILY, + }, + ]} + selected={periodType} + /> +
+ ) +} -export default PeriodTypeSelect; +export default PeriodTypeSelect diff --git a/src/components/explore/ReferencePeriodSelect.js b/src/components/explore/ReferencePeriodSelect.js index c60b3f6..a2195e6 100644 --- a/src/components/explore/ReferencePeriodSelect.js +++ b/src/components/explore/ReferencePeriodSelect.js @@ -1,44 +1,50 @@ -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import exploreStore from "../../store/exploreStore"; -import styles from "./styles/ReferencePeriod.module.css"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import exploreStore from '../../store/exploreStore' +import styles from './styles/ReferencePeriod.module.css' export const referencePeriods = [ - { - id: "1991-2020", - name: "1991 - 2020", - startTime: 1991, - endTime: 2020, - }, - { - id: "1961-1990", - name: "1961 - 1990", - startTime: 1961, - endTime: 1990, - }, -]; + { + id: '1991-2020', + name: '1991 - 2020', + startTime: 1991, + endTime: 2020, + }, + { + id: '1961-1990', + name: '1961 - 1990', + startTime: 1961, + endTime: 1990, + }, +] -export const defaultReferencePeriod = referencePeriods[0]; +export const defaultReferencePeriod = referencePeriods[0] const ReferencePeriod = () => { - const { referencePeriod, setReferencePeriod } = exploreStore(); + const { referencePeriod, setReferencePeriod } = exploreStore() - return ( -
- - setReferencePeriod(referencePeriods.find((p) => p.id === selected)) - } - > - {referencePeriods.map((p) => ( - - ))} - -

-
- ); -}; + return ( +
+ + setReferencePeriod( + referencePeriods.find((p) => p.id === selected) + ) + } + > + {referencePeriods.map((p) => ( + + ))} + +

+
+ ) +} -export default ReferencePeriod; +export default ReferencePeriod diff --git a/src/components/explore/Tabs.js b/src/components/explore/Tabs.js index 2dff662..0931f77 100644 --- a/src/components/explore/Tabs.js +++ b/src/components/explore/Tabs.js @@ -1,54 +1,62 @@ -import { useEffect } from "react"; -import i18n from "@dhis2/d2-i18n"; -import { TabBar, Tab } from "@dhis2/ui"; -import { Outlet, useLocation, useNavigate } from "react-router-dom"; -import exploreStore from "../../store/exploreStore"; -import useExploreUri from "../../hooks/useExploreUri"; -import styles from "./styles/Tabs.module.css"; +import i18n from '@dhis2/d2-i18n' +import { TabBar, Tab } from '@dhis2/ui' +import { useEffect } from 'react' +import { Outlet, useLocation, useNavigate } from 'react-router-dom' +import useExploreUri from '../../hooks/useExploreUri' +import exploreStore from '../../store/exploreStore' +import styles from './styles/Tabs.module.css' const tabs = [ - { id: "forecast10days", label: i18n.t("10 days forecast"), pointOnly: true }, - { id: "temperature", label: i18n.t("Temperature") }, - { id: "precipitation", label: i18n.t("Precipitation") }, - { id: "humidity", label: i18n.t("Humidity") }, - { id: "heat", label: i18n.t("Heat") }, - { id: "climatechange", label: i18n.t("Climate change") }, -]; + { + id: 'forecast10days', + label: i18n.t('10 days forecast'), + pointOnly: true, + }, + { id: 'temperature', label: i18n.t('Temperature') }, + { id: 'precipitation', label: i18n.t('Precipitation') }, + { id: 'humidity', label: i18n.t('Humidity') }, + { id: 'heat', label: i18n.t('Heat') }, + { id: 'climatechange', label: i18n.t('Climate change') }, +] const Tabs = () => { - const { pathname } = useLocation(); - const { orgUnit, tab, setTab } = exploreStore(); - const uri = useExploreUri(); - const navigate = useNavigate(); + const { pathname } = useLocation() + const { orgUnit, tab, setTab } = exploreStore() + const uri = useExploreUri() + const navigate = useNavigate() - const isPoint = orgUnit?.geometry.type === "Point"; + const isPoint = orgUnit?.geometry.type === 'Point' - useEffect(() => { - if (uri && uri !== pathname) { - navigate(uri); - } - }, [pathname, uri, navigate]); + useEffect(() => { + if (uri && uri !== pathname) { + navigate(uri) + } + }, [pathname, uri, navigate]) - if (!orgUnit) { - return null; - } + if (!orgUnit) { + return null + } - return ( - <> - - {tabs - .filter((t) => !t.pointOnly || t.pointOnly === isPoint) - .map(({ id, label }) => ( - setTab(id)}> - {label} - - ))} - -
- -
- - ); -}; + return ( + <> + + {tabs + .filter((t) => !t.pointOnly || t.pointOnly === isPoint) + .map(({ id, label }) => ( + setTab(id)} + > + {label} + + ))} + +
+ +
+ + ) +} -export default Tabs; +export default Tabs diff --git a/src/components/explore/climateChange/ClimateChange.js b/src/components/explore/climateChange/ClimateChange.js index dc53863..74a635c 100644 --- a/src/components/explore/climateChange/ClimateChange.js +++ b/src/components/explore/climateChange/ClimateChange.js @@ -1,82 +1,82 @@ -import { useMemo } from "react"; -import i18n from "@dhis2/d2-i18n"; -import MonthSelect from "../MonthSelect"; -import ReferencePeriod from "../ReferencePeriodSelect"; -import Chart from "../Chart"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import getChartConfig from "./charts/temperatureAnomaly"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import useEarthEngineClimateNormals from "../../../hooks/useEarthEngineClimateNormals"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; +import i18n from '@dhis2/d2-i18n' +import { useMemo } from 'react' import { - era5MonthlyTemperatures, - era5MonthlyNormals, -} from "../../../data/datasets"; -import { getCurrentYear } from "../../../utils/time"; -import styles from "./styles/ClimateChangeTab.module.css"; + era5MonthlyTemperatures, + era5MonthlyNormals, +} from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineClimateNormals from '../../../hooks/useEarthEngineClimateNormals' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import { getCurrentYear } from '../../../utils/time' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import MonthSelect from '../MonthSelect' +import ReferencePeriod from '../ReferencePeriodSelect' +import getChartConfig from './charts/temperatureAnomaly' +import styles from './styles/ClimateChangeTab.module.css' // Fetch all years from 1970 to the current year -const period = { startTime: "1970-01", endTime: `${getCurrentYear()}-12` }; +const period = { startTime: '1970-01', endTime: `${getCurrentYear()}-12` } const ClimateChange = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const month = exploreStore((state) => state.month); - const referencePeriod = exploreStore((state) => state.referencePeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const month = exploreStore((state) => state.month) + const referencePeriod = exploreStore((state) => state.referencePeriod) + const { settings } = useAppSettings() - const filters = useMemo( - () => [ - { - type: "calendarRange", - arguments: [month, month, "month"], - }, - ], - [month] - ); + const filters = useMemo( + () => [ + { + type: 'calendarRange', + arguments: [month, month, 'month'], + }, + ], + [month] + ) - const data = useEarthEngineTimeSeries( - era5MonthlyTemperatures, - period, - orgUnit, - filters - ); + const data = useEarthEngineTimeSeries( + era5MonthlyTemperatures, + period, + orgUnit, + filters + ) - const normals = useEarthEngineClimateNormals( - era5MonthlyNormals, - referencePeriod, - orgUnit - ); + const normals = useEarthEngineClimateNormals( + era5MonthlyNormals, + referencePeriod, + orgUnit + ) - if (!data || !normals || !settings) { - return ; - } + if (!data || !normals || !settings) { + return + } - return ( - <> - -
- -
- -
- {i18n.t( - "Temperature anomaly is the difference of a temperature from a reference value, calculated as the average temperature over a period of 30 years. Blue columns shows temperatures below the average, while red columns are above." - )} -
- - - ); -}; + return ( + <> + +
+ +
+ +
+ {i18n.t( + 'Temperature anomaly is the difference of a temperature from a reference value, calculated as the average temperature over a period of 30 years. Blue columns shows temperatures below the average, while red columns are above.' + )} +
+ + + ) +} -export default ClimateChange; +export default ClimateChange diff --git a/src/components/explore/climateChange/charts/temperatureAnomaly.js b/src/components/explore/climateChange/charts/temperatureAnomaly.js index 5e93e4d..f6ae86d 100644 --- a/src/components/explore/climateChange/charts/temperatureAnomaly.js +++ b/src/components/explore/climateChange/charts/temperatureAnomaly.js @@ -1,86 +1,89 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; -import { animation, credits } from "../../../../utils/chart"; -import { roundOneDecimal } from "../../../../utils/calc"; -import { padWithZeroes } from "../../../../utils/time"; -import { months } from "../../MonthSelect"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import { roundOneDecimal } from '../../../../utils/calc' +import { animation, credits } from '../../../../utils/chart' +import { padWithZeroes } from '../../../../utils/time' +import { months } from '../../MonthSelect' -const band = "temperature_2m"; +const band = 'temperature_2m' const getChartConfig = ( - name, - data, - normals, - month, - referencePeriod, - settings + name, + data, + normals, + month, + referencePeriod, + settings ) => { - const normal = normals.find((n) => n.id === padWithZeroes(month))[band]; - const years = data.map((d) => d.id.substring(0, 4)); - const monthName = months.find((m) => m.id === month).name; - const series = data.map((d) => roundOneDecimal(d[band] - normal)); - const { tempChange } = settings; + const normal = normals.find((n) => n.id === padWithZeroes(month))[band] + const years = data.map((d) => d.id.substring(0, 4)) + const monthName = months.find((m) => m.id === month).name + const series = data.map((d) => roundOneDecimal(d[band] - normal)) + const { tempChange } = settings - return { - title: { - text: i18n.t("{{name}}: {{month}} temperature difference {{years}}", { - name, - month: monthName, - years: `${years[0]}-${years[years.length - 1]}`, - nsSeparator: ";", - }), - }, - subtitle: { - text: i18n.t("Reference period: {{period}}", { - period: referencePeriod.id, - nsSeparator: ";", - }), - }, - credits, - tooltip: { - shared: true, - valueSuffix: "°C", - }, - chart: { - type: "column", - height: 480, - marginBottom: 60, - }, - plotOptions: { - column: { - pointWidth: 13, - pointPadding: 0, - borderWidth: 1, - }, - series: { - animation, - }, - }, - xAxis: { - type: "category", - categories: years, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - max: tempChange, - min: tempChange !== undefined ? -tempChange : undefined, - title: false, - labels: { - format: "{value}°C", - }, - }, - series: [ - { - data: series, - name: i18n.t("Temperature anomaly"), - color: colors.red500, - negativeColor: colors.blue500, - }, - ], - legend: { enabled: false }, - }; -}; + return { + title: { + text: i18n.t( + '{{name}}: {{month}} temperature difference {{years}}', + { + name, + month: monthName, + years: `${years[0]}-${years[years.length - 1]}`, + nsSeparator: ';', + } + ), + }, + subtitle: { + text: i18n.t('Reference period: {{period}}', { + period: referencePeriod.id, + nsSeparator: ';', + }), + }, + credits, + tooltip: { + shared: true, + valueSuffix: '°C', + }, + chart: { + type: 'column', + height: 480, + marginBottom: 60, + }, + plotOptions: { + column: { + pointWidth: 13, + pointPadding: 0, + borderWidth: 1, + }, + series: { + animation, + }, + }, + xAxis: { + type: 'category', + categories: years, + labels: { + format: '{value: %b}', + }, + }, + yAxis: { + max: tempChange, + min: tempChange !== undefined ? -tempChange : undefined, + title: false, + labels: { + format: '{value}°C', + }, + }, + series: [ + { + data: series, + name: i18n.t('Temperature anomaly'), + color: colors.red500, + negativeColor: colors.blue500, + }, + ], + legend: { enabled: false }, + } +} -export default getChartConfig; +export default getChartConfig diff --git a/src/components/explore/climateChange/styles/ClimateChangeTab.module.css b/src/components/explore/climateChange/styles/ClimateChangeTab.module.css index 8a1dcac..51545ec 100644 --- a/src/components/explore/climateChange/styles/ClimateChangeTab.module.css +++ b/src/components/explore/climateChange/styles/ClimateChangeTab.module.css @@ -1,13 +1,13 @@ .monthSelect { - display: inline-block; - max-width: 150px; - margin-top: 10px; - margin-right: 20px; + display: inline-block; + max-width: 150px; + margin-top: 10px; + margin-right: 20px; } .description { - margin-top: 10px; - margin-bottom: 20px; - font-size: 14px; - line-height: 18px; + margin-top: 10px; + margin-bottom: 20px; + font-size: 14px; + line-height: 18px; } diff --git a/src/components/explore/forecast/DayForecast.js b/src/components/explore/forecast/DayForecast.js index adcd1bf..e5972fa 100644 --- a/src/components/explore/forecast/DayForecast.js +++ b/src/components/explore/forecast/DayForecast.js @@ -1,76 +1,79 @@ -import PropTypes from "prop-types"; -import React from "react"; -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/DayForecast.module.css"; -import TemperatureValue from "./TemperatureValue.js"; -import WeatherSymbol from "./WeatherSymbol.js"; -import { roundOneDecimal } from "../../../utils/calc"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import React from 'react' +import { roundOneDecimal } from '../../../utils/calc' +import styles from './styles/DayForecast.module.css' +import TemperatureValue from './TemperatureValue.js' +import WeatherSymbol from './WeatherSymbol.js' const sixHours = [ - { start: "00", end: "06" }, - { start: "06", end: "12" }, - { start: "12", end: "18" }, - { start: "18", end: "24" }, -]; + { start: '00', end: '06' }, + { start: '06', end: '12' }, + { start: '12', end: '18' }, + { start: '18', end: '24' }, +] const DayForecast = ({ date, series }) => { - const day = new Date(date).toDateString().slice(0, -5); - const temp = series.map((s) => s.data.instant.details.air_temperature); - const minTemp = Math.round(Math.min(...temp)); - const maxTemp = Math.round(Math.max(...temp)); + const day = new Date(date).toDateString().slice(0, -5) + const temp = series.map((s) => s.data.instant.details.air_temperature) + const minTemp = Math.round(Math.min(...temp)) + const maxTemp = Math.round(Math.max(...temp)) - const sixHourSeries = sixHours.map(({ start, end }) => - series.find((s) => { - const hour = s.time.substring(11, 13); - return hour >= start && hour < end && s.data?.next_6_hours; - }) - ); + const sixHourSeries = sixHours.map(({ start, end }) => + series.find((s) => { + const hour = s.time.substring(11, 13) + return hour >= start && hour < end && s.data?.next_6_hours + }) + ) - if (sixHourSeries.every((s) => s == undefined)) { - return null; - } + if (sixHourSeries.every((s) => s == undefined)) { + return null + } - const weatherSymbols = sixHourSeries.map((s, i) => ( - - )); + const weatherSymbols = sixHourSeries.map((s, i) => ( + + )) - const precip = roundOneDecimal( - sixHourSeries.reduce((p, s) => { - const value = s?.data?.next_6_hours?.details?.precipitation_amount; - return p + (value !== undefined ? value : 0); - }, 0) - ); + const precip = roundOneDecimal( + sixHourSeries.reduce((p, s) => { + const value = s?.data?.next_6_hours?.details?.precipitation_amount + return p + (value !== undefined ? value : 0) + }, 0) + ) - const relHumidity = series.map( - (s) => s.data.instant.details.relative_humidity - ); - const avgHumidity = Math.round( - relHumidity.reduce((a, b) => a + b) / relHumidity.length - ); + const relHumidity = series.map( + (s) => s.data.instant.details.relative_humidity + ) + const avgHumidity = Math.round( + relHumidity.reduce((a, b) => a + b) / relHumidity.length + ) - const wind = series.map((s) => s.data.instant.details.wind_speed); - const maxWind = Math.round(Math.max(...wind)); + const wind = series.map((s) => s.data.instant.details.wind_speed) + const maxWind = Math.round(Math.max(...wind)) - return ( - - {day} - {weatherSymbols} - - /{" "} - - - - {precip ? i18n.t("{{precip}} mm", { precip }) : null} - - {avgHumidity}% - {maxWind} m/s - - ); -}; + return ( + + {day} + {weatherSymbols} + + /{' '} + + + + {precip ? i18n.t('{{precip}} mm', { precip }) : null} + + {avgHumidity}% + {maxWind} m/s + + ) +} DayForecast.propTypes = { - date: PropTypes.string.isRequired, - series: PropTypes.array.isRequired, -}; + date: PropTypes.string.isRequired, + series: PropTypes.array.isRequired, +} -export default DayForecast; +export default DayForecast diff --git a/src/components/explore/forecast/Forecast.js b/src/components/explore/forecast/Forecast.js index 279c36d..e14c5bf 100644 --- a/src/components/explore/forecast/Forecast.js +++ b/src/components/explore/forecast/Forecast.js @@ -1,108 +1,114 @@ -import { useState, useEffect } from "react"; -import i18n from "@dhis2/d2-i18n"; -import DataLoader from "../../shared/DataLoader.js"; -import DayForecast from "./DayForecast.js"; -import useAppSettings from "../../../hooks/useAppSettings.js"; -import exploreStore from "../../../store/exploreStore"; -import styles from "./styles/ForecastTab.module.css"; +import i18n from '@dhis2/d2-i18n' +import { useState, useEffect } from 'react' +import useAppSettings from '../../../hooks/useAppSettings.js' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader.js' +import DayForecast from './DayForecast.js' +import styles from './styles/ForecastTab.module.css' const convertTimezone = (date, timeZone) => - new Date(date).toLocaleString("sv-SE", { timeZone }); // "sv-SE" follows ISO format + new Date(date).toLocaleString('sv-SE', { timeZone }) // "sv-SE" follows ISO format -const browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; +const browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone const Forecast = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const [data, setData] = useState(); - const { settings, loading } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const [data, setData] = useState() + const { settings, loading } = useAppSettings() - const [lng, lat] = orgUnit.geometry.coordinates; + const [lng, lat] = orgUnit.geometry.coordinates - useEffect(() => { - fetch( - `https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${lat}&lon=${lng}` - ) - .then((response) => response.json()) - .then(setData); - }, [lng, lat]); + useEffect(() => { + fetch( + `https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${lat}&lon=${lng}` + ) + .then((response) => response.json()) + .then(setData) + }, [lng, lat]) - if (!data || loading) { - return ; - } + if (!data || loading) { + return + } - const timeZone = settings?.timeZone || browserTimeZone || "Etc/UTC"; + const timeZone = settings?.timeZone || browserTimeZone || 'Etc/UTC' - const timeseries = data.properties.timeseries.map(({ time, data }) => ({ - time: convertTimezone(time, timeZone), - data, - })); + const timeseries = data.properties.timeseries.map(({ time, data }) => ({ + time: convertTimezone(time, timeZone), + data, + })) - const dates = timeseries.reduce((acc, { time }) => { - const date = time.slice(0, 10); - if (!acc.includes(date)) { - acc.push(date); - } - return acc; - }, []); + const dates = timeseries.reduce((acc, { time }) => { + const date = time.slice(0, 10) + if (!acc.includes(date)) { + acc.push(date) + } + return acc + }, []) - return ( - <> - - - - - - - - - - - - - - - - {dates.map((date) => ( - t.time.startsWith(date))} - /> - ))} - -
{i18n.t("Night")}{i18n.t("Morning")}{i18n.t("Afternoon")}{i18n.t("Evening")}{i18n.t("Max/min temp.")}{i18n.t("Precip.")}{i18n.t("Rel. humidity")}{i18n.t("Wind")}
-
- Data from{" "} - - MET Norway - {" "} - /{" "} - - ECMWF HRES - -
-
- {settings.timeZone - ? i18n.t( - 'The forecast is using the "{{- timeZone}}" time zone. You can change the time zone for your org units under "Settings".', - { timeZone } - ) - : browserTimeZone - ? i18n.t( - 'The forecast is using the time zone of your browser ({{- timeZone}}). You can set the time zone for your org units under "Settings".', - { timeZone } - ) - : i18n.t( - 'The forecast is using the default "{{- timeZone}}" time zone. You can set the time zone for your org units under "Settings".', - { timeZone } - )} -
- - ); -}; + return ( + <> + + + + + + + + + + + + + + + + {dates.map((date) => ( + + t.time.startsWith(date) + )} + /> + ))} + +
{i18n.t('Night')}{i18n.t('Morning')}{i18n.t('Afternoon')}{i18n.t('Evening')} + {i18n.t('Max/min temp.')} + {i18n.t('Precip.')} + {i18n.t('Rel. humidity')} + {i18n.t('Wind')}
+
+ Data from{' '} + + MET Norway + {' '} + /{' '} + + ECMWF HRES + +
+
+ {settings.timeZone + ? i18n.t( + 'The forecast is using the "{{- timeZone}}" time zone. You can change the time zone for your org units under "Settings".', + { timeZone } + ) + : browserTimeZone + ? i18n.t( + 'The forecast is using the time zone of your browser ({{- timeZone}}). You can set the time zone for your org units under "Settings".', + { timeZone } + ) + : i18n.t( + 'The forecast is using the default "{{- timeZone}}" time zone. You can set the time zone for your org units under "Settings".', + { timeZone } + )} +
+ + ) +} -export default Forecast; +export default Forecast diff --git a/src/components/explore/forecast/TemperatureValue.js b/src/components/explore/forecast/TemperatureValue.js index 0972fe4..81ee738 100644 --- a/src/components/explore/forecast/TemperatureValue.js +++ b/src/components/explore/forecast/TemperatureValue.js @@ -1,13 +1,13 @@ -import PropTypes from "prop-types"; -import React from "react"; -import styles from "./styles/TemperatureValue.module.css"; +import PropTypes from 'prop-types' +import React from 'react' +import styles from './styles/TemperatureValue.module.css' const TemperatureValue = ({ value }) => ( - 0 ? "plus" : "minus"]}>{value}° -); + 0 ? 'plus' : 'minus']}>{value}° +) TemperatureValue.propTypes = { - value: PropTypes.number.isRequired, -}; + value: PropTypes.number.isRequired, +} -export default TemperatureValue; +export default TemperatureValue diff --git a/src/components/explore/forecast/WeatherSymbol.js b/src/components/explore/forecast/WeatherSymbol.js index d5daaba..02472ab 100644 --- a/src/components/explore/forecast/WeatherSymbol.js +++ b/src/components/explore/forecast/WeatherSymbol.js @@ -1,7 +1,7 @@ -import i18n from "@dhis2/d2-i18n"; -import PropTypes from "prop-types"; -import React from "react"; -import styles from "./styles/WeatherSymbol.module.css"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import React from 'react' +import styles from './styles/WeatherSymbol.module.css' /** * Mapping of the symbol code in yr.no's API to the icons in their public @@ -10,190 +10,190 @@ import styles from "./styles/WeatherSymbol.module.css"; * https://api.met.no/weatherapi/weathericon/2.0/documentation */ const symbols = { - clearsky: { - symbol: "01", - text: i18n.t("Clear sky"), - }, - fair: { - symbol: "02", - text: i18n.t("Fair"), - }, - partlycloudy: { - symbol: "03", - text: i18n.t("Partly cloudy"), - }, - cloudy: { - symbol: "04", - text: i18n.t("Cloudy"), - }, - lightrainshowers: { - symbol: "40", - text: i18n.t("Light rain showers"), - }, - rainshowers: { - symbol: "05", - text: i18n.t("Rain showers"), - }, - heavyrainshowers: { - symbol: "41", - text: i18n.t("Heavy rain showers"), - }, - lightrainshowersandthunder: { - symbol: "24", - text: i18n.t("Light rain showers and thunder"), - }, - rainshowersandthunder: { - symbol: "06", - text: i18n.t("Rain showers and thunder"), - }, - heavyrainshowersandthunder: { - symbol: "25", - text: i18n.t("Heavy rain showers and thunder"), - }, - lightsleetshowers: { - symbol: "42", - text: i18n.t("Light sleet showers"), - }, - sleetshowers: { - symbol: "07", - text: i18n.t("Sleet showers"), - }, - heavysleetshowers: { - symbol: "43", - text: i18n.t("Heavy sleet showers"), - }, - lightsleetshowersandthunder: { - symbol: "26", - text: i18n.t("Light sleet showers and thunder"), - }, - sleetshowersandthunder: { - symbol: "20", - text: i18n.t("Sleet showers and thunder"), - }, - heavysleetshowersandthunder: { - symbol: "27", - text: i18n.t("Heavy sleet showers and thunder"), - }, - lightsnowshowers: { - symbol: "44", - text: i18n.t("Light snow showers"), - }, - snowshowers: { - symbol: "08", - text: i18n.t("Snow showers"), - }, - heavysnowshowers: { - symbol: "45", - text: i18n.t("Heavy show showers"), - }, - lightsnowshowersandthunder: { - symbol: "28", - text: i18n.t("Light snow showers and thunder"), - }, - snowshowersandthunder: { - symbol: "21", - text: i18n.t("Snow showers and thunder"), - }, - heavysnowshowersandthunder: { - symbol: "29", - text: i18n.t("Heavy snow showers and thunder"), - }, - lightrain: { - symbol: "46", - text: i18n.t("Light rain"), - }, - rain: { - symbol: "09", - text: i18n.t("Rain"), - }, - heavyrain: { - symbol: "10", - text: i18n.t("Heavy rain"), - }, - lightrainandthunder: { - symbol: "30", - text: i18n.t("Light rain and thunder"), - }, - rainandthunder: { - symbol: "22", - text: i18n.t("Rain and thunder"), - }, - heavyrainandthunder: { - symbol: "11", - text: i18n.t("Heavy rain and thunder"), - }, - lightsleet: { - symbol: "47", - text: i18n.t("Light sleet"), - }, - sleet: { - symbol: "12", - text: i18n.t("Sleet"), - }, - heavysleet: { - symbol: "48", - text: i18n.t("Heavy sleet"), - }, - lightsleetandthunder: { - symbol: "31", - text: i18n.t("Light sleet and thunder"), - }, - sleetandthunder: { - symbol: "23", - text: i18n.t("Sleet and thunder"), - }, - heavysleetandthunder: { - symbol: "32", - text: i18n.t("Heavy sleet and thunder"), - }, - lightsnow: { - symbol: "49", - text: i18n.t("Light snow"), - }, - snow: { - symbol: "13", - text: i18n.t("Snow"), - }, - heavysnow: { - symbol: "50", - text: i18n.t("Heavy snow"), - }, - lightsnowandthunder: { - symbol: "33", - text: i18n.t("Light snow and thunder"), - }, - snowandthunder: { - symbol: "14", - text: i18n.t("Snow and thunder"), - }, - heavysnowandthunder: { - symbol: "34", - text: i18n.t("Heavy snow and thunder"), - }, - fog: { - symbol: "15", - text: i18n.t("Fog"), - }, -}; + clearsky: { + symbol: '01', + text: i18n.t('Clear sky'), + }, + fair: { + symbol: '02', + text: i18n.t('Fair'), + }, + partlycloudy: { + symbol: '03', + text: i18n.t('Partly cloudy'), + }, + cloudy: { + symbol: '04', + text: i18n.t('Cloudy'), + }, + lightrainshowers: { + symbol: '40', + text: i18n.t('Light rain showers'), + }, + rainshowers: { + symbol: '05', + text: i18n.t('Rain showers'), + }, + heavyrainshowers: { + symbol: '41', + text: i18n.t('Heavy rain showers'), + }, + lightrainshowersandthunder: { + symbol: '24', + text: i18n.t('Light rain showers and thunder'), + }, + rainshowersandthunder: { + symbol: '06', + text: i18n.t('Rain showers and thunder'), + }, + heavyrainshowersandthunder: { + symbol: '25', + text: i18n.t('Heavy rain showers and thunder'), + }, + lightsleetshowers: { + symbol: '42', + text: i18n.t('Light sleet showers'), + }, + sleetshowers: { + symbol: '07', + text: i18n.t('Sleet showers'), + }, + heavysleetshowers: { + symbol: '43', + text: i18n.t('Heavy sleet showers'), + }, + lightsleetshowersandthunder: { + symbol: '26', + text: i18n.t('Light sleet showers and thunder'), + }, + sleetshowersandthunder: { + symbol: '20', + text: i18n.t('Sleet showers and thunder'), + }, + heavysleetshowersandthunder: { + symbol: '27', + text: i18n.t('Heavy sleet showers and thunder'), + }, + lightsnowshowers: { + symbol: '44', + text: i18n.t('Light snow showers'), + }, + snowshowers: { + symbol: '08', + text: i18n.t('Snow showers'), + }, + heavysnowshowers: { + symbol: '45', + text: i18n.t('Heavy show showers'), + }, + lightsnowshowersandthunder: { + symbol: '28', + text: i18n.t('Light snow showers and thunder'), + }, + snowshowersandthunder: { + symbol: '21', + text: i18n.t('Snow showers and thunder'), + }, + heavysnowshowersandthunder: { + symbol: '29', + text: i18n.t('Heavy snow showers and thunder'), + }, + lightrain: { + symbol: '46', + text: i18n.t('Light rain'), + }, + rain: { + symbol: '09', + text: i18n.t('Rain'), + }, + heavyrain: { + symbol: '10', + text: i18n.t('Heavy rain'), + }, + lightrainandthunder: { + symbol: '30', + text: i18n.t('Light rain and thunder'), + }, + rainandthunder: { + symbol: '22', + text: i18n.t('Rain and thunder'), + }, + heavyrainandthunder: { + symbol: '11', + text: i18n.t('Heavy rain and thunder'), + }, + lightsleet: { + symbol: '47', + text: i18n.t('Light sleet'), + }, + sleet: { + symbol: '12', + text: i18n.t('Sleet'), + }, + heavysleet: { + symbol: '48', + text: i18n.t('Heavy sleet'), + }, + lightsleetandthunder: { + symbol: '31', + text: i18n.t('Light sleet and thunder'), + }, + sleetandthunder: { + symbol: '23', + text: i18n.t('Sleet and thunder'), + }, + heavysleetandthunder: { + symbol: '32', + text: i18n.t('Heavy sleet and thunder'), + }, + lightsnow: { + symbol: '49', + text: i18n.t('Light snow'), + }, + snow: { + symbol: '13', + text: i18n.t('Snow'), + }, + heavysnow: { + symbol: '50', + text: i18n.t('Heavy snow'), + }, + lightsnowandthunder: { + symbol: '33', + text: i18n.t('Light snow and thunder'), + }, + snowandthunder: { + symbol: '14', + text: i18n.t('Snow and thunder'), + }, + heavysnowandthunder: { + symbol: '34', + text: i18n.t('Heavy snow and thunder'), + }, + fog: { + symbol: '15', + text: i18n.t('Fog'), + }, +} const WeatherSymbol = ({ code }) => { - if (!code) { - return ; - } - const [image, specifier] = code.split("_"); - const { symbol, text } = symbols[image]; + if (!code) { + return + } + const [image, specifier] = code.split('_') + const { symbol, text } = symbols[image] - const src = symbol + ({ day: "d", night: "n" }[specifier] || ""); + const src = symbol + ({ day: 'd', night: 'n' }[specifier] || '') - return ( - - - - ); -}; + return ( + + + + ) +} WeatherSymbol.propTypes = { - code: PropTypes.string, -}; + code: PropTypes.string, +} -export default WeatherSymbol; +export default WeatherSymbol diff --git a/src/components/explore/forecast/styles/DayForecast.module.css b/src/components/explore/forecast/styles/DayForecast.module.css index eb4fa1b..4d789af 100644 --- a/src/components/explore/forecast/styles/DayForecast.module.css +++ b/src/components/explore/forecast/styles/DayForecast.module.css @@ -1,24 +1,24 @@ .day { - padding-left: 10px; - padding-right: 10px; - color: #555; + padding-left: 10px; + padding-right: 10px; + color: #555; } .temp { - text-align: right; - color: var(--colors-red700); - padding-right: 10px; + text-align: right; + color: var(--colors-red700); + padding-right: 10px; } .precip { - text-align: right; - color: var(--colors-blue700); - padding-left: 20px; + text-align: right; + color: var(--colors-blue700); + padding-left: 20px; } .wind { - text-align: right; - color: #555; - padding-left: 30px; - padding-right: 10px; + text-align: right; + color: #555; + padding-left: 30px; + padding-right: 10px; } diff --git a/src/components/explore/forecast/styles/ForecastTab.module.css b/src/components/explore/forecast/styles/ForecastTab.module.css index ec9c1c8..c654377 100644 --- a/src/components/explore/forecast/styles/ForecastTab.module.css +++ b/src/components/explore/forecast/styles/ForecastTab.module.css @@ -1,54 +1,54 @@ .table { - border-collapse: collapse; - width: 100%; - font-size: 14px; + border-collapse: collapse; + width: 100%; + font-size: 14px; } .table thead { - font-size: 13px; - color: #777; - text-align: center; + font-size: 13px; + color: #777; + text-align: center; } .table thead td { - padding-bottom: 4px; + padding-bottom: 4px; } .table tr { - margin-top: 10px; - border-bottom: 1pt solid #ccc; + margin-top: 10px; + border-bottom: 1pt solid #ccc; } .table td { - padding-top: 3px; - padding-bottom: 0px; + padding-top: 3px; + padding-bottom: 0px; } .table td.right { - text-align: right; + text-align: right; } .table thead td:last-child { - padding-right: 10px; + padding-right: 10px; } .table tbody td { - white-space: nowrap; + white-space: nowrap; } .source { - color: #333; - font-size: 12px; - padding-left: 10px; - padding-top: 10px; + color: #333; + font-size: 12px; + padding-left: 10px; + padding-top: 10px; } .source a { - color: #333; + color: #333; } .timeZone { - font-size: 12px; - color: #777; - padding-left: 10px; - padding-top: 16px; + font-size: 12px; + color: #777; + padding-left: 10px; + padding-top: 16px; } diff --git a/src/components/explore/forecast/styles/TemperatureValue.module.css b/src/components/explore/forecast/styles/TemperatureValue.module.css index db300e6..8747f4d 100644 --- a/src/components/explore/forecast/styles/TemperatureValue.module.css +++ b/src/components/explore/forecast/styles/TemperatureValue.module.css @@ -1,7 +1,7 @@ .plus { - color: var(--colors-red700); + color: var(--colors-red700); } .minus { - color: var(--colors-blue700); + color: var(--colors-blue700); } diff --git a/src/components/explore/forecast/styles/TimeZone.module.css b/src/components/explore/forecast/styles/TimeZone.module.css index b0b606c..da55d00 100644 --- a/src/components/explore/forecast/styles/TimeZone.module.css +++ b/src/components/explore/forecast/styles/TimeZone.module.css @@ -1,4 +1,4 @@ .timeZone { - padding-top: 20px; - width: 200px; + padding-top: 20px; + width: 200px; } diff --git a/src/components/explore/forecast/styles/WeatherSymbol.module.css b/src/components/explore/forecast/styles/WeatherSymbol.module.css index b8ccaa9..b59a10f 100644 --- a/src/components/explore/forecast/styles/WeatherSymbol.module.css +++ b/src/components/explore/forecast/styles/WeatherSymbol.module.css @@ -1,9 +1,9 @@ .symbol { - width: 80px; - text-align: center; + width: 80px; + text-align: center; } .symbol img { - width: 38px; - height: 38px; + width: 38px; + height: 38px; } diff --git a/src/components/explore/heat/HeatDaily.js b/src/components/explore/heat/HeatDaily.js index d5e3927..7905b4f 100644 --- a/src/components/explore/heat/HeatDaily.js +++ b/src/components/explore/heat/HeatDaily.js @@ -1,37 +1,41 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import DailyPeriodSelect from "../DailyPeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import HeatDescription from "./HeatDescription"; -import getDailyConfig from "./charts/thermalComfortDaily"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; -import { era5HeatDaily } from "../../../data/datasets"; +import { era5HeatDaily } from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import DailyPeriodSelect from '../DailyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import getDailyConfig from './charts/thermalComfortDaily' +import HeatDescription from './HeatDescription' const HeatDaily = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.dailyPeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.dailyPeriod) + const { settings } = useAppSettings() - const data = useEarthEngineTimeSeries(era5HeatDaily, period, orgUnit); + const data = useEarthEngineTimeSeries(era5HeatDaily, period, orgUnit) - return ( - <> - - {data && settings ? ( - - ) : ( - - )} - - - - - ); -}; + return ( + <> + + {data && settings ? ( + + ) : ( + + )} + + + + + ) +} -export default HeatDaily; +export default HeatDaily diff --git a/src/components/explore/heat/HeatDescription.js b/src/components/explore/heat/HeatDescription.js index a62d2d5..01b396f 100644 --- a/src/components/explore/heat/HeatDescription.js +++ b/src/components/explore/heat/HeatDescription.js @@ -1,11 +1,11 @@ -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' const HeatDescription = () => ( -

- {i18n.t( - "The Universal Thermal Climate Index (UTCI) is an index that combines the effects of air temperature, humidity, wind speed, and radiation on the human body. It is a measure of the thermal stress experienced by a person in a given environment." - )} -

-); +

+ {i18n.t( + 'The Universal Thermal Climate Index (UTCI) is an index that combines the effects of air temperature, humidity, wind speed, and radiation on the human body. It is a measure of the thermal stress experienced by a person in a given environment.' + )} +

+) -export default HeatDescription; +export default HeatDescription diff --git a/src/components/explore/heat/HeatMonthly.js b/src/components/explore/heat/HeatMonthly.js index 4dd85f9..4777dff 100644 --- a/src/components/explore/heat/HeatMonthly.js +++ b/src/components/explore/heat/HeatMonthly.js @@ -1,37 +1,41 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import MonthlyPeriodSelect from "../MonthlyPeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import HeatDescription from "./HeatDescription"; -import getMonthlyConfig from "./charts/thermalComfortMonthly"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; -import { era5HeatMonthly } from "../../../data/datasets"; +import { era5HeatMonthly } from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import MonthlyPeriodSelect from '../MonthlyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import getMonthlyConfig from './charts/thermalComfortMonthly' +import HeatDescription from './HeatDescription' const HeatMonthly = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.monthlyPeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.monthlyPeriod) + const { settings } = useAppSettings() - const data = useEarthEngineTimeSeries(era5HeatMonthly, period, orgUnit); + const data = useEarthEngineTimeSeries(era5HeatMonthly, period, orgUnit) - return ( - <> - - {data && settings ? ( - - ) : ( - - )} - - - - - ); -}; + return ( + <> + + {data && settings ? ( + + ) : ( + + )} + + + + + ) +} -export default HeatMonthly; +export default HeatMonthly diff --git a/src/components/explore/heat/charts/thermalComfortDaily.js b/src/components/explore/heat/charts/thermalComfortDaily.js index cfa4321..04c516f 100644 --- a/src/components/explore/heat/charts/thermalComfortDaily.js +++ b/src/components/explore/heat/charts/thermalComfortDaily.js @@ -1,148 +1,148 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; -import legend from "../../../../data/heat-stress-legend"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import legend from '../../../../data/heat-stress-legend' +import { toCelcius } from '../../../../utils/calc' import { - animation, - heatCredits, - strokePattern, - getDailyPeriod, -} from "../../../../utils/chart"; -import { toCelcius } from "../../../../utils/calc"; + animation, + heatCredits, + strokePattern, + getDailyPeriod, +} from '../../../../utils/chart' export const getPlotBands = (minMax, settings) => { - const { heatMin, heatMax } = settings; + const { heatMin, heatMax } = settings - const minValue = - heatMin !== undefined - ? heatMin - : Math.floor(Math.min(...minMax.map((d) => d[1]))); + const minValue = + heatMin !== undefined + ? heatMin + : Math.floor(Math.min(...minMax.map((d) => d[1]))) - const maxValue = - heatMax !== undefined - ? heatMax - : Math.ceil(Math.max(...minMax.map((d) => d[2]))); + const maxValue = + heatMax !== undefined + ? heatMax + : Math.ceil(Math.max(...minMax.map((d) => d[2]))) - const plotBands = legend.items.filter( - (l) => l.to >= minValue && l.from <= maxValue - ); - const firstBand = plotBands[0]; - const lastBand = plotBands[plotBands.length - 1]; + const plotBands = legend.items.filter( + (l) => l.to >= minValue && l.from <= maxValue + ) + const firstBand = plotBands[0] + const lastBand = plotBands[plotBands.length - 1] - if (firstBand.to === -40) { - firstBand.from = minValue >= -45 ? -45 : minValue; - } + if (firstBand.to === -40) { + firstBand.from = minValue >= -45 ? -45 : minValue + } - if (lastBand.from === 46) { - lastBand.to = maxValue <= 50 ? 50 : maxValue; - } + if (lastBand.from === 46) { + lastBand.to = maxValue <= 50 ? 50 : maxValue + } - return plotBands.map((l) => ({ - ...l, - label: { - text: l.label, - align: "right", - verticalAlign: "middle", - textAlign: "left", - y: -4, - }, - })); -}; + return plotBands.map((l) => ({ + ...l, + label: { + text: l.label, + align: 'right', + verticalAlign: 'middle', + textAlign: 'left', + y: -4, + }, + })) +} export const getPlotLines = (plotBands) => - plotBands.map((l) => ({ - value: l.from, - width: 1, - color: "rgba(0,0,0,0.1)", - zIndex: 1, - })); + plotBands.map((l) => ({ + value: l.from, + width: 1, + color: 'rgba(0,0,0,0.1)', + zIndex: 1, + })) export const getThickPositons = (plotBands) => [ - ...plotBands.map((b) => b.from), - plotBands[plotBands.length - 1].to, -]; + ...plotBands.map((b) => b.from), + plotBands[plotBands.length - 1].to, +] const getChart = (name, data, settings) => { - const series = data.map((d) => ({ - x: new Date(d.id).getTime(), - y: toCelcius(d["utci_mean"]), - })); + const series = data.map((d) => ({ + x: new Date(d.id).getTime(), + y: toCelcius(d['utci_mean']), + })) - const minMax = data.map((d) => [ - new Date(d.id).getTime(), - toCelcius(d["utci_min"]), - toCelcius(d["utci_max"]), - ]); + const minMax = data.map((d) => [ + new Date(d.id).getTime(), + toCelcius(d['utci_min']), + toCelcius(d['utci_max']), + ]) - const plotBands = getPlotBands(minMax, settings); - const plotLines = getPlotLines(plotBands); - const tickPositions = getThickPositons(plotBands); + const plotBands = getPlotBands(minMax, settings) + const plotLines = getPlotLines(plotBands) + const tickPositions = getThickPositons(plotBands) - return { - title: { - text: i18n.t("{{name}}: Thermal comfort {{period}}", { - name, - period: getDailyPeriod(data), - nsSeparator: ";", - }), - }, - credits: heatCredits, - tooltip: { - crosshairs: true, - shared: true, - valueSuffix: "°C", - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - title: false, - tickPositions, - labels: { - format: "{value}°C", - }, - gridLineWidth: 0, - plotBands, - plotLines, - }, - chart: { - height: 480, - marginBottom: 75, - marginRight: 100, - zoomType: "x", - }, - plotOptions: { - series: { - animation, - }, - }, - series: [ - { - type: "line", - data: series, - name: i18n.t("Average felt temperature"), - color: colors.red900, - lineWidth: 1, - zIndex: 2, - marker: { - enabled: false, + return { + title: { + text: i18n.t('{{name}}: Thermal comfort {{period}}', { + name, + period: getDailyPeriod(data), + nsSeparator: ';', + }), + }, + credits: heatCredits, + tooltip: { + crosshairs: true, + shared: true, + valueSuffix: '°C', + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, + }, + yAxis: { + title: false, + tickPositions, + labels: { + format: '{value}°C', + }, + gridLineWidth: 0, + plotBands, + plotLines, + }, + chart: { + height: 480, + marginBottom: 75, + marginRight: 100, + zoomType: 'x', }, - }, - { - type: "arearange", - name: i18n.t("Felt temperature range"), - data: minMax, - color: strokePattern, - marker: { - enabled: false, + plotOptions: { + series: { + animation, + }, }, - zIndex: 0, - }, - ], - }; -}; + series: [ + { + type: 'line', + data: series, + name: i18n.t('Average felt temperature'), + color: colors.red900, + lineWidth: 1, + zIndex: 2, + marker: { + enabled: false, + }, + }, + { + type: 'arearange', + name: i18n.t('Felt temperature range'), + data: minMax, + color: strokePattern, + marker: { + enabled: false, + }, + zIndex: 0, + }, + ], + } +} -export default getChart; +export default getChart diff --git a/src/components/explore/heat/charts/thermalComfortMonthly.js b/src/components/explore/heat/charts/thermalComfortMonthly.js index aab53b2..cb9dc72 100644 --- a/src/components/explore/heat/charts/thermalComfortMonthly.js +++ b/src/components/explore/heat/charts/thermalComfortMonthly.js @@ -1,117 +1,117 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import { toCelcius } from '../../../../utils/calc' import { - animation, - heatCredits, - strokePattern, - getMonthlyPeriod, -} from "../../../../utils/chart"; -import { toCelcius } from "../../../../utils/calc"; + animation, + heatCredits, + strokePattern, + getMonthlyPeriod, +} from '../../../../utils/chart' import { - getPlotBands, - getPlotLines, - getThickPositons, -} from "./thermalComfortDaily"; + getPlotBands, + getPlotLines, + getThickPositons, +} from './thermalComfortDaily' const getChart = (name, data, settings) => { - const series = data.map((d) => ({ - x: new Date(d.id).getTime(), - y: toCelcius(d["utci_mean"]), - })); + const series = data.map((d) => ({ + x: new Date(d.id).getTime(), + y: toCelcius(d['utci_mean']), + })) - const temperatures = data.map((d) => ({ - x: new Date(d.id).getTime(), - y: toCelcius(d["temperature_2m"]), - })); + const temperatures = data.map((d) => ({ + x: new Date(d.id).getTime(), + y: toCelcius(d['temperature_2m']), + })) - const minMax = data.map((d) => [ - new Date(d.id).getTime(), - toCelcius(d["utci_min"]), - toCelcius(d["utci_max"]), - ]); + const minMax = data.map((d) => [ + new Date(d.id).getTime(), + toCelcius(d['utci_min']), + toCelcius(d['utci_max']), + ]) - const plotBands = getPlotBands(minMax, settings); - const plotLines = getPlotLines(plotBands); - const tickPositions = getThickPositons(plotBands); + const plotBands = getPlotBands(minMax, settings) + const plotLines = getPlotLines(plotBands) + const tickPositions = getThickPositons(plotBands) - return { - title: { - text: i18n.t("{{name}}: Thermal comfort {{period}}", { - name, - period: getMonthlyPeriod(data), - nsSeparator: ";", - }), - }, - credits: heatCredits, - tooltip: { - crosshairs: true, - shared: true, - valueSuffix: "°C", - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - title: false, - tickPositions, - labels: { - format: "{value}°C", - }, - gridLineWidth: 0, - plotBands, - plotLines, - }, - chart: { - height: 480, - marginBottom: 75, - marginRight: 100, - zoomType: "x", - }, - plotOptions: { - series: { - animation, - }, - }, - series: [ - { - type: "line", - data: series, - name: i18n.t("Average felt temperature"), - color: colors.red900, - lineWidth: 2, - zIndex: 2, - marker: { - enabled: false, + return { + title: { + text: i18n.t('{{name}}: Thermal comfort {{period}}', { + name, + period: getMonthlyPeriod(data), + nsSeparator: ';', + }), }, - }, - { - type: "arearange", - name: i18n.t("Felt temperature range"), - data: minMax, - color: strokePattern, - marker: { - enabled: false, + credits: heatCredits, + tooltip: { + crosshairs: true, + shared: true, + valueSuffix: '°C', }, - zIndex: 0, - }, - { - type: "line", - data: temperatures, - name: i18n.t("Average temperature"), - color: colors.red900, - lineWidth: 1, - dashStyle: "dash", - zIndex: 2, - marker: { - enabled: false, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, }, - }, - ], - }; -}; + yAxis: { + title: false, + tickPositions, + labels: { + format: '{value}°C', + }, + gridLineWidth: 0, + plotBands, + plotLines, + }, + chart: { + height: 480, + marginBottom: 75, + marginRight: 100, + zoomType: 'x', + }, + plotOptions: { + series: { + animation, + }, + }, + series: [ + { + type: 'line', + data: series, + name: i18n.t('Average felt temperature'), + color: colors.red900, + lineWidth: 2, + zIndex: 2, + marker: { + enabled: false, + }, + }, + { + type: 'arearange', + name: i18n.t('Felt temperature range'), + data: minMax, + color: strokePattern, + marker: { + enabled: false, + }, + zIndex: 0, + }, + { + type: 'line', + data: temperatures, + name: i18n.t('Average temperature'), + color: colors.red900, + lineWidth: 1, + dashStyle: 'dash', + zIndex: 2, + marker: { + enabled: false, + }, + }, + ], + } +} -export default getChart; +export default getChart diff --git a/src/components/explore/humidity/HumidityDaily.js b/src/components/explore/humidity/HumidityDaily.js index 0544333..26b8005 100644 --- a/src/components/explore/humidity/HumidityDaily.js +++ b/src/components/explore/humidity/HumidityDaily.js @@ -1,33 +1,33 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import DailyPeriodSelect from "../DailyPeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import HumidityDescription from "./HumidityDescription"; -import getDailyConfig from "./charts/humidityDaily"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import exploreStore from "../../../store/exploreStore"; -import { era5Daily } from "../../../data/datasets"; +import { era5Daily } from '../../../data/datasets' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import DailyPeriodSelect from '../DailyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import getDailyConfig from './charts/humidityDaily' +import HumidityDescription from './HumidityDescription' const HumidityDaily = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.dailyPeriod); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.dailyPeriod) - const data = useEarthEngineTimeSeries(era5Daily, period, orgUnit); + const data = useEarthEngineTimeSeries(era5Daily, period, orgUnit) - return ( - <> - - {data ? ( - - ) : ( - - )} - - - - - ); -}; + return ( + <> + + {data ? ( + + ) : ( + + )} + + + + + ) +} -export default HumidityDaily; +export default HumidityDaily diff --git a/src/components/explore/humidity/HumidityDescription.js b/src/components/explore/humidity/HumidityDescription.js index 913c58c..0e02c0c 100644 --- a/src/components/explore/humidity/HumidityDescription.js +++ b/src/components/explore/humidity/HumidityDescription.js @@ -1,11 +1,11 @@ -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' const HumidityDescription = () => ( -

- {i18n.t( - "Relative humidity is the the amount of water vapour present in air expressed as a percentage of the amount needed for saturation at the same temperature (dewpoint)." - )} -

-); +

+ {i18n.t( + 'Relative humidity is the the amount of water vapour present in air expressed as a percentage of the amount needed for saturation at the same temperature (dewpoint).' + )} +

+) -export default HumidityDescription; +export default HumidityDescription diff --git a/src/components/explore/humidity/HumidityMonthly.js b/src/components/explore/humidity/HumidityMonthly.js index 838801a..31d699f 100644 --- a/src/components/explore/humidity/HumidityMonthly.js +++ b/src/components/explore/humidity/HumidityMonthly.js @@ -1,50 +1,50 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import MonthlyPeriodSelect from "../MonthlyPeriodSelect"; -import ReferencePeriod from "../ReferencePeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import HumidityDescription from "./HumidityDescription"; -import getMonthlyConfig from "./charts/humidityMonthly"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import useEarthEngineClimateNormals from "../../../hooks/useEarthEngineClimateNormals"; -import exploreStore from "../../../store/exploreStore"; -import { era5Monthly, era5MonthlyNormals } from "../../../data/datasets"; +import { era5Monthly, era5MonthlyNormals } from '../../../data/datasets' +import useEarthEngineClimateNormals from '../../../hooks/useEarthEngineClimateNormals' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import MonthlyPeriodSelect from '../MonthlyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import ReferencePeriod from '../ReferencePeriodSelect' +import getMonthlyConfig from './charts/humidityMonthly' +import HumidityDescription from './HumidityDescription' const HumidityMonthly = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.monthlyPeriod); - const referencePeriod = exploreStore((state) => state.referencePeriod); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.monthlyPeriod) + const referencePeriod = exploreStore((state) => state.referencePeriod) - const data = useEarthEngineTimeSeries(era5Monthly, period, orgUnit); + const data = useEarthEngineTimeSeries(era5Monthly, period, orgUnit) - const normals = useEarthEngineClimateNormals( - era5MonthlyNormals, - referencePeriod, - orgUnit - ); + const normals = useEarthEngineClimateNormals( + era5MonthlyNormals, + referencePeriod, + orgUnit + ) - return ( - <> - - {data && normals ? ( - - ) : ( - - )} - - - - - - ); -}; + return ( + <> + + {data && normals ? ( + + ) : ( + + )} + + + + + + ) +} -export default HumidityMonthly; +export default HumidityMonthly diff --git a/src/components/explore/humidity/charts/humidityDaily.js b/src/components/explore/humidity/charts/humidityDaily.js index 22af2a0..e3f4664 100644 --- a/src/components/explore/humidity/charts/humidityDaily.js +++ b/src/components/explore/humidity/charts/humidityDaily.js @@ -1,77 +1,77 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; -import { animation, credits, getDailyPeriod } from "../../../../utils/chart"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' import { - getRelativeHumidity, - kelvinToCelsius, - roundOneDecimal, - getTimeFromId, -} from "../../../../utils/calc"; + getRelativeHumidity, + kelvinToCelsius, + roundOneDecimal, + getTimeFromId, +} from '../../../../utils/calc' +import { animation, credits, getDailyPeriod } from '../../../../utils/chart' const getChart = (name, data) => { - const humidity = data.map((d) => ({ - x: getTimeFromId(d.id), - y: roundOneDecimal( - getRelativeHumidity( - kelvinToCelsius(d["temperature_2m"]), - kelvinToCelsius(d["dewpoint_temperature_2m"]) - ) - ), - })); + const humidity = data.map((d) => ({ + x: getTimeFromId(d.id), + y: roundOneDecimal( + getRelativeHumidity( + kelvinToCelsius(d['temperature_2m']), + kelvinToCelsius(d['dewpoint_temperature_2m']) + ) + ), + })) - return { - title: { - text: i18n.t("{{name}}: Daily relative humidity {{period}}", { - name, - period: getDailyPeriod(data), - nsSeparator: ";", - }), - }, - credits, - chart: { - height: 480, - marginBottom: 75, - zoomType: "x", - }, - tooltip: { - crosshairs: true, - shared: true, - valueSuffix: "°C", - }, - plotOptions: { - series: { - pointPadding: 0, - groupPadding: 0, - borderWidth: 0, - animation, - }, - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, + return { + title: { + text: i18n.t('{{name}}: Daily relative humidity {{period}}', { + name, + period: getDailyPeriod(data), + nsSeparator: ';', + }), + }, + credits, + chart: { + height: 480, + marginBottom: 75, + zoomType: 'x', + }, + tooltip: { + crosshairs: true, + shared: true, + valueSuffix: '°C', + }, + plotOptions: { + series: { + pointPadding: 0, + groupPadding: 0, + borderWidth: 0, + animation, + }, + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, + }, - yAxis: { - min: 0, - max: 100, - title: false, - labels: { - format: "{value}%", - }, - }, - series: [ - { - data: humidity, - name: i18n.t("Relative humidity"), - color: colors.blue500, - lineWidth: 1.5, - zIndex: 2, - }, - ], - }; -}; + yAxis: { + min: 0, + max: 100, + title: false, + labels: { + format: '{value}%', + }, + }, + series: [ + { + data: humidity, + name: i18n.t('Relative humidity'), + color: colors.blue500, + lineWidth: 1.5, + zIndex: 2, + }, + ], + } +} -export default getChart; +export default getChart diff --git a/src/components/explore/humidity/charts/humidityMonthly.js b/src/components/explore/humidity/charts/humidityMonthly.js index dbeed9e..6331fd4 100644 --- a/src/components/explore/humidity/charts/humidityMonthly.js +++ b/src/components/explore/humidity/charts/humidityMonthly.js @@ -1,149 +1,149 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' import { - animation, - credits, - getMonthFromId, - getMonthlyPeriod, -} from "../../../../utils/chart"; + getRelativeHumidity, + kelvinToCelsius, + roundOneDecimal, + getTimeFromId, +} from '../../../../utils/calc' import { - getRelativeHumidity, - kelvinToCelsius, - roundOneDecimal, - getTimeFromId, -} from "../../../../utils/calc"; + animation, + credits, + getMonthFromId, + getMonthlyPeriod, +} from '../../../../utils/chart' const getChartConfig = (name, data, normals, referencePeriod) => { - const dewpoint = data.map((d) => ({ - x: getTimeFromId(d.id), - y: roundOneDecimal(kelvinToCelsius(d["dewpoint_temperature_2m"])), - })); + const dewpoint = data.map((d) => ({ + x: getTimeFromId(d.id), + y: roundOneDecimal(kelvinToCelsius(d['dewpoint_temperature_2m'])), + })) - const temperature = data.map((d) => ({ - x: getTimeFromId(d.id), - y: roundOneDecimal(kelvinToCelsius(d["temperature_2m"])), - })); + const temperature = data.map((d) => ({ + x: getTimeFromId(d.id), + y: roundOneDecimal(kelvinToCelsius(d['temperature_2m'])), + })) - const humidity = data.map((d) => ({ - x: getTimeFromId(d.id), - y: roundOneDecimal( - getRelativeHumidity( - kelvinToCelsius(d["temperature_2m"]), - kelvinToCelsius(d["dewpoint_temperature_2m"]) - ) - ), - })); + const humidity = data.map((d) => ({ + x: getTimeFromId(d.id), + y: roundOneDecimal( + getRelativeHumidity( + kelvinToCelsius(d['temperature_2m']), + kelvinToCelsius(d['dewpoint_temperature_2m']) + ) + ), + })) - const monthMormals = data.map((d) => { - const month = getMonthFromId(d.id); - const normal = normals.find((n) => n.id === month); + const monthMormals = data.map((d) => { + const month = getMonthFromId(d.id) + const normal = normals.find((n) => n.id === month) - return { - x: getTimeFromId(d.id), - y: roundOneDecimal( - getRelativeHumidity( - kelvinToCelsius(normal["temperature_2m"]), - kelvinToCelsius(normal["dewpoint_temperature_2m"]) - ) - ), - }; - }); + return { + x: getTimeFromId(d.id), + y: roundOneDecimal( + getRelativeHumidity( + kelvinToCelsius(normal['temperature_2m']), + kelvinToCelsius(normal['dewpoint_temperature_2m']) + ) + ), + } + }) - return { - title: { - text: i18n.t("{{name}}: Relative humidity {{period}}", { - name, - period: getMonthlyPeriod(data), - nsSeparator: ";", - }), - }, - subtitle: { - text: i18n.t("Normals from reference period: {{period}}", { - period: referencePeriod.id, - nsSeparator: ";", - }), - }, - credits, - chart: { - height: 480, - marginBottom: 75, - }, - tooltip: { - crosshairs: true, - shared: true, - valueSuffix: "°C", - }, - plotOptions: { - series: { - grouping: false, - borderWidth: 0, - animation, - }, - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: [ - { + return { title: { - text: "Relative humidity", + text: i18n.t('{{name}}: Relative humidity {{period}}', { + name, + period: getMonthlyPeriod(data), + nsSeparator: ';', + }), }, - labels: { - format: "{value}%", + subtitle: { + text: i18n.t('Normals from reference period: {{period}}', { + period: referencePeriod.id, + nsSeparator: ';', + }), }, - }, - { - title: { - text: "Temperature", - }, - labels: { - format: "{value}°C", + credits, + chart: { + height: 480, + marginBottom: 75, }, - opposite: true, - }, - ], - series: [ - { - name: "Relative humidity", - type: "column", - data: humidity, - color: colors.blue500, tooltip: { - valueSuffix: "%", + crosshairs: true, + shared: true, + valueSuffix: '°C', + }, + plotOptions: { + series: { + grouping: false, + borderWidth: 0, + animation, + }, + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, }, - zIndex: 1, - }, - { - name: i18n.t("Normal relative humidity"), - type: "column", - data: monthMormals, - color: colors.blue200, - pointPlacement: -0.2, - zIndex: 0, - }, - { - type: "line", - data: dewpoint, - yAxis: 1, - name: i18n.t("Dewpoint temperature"), - color: colors.grey900, - zIndex: 2, - }, - { - type: "line", - data: temperature, - yAxis: 1, - name: i18n.t("Air temperature"), - dashStyle: "shortdot", - color: colors.grey900, - zIndex: 2, - }, - ], - }; -}; + yAxis: [ + { + title: { + text: 'Relative humidity', + }, + labels: { + format: '{value}%', + }, + }, + { + title: { + text: 'Temperature', + }, + labels: { + format: '{value}°C', + }, + opposite: true, + }, + ], + series: [ + { + name: 'Relative humidity', + type: 'column', + data: humidity, + color: colors.blue500, + tooltip: { + valueSuffix: '%', + }, + zIndex: 1, + }, + { + name: i18n.t('Normal relative humidity'), + type: 'column', + data: monthMormals, + color: colors.blue200, + pointPlacement: -0.2, + zIndex: 0, + }, + { + type: 'line', + data: dewpoint, + yAxis: 1, + name: i18n.t('Dewpoint temperature'), + color: colors.grey900, + zIndex: 2, + }, + { + type: 'line', + data: temperature, + yAxis: 1, + name: i18n.t('Air temperature'), + dashStyle: 'shortdot', + color: colors.grey900, + zIndex: 2, + }, + ], + } +} -export default getChartConfig; +export default getChartConfig diff --git a/src/components/explore/precipitation/PrecipitationDaily.js b/src/components/explore/precipitation/PrecipitationDaily.js index 7dab439..14010ab 100644 --- a/src/components/explore/precipitation/PrecipitationDaily.js +++ b/src/components/explore/precipitation/PrecipitationDaily.js @@ -1,35 +1,39 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import DailyPeriodSelect from "../DailyPeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import getDailyConfig from "./charts/precipitationDaily"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; -import { era5Daily } from "../../../data/datasets"; +import { era5Daily } from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import DailyPeriodSelect from '../DailyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import getDailyConfig from './charts/precipitationDaily' const PrecipitationDaily = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.dailyPeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.dailyPeriod) + const { settings } = useAppSettings() - const data = useEarthEngineTimeSeries(era5Daily, period, orgUnit); + const data = useEarthEngineTimeSeries(era5Daily, period, orgUnit) - return ( - <> - - {data && settings ? ( - - ) : ( - - )} - - - - ); -}; + return ( + <> + + {data && settings ? ( + + ) : ( + + )} + + + + ) +} -export default PrecipitationDaily; +export default PrecipitationDaily diff --git a/src/components/explore/precipitation/PrecipitationMonthly.js b/src/components/explore/precipitation/PrecipitationMonthly.js index a1cabfc..e2d90db 100644 --- a/src/components/explore/precipitation/PrecipitationMonthly.js +++ b/src/components/explore/precipitation/PrecipitationMonthly.js @@ -1,51 +1,51 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import MonthlyPeriodSelect from "../MonthlyPeriodSelect"; -import ReferencePeriod from "../ReferencePeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import getMonthlyConfig from "./charts/precipitationMonthly"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import useEarthEngineClimateNormals from "../../../hooks/useEarthEngineClimateNormals"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; -import { era5Monthly, era5MonthlyNormals } from "../../../data/datasets"; +import { era5Monthly, era5MonthlyNormals } from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineClimateNormals from '../../../hooks/useEarthEngineClimateNormals' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import MonthlyPeriodSelect from '../MonthlyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import ReferencePeriod from '../ReferencePeriodSelect' +import getMonthlyConfig from './charts/precipitationMonthly' const PrecipitationMonthly = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const monthlyPeriod = exploreStore((state) => state.monthlyPeriod); - const referencePeriod = exploreStore((state) => state.referencePeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const monthlyPeriod = exploreStore((state) => state.monthlyPeriod) + const referencePeriod = exploreStore((state) => state.referencePeriod) + const { settings } = useAppSettings() - const data = useEarthEngineTimeSeries(era5Monthly, monthlyPeriod, orgUnit); + const data = useEarthEngineTimeSeries(era5Monthly, monthlyPeriod, orgUnit) - const normals = useEarthEngineClimateNormals( - era5MonthlyNormals, - referencePeriod, - orgUnit - ); + const normals = useEarthEngineClimateNormals( + era5MonthlyNormals, + referencePeriod, + orgUnit + ) - return ( - <> - - {data && normals && settings ? ( - - ) : ( - - )} - - - - - ); -}; + return ( + <> + + {data && normals && settings ? ( + + ) : ( + + )} + + + + + ) +} -export default PrecipitationMonthly; +export default PrecipitationMonthly diff --git a/src/components/explore/precipitation/charts/precipitationDaily.js b/src/components/explore/precipitation/charts/precipitationDaily.js index 945d5fb..4b7d9a8 100644 --- a/src/components/explore/precipitation/charts/precipitationDaily.js +++ b/src/components/explore/precipitation/charts/precipitationDaily.js @@ -1,66 +1,66 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; -import { animation, credits, getDailyPeriod } from "../../../../utils/chart"; -import { metersToMillimeters } from "../../../../utils/calc"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import { metersToMillimeters } from '../../../../utils/calc' +import { animation, credits, getDailyPeriod } from '../../../../utils/chart' const getChart = (name, data, settings) => { - const { precipDailyMax } = settings; + const { precipDailyMax } = settings - const series = data.map((d) => ({ - x: new Date(d.id).getTime(), - y: metersToMillimeters(d["total_precipitation_sum"]), - })); + const series = data.map((d) => ({ + x: new Date(d.id).getTime(), + y: metersToMillimeters(d['total_precipitation_sum']), + })) - return { - title: { - text: i18n.t("{{name}}: Daily precipitation {{period}}", { - name, - period: getDailyPeriod(data), - nsSeparator: ";", - }), - }, - credits, - tooltip: { - valueSuffix: " mm", - }, - chart: { - type: "column", - height: 480, - zoomType: "x", - marginBottom: 75, - }, - plotOptions: { - series: { - pointPadding: 0, - groupPadding: 0, - borderWidth: 0, - animation, - }, - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - min: 0, - max: precipDailyMax, - title: false, - labels: { - format: "{value} mm", - }, - }, - series: [ - { - data: series, - name: i18n.t("Daily precipitation"), - color: colors.blue500, - zIndex: 1, - }, - ], - }; -}; + return { + title: { + text: i18n.t('{{name}}: Daily precipitation {{period}}', { + name, + period: getDailyPeriod(data), + nsSeparator: ';', + }), + }, + credits, + tooltip: { + valueSuffix: ' mm', + }, + chart: { + type: 'column', + height: 480, + zoomType: 'x', + marginBottom: 75, + }, + plotOptions: { + series: { + pointPadding: 0, + groupPadding: 0, + borderWidth: 0, + animation, + }, + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, + }, + yAxis: { + min: 0, + max: precipDailyMax, + title: false, + labels: { + format: '{value} mm', + }, + }, + series: [ + { + data: series, + name: i18n.t('Daily precipitation'), + color: colors.blue500, + zIndex: 1, + }, + ], + } +} -export default getChart; +export default getChart diff --git a/src/components/explore/precipitation/charts/precipitationMonthly.js b/src/components/explore/precipitation/charts/precipitationMonthly.js index 72d0616..ea9e8a8 100644 --- a/src/components/explore/precipitation/charts/precipitationMonthly.js +++ b/src/components/explore/precipitation/charts/precipitationMonthly.js @@ -1,95 +1,95 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import { getTimeFromId, metersToMillimeters } from '../../../../utils/calc' import { - animation, - credits, - getMonthlyPeriod, - getMonthFromId, -} from "../../../../utils/chart"; -import { getTimeFromId, metersToMillimeters } from "../../../../utils/calc"; + animation, + credits, + getMonthlyPeriod, + getMonthFromId, +} from '../../../../utils/chart' -const band = "total_precipitation_sum"; +const band = 'total_precipitation_sum' const getChartConfig = (name, data, normals, referencePeriod, settings) => { - const { precipMonthlyMax } = settings; + const { precipMonthlyMax } = settings - const series = data.map((d) => ({ - x: getTimeFromId(d.id), - y: metersToMillimeters(d[band]), - })); + const series = data.map((d) => ({ + x: getTimeFromId(d.id), + y: metersToMillimeters(d[band]), + })) - const monthMormals = data.map((d) => { - const month = getMonthFromId(d.id); - const normal = normals.find((n) => n.id === month); + const monthMormals = data.map((d) => { + const month = getMonthFromId(d.id) + const normal = normals.find((n) => n.id === month) - return { - x: getTimeFromId(d.id), - y: metersToMillimeters(normal[band]), - }; - }); + return { + x: getTimeFromId(d.id), + y: metersToMillimeters(normal[band]), + } + }) - return { - title: { - text: i18n.t("{{name}}: Monthly precipitation {{period}}", { - name, - period: getMonthlyPeriod(data), - nsSeparator: ";", - }), - }, - subtitle: { - text: i18n.t("Normals from reference period: {{period}}", { - period: referencePeriod.id, - nsSeparator: ";", - }), - }, - credits, - tooltip: { - shared: true, - valueSuffix: " mm", - }, - chart: { - type: "column", - height: 480, - marginBottom: 75, - }, - plotOptions: { - series: { - grouping: false, - borderWidth: 0, - animation, - }, - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - min: 0, - max: precipMonthlyMax, - title: false, - labels: { - format: "{value} mm", - }, - }, - series: [ - { - data: series, - name: i18n.t("Monthly precipitation"), - color: colors.blue500, - zIndex: 1, - }, - { - data: monthMormals, - name: i18n.t("Normal precipitation"), - color: colors.blue200, - pointPlacement: -0.2, - zIndex: 0, - }, - ], - }; -}; + return { + title: { + text: i18n.t('{{name}}: Monthly precipitation {{period}}', { + name, + period: getMonthlyPeriod(data), + nsSeparator: ';', + }), + }, + subtitle: { + text: i18n.t('Normals from reference period: {{period}}', { + period: referencePeriod.id, + nsSeparator: ';', + }), + }, + credits, + tooltip: { + shared: true, + valueSuffix: ' mm', + }, + chart: { + type: 'column', + height: 480, + marginBottom: 75, + }, + plotOptions: { + series: { + grouping: false, + borderWidth: 0, + animation, + }, + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, + }, + yAxis: { + min: 0, + max: precipMonthlyMax, + title: false, + labels: { + format: '{value} mm', + }, + }, + series: [ + { + data: series, + name: i18n.t('Monthly precipitation'), + color: colors.blue500, + zIndex: 1, + }, + { + data: monthMormals, + name: i18n.t('Normal precipitation'), + color: colors.blue200, + pointPlacement: -0.2, + zIndex: 0, + }, + ], + } +} -export default getChartConfig; +export default getChartConfig diff --git a/src/components/explore/styles/ExplorePage.module.css b/src/components/explore/styles/ExplorePage.module.css index dbe863c..97976cb 100644 --- a/src/components/explore/styles/ExplorePage.module.css +++ b/src/components/explore/styles/ExplorePage.module.css @@ -1,25 +1,25 @@ .container { - margin-right: 24px; - max-width: 800px; - position: relative; + margin-right: 24px; + max-width: 800px; + position: relative; } .container h1 { - color: var(--colors-grey900); - font-size: 24px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 24px; + font-weight: 500; } .container h2 { - font-size: 16px; - margin: 20px 0 8px; + font-size: 16px; + margin: 20px 0 8px; } .container p { - font-size: 14px; - margin: 6px 0 12px; + font-size: 14px; + margin: 6px 0 12px; } .container img { - width: 100%; + width: 100%; } diff --git a/src/components/explore/styles/OrgUnit.module.css b/src/components/explore/styles/OrgUnit.module.css index 4eed22a..04b55ee 100644 --- a/src/components/explore/styles/OrgUnit.module.css +++ b/src/components/explore/styles/OrgUnit.module.css @@ -1,35 +1,35 @@ .container { - margin-right: 24px; - max-width: 800px; - position: relative; + margin-right: 24px; + max-width: 800px; + position: relative; } .container h1 { - color: var(--colors-grey900); - font-size: 24px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 24px; + font-weight: 500; } .container h2 { - font-size: 16px; - margin: 20px 0 8px; + font-size: 16px; + margin: 20px 0 8px; } .container p { - font-size: 14px; - margin: 6px 0 12px; + font-size: 14px; + margin: 6px 0 12px; } .orgUnit { - position: relative; + position: relative; } .orgUnit h1 svg { - margin-bottom: -3px; + margin-bottom: -3px; } .message { - color: #555; - font-size: 14px; - font-style: italic; + color: #555; + font-size: 14px; + font-style: italic; } diff --git a/src/components/explore/styles/OrgUnitTree.module.css b/src/components/explore/styles/OrgUnitTree.module.css index 074f62f..f873e78 100644 --- a/src/components/explore/styles/OrgUnitTree.module.css +++ b/src/components/explore/styles/OrgUnitTree.module.css @@ -1,9 +1,9 @@ .container { - overflow: hidden; + overflow: hidden; } .orgUnitTree { - overflow-y: auto; - padding-left: 10px; - padding-bottom: 10px; + overflow-y: auto; + padding-left: 10px; + padding-bottom: 10px; } diff --git a/src/components/explore/styles/Period.module.css b/src/components/explore/styles/Period.module.css index bf2691c..7b1247f 100644 --- a/src/components/explore/styles/Period.module.css +++ b/src/components/explore/styles/Period.module.css @@ -1,28 +1,28 @@ .container { - margin: 0 0 1rem 0; + margin: 0 0 1rem 0; } .pickers { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; } .pickers > div { - width: 45%; + width: 45%; } .pickers input { - height: 36px; + height: 36px; } .pickers > button { - margin-top: 21px; + margin-top: 21px; } .warning { - font-size: 14px; - color: red; - flex-shrink: 1; + font-size: 14px; + color: red; + flex-shrink: 1; } diff --git a/src/components/explore/styles/PeriodTypeSelect.module.css b/src/components/explore/styles/PeriodTypeSelect.module.css index 965ffce..1fcde9f 100644 --- a/src/components/explore/styles/PeriodTypeSelect.module.css +++ b/src/components/explore/styles/PeriodTypeSelect.module.css @@ -1,10 +1,10 @@ .periodTypeButtons { - position: absolute; - top: -6px; - left: 10px; - z-index: 1000; + position: absolute; + top: -6px; + left: 10px; + z-index: 1000; } .periodTypeButtons button { - margin-right: 5px; + margin-right: 5px; } diff --git a/src/components/explore/styles/ReferencePeriod.module.css b/src/components/explore/styles/ReferencePeriod.module.css index e046fd1..22db749 100644 --- a/src/components/explore/styles/ReferencePeriod.module.css +++ b/src/components/explore/styles/ReferencePeriod.module.css @@ -1,5 +1,5 @@ .referencePeriod { - display: inline-block; - max-width: 150px; - margin-top: 10px; + display: inline-block; + max-width: 150px; + margin-top: 10px; } diff --git a/src/components/explore/styles/Tabs.module.css b/src/components/explore/styles/Tabs.module.css index 696e86f..29253d8 100644 --- a/src/components/explore/styles/Tabs.module.css +++ b/src/components/explore/styles/Tabs.module.css @@ -1,4 +1,4 @@ .tabContent { - position: relative; - margin-top: 24px; + position: relative; + margin-top: 24px; } diff --git a/src/components/explore/temperature/TemperatureDaily.js b/src/components/explore/temperature/TemperatureDaily.js index 6009ce5..174ca95 100644 --- a/src/components/explore/temperature/TemperatureDaily.js +++ b/src/components/explore/temperature/TemperatureDaily.js @@ -1,35 +1,39 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import DailyPeriodSelect from "../DailyPeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import getDailyConfig from "./charts/temperatureDaily"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; -import { era5Daily } from "../../../data/datasets"; +import { era5Daily } from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import DailyPeriodSelect from '../DailyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import getDailyConfig from './charts/temperatureDaily' const TemperatureDaily = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.dailyPeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.dailyPeriod) + const { settings } = useAppSettings() - const data = useEarthEngineTimeSeries(era5Daily, period, orgUnit); + const data = useEarthEngineTimeSeries(era5Daily, period, orgUnit) - return ( - <> - - {data && settings ? ( - - ) : ( - - )} - - - - ); -}; + return ( + <> + + {data && settings ? ( + + ) : ( + + )} + + + + ) +} -export default TemperatureDaily; +export default TemperatureDaily diff --git a/src/components/explore/temperature/TemperatureMonthly.js b/src/components/explore/temperature/TemperatureMonthly.js index 00b6bb4..58aba8b 100644 --- a/src/components/explore/temperature/TemperatureMonthly.js +++ b/src/components/explore/temperature/TemperatureMonthly.js @@ -1,51 +1,51 @@ -import Chart from "../Chart"; -import PeriodTypeSelect from "../PeriodTypeSelect"; -import MonthlyPeriodSelect from "../MonthlyPeriodSelect"; -import ReferencePeriod from "../ReferencePeriodSelect"; -import DataLoader from "../../shared/DataLoader"; -import Resolution from "../../shared/Resolution"; -import getMonthlyConfig from "./charts/temperatureMonthly"; -import useEarthEngineTimeSeries from "../../../hooks/useEarthEngineTimeSeries"; -import useEarthEngineClimateNormals from "../../../hooks/useEarthEngineClimateNormals"; -import exploreStore from "../../../store/exploreStore"; -import useAppSettings from "../../../hooks/useAppSettings"; -import { era5Monthly, era5MonthlyNormals } from "../../../data/datasets"; +import { era5Monthly, era5MonthlyNormals } from '../../../data/datasets' +import useAppSettings from '../../../hooks/useAppSettings' +import useEarthEngineClimateNormals from '../../../hooks/useEarthEngineClimateNormals' +import useEarthEngineTimeSeries from '../../../hooks/useEarthEngineTimeSeries' +import exploreStore from '../../../store/exploreStore' +import DataLoader from '../../shared/DataLoader' +import Resolution from '../../shared/Resolution' +import Chart from '../Chart' +import MonthlyPeriodSelect from '../MonthlyPeriodSelect' +import PeriodTypeSelect from '../PeriodTypeSelect' +import ReferencePeriod from '../ReferencePeriodSelect' +import getMonthlyConfig from './charts/temperatureMonthly' const TemperatureMonthly = () => { - const orgUnit = exploreStore((state) => state.orgUnit); - const period = exploreStore((state) => state.monthlyPeriod); - const referencePeriod = exploreStore((state) => state.referencePeriod); - const { settings } = useAppSettings(); + const orgUnit = exploreStore((state) => state.orgUnit) + const period = exploreStore((state) => state.monthlyPeriod) + const referencePeriod = exploreStore((state) => state.referencePeriod) + const { settings } = useAppSettings() - const data = useEarthEngineTimeSeries(era5Monthly, period, orgUnit); + const data = useEarthEngineTimeSeries(era5Monthly, period, orgUnit) - const normals = useEarthEngineClimateNormals( - era5MonthlyNormals, - referencePeriod, - orgUnit - ); + const normals = useEarthEngineClimateNormals( + era5MonthlyNormals, + referencePeriod, + orgUnit + ) - return ( - <> - - {data && normals && settings ? ( - - ) : ( - - )} - - - - - ); -}; + return ( + <> + + {data && normals && settings ? ( + + ) : ( + + )} + + + + + ) +} -export default TemperatureMonthly; +export default TemperatureMonthly diff --git a/src/components/explore/temperature/charts/temperatureDaily.js b/src/components/explore/temperature/charts/temperatureDaily.js index 8706e23..732d698 100644 --- a/src/components/explore/temperature/charts/temperatureDaily.js +++ b/src/components/explore/temperature/charts/temperatureDaily.js @@ -1,84 +1,84 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; -import { animation, credits, getDailyPeriod } from "../../../../utils/chart"; -import { toCelcius } from "../../../../utils/calc"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import { toCelcius } from '../../../../utils/calc' +import { animation, credits, getDailyPeriod } from '../../../../utils/chart' const getChart = (name, data, settings) => { - const { tempMin, tempMax } = settings; + const { tempMin, tempMax } = settings - const series = data.map((d) => ({ - x: new Date(d.id).getTime(), - y: toCelcius(d["temperature_2m"]), - })); + const series = data.map((d) => ({ + x: new Date(d.id).getTime(), + y: toCelcius(d['temperature_2m']), + })) - const minMax = data.map((d) => [ - new Date(d.id).getTime(), - toCelcius(d["temperature_2m_min"]), - toCelcius(d["temperature_2m_max"]), - ]); + const minMax = data.map((d) => [ + new Date(d.id).getTime(), + toCelcius(d['temperature_2m_min']), + toCelcius(d['temperature_2m_max']), + ]) - return { - title: { - text: i18n.t("{{name}}: Daily temperatures {{period}}", { - name, - period: getDailyPeriod(data), - nsSeparator: ";", - }), - }, - credits, - tooltip: { - crosshairs: true, - shared: true, - valueSuffix: "°C", - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - title: false, - labels: { - format: "{value}°C", - }, - min: tempMin, - max: tempMax, - }, - chart: { - height: 480, - marginBottom: 75, - zoomType: "x", - }, - plotOptions: { - series: { - animation, - }, - }, - series: [ - { - type: "line", - data: series, - name: i18n.t("Mean temperature"), - color: colors.red800, - negativeColor: colors.blue800, - lineWidth: 1.5, - zIndex: 2, - }, - { - type: "arearange", - name: i18n.t("Temperature range"), - data: minMax, - color: colors.red200, - negativeColor: colors.blue200, - marker: { - enabled: false, + return { + title: { + text: i18n.t('{{name}}: Daily temperatures {{period}}', { + name, + period: getDailyPeriod(data), + nsSeparator: ';', + }), }, - zIndex: 0, - }, - ], - }; -}; + credits, + tooltip: { + crosshairs: true, + shared: true, + valueSuffix: '°C', + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, + }, + yAxis: { + title: false, + labels: { + format: '{value}°C', + }, + min: tempMin, + max: tempMax, + }, + chart: { + height: 480, + marginBottom: 75, + zoomType: 'x', + }, + plotOptions: { + series: { + animation, + }, + }, + series: [ + { + type: 'line', + data: series, + name: i18n.t('Mean temperature'), + color: colors.red800, + negativeColor: colors.blue800, + lineWidth: 1.5, + zIndex: 2, + }, + { + type: 'arearange', + name: i18n.t('Temperature range'), + data: minMax, + color: colors.red200, + negativeColor: colors.blue200, + marker: { + enabled: false, + }, + zIndex: 0, + }, + ], + } +} -export default getChart; +export default getChart diff --git a/src/components/explore/temperature/charts/temperatureMonthly.js b/src/components/explore/temperature/charts/temperatureMonthly.js index efd5a00..e88dac0 100644 --- a/src/components/explore/temperature/charts/temperatureMonthly.js +++ b/src/components/explore/temperature/charts/temperatureMonthly.js @@ -1,115 +1,115 @@ -import i18n from "@dhis2/d2-i18n"; -import { colors } from "@dhis2/ui"; +import i18n from '@dhis2/d2-i18n' +import { colors } from '@dhis2/ui' +import { getTimeFromId, toCelcius } from '../../../../utils/calc' import { - animation, - credits, - getMonthlyPeriod, - getMonthFromId, -} from "../../../../utils/chart"; -import { getTimeFromId, toCelcius } from "../../../../utils/calc"; + animation, + credits, + getMonthlyPeriod, + getMonthFromId, +} from '../../../../utils/chart' const getChartConfig = (name, data, normals, referencePeriod, settings) => { - const { tempMin, tempMax } = settings; + const { tempMin, tempMax } = settings - const series = data.map((d) => ({ - x: getTimeFromId(d.id), - y: toCelcius(d["temperature_2m"]), - })); + const series = data.map((d) => ({ + x: getTimeFromId(d.id), + y: toCelcius(d['temperature_2m']), + })) - const minMax = data.map((d) => [ - getTimeFromId(d.id), - toCelcius(d["temperature_2m_min"]), - toCelcius(d["temperature_2m_max"]), - ]); + const minMax = data.map((d) => [ + getTimeFromId(d.id), + toCelcius(d['temperature_2m_min']), + toCelcius(d['temperature_2m_max']), + ]) - const monthMormals = data.map((d) => { - const month = getMonthFromId(d.id); - const normal = normals.find((n) => n.id === month); + const monthMormals = data.map((d) => { + const month = getMonthFromId(d.id) + const normal = normals.find((n) => n.id === month) - return { - x: getTimeFromId(d.id), - y: toCelcius(normal["temperature_2m"]), - }; - }); + return { + x: getTimeFromId(d.id), + y: toCelcius(normal['temperature_2m']), + } + }) - return { - title: { - text: i18n.t("{{name}}: Monthly temperatures {{period}}", { - name, - period: getMonthlyPeriod(data), - nsSeparator: ";", - }), - }, - subtitle: { - text: i18n.t("Normals from reference period: {{period}}", { - period: referencePeriod.id, - nsSeparator: ";", - }), - }, - credits, - tooltip: { - crosshairs: true, - shared: true, - valueSuffix: "°C", - }, - xAxis: { - type: "datetime", - tickInterval: 2592000000, - labels: { - format: "{value: %b}", - }, - }, - yAxis: { - title: false, - labels: { - format: "{value}°C", - }, - min: tempMin, - max: tempMax, - }, - chart: { - height: 480, - marginBottom: 75, - }, - plotOptions: { - series: { - animation, - }, - }, - series: [ - { - type: "line", - data: series, - name: i18n.t("Mean temperature"), - color: colors.red800, - negativeColor: colors.blue800, - zIndex: 2, - }, - { - type: "arearange", - name: i18n.t("Temperature range"), - data: minMax, - color: colors.red200, - negativeColor: colors.blue200, - marker: { - enabled: false, + return { + title: { + text: i18n.t('{{name}}: Monthly temperatures {{period}}', { + name, + period: getMonthlyPeriod(data), + nsSeparator: ';', + }), + }, + subtitle: { + text: i18n.t('Normals from reference period: {{period}}', { + period: referencePeriod.id, + nsSeparator: ';', + }), + }, + credits, + tooltip: { + crosshairs: true, + shared: true, + valueSuffix: '°C', + }, + xAxis: { + type: 'datetime', + tickInterval: 2592000000, + labels: { + format: '{value: %b}', + }, + }, + yAxis: { + title: false, + labels: { + format: '{value}°C', + }, + min: tempMin, + max: tempMax, + }, + chart: { + height: 480, + marginBottom: 75, }, - zIndex: 0, - }, - { - type: "spline", - data: monthMormals, - name: i18n.t("Normal temperature"), - dashStyle: "dash", - color: colors.red500, - negativeColor: colors.blue500, - marker: { - enabled: false, + plotOptions: { + series: { + animation, + }, }, - zIndex: 1, - }, - ], - }; -}; + series: [ + { + type: 'line', + data: series, + name: i18n.t('Mean temperature'), + color: colors.red800, + negativeColor: colors.blue800, + zIndex: 2, + }, + { + type: 'arearange', + name: i18n.t('Temperature range'), + data: minMax, + color: colors.red200, + negativeColor: colors.blue200, + marker: { + enabled: false, + }, + zIndex: 0, + }, + { + type: 'spline', + data: monthMormals, + name: i18n.t('Normal temperature'), + dashStyle: 'dash', + color: colors.red500, + negativeColor: colors.blue500, + marker: { + enabled: false, + }, + zIndex: 1, + }, + ], + } +} -export default getChartConfig; +export default getChartConfig diff --git a/src/components/import/DataElement.js b/src/components/import/DataElement.js index e72afcc..b883d16 100644 --- a/src/components/import/DataElement.js +++ b/src/components/import/DataElement.js @@ -1,63 +1,67 @@ -import { useEffect } from "react"; -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { useDataQuery } from "@dhis2/app-runtime"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; +import { useDataQuery } from '@dhis2/app-runtime' +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import PropTypes from 'prop-types' +import { useEffect } from 'react' const dataElementQuery = { - results: { - resource: "dataElements", - params: { - paging: false, - filter: "domainType:eq:AGGREGATE", - fields: "id,code,displayName", + results: { + resource: 'dataElements', + params: { + paging: false, + filter: 'domainType:eq:AGGREGATE', + fields: 'id,code,displayName', + }, }, - }, -}; +} const DataElement = ({ selected, dataset, onChange }) => { - const { loading, error, data } = useDataQuery(dataElementQuery); - const dataElements = data?.results?.dataElements; + const { loading, error, data } = useDataQuery(dataElementQuery) + const dataElements = data?.results?.dataElements - useEffect(() => { - if (!selected && dataset && dataElements) { - const defaultDataElement = dataElements.find( - (d) => d.code === dataset.dataElementCode - ); + useEffect(() => { + if (!selected && dataset && dataElements) { + const defaultDataElement = dataElements.find( + (d) => d.code === dataset.dataElementCode + ) - if (defaultDataElement) { - onChange(defaultDataElement); - } - } - }, [selected, dataset, dataElements, onChange]); - - return ( -
-

{i18n.t("Data element")}

- - onChange(dataElements?.find((d) => d.id === selected)) + if (defaultDataElement) { + onChange(defaultDataElement) + } } - > - {dataElements?.map((d) => ( - - ))} - -
- ); -}; + }, [selected, dataset, dataElements, onChange]) + + return ( +
+

{i18n.t('Data element')}

+ + onChange(dataElements?.find((d) => d.id === selected)) + } + > + {dataElements?.map((d) => ( + + ))} + +
+ ) +} DataElement.propTypes = { - selected: PropTypes.object, - dataset: PropTypes.object, - onChange: PropTypes.func.isRequired, -}; + selected: PropTypes.object, + dataset: PropTypes.object, + onChange: PropTypes.func.isRequired, +} -export default DataElement; +export default DataElement diff --git a/src/components/import/Dataset.js b/src/components/import/Dataset.js index d2e43e6..48a3758 100644 --- a/src/components/import/Dataset.js +++ b/src/components/import/Dataset.js @@ -1,29 +1,29 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import datasets from "../../data/datasets"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import PropTypes from 'prop-types' +import datasets from '../../data/datasets' const Dataset = ({ selected, onChange }) => ( -
-

{i18n.t("Data")}

- - onChange(datasets.find((d) => d.id === selected)) - } - > - {datasets.map((d, i) => ( - - ))} - - {selected &&

{selected.description}

} -
-); +
+

{i18n.t('Data')}

+ + onChange(datasets.find((d) => d.id === selected)) + } + > + {datasets.map((d, i) => ( + + ))} + + {selected &&

{selected.description}

} +
+) Dataset.propTypes = { - selected: PropTypes.object, - onChange: PropTypes.func.isRequired, -}; + selected: PropTypes.object, + onChange: PropTypes.func.isRequired, +} -export default Dataset; +export default Dataset diff --git a/src/components/import/ExtractData.js b/src/components/import/ExtractData.js index f085681..9ce0b38 100644 --- a/src/components/import/ExtractData.js +++ b/src/components/import/ExtractData.js @@ -1,63 +1,63 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import useOrgUnits from "../../hooks/useOrgUnits"; -import useEarthEngineData from "../../hooks/useEarthEngineData"; -import ImportData from "./ImportData"; -import DataLoader from "../shared/DataLoader"; -import ErrorMessage from "../shared/ErrorMessage"; -import { getNumberOfDaysFromPeriod } from "../../utils/time"; -import styles from "./styles/ExtractData.module.css"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import useEarthEngineData from '../../hooks/useEarthEngineData' +import useOrgUnits from '../../hooks/useOrgUnits' +import { getNumberOfDaysFromPeriod } from '../../utils/time' +import DataLoader from '../shared/DataLoader' +import ErrorMessage from '../shared/ErrorMessage' +import ImportData from './ImportData' +import styles from './styles/ExtractData.module.css' const ExtractData = ({ dataset, period, orgUnits, dataElement }) => { - const { parent, level } = orgUnits; - const { features } = useOrgUnits(parent.id, level); - const { data, error, loading } = useEarthEngineData( - dataset, - period, - features - ); + const { parent, level } = orgUnits + const { features } = useOrgUnits(parent.id, level) + const { data, error, loading } = useEarthEngineData( + dataset, + period, + features + ) - if (!features) { - return ; - } else if (!features.length) { - return ( -
- {i18n.t("No org units with geometry found for this level")} -
- ); - } - const orgUnitsCount = features.length; - const daysCount = getNumberOfDaysFromPeriod(period); - const valueCount = daysCount * orgUnitsCount; + if (!features) { + return + } else if (!features.length) { + return ( +
+ {i18n.t('No org units with geometry found for this level')} +
+ ) + } + const orgUnitsCount = features.length + const daysCount = getNumberOfDaysFromPeriod(period) + const valueCount = daysCount * orgUnitsCount - if (loading) { - return ( - - ); - } + if (loading) { + return ( + + ) + } - return error ? ( - - ) : ( - - ); -}; + return error ? ( + + ) : ( + + ) +} ExtractData.propTypes = { - dataset: PropTypes.object.isRequired, - period: PropTypes.object.isRequired, - orgUnits: PropTypes.object.isRequired, - dataElement: PropTypes.object.isRequired, -}; + dataset: PropTypes.object.isRequired, + period: PropTypes.object.isRequired, + orgUnits: PropTypes.object.isRequired, + dataElement: PropTypes.object.isRequired, +} -export default ExtractData; +export default ExtractData diff --git a/src/components/import/ImportData.js b/src/components/import/ImportData.js index 79178bd..1eeca19 100644 --- a/src/components/import/ImportData.js +++ b/src/components/import/ImportData.js @@ -1,62 +1,62 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { useDataMutation } from "@dhis2/app-runtime"; -import { useState, useEffect } from "react"; -import ImportResponse from "./ImportResponse"; -import ImportError from "./ImportError"; -import NoOrgUnitData from "./NoOrgUnitData"; -import styles from "./styles/ImportData.module.css"; +import { useDataMutation } from '@dhis2/app-runtime' +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import { useState, useEffect } from 'react' +import ImportError from './ImportError' +import ImportResponse from './ImportResponse' +import NoOrgUnitData from './NoOrgUnitData' +import styles from './styles/ImportData.module.css' const dataImportMutation = { - resource: "dataValueSets", - type: "create", - data: (dataValues) => dataValues, -}; + resource: 'dataValueSets', + type: 'create', + data: (dataValues) => dataValues, +} const ImportData = ({ data, dataElement, features }) => { - const [response, setResponse] = useState(false); - const [mutate, { error }] = useDataMutation(dataImportMutation); + const [response, setResponse] = useState(false) + const [mutate, { error }] = useDataMutation(dataImportMutation) - useEffect(() => { - mutate({ - dataValues: data - .filter((d) => !isNaN(d.value)) - .map((obj) => ({ - value: obj.value, - orgUnit: obj.ou, - dataElement: dataElement.id, - period: obj.period, - })), - }).then((response) => { - // support for 2.38 + - if (response.httpStatus === "OK") { - setResponse(response.response); - } - //support for 2.37 - else if (response.status === "SUCCESS") { - setResponse(response); - } - }); - }, [mutate, data, dataElement]); + useEffect(() => { + mutate({ + dataValues: data + .filter((d) => !isNaN(d.value)) + .map((obj) => ({ + value: obj.value, + orgUnit: obj.ou, + dataElement: dataElement.id, + period: obj.period, + })), + }).then((response) => { + // support for 2.38 + + if (response.httpStatus === 'OK') { + setResponse(response.response) + } + //support for 2.37 + else if (response.status === 'SUCCESS') { + setResponse(response) + } + }) + }, [mutate, data, dataElement]) - return ( -
- {response ? ( - - ) : error?.details ? ( - - ) : ( - i18n.t("Importing data to DHIS2") - )} - -
- ); -}; + return ( +
+ {response ? ( + + ) : error?.details ? ( + + ) : ( + i18n.t('Importing data to DHIS2') + )} + +
+ ) +} ImportData.propTypes = { - data: PropTypes.array.isRequired, - dataElement: PropTypes.object.isRequired, - features: PropTypes.array.isRequired, -}; + data: PropTypes.array.isRequired, + dataElement: PropTypes.object.isRequired, + features: PropTypes.array.isRequired, +} -export default ImportData; +export default ImportData diff --git a/src/components/import/ImportError.js b/src/components/import/ImportError.js index 26b7979..f53b110 100644 --- a/src/components/import/ImportError.js +++ b/src/components/import/ImportError.js @@ -1,35 +1,35 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/ImportError.module.css"; -import ImportResponse from "./ImportResponse"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import ImportResponse from './ImportResponse' +import styles from './styles/ImportError.module.css' const ImportError = ({ response = {} }) => { - const { conflicts, importCount } = response; - const conflict = conflicts?.[0]?.value; - const allFailed = importCount?.imported === 0 && importCount?.updated === 0; + const { conflicts, importCount } = response + const conflict = conflicts?.[0]?.value + const allFailed = importCount?.imported === 0 && importCount?.updated === 0 - return ( - <> - {importCount && !allFailed && ( - - )} - {conflict && ( -
-
- {allFailed - ? i18n.t("Import failed") - : i18n.t("One or more conflicts encountered")} -
-
{conflict}
-
- )} - - ); -}; + return ( + <> + {importCount && !allFailed && ( + + )} + {conflict && ( +
+
+ {allFailed + ? i18n.t('Import failed') + : i18n.t('One or more conflicts encountered')} +
+
{conflict}
+
+ )} + + ) +} ImportError.propTypes = { - message: PropTypes.string, - response: PropTypes.object, -}; + message: PropTypes.string, + response: PropTypes.object, +} -export default ImportError; +export default ImportError diff --git a/src/components/import/ImportPage.js b/src/components/import/ImportPage.js index 6c52ed3..fde8897 100644 --- a/src/components/import/ImportPage.js +++ b/src/components/import/ImportPage.js @@ -1,161 +1,170 @@ -import { useState, useEffect } from "react"; -import i18n from "@dhis2/d2-i18n"; -import { useConfig } from "@dhis2/app-runtime"; -import { Card, Button } from "@dhis2/ui"; -import Dataset from "./Dataset"; -import Period from "./Period"; -import OrgUnits from "./OrgUnits"; -import GEETokenCheck from "../shared/GEETokenCheck"; -import Resolution from "../shared/Resolution"; -import DataElement from "./DataElement"; -import ExtractData from "./ExtractData"; -import useOrgUnitCount from "../../hooks/useOrgUnitCount"; +import { useConfig } from '@dhis2/app-runtime' +import i18n from '@dhis2/d2-i18n' +import { Card, Button } from '@dhis2/ui' +import { useState, useEffect } from 'react' +import useOrgUnitCount from '../../hooks/useOrgUnitCount' import { - getDefaultImportPeriod, - getStandardPeriod, - getNumberOfDaysFromPeriod, - isValidPeriod, -} from "../../utils/time"; -import styles from "./styles/ImportPage.module.css"; + getDefaultImportPeriod, + getStandardPeriod, + getNumberOfDaysFromPeriod, + isValidPeriod, +} from '../../utils/time' +import GEETokenCheck from '../shared/GEETokenCheck' +import Resolution from '../shared/Resolution' +import DataElement from './DataElement' +import Dataset from './Dataset' +import ExtractData from './ExtractData' +import OrgUnits from './OrgUnits' +import Period from './Period' +import styles from './styles/ImportPage.module.css' -const maxValues = 50000; +const maxValues = 50000 const ImportPage = () => { - const { systemInfo = {} } = useConfig(); - const { calendar = "gregory" } = systemInfo; - const [dataset, setDataset] = useState(); - const [period, setPeriod] = useState(getDefaultImportPeriod(calendar)); - const [orgUnits, setOrgUnits] = useState(); - const [dataElement, setDataElement] = useState(); - const standardPeriod = getStandardPeriod(period); // ISO 8601 used by GEE - const [startExtract, setStartExtract] = useState(false); - const orgUnitCount = useOrgUnitCount(orgUnits?.parent?.id, orgUnits?.level); - const daysCount = getNumberOfDaysFromPeriod(period); - const valueCount = orgUnitCount * daysCount; + const { systemInfo = {} } = useConfig() + const { calendar = 'gregory' } = systemInfo + const [dataset, setDataset] = useState() + const [period, setPeriod] = useState(getDefaultImportPeriod(calendar)) + const [orgUnits, setOrgUnits] = useState() + const [dataElement, setDataElement] = useState() + const standardPeriod = getStandardPeriod(period) // ISO 8601 used by GEE + const [startExtract, setStartExtract] = useState(false) + const orgUnitCount = useOrgUnitCount(orgUnits?.parent?.id, orgUnits?.level) + const daysCount = getNumberOfDaysFromPeriod(period) + const valueCount = orgUnitCount * daysCount - const isValidOrgUnits = - orgUnits?.parent && - orgUnits?.level && - orgUnits.parent.path.split("/").length - 1 <= Number(orgUnits.level); + const isValidOrgUnits = + orgUnits?.parent && + orgUnits?.level && + orgUnits.parent.path.split('/').length - 1 <= Number(orgUnits.level) - const isValid = !!( - dataset && - isValidPeriod(standardPeriod) && - isValidOrgUnits && - dataElement && - valueCount <= maxValues - ); + const isValid = !!( + dataset && + isValidPeriod(standardPeriod) && + isValidOrgUnits && + dataElement && + valueCount <= maxValues + ) - useEffect(() => { - setStartExtract(false); - }, [dataset, period, orgUnits, dataElement]); + useEffect(() => { + setStartExtract(false) + }, [dataset, period, orgUnits, dataElement]) - return ( -
-

{i18n.t("Import weather and climate data")}

- -
- -
- { - setDataset(dataset); - setDataElement(null); - }} - /> - - - {valueCount > maxValues && ( -
- {i18n.t( - "You can maximum import {{maxValues}} data values in a single import, but you are trying to import {{valueCount}} values for {{orgUnitCount}} organisation units over {{daysCount}} days. Please select a shorter period or fewer organisation units. You can always import more data later.", - { - maxValues, - valueCount, - orgUnitCount, - daysCount, - } - )} -
- )} - {dataset && ( - - )} - -
- - {startExtract && isValid && ( - - )} + return ( +
+

{i18n.t('Import weather and climate data')}

+ +
+ +
+ { + setDataset(dataset) + setDataElement(null) + }} + /> + + + {valueCount > maxValues && ( +
+ {i18n.t( + 'You can maximum import {{maxValues}} data values in a single import, but you are trying to import {{valueCount}} values for {{orgUnitCount}} organisation units over {{daysCount}} days. Please select a shorter period or fewer organisation units. You can always import more data later.', + { + maxValues, + valueCount, + orgUnitCount, + daysCount, + } + )} +
+ )} + {dataset && ( + + )} + +
+ + {startExtract && isValid && ( + + )} +
+
+
+
+

{i18n.t('Instructions')}

+

+ {i18n.t( + 'Before you can import weather and climate data, you need to create the associated data elements in DHIS2. See our setup guide in the left menu.' + )} +

+

+ {i18n.t( + 'Data can be imported in batches. We recommend that you start with a few organisation units to make sure everything works as expected.' + )} +

+

+ {i18n.t('Data')}:{' '} + {i18n.t( + 'Select the variable you would like to import.' + )} +

+

+ {i18n.t('Period')}:{' '} + {i18n.t( + 'Select the start and end dates for your import. We will import daily data for the selected period. You can aggregate data to other period types (weekly/monthly) in DHIS2. If your DHIS2 instance use a different timezone than UTC, we will calculate daily values based on this timezone.' + )} +

+

+ {i18n.t('Parent organisation unit')}:{' '} + {i18n.t( + 'Select a parent organisation unit for the import. We will import data for children that are below this organisation unit.' + )} +

+

+ {i18n.t('Organisation unit level')}:{' '} + {i18n.t( + 'Select the organisation unit level for the import. We will import data for this level that are below the parent organisation unit. If the parent organisation unit is on the same level, we will import data for this single organisation unit.' + )} +

+

+ {i18n.t('Data element')}:{' '} + {i18n.t( + 'Select the DHIS2 data element you would like to import the data into. See the “Setup guide” for more information on how to configure this data element.' + )} +

+

+ {i18n.t('Import summary')}:{' '} + {i18n.t( + 'When data is imported, we will show a summary of the import. This includes the number of data values that were successfully imported or updated. If data values fail to import, we will show the reason for the failure.' + )} +

+
-
- -
-

{i18n.t("Instructions")}

-

- {i18n.t( - "Before you can import weather and climate data, you need to create the associated data elements in DHIS2. See our setup guide in the left menu." - )} -

-

- {i18n.t( - "Data can be imported in batches. We recommend that you start with a few organisation units to make sure everything works as expected." - )} -

-

- {i18n.t("Data")}:{" "} - {i18n.t("Select the variable you would like to import.")} -

-

- {i18n.t("Period")}:{" "} - {i18n.t( - "Select the start and end dates for your import. We will import daily data for the selected period. You can aggregate data to other period types (weekly/monthly) in DHIS2. If your DHIS2 instance use a different timezone than UTC, we will calculate daily values based on this timezone." - )} -

-

- {i18n.t("Parent organisation unit")}:{" "} - {i18n.t( - "Select a parent organisation unit for the import. We will import data for children that are below this organisation unit." - )} -

-

- {i18n.t("Organisation unit level")}:{" "} - {i18n.t( - "Select the organisation unit level for the import. We will import data for this level that are below the parent organisation unit. If the parent organisation unit is on the same level, we will import data for this single organisation unit." - )} -

-

- {i18n.t("Data element")}:{" "} - {i18n.t( - "Select the DHIS2 data element you would like to import the data into. See the “Setup guide” for more information on how to configure this data element." - )} -

-

- {i18n.t("Import summary")}:{" "} - {i18n.t( - "When data is imported, we will show a summary of the import. This includes the number of data values that were successfully imported or updated. If data values fail to import, we will show the reason for the failure." - )} -

-
-
- ); -}; + ) +} -export default ImportPage; +export default ImportPage diff --git a/src/components/import/ImportResponse.js b/src/components/import/ImportResponse.js index a4b83ac..24c2861 100644 --- a/src/components/import/ImportResponse.js +++ b/src/components/import/ImportResponse.js @@ -1,27 +1,27 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/ImportResponse.module.css"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import styles from './styles/ImportResponse.module.css' const ImportResponse = ({ importCount }) => { - const { imported, updated, ignored } = importCount; - return ( -
-
{i18n.t("Data is imported")}
-
- {i18n.t("Imported")}: {imported} -
-
- {i18n.t("Updated")}: {updated} -
-
- {i18n.t("Ignored")}: {ignored} -
-
- ); -}; + const { imported, updated, ignored } = importCount + return ( +
+
{i18n.t('Data is imported')}
+
+ {i18n.t('Imported')}: {imported} +
+
+ {i18n.t('Updated')}: {updated} +
+
+ {i18n.t('Ignored')}: {ignored} +
+
+ ) +} ImportResponse.propTypes = { - importCount: PropTypes.object.isRequired, -}; + importCount: PropTypes.object.isRequired, +} -export default ImportResponse; +export default ImportResponse diff --git a/src/components/import/NoOrgUnitData.js b/src/components/import/NoOrgUnitData.js index f73d763..286cc74 100644 --- a/src/components/import/NoOrgUnitData.js +++ b/src/components/import/NoOrgUnitData.js @@ -1,28 +1,29 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/NoOrgUnitData.module.css"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import styles from './styles/NoOrgUnitData.module.css' const NoOrgUnitData = ({ data, features }) => { - const orgUnits = features - .filter((f) => - data.filter((d) => d.ou === f.id).every((d) => isNaN(d.value)) - ) - .map((f) => f.properties.name); + const orgUnits = features + .filter((f) => + data.filter((d) => d.ou === f.id).every((d) => isNaN(d.value)) + ) + .map((f) => f.properties.name) - return orgUnits.length ? ( -
- {i18n.t("No data for the following org units")}: {orgUnits.join(", ")} -
- {i18n.t( - "ERA5-Land has limited data for costal areas. Values for other org units will be imported." - )} -
- ) : null; -}; + return orgUnits.length ? ( +
+ {i18n.t('No data for the following org units')}:{' '} + {orgUnits.join(', ')} +
+ {i18n.t( + 'ERA5-Land has limited data for costal areas. Values for other org units will be imported.' + )} +
+ ) : null +} NoOrgUnitData.propTypes = { - data: PropTypes.array.isRequired, - features: PropTypes.array.isRequired, -}; + data: PropTypes.array.isRequired, + features: PropTypes.array.isRequired, +} -export default NoOrgUnitData; +export default NoOrgUnitData diff --git a/src/components/import/OrgUnitLevel.js b/src/components/import/OrgUnitLevel.js index 4a32424..0476a10 100644 --- a/src/components/import/OrgUnitLevel.js +++ b/src/components/import/OrgUnitLevel.js @@ -1,41 +1,45 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { useEffect } from "react"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import useOrgUnitLevels from "../../hooks/useOrgUnitLevels"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import PropTypes from 'prop-types' +import { useEffect } from 'react' +import useOrgUnitLevels from '../../hooks/useOrgUnitLevels' const OrgUnitLevel = ({ level, onChange }) => { - const { levels, loading, error } = useOrgUnitLevels(); + const { levels, loading, error } = useOrgUnitLevels() - // Set second level as default - useEffect(() => { - if (levels?.length > 1 && !level) { - onChange(String(levels[1].level)); - } - }, [levels, level, onChange]); + // Set second level as default + useEffect(() => { + if (levels?.length > 1 && !level) { + onChange(String(levels[1].level)) + } + }, [levels, level, onChange]) - return levels ? ( -
-

{i18n.t("Organisation unit level")}

- onChange(selected)} - > - {levels.map((l, i) => ( - - ))} - -
- ) : null; -}; + return levels ? ( +
+

{i18n.t('Organisation unit level')}

+ onChange(selected)} + > + {levels.map((l, i) => ( + + ))} + +
+ ) : null +} OrgUnitLevel.propTypes = { - level: PropTypes.string, - onChange: PropTypes.func.isRequired, -}; + level: PropTypes.string, + onChange: PropTypes.func.isRequired, +} -export default OrgUnitLevel; +export default OrgUnitLevel diff --git a/src/components/import/OrgUnitTree.js b/src/components/import/OrgUnitTree.js index 48522a1..fb87ccc 100644 --- a/src/components/import/OrgUnitTree.js +++ b/src/components/import/OrgUnitTree.js @@ -1,42 +1,42 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { useEffect } from "react"; -import { OrganisationUnitTree } from "@dhis2/ui"; -import useOrgUnitRoots from "../../hooks/useOrgUnitRoots"; +import i18n from '@dhis2/d2-i18n' +import { OrganisationUnitTree } from '@dhis2/ui' +import PropTypes from 'prop-types' +import { useEffect } from 'react' +import useOrgUnitRoots from '../../hooks/useOrgUnitRoots' const OrgUnitTree = ({ orgUnit, onChange }) => { - const { roots, error } = useOrgUnitRoots(); + const { roots, error } = useOrgUnitRoots() - // Set for root node as default - useEffect(() => { - if (roots && !orgUnit) { - const [root] = roots; - onChange({ ...root, selected: [root.path] }); - } - }, [roots, orgUnit, onChange]); + // Set for root node as default + useEffect(() => { + if (roots && !orgUnit) { + const [root] = roots + onChange({ ...root, selected: [root.path] }) + } + }, [roots, orgUnit, onChange]) - // The warnings "The query should be static, don't create it within the render loop!" - // comes from the OrganisationUnitTree component: - // https://dhis2.slack.com/archives/C0BP0RABF/p1641544953003000 - return roots ? ( -
-

{i18n.t("Parent organisation unit")}

- r.id)} - selected={orgUnit?.selected} - onChange={onChange} - singleSelection={true} - initiallyExpanded={roots.map((r) => r.path)} - /> -
- ) : error ? ( -
{error.message}
- ) : null; -}; + // The warnings "The query should be static, don't create it within the render loop!" + // comes from the OrganisationUnitTree component: + // https://dhis2.slack.com/archives/C0BP0RABF/p1641544953003000 + return roots ? ( +
+

{i18n.t('Parent organisation unit')}

+ r.id)} + selected={orgUnit?.selected} + onChange={onChange} + singleSelection={true} + initiallyExpanded={roots.map((r) => r.path)} + /> +
+ ) : error ? ( +
{error.message}
+ ) : null +} OrgUnitTree.propTypes = { - orgUnit: PropTypes.object, - onChange: PropTypes.func.isRequired, -}; + orgUnit: PropTypes.object, + onChange: PropTypes.func.isRequired, +} -export default OrgUnitTree; +export default OrgUnitTree diff --git a/src/components/import/OrgUnits.js b/src/components/import/OrgUnits.js index af566be..e7be7a3 100644 --- a/src/components/import/OrgUnits.js +++ b/src/components/import/OrgUnits.js @@ -1,39 +1,39 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import OrgUnitTree from "./OrgUnitTree"; -import OrgUnitLevel from "./OrgUnitLevel"; -import styles from "./styles/OrgUnits.module.css"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import OrgUnitLevel from './OrgUnitLevel' +import OrgUnitTree from './OrgUnitTree' +import styles from './styles/OrgUnits.module.css' const OrgUnits = ({ selected = {}, onChange }) => { - const { parent, level } = selected; + const { parent, level } = selected - const parentIsBelowLevel = - parent && level && parent.path.split("/").length - 1 > Number(level); + const parentIsBelowLevel = + parent && level && parent.path.split('/').length - 1 > Number(level) - return ( - <> - onChange({ parent, level })} - /> - {parentIsBelowLevel === true && ( -
- {i18n.t( - "Org unit parent needs to be above or equal to the org unit level" - )} -
- )} - onChange({ parent, level })} - /> - - ); -}; + return ( + <> + onChange({ parent, level })} + /> + {parentIsBelowLevel === true && ( +
+ {i18n.t( + 'Org unit parent needs to be above or equal to the org unit level' + )} +
+ )} + onChange({ parent, level })} + /> + + ) +} OrgUnits.propTypes = { - selected: PropTypes.object, - onChange: PropTypes.func.isRequired, -}; + selected: PropTypes.object, + onChange: PropTypes.func.isRequired, +} -export default OrgUnits; +export default OrgUnits diff --git a/src/components/import/Period.js b/src/components/import/Period.js index cb32dbb..bae2c2c 100644 --- a/src/components/import/Period.js +++ b/src/components/import/Period.js @@ -1,59 +1,61 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { CalendarInput } from "@dhis2/ui"; -import { useDataQuery } from "@dhis2/app-runtime"; -import TimeZone from "../shared/TimeZone"; -import styles from "./styles/Period.module.css"; +import { useDataQuery } from '@dhis2/app-runtime' +import i18n from '@dhis2/d2-i18n' +import { CalendarInput } from '@dhis2/ui' +import PropTypes from 'prop-types' +import TimeZone from '../shared/TimeZone' +import styles from './styles/Period.module.css' const userSettingsQuery = { - userSettings: { - resource: "userSettings", - params: { - key: ["keyUiLocale"], + userSettings: { + resource: 'userSettings', + params: { + key: ['keyUiLocale'], + }, }, - }, -}; +} const Period = ({ calendar, period, onChange }) => { - const result = useDataQuery(userSettingsQuery); - const { data: { userSettings: { keyUiLocale: locale } = {} } = {} } = result; - const { startTime, endTime } = period; + const result = useDataQuery(userSettingsQuery) + const { data: { userSettings: { keyUiLocale: locale } = {} } = {} } = result + const { startTime, endTime } = period - return ( -
-

{i18n.t("Period")}

-

- {i18n.t("Daily values will be imported between start and end dates")} -

-
- - onChange({ ...period, startTime: calendarDateString }) - } - /> - - onChange({ ...period, endTime: calendarDateString }) - } - /> - -
-
- ); -}; + return ( +
+

{i18n.t('Period')}

+

+ {i18n.t( + 'Daily values will be imported between start and end dates' + )} +

+
+ + onChange({ ...period, startTime: calendarDateString }) + } + /> + + onChange({ ...period, endTime: calendarDateString }) + } + /> + +
+
+ ) +} Period.propTypes = { - period: PropTypes.object, - onChange: PropTypes.func.isRequired, -}; + period: PropTypes.object, + onChange: PropTypes.func.isRequired, +} -export default Period; +export default Period diff --git a/src/components/import/styles/ExtractData.module.css b/src/components/import/styles/ExtractData.module.css index 74b480f..0243b8a 100644 --- a/src/components/import/styles/ExtractData.module.css +++ b/src/components/import/styles/ExtractData.module.css @@ -1,10 +1,10 @@ .container { - padding-top: 20px; - font-size: 14px; + padding-top: 20px; + font-size: 14px; } .loader { - display: inline-block; - margin-right: 10px; - vertical-align: bottom; + display: inline-block; + margin-right: 10px; + vertical-align: bottom; } diff --git a/src/components/import/styles/ImportData.module.css b/src/components/import/styles/ImportData.module.css index 54348a9..0067d1b 100644 --- a/src/components/import/styles/ImportData.module.css +++ b/src/components/import/styles/ImportData.module.css @@ -1,4 +1,4 @@ .container { - padding-top: 20px; - font-size: 14px; + padding-top: 20px; + font-size: 14px; } diff --git a/src/components/import/styles/ImportError.module.css b/src/components/import/styles/ImportError.module.css index 2d998b4..f5b4d90 100644 --- a/src/components/import/styles/ImportError.module.css +++ b/src/components/import/styles/ImportError.module.css @@ -1,10 +1,10 @@ .container { - font-weight: 14px; - color: red; - line-height: 20px; + font-weight: 14px; + color: red; + line-height: 20px; } .title { - font-weight: 600; - padding-bottom: 4px; + font-weight: 600; + padding-bottom: 4px; } diff --git a/src/components/import/styles/ImportPage.module.css b/src/components/import/styles/ImportPage.module.css index da1b17f..d7124ca 100644 --- a/src/components/import/styles/ImportPage.module.css +++ b/src/components/import/styles/ImportPage.module.css @@ -1,52 +1,52 @@ .page { - margin-right: 24px; - margin-bottom: 30px; + margin-right: 24px; + margin-bottom: 30px; } .page h1 { - color: var(--colors-grey900); - font-size: 24px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 24px; + font-weight: 500; } .page h2 { - font-size: 16px; - margin: 20px 0 8px; + font-size: 16px; + margin: 20px 0 8px; } .page p { - font-size: 14px; - margin: 6px 0 12px; + font-size: 14px; + margin: 6px 0 12px; } .container { - padding: 0 20px 20px 20px; - background-color: #fff; - border: 1px solid #ccc; + padding: 0 20px 20px 20px; + background-color: #fff; + border: 1px solid #ccc; } .import { - margin: 20px 0; - min-height: 80px; + margin: 20px 0; + min-height: 80px; } .column { - display: flex; - flex-direction: row; - flex-wrap: wrap; - column-gap: 30px; + display: flex; + flex-direction: row; + flex-wrap: wrap; + column-gap: 30px; } .card { - flex: 2 1 20em; + flex: 2 1 20em; } .instructions { - flex: 1 2 20em; + flex: 1 2 20em; } .warning { - color: red; - font-size: 14px; - margin-top: 6px; + color: red; + font-size: 14px; + margin-top: 6px; } diff --git a/src/components/import/styles/ImportResponse.module.css b/src/components/import/styles/ImportResponse.module.css index 6f7ebb5..7f94047 100644 --- a/src/components/import/styles/ImportResponse.module.css +++ b/src/components/import/styles/ImportResponse.module.css @@ -1,9 +1,9 @@ .container { - line-height: 20px; - margin-bottom: 16px; + line-height: 20px; + margin-bottom: 16px; } .title { - font-weight: 600; - padding-bottom: 4px; + font-weight: 600; + padding-bottom: 4px; } diff --git a/src/components/import/styles/NoOrgUnitData.module.css b/src/components/import/styles/NoOrgUnitData.module.css index 99b3ff0..a1d3233 100644 --- a/src/components/import/styles/NoOrgUnitData.module.css +++ b/src/components/import/styles/NoOrgUnitData.module.css @@ -1,6 +1,6 @@ .noData { - padding-top: 20px; - font-weight: 13px; - color: red; - line-height: 20px; + padding-top: 20px; + font-weight: 13px; + color: red; + line-height: 20px; } diff --git a/src/components/import/styles/OrgUnits.module.css b/src/components/import/styles/OrgUnits.module.css index 014031e..f5bd0b1 100644 --- a/src/components/import/styles/OrgUnits.module.css +++ b/src/components/import/styles/OrgUnits.module.css @@ -1,5 +1,5 @@ .warning { - padding-top: 16px; - font-size: 14px; - color: red; + padding-top: 16px; + font-size: 14px; + color: red; } diff --git a/src/components/import/styles/Period.module.css b/src/components/import/styles/Period.module.css index c257f72..66630e4 100644 --- a/src/components/import/styles/Period.module.css +++ b/src/components/import/styles/Period.module.css @@ -1,14 +1,14 @@ .container { - margin: 0 0 1rem 0; + margin: 0 0 1rem 0; } .pickers { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; } .pickers > div { - width: 45%; + width: 45%; } diff --git a/src/components/settings/ChartSettings.js b/src/components/settings/ChartSettings.js index 109b1a6..2420aa6 100644 --- a/src/components/settings/ChartSettings.js +++ b/src/components/settings/ChartSettings.js @@ -1,83 +1,87 @@ -import i18n from "@dhis2/d2-i18n"; -import NumberInput from "./NumberInput"; -import HeatCategory from "./HeatCategory"; -import useAppSettings from "../../hooks/useAppSettings"; +import i18n from '@dhis2/d2-i18n' +import useAppSettings from '../../hooks/useAppSettings' +import HeatCategory from './HeatCategory' +import NumberInput from './NumberInput' const ChartSettings = () => { - const { settings, changeSetting } = useAppSettings(); + const { settings, changeSetting } = useAppSettings() - if (!settings) { - return null; - } + if (!settings) { + return null + } - const { - tempMin, - tempMax, - tempChange, - heatMin, - heatMax, - precipMonthlyMax, - precipDailyMax, - } = settings; + const { + tempMin, + tempMax, + tempChange, + heatMin, + heatMax, + precipMonthlyMax, + precipDailyMax, + } = settings - return ( - <> -

Chart settings

-

- {i18n.t( - "Set y-axis values for charts in the Explore data section to make it easier to compare different org units. Leave blank to calculate based on data shown." - )} -

- - = tempMax - ? i18n.t("Min temperature must be less than max temperature") - : undefined - } - /> - - - - - - - ); -}; + return ( + <> +

Chart settings

+

+ {i18n.t( + 'Set y-axis values for charts in the Explore data section to make it easier to compare different org units. Leave blank to calculate based on data shown.' + )} +

+ + = tempMax + ? i18n.t( + 'Min temperature must be less than max temperature' + ) + : undefined + } + /> + + + + + + + ) +} -export default ChartSettings; +export default ChartSettings diff --git a/src/components/settings/HeatCategory.js b/src/components/settings/HeatCategory.js index 3e34069..61b6e3d 100644 --- a/src/components/settings/HeatCategory.js +++ b/src/components/settings/HeatCategory.js @@ -1,56 +1,58 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import heatStressLegend from "../../data/heat-stress-legend"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import PropTypes from 'prop-types' +import heatStressLegend from '../../data/heat-stress-legend' -const noValue = -999; +const noValue = -999 const automatic = { - name: ` - ${i18n.t("Calculate from data")} - `, - from: noValue, - to: noValue, -}; + name: ` - ${i18n.t('Calculate from data')} - `, + from: noValue, + to: noValue, +} const HeatCategory = ({ id, label, value, onChange }) => { - const isLower = id === "heatMin"; - - const items = heatStressLegend.items.filter((c) => - isLower ? c.from < 26 : c.from >= 26 - ); - - if (isLower) { - items.reverse(); - } - - return ( - - onChange( - id, - selected === String(noValue) ? undefined : Number(selected) - ) - } - > - {[automatic, ...items].map(({ name, from, to }) => ( - - ))} - - ); -}; + const isLower = id === 'heatMin' + + const items = heatStressLegend.items.filter((c) => + isLower ? c.from < 26 : c.from >= 26 + ) + + if (isLower) { + items.reverse() + } + + return ( + + onChange( + id, + selected === String(noValue) ? undefined : Number(selected) + ) + } + > + {[automatic, ...items].map(({ name, from, to }) => ( + + ))} + + ) +} HeatCategory.propTypes = { - id: PropTypes.string.isRequired, - label: PropTypes.string.isRequired, - value: PropTypes.number, - onChange: PropTypes.func.isRequired, -}; + id: PropTypes.string.isRequired, + label: PropTypes.string.isRequired, + value: PropTypes.number, + onChange: PropTypes.func.isRequired, +} -export default HeatCategory; +export default HeatCategory diff --git a/src/components/settings/NumberInput.js b/src/components/settings/NumberInput.js index 1524f1c..33e320a 100644 --- a/src/components/settings/NumberInput.js +++ b/src/components/settings/NumberInput.js @@ -1,16 +1,16 @@ -import { InputField } from "@dhis2/ui"; +import { InputField } from '@dhis2/ui' const NumberInput = ({ id, label, value, validationText, onChange }) => ( - - onChange(id, value !== "" ? Number(value) : undefined) - } - warning={!!validationText} - validationText={validationText} - /> -); + + onChange(id, value !== '' ? Number(value) : undefined) + } + warning={!!validationText} + validationText={validationText} + /> +) -export default NumberInput; +export default NumberInput diff --git a/src/components/settings/SettingsPage.js b/src/components/settings/SettingsPage.js index 454fade..615003d 100644 --- a/src/components/settings/SettingsPage.js +++ b/src/components/settings/SettingsPage.js @@ -1,28 +1,32 @@ -import i18n from "@dhis2/d2-i18n"; -import StartPageSelect from "./StartPageSelect"; -import TimeZoneSelect from "./TimeZoneSelect"; -import ChartSettings from "./ChartSettings"; -import useAppSettings from "../../hooks/useAppSettings"; -import styles from "./styles/SettingsPage.module.css"; +import i18n from '@dhis2/d2-i18n' +import useAppSettings from '../../hooks/useAppSettings' +import ChartSettings from './ChartSettings' +import StartPageSelect from './StartPageSelect' +import styles from './styles/SettingsPage.module.css' +import TimeZoneSelect from './TimeZoneSelect' const SettingsPage = () => { - const { settings, changeSetting } = useAppSettings(); + const { settings, changeSetting } = useAppSettings() - if (!settings) { - return null; - } + if (!settings) { + return null + } - const { startPage, timeZone } = settings; + const { startPage, timeZone } = settings - return ( -
-

{i18n.t("App settings")}

-

{i18n.t("Changes made below will apply to all users of this app.")}

- - - -
- ); -}; + return ( +
+

{i18n.t('App settings')}

+

+ {i18n.t( + 'Changes made below will apply to all users of this app.' + )} +

+ + + +
+ ) +} -export default SettingsPage; +export default SettingsPage diff --git a/src/components/settings/StartPageSelect.js b/src/components/settings/StartPageSelect.js index 674cdd8..9a211fc 100644 --- a/src/components/settings/StartPageSelect.js +++ b/src/components/settings/StartPageSelect.js @@ -1,23 +1,23 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import { appPages } from "../Root"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import PropTypes from 'prop-types' +import { appPages } from '../Root' const StartPageSelect = ({ startPage, onChange }) => ( - onChange("startPage", selected)} - > - {appPages.map(({ path, name }) => ( - - ))} - -); + onChange('startPage', selected)} + > + {appPages.map(({ path, name }) => ( + + ))} + +) StartPageSelect.propTypes = { - onChange: PropTypes.func.isRequired, - startPage: PropTypes.string, -}; + onChange: PropTypes.func.isRequired, + startPage: PropTypes.string, +} -export default StartPageSelect; +export default StartPageSelect diff --git a/src/components/settings/TimeZoneSelect.js b/src/components/settings/TimeZoneSelect.js index f3b175a..dd02e6f 100644 --- a/src/components/settings/TimeZoneSelect.js +++ b/src/components/settings/TimeZoneSelect.js @@ -1,26 +1,26 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import PropTypes from 'prop-types' -const timeZones = Intl.supportedValuesOf("timeZone"); +const timeZones = Intl.supportedValuesOf('timeZone') const TimeZoneSelect = ({ timeZone, onChange }) => - timeZones ? ( - onChange("timeZone", selected)} - > - {timeZones?.map((tz) => ( - - ))} - - ) : null; + timeZones ? ( + onChange('timeZone', selected)} + > + {timeZones?.map((tz) => ( + + ))} + + ) : null TimeZoneSelect.propTypes = { - onChange: PropTypes.func.isRequired, - timeZone: PropTypes.string, -}; + onChange: PropTypes.func.isRequired, + timeZone: PropTypes.string, +} -export default TimeZoneSelect; +export default TimeZoneSelect diff --git a/src/components/settings/styles/SettingsPage.module.css b/src/components/settings/styles/SettingsPage.module.css index 883a739..8a4bbeb 100644 --- a/src/components/settings/styles/SettingsPage.module.css +++ b/src/components/settings/styles/SettingsPage.module.css @@ -1,22 +1,22 @@ .container { - font-size: 14px; - margin-right: 24px; - margin-bottom: 100px; - max-width: 400px; + font-size: 14px; + margin-right: 24px; + margin-bottom: 100px; + max-width: 400px; } .container h1 { - color: var(--colors-grey900); - font-size: 24px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 24px; + font-weight: 500; } .container h2 { - color: var(--colors-grey900); - font-size: 18px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 18px; + font-weight: 500; } .container > div { - padding: 8px 0; + padding: 8px 0; } diff --git a/src/components/setup/DataElement.js b/src/components/setup/DataElement.js index 1bf1710..c6cee55 100644 --- a/src/components/setup/DataElement.js +++ b/src/components/setup/DataElement.js @@ -1,58 +1,58 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' const DataElement = ({ - name, - shortName, - dataElementCode, - description, - aggregationType, + name, + shortName, + dataElementCode, + description, + aggregationType, }) => ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- {i18n.t("Data element")}: "{name}" -
{i18n.t("Name")}{name}
{i18n.t("Short name")}{shortName}
{i18n.t("Code")}{dataElementCode}
{i18n.t("Description")}{description}
{i18n.t("Domain type")}{i18n.t("Aggregate")}
{i18n.t("Aggregation type")}{aggregationType}
{i18n.t("Aggregation levels")} - {i18n.t("Assign all org unit levels")} -
-); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {i18n.t('Data element')}: "{name}" +
{i18n.t('Name')}{name}
{i18n.t('Short name')}{shortName}
{i18n.t('Code')}{dataElementCode}
{i18n.t('Description')}{description}
{i18n.t('Domain type')}{i18n.t('Aggregate')}
{i18n.t('Aggregation type')}{aggregationType}
{i18n.t('Aggregation levels')} + {i18n.t('Assign all org unit levels')} +
+) DataElement.propTypes = { - name: PropTypes.string.isRequired, - shortName: PropTypes.string.isRequired, - dataElementCode: PropTypes.string.isRequired, - description: PropTypes.string.isRequired, - aggregationType: PropTypes.string.isRequired, -}; + name: PropTypes.string.isRequired, + shortName: PropTypes.string.isRequired, + dataElementCode: PropTypes.string.isRequired, + description: PropTypes.string.isRequired, + aggregationType: PropTypes.string.isRequired, +} -export default DataElement; +export default DataElement diff --git a/src/components/setup/Legend.js b/src/components/setup/Legend.js index 64db4ef..884002c 100644 --- a/src/components/setup/Legend.js +++ b/src/components/setup/Legend.js @@ -1,40 +1,40 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' const Legend = ({ name, description, items }) => ( - - - - - - - - - - - - {items.map(({ name, from, to, hexColor, textColor }) => ( - - - - - - - - ))} - -
- {i18n.t("Legend")}: "{name}"{description &&

{description}

} -
{i18n.t("Name")}{i18n.t("Start value")}{i18n.t("End value")}{i18n.t("Color")}
{name}{from}{to}{hexColor}
-); + + + + + + + + + + + + {items.map(({ name, from, to, hexColor, textColor }) => ( + + + + + + + + ))} + +
+ {i18n.t('Legend')}: "{name}"{description &&

{description}

} +
{i18n.t('Name')}{i18n.t('Start value')}{i18n.t('End value')}{i18n.t('Color')}
{name}{from}{to}{hexColor}
+) Legend.propTypes = { - name: PropTypes.string.isRequired, -}; + name: PropTypes.string.isRequired, +} -export default Legend; +export default Legend diff --git a/src/components/setup/SetupPage.js b/src/components/setup/SetupPage.js index 9a59569..a38f5ed 100644 --- a/src/components/setup/SetupPage.js +++ b/src/components/setup/SetupPage.js @@ -1,109 +1,115 @@ -import i18n from "@dhis2/d2-i18n"; -import DataElement from "./DataElement"; -import Legend from "./Legend"; -import datasets from "../../data/datasets"; -import heatStressLegend from "../../data/heat-stress-legend"; -import styles from "./styles/SetupPage.module.css"; +import i18n from '@dhis2/d2-i18n' +import datasets from '../../data/datasets' +import heatStressLegend from '../../data/heat-stress-legend' +import DataElement from './DataElement' +import Legend from './Legend' +import styles from './styles/SetupPage.module.css' const SetupPage = () => { - return ( -
-

{i18n.t("How to configure this app")}

-

- {i18n.t( - "Before you can import weather and climate data, you need to make some configurations in the Maintenance app." - )} -

-

- {i18n.t( - "This app imports daily weather and climate data that can be aggregated to other period types in DHIS2. We don't recommend aggregating across organisation unit levels, especially when going from facility level to higher levels defined by a geographic boundary. To make sure the values remain at its own level, assign all org unit levels as Aggregation levels for each data element below." - )} -

-

- {i18n.t( - "Create DHIS2 data elements for the climate and weather data you want to import. We recommend including the data source in the name to distinguish it from data imported from local weather stations. If you use the same code specified below, we will preselect the data element in the import interface." - )} -

- {datasets.map((dataset) => ( - - ))} -

- Since these data elements are collected daily, we recommend they are - assigned to a daily data set. Assigning to a data set helps to maintain - a quality metadata and data where integrity, consistency, approvals and - protection are facilitated. How exactly to define such a data set - depends on the available users and user groups. Similarly, which of the - organisation units can collect this daily climate data set depends on - situated contexts. However, since we can provide data for any - administrative unit that has defined geographic boundaries we leave that - decision to users. Most probable choice is all organisation units in - your system. -

- - - - - - - - - - - - - - - - - - - - - - - - -
- {i18n.t("Data set")}: "{i18n.t("Climate/Weather")}" -
{i18n.t("Name")}{i18n.t("Climate/Weather")}
{i18n.t("Short name")}{i18n.t("Climate/Weather")}
{i18n.t("Period type")}{i18n.t("Daily")}
{i18n.t("Data elements")} - {i18n.t("Assign the above data elements")} -
{i18n.t("Organisation units")} - {i18n.t("Select all organisation units in your system")} -
-

- {i18n.t( - "To be able to select the data elements in all the DHIS2 analytics apps you also need to assign them to a data element group:" - )} -

- - - - - - - - - - - - - - - - -
- {i18n.t("Data element group")}: "{i18n.t("Climate/Weather")}" -
{i18n.t("Name")}{i18n.t("Climate/Weather")}
{i18n.t("Short name")}{i18n.t("Climate/Weather")}
{i18n.t("Data elements")} - {i18n.t("Assign the above data elements")} -
- -

- {i18n.t( - "You should now be able to import climate data with this app. Please reach out to us on climate-app@dhis2.org if you have any questions or need help with the setup." - )} -

-
- ); -}; + return ( +
+

{i18n.t('How to configure this app')}

+

+ {i18n.t( + 'Before you can import weather and climate data, you need to make some configurations in the Maintenance app.' + )} +

+

+ {i18n.t( + "This app imports daily weather and climate data that can be aggregated to other period types in DHIS2. We don't recommend aggregating across organisation unit levels, especially when going from facility level to higher levels defined by a geographic boundary. To make sure the values remain at its own level, assign all org unit levels as Aggregation levels for each data element below." + )} +

+

+ {i18n.t( + 'Create DHIS2 data elements for the climate and weather data you want to import. We recommend including the data source in the name to distinguish it from data imported from local weather stations. If you use the same code specified below, we will preselect the data element in the import interface.' + )} +

+ {datasets.map((dataset) => ( + + ))} +

+ Since these data elements are collected daily, we recommend they + are assigned to a daily data set. Assigning to a data set helps + to maintain a quality metadata and data where integrity, + consistency, approvals and protection are facilitated. How + exactly to define such a data set depends on the available users + and user groups. Similarly, which of the organisation units can + collect this daily climate data set depends on situated + contexts. However, since we can provide data for any + administrative unit that has defined geographic boundaries we + leave that decision to users. Most probable choice is all + organisation units in your system. +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+ {i18n.t('Data set')}: "{i18n.t('Climate/Weather')}" +
{i18n.t('Name')}{i18n.t('Climate/Weather')}
{i18n.t('Short name')}{i18n.t('Climate/Weather')}
{i18n.t('Period type')}{i18n.t('Daily')}
{i18n.t('Data elements')} + {i18n.t('Assign the above data elements')} +
{i18n.t('Organisation units')} + + {i18n.t( + 'Select all organisation units in your system' + )} + +
+

+ {i18n.t( + 'To be able to select the data elements in all the DHIS2 analytics apps you also need to assign them to a data element group:' + )} +

+ + + + + + + + + + + + + + + + +
+ {i18n.t('Data element group')}: "{i18n.t('Climate/Weather')} + " +
{i18n.t('Name')}{i18n.t('Climate/Weather')}
{i18n.t('Short name')}{i18n.t('Climate/Weather')}
{i18n.t('Data elements')} + {i18n.t('Assign the above data elements')} +
+ +

+ {i18n.t( + 'You should now be able to import climate data with this app. Please reach out to us on climate-app@dhis2.org if you have any questions or need help with the setup.' + )} +

+
+ ) +} -export default SetupPage; +export default SetupPage diff --git a/src/components/setup/styles/SetupPage.module.css b/src/components/setup/styles/SetupPage.module.css index efecfa8..d5334bb 100644 --- a/src/components/setup/styles/SetupPage.module.css +++ b/src/components/setup/styles/SetupPage.module.css @@ -1,54 +1,54 @@ .container { - margin-right: 24px; - margin-bottom: 100px; - max-width: 800px; - font-size: 14px; + margin-right: 24px; + margin-bottom: 100px; + max-width: 800px; + font-size: 14px; } .container h1 { - color: var(--colors-grey900); - font-size: 24px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 24px; + font-weight: 500; } .container h2 { - color: var(--colors-grey900); - font-size: 16px; - margin: 20px 0 8px; + color: var(--colors-grey900); + font-size: 16px; + margin: 20px 0 8px; } .container p { - line-height: 20px; - margin: 6px 0 12px; + line-height: 20px; + margin: 6px 0 12px; } .container table { - border-collapse: collapse; - margin: 20px 0; + border-collapse: collapse; + margin: 20px 0; } .container caption { - text-align: left; - font-size: 15px; - font-weight: 500; - margin-left: 9px; - margin-bottom: 8px; + text-align: left; + font-size: 15px; + font-weight: 500; + margin-left: 9px; + margin-bottom: 8px; } .container caption p { - font-weight: normal; - margin-bottom: 4px; + font-weight: normal; + margin-bottom: 4px; } .container th { - font-weight: 500; - text-align: left; - min-width: 150px; + font-weight: 500; + text-align: left; + min-width: 150px; } .container th, .container td { - border: 1px solid var(--colors-grey300); - padding: 4px 8px; - vertical-align: top; + border: 1px solid var(--colors-grey300); + padding: 4px 8px; + vertical-align: top; } diff --git a/src/components/shared/DataLoader.js b/src/components/shared/DataLoader.js index fd8712b..dbe7ba9 100644 --- a/src/components/shared/DataLoader.js +++ b/src/components/shared/DataLoader.js @@ -1,21 +1,21 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import { CenteredContent, CircularLoader } from "@dhis2/ui"; -import styles from "./styles/DataLoader.module.css"; +import i18n from '@dhis2/d2-i18n' +import { CenteredContent, CircularLoader } from '@dhis2/ui' +import PropTypes from 'prop-types' +import styles from './styles/DataLoader.module.css' const DataLoader = ({ label, height = 400 }) => ( -
- -
- - {label ? label : i18n.t("Loading data")} -
-
-
-); +
+ +
+ + {label ? label : i18n.t('Loading data')} +
+
+
+) DataLoader.propTypes = { - label: PropTypes.string, -}; + label: PropTypes.string, +} -export default DataLoader; +export default DataLoader diff --git a/src/components/shared/DatePicker.js b/src/components/shared/DatePicker.js index 50a2d97..59a226b 100644 --- a/src/components/shared/DatePicker.js +++ b/src/components/shared/DatePicker.js @@ -1,53 +1,61 @@ -import cx from "classnames"; -import PropTypes from "prop-types"; -import React, { useRef, useLayoutEffect } from "react"; -import styles from "./styles/DatePicker.module.css"; +import cx from 'classnames' +import PropTypes from 'prop-types' +import React, { useRef, useLayoutEffect } from 'react' +import styles from './styles/DatePicker.module.css' // Fallback on browser native until full DatePicker support in @dhis2/ui const DatePicker = ({ - label, - name, - defaultVal, - onBlur, - onChange, - className, + label, + name, + defaultVal, + onBlur, + onChange, + className, }) => { - const inputEl = useRef(null); + const inputEl = useRef(null) - useLayoutEffect(() => { - if (inputEl.current && defaultVal) { - inputEl.current.defaultValue = defaultVal.slice(0, 10); - } - }, [defaultVal]); + useLayoutEffect(() => { + if (inputEl.current && defaultVal) { + inputEl.current.defaultValue = defaultVal.slice(0, 10) + } + }, [defaultVal]) - return ( -
- -
-
-
- onBlur(e.target.value) : undefined} - onChange={onChange ? (e) => onChange(e.target.value) : undefined} - /> -
+ return ( +
+ +
+
+
+ onBlur(e.target.value) + : undefined + } + onChange={ + onChange + ? (e) => onChange(e.target.value) + : undefined + } + /> +
+
+
-
-
- ); -}; + ) +} DatePicker.propTypes = { - label: PropTypes.string.isRequired, - onBlur: PropTypes.func, - onChange: PropTypes.func, - className: PropTypes.string, - defaultVal: PropTypes.string, - name: PropTypes.string, -}; + label: PropTypes.string.isRequired, + onBlur: PropTypes.func, + onChange: PropTypes.func, + className: PropTypes.string, + defaultVal: PropTypes.string, + name: PropTypes.string, +} -export default DatePicker; +export default DatePicker diff --git a/src/components/shared/ErrorMessage.js b/src/components/shared/ErrorMessage.js index 4736621..723822a 100644 --- a/src/components/shared/ErrorMessage.js +++ b/src/components/shared/ErrorMessage.js @@ -1,12 +1,12 @@ -import PropTypes from "prop-types"; -import styles from "./styles/ErrorMessage.module.css"; +import PropTypes from 'prop-types' +import styles from './styles/ErrorMessage.module.css' const ErrorMessage = ({ error }) => ( -
{error.message}
-); +
{error.message}
+) ErrorMessage.propTypes = { - error: PropTypes.object, -}; + error: PropTypes.object, +} -export default ErrorMessage; +export default ErrorMessage diff --git a/src/components/shared/GEETokenCheck.js b/src/components/shared/GEETokenCheck.js index a07aed5..ddd63fd 100644 --- a/src/components/shared/GEETokenCheck.js +++ b/src/components/shared/GEETokenCheck.js @@ -1,36 +1,38 @@ -import { useState, useEffect } from "react"; -import i18n from "@dhis2/d2-i18n"; -import { NoticeBox } from "@dhis2/ui"; -import useEarthEngineToken from "../../hooks/useEarthEngineToken"; -import styles from "./styles/GEETokenCheck.module.css"; +import i18n from '@dhis2/d2-i18n' +import { NoticeBox } from '@dhis2/ui' +import { useState, useEffect } from 'react' +import useEarthEngineToken from '../../hooks/useEarthEngineToken' +import styles from './styles/GEETokenCheck.module.css' const GEETokenCheck = () => { - const [hasToken, setHasToken] = useState(); - const [isLoading, setIsLoading] = useState(true); - const tokenPromise = useEarthEngineToken(); + const [hasToken, setHasToken] = useState() + const [isLoading, setIsLoading] = useState(true) + const tokenPromise = useEarthEngineToken() - useEffect(() => { - tokenPromise - .then((token) => setHasToken(!!token)) - .catch(() => setHasToken(false)); - }, [tokenPromise]); + useEffect(() => { + tokenPromise + .then((token) => setHasToken(!!token)) + .catch(() => setHasToken(false)) + }, [tokenPromise]) - useEffect(() => { - if (hasToken !== undefined) { - setIsLoading(false); - } - }, [hasToken]); + useEffect(() => { + if (hasToken !== undefined) { + setIsLoading(false) + } + }, [hasToken]) - return !isLoading && hasToken !== true ? ( -
- - {i18n.t("You need access to Google Earth Engine to use this app.")}{" "} - - {i18n.t("How to get access?")} - - -
- ) : null; -}; + return !isLoading && hasToken !== true ? ( +
+ + {i18n.t( + 'You need access to Google Earth Engine to use this app.' + )}{' '} + + {i18n.t('How to get access?')} + + +
+ ) : null +} -export default GEETokenCheck; +export default GEETokenCheck diff --git a/src/components/shared/MonthPicker.js b/src/components/shared/MonthPicker.js index ff6571d..d45cbd5 100644 --- a/src/components/shared/MonthPicker.js +++ b/src/components/shared/MonthPicker.js @@ -1,44 +1,44 @@ -import cx from "classnames"; -import PropTypes from "prop-types"; -import React, { useRef, useLayoutEffect } from "react"; -import styles from "./styles/DatePicker.module.css"; +import cx from 'classnames' +import PropTypes from 'prop-types' +import React, { useRef, useLayoutEffect } from 'react' +import styles from './styles/DatePicker.module.css' // Fallback on browser native until full DatePicker support in @dhis2/ui const MonthPicker = ({ label, name, defaultVal, onChange, className }) => { - const inputEl = useRef(null); + const inputEl = useRef(null) - useLayoutEffect(() => { - if (inputEl.current && defaultVal) { - inputEl.current.defaultValue = defaultVal.slice(0, 10); - } - }, [defaultVal]); + useLayoutEffect(() => { + if (inputEl.current && defaultVal) { + inputEl.current.defaultValue = defaultVal.slice(0, 10) + } + }, [defaultVal]) - return ( -
- -
-
-
- onChange(e.target.value)} - /> -
+ return ( +
+ +
+
+
+ onChange(e.target.value)} + /> +
+
+
-
-
- ); -}; + ) +} MonthPicker.propTypes = { - label: PropTypes.string.isRequired, - onChange: PropTypes.func.isRequired, - className: PropTypes.string, - defaultVal: PropTypes.string, - name: PropTypes.string, -}; + label: PropTypes.string.isRequired, + onChange: PropTypes.func.isRequired, + className: PropTypes.string, + defaultVal: PropTypes.string, + name: PropTypes.string, +} -export default MonthPicker; +export default MonthPicker diff --git a/src/components/shared/PeriodWarning.js b/src/components/shared/PeriodWarning.js index d3574c4..b64285f 100644 --- a/src/components/shared/PeriodWarning.js +++ b/src/components/shared/PeriodWarning.js @@ -1,27 +1,27 @@ -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/PeriodWarning.module.css"; +import i18n from '@dhis2/d2-i18n' +import styles from './styles/PeriodWarning.module.css' const islimitedData = (period) => { - const startYear = new Date(period.startTime).getFullYear(); - const endYear = new Date(period.endTime).getFullYear(); + const startYear = new Date(period.startTime).getFullYear() + const endYear = new Date(period.endTime).getFullYear() - return startYear >= 2024 || endYear >= 2024; -}; + return startYear >= 2024 || endYear >= 2024 +} const PeriodWarning = ({ period }) => { - return islimitedData(period) ? ( -
- {i18n.t( - "For a temporary period there is limited data available for 2024. This is due to modernization work impacting the Copernicus Climate Data Store (CDS) where the data originates." - )}{" "} - - {i18n.t("Read more on the CDS user forum")} - -
- ) : null; -}; + return islimitedData(period) ? ( +
+ {i18n.t( + 'For a temporary period there is limited data available for 2024. This is due to modernization work impacting the Copernicus Climate Data Store (CDS) where the data originates.' + )}{' '} + + {i18n.t('Read more on the CDS user forum')} + +
+ ) : null +} -export default PeriodWarning; +export default PeriodWarning diff --git a/src/components/shared/Resolution.js b/src/components/shared/Resolution.js index 458c718..2fa718e 100644 --- a/src/components/shared/Resolution.js +++ b/src/components/shared/Resolution.js @@ -1,30 +1,30 @@ -import PropTypes from "prop-types"; -import i18n from "@dhis2/d2-i18n"; -import styles from "./styles/Resolution.module.css"; +import i18n from '@dhis2/d2-i18n' +import PropTypes from 'prop-types' +import styles from './styles/Resolution.module.css' const Resolution = ({ resolution, isImport = false }) => ( -
-
- {i18n.t("Data resolution")}: {resolution} +
+
+ {i18n.t('Data resolution')}: {resolution} +
+

+ {isImport ? ( + <> + {i18n.t( + "You can import data for the lowest levels in your org unit hierarchy, but it won't improve the resolution of the data." + )}{' '} + + ) : null} + {i18n.t( + 'If two org units are close to each other (within the resolution), they will have the same data values.' + )} +

-

- {isImport ? ( - <> - {i18n.t( - "You can import data for the lowest levels in your org unit hierarchy, but it won't improve the resolution of the data." - )}{" "} - - ) : null} - {i18n.t( - "If two org units are close to each other (within the resolution), they will have the same data values." - )} -

-
-); +) Resolution.propTypes = { - resolution: PropTypes.string.isRequired, - isImport: PropTypes.bool, -}; + resolution: PropTypes.string.isRequired, + isImport: PropTypes.bool, +} -export default Resolution; +export default Resolution diff --git a/src/components/shared/TimeZone.js b/src/components/shared/TimeZone.js index 11d50e9..fe4e1db 100644 --- a/src/components/shared/TimeZone.js +++ b/src/components/shared/TimeZone.js @@ -1,44 +1,44 @@ -import { useEffect } from "react"; -import i18n from "@dhis2/d2-i18n"; -import { SingleSelectField, SingleSelectOption } from "@dhis2/ui"; -import useSystemInfo from "../../hooks/useSystemInfo"; +import i18n from '@dhis2/d2-i18n' +import { SingleSelectField, SingleSelectOption } from '@dhis2/ui' +import { useEffect } from 'react' +import useSystemInfo from '../../hooks/useSystemInfo' -const utcTimeZone = "Etc/UTC"; +const utcTimeZone = 'Etc/UTC' // TODO: Use daylight saving time? const TimeZone = ({ period, onChange }) => { - const { system } = useSystemInfo(); + const { system } = useSystemInfo() - const timeZone = system?.systemInfo?.serverTimeZoneId; + const timeZone = system?.systemInfo?.serverTimeZoneId - useEffect(() => { - if (timeZone && timeZone !== utcTimeZone) { - onChange((period) => ({ - ...period, - timeZone: system.systemInfo.serverTimeZoneId, - })); - } - }, [timeZone, onChange]); + useEffect(() => { + if (timeZone && timeZone !== utcTimeZone) { + onChange((period) => ({ + ...period, + timeZone: system.systemInfo.serverTimeZoneId, + })) + } + }, [timeZone, onChange]) - if (!timeZone || timeZone === utcTimeZone) { - return null; - } + if (!timeZone || timeZone === utcTimeZone) { + return null + } - return ( - - onChange({ - ...period, - timeZone: selected !== utcTimeZone ? selected : undefined, - }) - } - > - - - - ); -}; + return ( + + onChange({ + ...period, + timeZone: selected !== utcTimeZone ? selected : undefined, + }) + } + > + + + + ) +} -export default TimeZone; +export default TimeZone diff --git a/src/components/shared/styles/DataLoader.module.css b/src/components/shared/styles/DataLoader.module.css index 564c66d..2dba13f 100644 --- a/src/components/shared/styles/DataLoader.module.css +++ b/src/components/shared/styles/DataLoader.module.css @@ -1,13 +1,13 @@ .container { - box-sizing: content-box; - line-height: 30px; - font-size: 14px; - font-style: italic; - color: #555; + box-sizing: content-box; + line-height: 30px; + font-size: 14px; + font-style: italic; + color: #555; } .loader > div:first-child { - display: inline-block; - margin-right: 10px; - vertical-align: bottom; + display: inline-block; + margin-right: 10px; + vertical-align: bottom; } diff --git a/src/components/shared/styles/DatePicker.module.css b/src/components/shared/styles/DatePicker.module.css index 0739fcd..6b4d5eb 100644 --- a/src/components/shared/styles/DatePicker.module.css +++ b/src/components/shared/styles/DatePicker.module.css @@ -1,48 +1,48 @@ .datePicker { - margin: var(--spacers-dp8) 0; + margin: var(--spacers-dp8) 0; } .label { - display: block; - box-sizing: border-box; - font-size: 14px; - line-height: 17px; - padding: 0px; + display: block; + box-sizing: border-box; + font-size: 14px; + line-height: 17px; + padding: 0px; } .content { - margin-top: var(--spacers-dp4); + margin-top: var(--spacers-dp4); } .box { - min-width: 72px; - margin-right: var(--spacers-dp8); + min-width: 72px; + margin-right: var(--spacers-dp8); } .inputDiv { - display: flex; - -webkit-box-align: center; - align-items: center; + display: flex; + -webkit-box-align: center; + align-items: center; } .input { - padding: 8px 11px 6px; - width: 100%; - height: 40px; - box-sizing: border-box; - font-size: 14px; - line-height: 16px; - user-select: text; - color: var(--colors-grey900); - background-color: var(--colors-white); - outline: 0; - border: 1px solid var(--colors-grey500); - border-radius: 3px; - box-shadow: inset 0 1px 2px 0 rgba(48, 54, 60, 0.1); - text-overflow: ellipsis; + padding: 8px 11px 6px; + width: 100%; + height: 40px; + box-sizing: border-box; + font-size: 14px; + line-height: 16px; + user-select: text; + color: var(--colors-grey900); + background-color: var(--colors-white); + outline: 0; + border: 1px solid var(--colors-grey500); + border-radius: 3px; + box-shadow: inset 0 1px 2px 0 rgba(48, 54, 60, 0.1); + text-overflow: ellipsis; } .input:focus { - outline: none; - border-color: var(--colors-teal400); + outline: none; + border-color: var(--colors-teal400); } diff --git a/src/components/shared/styles/ErrorMessage.module.css b/src/components/shared/styles/ErrorMessage.module.css index c718171..9269118 100644 --- a/src/components/shared/styles/ErrorMessage.module.css +++ b/src/components/shared/styles/ErrorMessage.module.css @@ -1,5 +1,5 @@ .container { - font-size: 14px; - color: red; - margin-top: var(--spacers-dp16); + font-size: 14px; + color: red; + margin-top: var(--spacers-dp16); } diff --git a/src/components/shared/styles/GEETokenCheck.module.css b/src/components/shared/styles/GEETokenCheck.module.css index 65059fc..1fbff03 100644 --- a/src/components/shared/styles/GEETokenCheck.module.css +++ b/src/components/shared/styles/GEETokenCheck.module.css @@ -1,3 +1,3 @@ .container { - margin-bottom: 20px; + margin-bottom: 20px; } diff --git a/src/components/shared/styles/PeriodWarning.module.css b/src/components/shared/styles/PeriodWarning.module.css index 90d89b2..749d3ea 100644 --- a/src/components/shared/styles/PeriodWarning.module.css +++ b/src/components/shared/styles/PeriodWarning.module.css @@ -1,11 +1,11 @@ .container { - margin-top: 8px; - font-size: 14px; - line-height: 20px; - color: darkred; - font-style: italic; + margin-top: 8px; + font-size: 14px; + line-height: 20px; + color: darkred; + font-style: italic; } .container a { - color: darkred; + color: darkred; } diff --git a/src/components/shared/styles/Resolution.module.css b/src/components/shared/styles/Resolution.module.css index 38a39cd..69e3608 100644 --- a/src/components/shared/styles/Resolution.module.css +++ b/src/components/shared/styles/Resolution.module.css @@ -1,4 +1,4 @@ .container { - margin: 1rem 0 1rem 0; - font-size: 14px; + margin: 1rem 0 1rem 0; + font-size: 14px; } diff --git a/src/components/styles/AboutPage.module.css b/src/components/styles/AboutPage.module.css index e2367d0..a05145e 100644 --- a/src/components/styles/AboutPage.module.css +++ b/src/components/styles/AboutPage.module.css @@ -1,31 +1,31 @@ .container { - margin-right: 24px; - margin-bottom: 100px; - max-width: 800px; + margin-right: 24px; + margin-bottom: 100px; + max-width: 800px; } .container h1 { - color: var(--colors-grey900); - font-size: 24px; - font-weight: 500; + color: var(--colors-grey900); + font-size: 24px; + font-weight: 500; } .container h2 { - font-size: 16px; - margin: 20px 0 8px; + font-size: 16px; + margin: 20px 0 8px; } .container p { - line-height: 18px; - font-size: 15px; - margin: 6px 0 12px; + line-height: 18px; + font-size: 15px; + margin: 6px 0 12px; } .container iframe { - display: block; - width: 100%; - height: auto; - aspect-ratio: 16 / 9; - margin: 20px auto; - border: 0; + display: block; + width: 100%; + height: auto; + aspect-ratio: 16 / 9; + margin: 20px auto; + border: 0; } diff --git a/src/components/styles/Root.module.css b/src/components/styles/Root.module.css index 8cd47eb..0221073 100644 --- a/src/components/styles/Root.module.css +++ b/src/components/styles/Root.module.css @@ -1,23 +1,23 @@ body { - overflow: hidden; /* scrolling is handled by app-shell, this causes issues with "double" scroll */ - /*background-color: var(--colors-grey050); */ + overflow: hidden; /* scrolling is handled by app-shell, this causes issues with "double" scroll */ + /*background-color: var(--colors-grey050); */ } .container { - display: grid; - height: 100%; - grid-gap: 0 var(--spacers-dp24); - grid-template-columns: [sidebar] 280px [content] minmax(0, 1fr); + display: grid; + height: 100%; + grid-gap: 0 var(--spacers-dp24); + grid-template-columns: [sidebar] 280px [content] minmax(0, 1fr); } .sidebar { - grid-column: sidebar; - /* background-color: var(--colors-grey200); */ - border-right: 1px solid var(--colors-grey400); - height: 100%; + grid-column: sidebar; + /* background-color: var(--colors-grey200); */ + border-right: 1px solid var(--colors-grey400); + height: 100%; } .content { - grid-column: content; - background-color: inherit; + grid-column: content; + background-color: inherit; } diff --git a/src/data/datasets.js b/src/data/datasets.js index d0ea91b..4e59eed 100644 --- a/src/data/datasets.js +++ b/src/data/datasets.js @@ -1,275 +1,275 @@ -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' import { - kelvinToCelsius, - getRelativeHumidity, - roundOneDecimal, -} from "../utils/calc"; -import { HOURLY, MONTHLY } from "../utils/time"; + kelvinToCelsius, + getRelativeHumidity, + roundOneDecimal, +} from '../utils/calc' +import { HOURLY, MONTHLY } from '../utils/time' // kelvin to celsius with one decimal -const temperatureParser = (v) => roundOneDecimal(kelvinToCelsius(v)); +const temperatureParser = (v) => roundOneDecimal(kelvinToCelsius(v)) const relativeHumidityParser = ([dewData, tempData]) => - tempData.map((temp, i) => ({ - ...temp, - value: roundOneDecimal( - getRelativeHumidity( - kelvinToCelsius(temp.value), - kelvinToCelsius(dewData[i].value) - ) - ), - })); + tempData.map((temp, i) => ({ + ...temp, + value: roundOneDecimal( + getRelativeHumidity( + kelvinToCelsius(temp.value), + kelvinToCelsius(dewData[i].value) + ) + ), + })) // meter to mm without scientific notation // https://stackoverflow.com/questions/1685680/how-to-avoid-scientific-notation-for-large-numbers-in-javascript const precipitationParser = (v) => - (v * 1000).toLocaleString("fullwide", { - useGrouping: false, - }); + (v * 1000).toLocaleString('fullwide', { + useGrouping: false, + }) -export const era5Resolution = i18n.t("Approximately 31 km (0.25°)"); -export const era5LandResolution = i18n.t("Approximately 9 km (0.1°)"); -export const chirpsResolution = i18n.t("Approximately 5 km (0.05°)"); +export const era5Resolution = i18n.t('Approximately 31 km (0.25°)') +export const era5LandResolution = i18n.t('Approximately 9 km (0.1°)') +export const chirpsResolution = i18n.t('Approximately 5 km (0.05°)') export default [ - { - id: "ECMWF/ERA5_LAND/DAILY_AGGR/temperature_2m", - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - name: i18n.t("Air temperature (ERA5-Land)"), - shortName: i18n.t("Air temperature"), - description: i18n.t( - "Average air temperature in °C at 2 m above the surface" - ), - resolution: era5LandResolution, - band: "temperature_2m", - reducer: "mean", - timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "temperature_2m", - periodType: HOURLY, - periodReducer: "mean", - }, - valueParser: temperatureParser, - aggregationType: i18n.t("Average"), - dataElementCode: "ERA5_LAND_TEMPERATURE", - }, - { - id: "ECMWF/ERA5_LAND/DAILY_AGGR/temperature_2m_max", - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - name: i18n.t("Max air temperature (ERA5-Land)"), - shortName: i18n.t("Max air temperature"), - description: i18n.t( - "Maximum air temperature in °C at 2 m above the surface" - ), - resolution: era5LandResolution, - band: "temperature_2m_max", - reducer: "max", - timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "temperature_2m", - periodType: "hourly", - periodReducer: "max", - }, - valueParser: temperatureParser, - aggregationType: i18n.t("Max"), - dataElementCode: "ERA5_LAND_TEMPERATURE_MAX", - }, - { - id: "ECMWF/ERA5_LAND/DAILY_AGGR/temperature_2m_min", - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - name: i18n.t("Min temperature (ERA5-Land)"), - shortName: i18n.t("Min air temperature"), - description: i18n.t( - "Minimum air temperature in °C at 2 m above the surface" - ), - resolution: era5LandResolution, - band: "temperature_2m_min", - reducer: "min", - timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "temperature_2m", - periodType: HOURLY, - periodReducer: "min", + { + id: 'ECMWF/ERA5_LAND/DAILY_AGGR/temperature_2m', + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + name: i18n.t('Air temperature (ERA5-Land)'), + shortName: i18n.t('Air temperature'), + description: i18n.t( + 'Average air temperature in °C at 2 m above the surface' + ), + resolution: era5LandResolution, + band: 'temperature_2m', + reducer: 'mean', + timeZone: { + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'temperature_2m', + periodType: HOURLY, + periodReducer: 'mean', + }, + valueParser: temperatureParser, + aggregationType: i18n.t('Average'), + dataElementCode: 'ERA5_LAND_TEMPERATURE', }, - valueParser: temperatureParser, - aggregationType: i18n.t("Min"), - dataElementCode: "ERA5_LAND_TEMPERATURE_MIN", - }, - { - id: "ECMWF/ERA5_LAND/DAILY_AGGR/total_precipitation_sum", - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - name: i18n.t("Precipitation (ERA5-Land)"), - shortName: i18n.t("Precipitation (ERA5)"), - description: i18n.t("Total precipitation in mm"), - resolution: era5LandResolution, - band: "total_precipitation_sum", - reducer: "mean", - timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "total_precipitation", - periodType: HOURLY, - periodReducer: "sum", + { + id: 'ECMWF/ERA5_LAND/DAILY_AGGR/temperature_2m_max', + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + name: i18n.t('Max air temperature (ERA5-Land)'), + shortName: i18n.t('Max air temperature'), + description: i18n.t( + 'Maximum air temperature in °C at 2 m above the surface' + ), + resolution: era5LandResolution, + band: 'temperature_2m_max', + reducer: 'max', + timeZone: { + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'temperature_2m', + periodType: 'hourly', + periodReducer: 'max', + }, + valueParser: temperatureParser, + aggregationType: i18n.t('Max'), + dataElementCode: 'ERA5_LAND_TEMPERATURE_MAX', }, - valueParser: precipitationParser, - aggregationType: i18n.t("Sum"), - dataElementCode: "ERA5_LAND_PRECIPITATION", - }, - { - id: "UCSB-CHG/CHIRPS/DAILY", - datasetId: "UCSB-CHG/CHIRPS/DAILY", - name: i18n.t("Precipitation (CHIRPS)"), - shortName: i18n.t("Precipitation (CHIRPS)"), - description: i18n.t("Precipitation in mm"), - resolution: chirpsResolution, - band: "precipitation", - reducer: "mean", - aggregationType: i18n.t("Sum"), - dataElementCode: "CHIRPS_PRECIPITATION", - }, - { - id: "ECMWF/ERA5_LAND/DAILY_AGGR/dewpoint_temperature_2m", - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - name: i18n.t("Dewpoint temperature (ERA5-Land)"), - shortName: i18n.t("Dewpoint temperature"), - description: i18n.t( - "Temperature in °C at 2 m above the surface to which the air would have to be cooled for saturation to occur." - ), - resolution: era5LandResolution, - band: "dewpoint_temperature_2m", - reducer: "mean", - timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "dewpoint_temperature_2m", - periodType: HOURLY, - periodReducer: "mean", + { + id: 'ECMWF/ERA5_LAND/DAILY_AGGR/temperature_2m_min', + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + name: i18n.t('Min temperature (ERA5-Land)'), + shortName: i18n.t('Min air temperature'), + description: i18n.t( + 'Minimum air temperature in °C at 2 m above the surface' + ), + resolution: era5LandResolution, + band: 'temperature_2m_min', + reducer: 'min', + timeZone: { + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'temperature_2m', + periodType: HOURLY, + periodReducer: 'min', + }, + valueParser: temperatureParser, + aggregationType: i18n.t('Min'), + dataElementCode: 'ERA5_LAND_TEMPERATURE_MIN', }, - valueParser: temperatureParser, - aggregationType: i18n.t("Average"), - dataElementCode: "ERA5_LAND_DEWPOINT_TEMPERATURE", - }, - { - id: "ECMWF/ERA5_LAND/DAILY_AGGR/relative_humidity_2m", - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - name: i18n.t("Relative humidity (ERA5-Land)"), - shortName: i18n.t("Relative humidity"), - description: i18n.t( - "Percentage of water vapor in the air compared to the total amount of vapor that can exist in the air at its current temperature. Calculated using air temperature and dewpoint temperature at 2 m above surface." - ), - resolution: era5LandResolution, - bands: [ - { - band: "dewpoint_temperature_2m", - reducer: "mean", + { + id: 'ECMWF/ERA5_LAND/DAILY_AGGR/total_precipitation_sum', + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + name: i18n.t('Precipitation (ERA5-Land)'), + shortName: i18n.t('Precipitation (ERA5)'), + description: i18n.t('Total precipitation in mm'), + resolution: era5LandResolution, + band: 'total_precipitation_sum', + reducer: 'mean', timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "dewpoint_temperature_2m", - periodType: HOURLY, - periodReducer: "mean", + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'total_precipitation', + periodType: HOURLY, + periodReducer: 'sum', }, - }, - { - band: "temperature_2m", - reducer: "mean", + valueParser: precipitationParser, + aggregationType: i18n.t('Sum'), + dataElementCode: 'ERA5_LAND_PRECIPITATION', + }, + { + id: 'UCSB-CHG/CHIRPS/DAILY', + datasetId: 'UCSB-CHG/CHIRPS/DAILY', + name: i18n.t('Precipitation (CHIRPS)'), + shortName: i18n.t('Precipitation (CHIRPS)'), + description: i18n.t('Precipitation in mm'), + resolution: chirpsResolution, + band: 'precipitation', + reducer: 'mean', + aggregationType: i18n.t('Sum'), + dataElementCode: 'CHIRPS_PRECIPITATION', + }, + { + id: 'ECMWF/ERA5_LAND/DAILY_AGGR/dewpoint_temperature_2m', + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + name: i18n.t('Dewpoint temperature (ERA5-Land)'), + shortName: i18n.t('Dewpoint temperature'), + description: i18n.t( + 'Temperature in °C at 2 m above the surface to which the air would have to be cooled for saturation to occur.' + ), + resolution: era5LandResolution, + band: 'dewpoint_temperature_2m', + reducer: 'mean', timeZone: { - datasetId: "ECMWF/ERA5_LAND/HOURLY", - band: "temperature_2m", - periodType: HOURLY, - periodReducer: "mean", + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'dewpoint_temperature_2m', + periodType: HOURLY, + periodReducer: 'mean', }, - }, - ], - bandsParser: relativeHumidityParser, - aggregationType: i18n.t("Average"), - dataElementCode: "ERA5_LAND_RELATIVE_HUMIDITY", - }, - { - id: "projects/climate-engine-pro/assets/ce-era5-heat/utci_mean", - datasetId: "projects/climate-engine-pro/assets/ce-era5-heat", - name: i18n.t("Heat stress (ERA5-HEAT)"), - shortName: i18n.t("Heat stress"), - description: i18n.t("Average felt temperature in °C"), - resolution: era5Resolution, - band: "utci_mean", - reducer: "mean", - valueParser: temperatureParser, - aggregationType: i18n.t("Average"), - dataElementCode: "ERA5_HEAT_UTCI", - }, - { - id: "projects/climate-engine-pro/assets/ce-era5-heat/utci_max", - datasetId: "projects/climate-engine-pro/assets/ce-era5-heat", - name: i18n.t("Max heat stress (ERA5-HEAT)"), - shortName: i18n.t("Max heat stress"), - description: i18n.t("Maximum felt temperature in °C"), - resolution: era5Resolution, - band: "utci_max", - reducer: "max", - valueParser: temperatureParser, - aggregationType: i18n.t("Max"), - dataElementCode: "ERA5_HEAT_UTCI_MAX", - }, - { - id: "projects/climate-engine-pro/assets/ce-era5-heat/utci_min", - datasetId: "projects/climate-engine-pro/assets/ce-era5-heat", - name: i18n.t("Min heat stress (ERA5-HEAT)"), - shortName: i18n.t("Min heat stress"), - description: i18n.t("Minimum felt temperature in °C"), - resolution: era5Resolution, - band: "utci_min", - reducer: "min", - valueParser: temperatureParser, - aggregationType: i18n.t("Min"), - dataElementCode: "ERA5_HEAT_UTCI_MIN", - }, -]; + valueParser: temperatureParser, + aggregationType: i18n.t('Average'), + dataElementCode: 'ERA5_LAND_DEWPOINT_TEMPERATURE', + }, + { + id: 'ECMWF/ERA5_LAND/DAILY_AGGR/relative_humidity_2m', + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + name: i18n.t('Relative humidity (ERA5-Land)'), + shortName: i18n.t('Relative humidity'), + description: i18n.t( + 'Percentage of water vapor in the air compared to the total amount of vapor that can exist in the air at its current temperature. Calculated using air temperature and dewpoint temperature at 2 m above surface.' + ), + resolution: era5LandResolution, + bands: [ + { + band: 'dewpoint_temperature_2m', + reducer: 'mean', + timeZone: { + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'dewpoint_temperature_2m', + periodType: HOURLY, + periodReducer: 'mean', + }, + }, + { + band: 'temperature_2m', + reducer: 'mean', + timeZone: { + datasetId: 'ECMWF/ERA5_LAND/HOURLY', + band: 'temperature_2m', + periodType: HOURLY, + periodReducer: 'mean', + }, + }, + ], + bandsParser: relativeHumidityParser, + aggregationType: i18n.t('Average'), + dataElementCode: 'ERA5_LAND_RELATIVE_HUMIDITY', + }, + { + id: 'projects/climate-engine-pro/assets/ce-era5-heat/utci_mean', + datasetId: 'projects/climate-engine-pro/assets/ce-era5-heat', + name: i18n.t('Heat stress (ERA5-HEAT)'), + shortName: i18n.t('Heat stress'), + description: i18n.t('Average felt temperature in °C'), + resolution: era5Resolution, + band: 'utci_mean', + reducer: 'mean', + valueParser: temperatureParser, + aggregationType: i18n.t('Average'), + dataElementCode: 'ERA5_HEAT_UTCI', + }, + { + id: 'projects/climate-engine-pro/assets/ce-era5-heat/utci_max', + datasetId: 'projects/climate-engine-pro/assets/ce-era5-heat', + name: i18n.t('Max heat stress (ERA5-HEAT)'), + shortName: i18n.t('Max heat stress'), + description: i18n.t('Maximum felt temperature in °C'), + resolution: era5Resolution, + band: 'utci_max', + reducer: 'max', + valueParser: temperatureParser, + aggregationType: i18n.t('Max'), + dataElementCode: 'ERA5_HEAT_UTCI_MAX', + }, + { + id: 'projects/climate-engine-pro/assets/ce-era5-heat/utci_min', + datasetId: 'projects/climate-engine-pro/assets/ce-era5-heat', + name: i18n.t('Min heat stress (ERA5-HEAT)'), + shortName: i18n.t('Min heat stress'), + description: i18n.t('Minimum felt temperature in °C'), + resolution: era5Resolution, + band: 'utci_min', + reducer: 'min', + valueParser: temperatureParser, + aggregationType: i18n.t('Min'), + dataElementCode: 'ERA5_HEAT_UTCI_MIN', + }, +] const era5band = [ - "temperature_2m", - "temperature_2m_min", - "temperature_2m_max", - "dewpoint_temperature_2m", - "total_precipitation_sum", -]; + 'temperature_2m', + 'temperature_2m_min', + 'temperature_2m_max', + 'dewpoint_temperature_2m', + 'total_precipitation_sum', +] export const era5Daily = { - datasetId: "ECMWF/ERA5_LAND/DAILY_AGGR", - band: era5band, - // reducer: ["mean", "min", "max", "mean", "mean"], - reducer: "mean", // Use mean to reduce outlier effect - resolution: era5LandResolution, -}; + datasetId: 'ECMWF/ERA5_LAND/DAILY_AGGR', + band: era5band, + // reducer: ["mean", "min", "max", "mean", "mean"], + reducer: 'mean', // Use mean to reduce outlier effect + resolution: era5LandResolution, +} export const era5Monthly = { - datasetId: "ECMWF/ERA5_LAND/MONTHLY_AGGR", - band: era5band, - resolution: era5LandResolution, -}; + datasetId: 'ECMWF/ERA5_LAND/MONTHLY_AGGR', + band: era5band, + resolution: era5LandResolution, +} export const era5MonthlyNormals = { - datasetId: "ECMWF/ERA5_LAND/MONTHLY_AGGR", - band: [ - "temperature_2m", - "dewpoint_temperature_2m", - "total_precipitation_sum", - ], - resolution: era5LandResolution, -}; + datasetId: 'ECMWF/ERA5_LAND/MONTHLY_AGGR', + band: [ + 'temperature_2m', + 'dewpoint_temperature_2m', + 'total_precipitation_sum', + ], + resolution: era5LandResolution, +} export const era5MonthlyTemperatures = { - datasetId: "ECMWF/ERA5_LAND/MONTHLY_AGGR", - band: ["temperature_2m"], - resolution: era5LandResolution, -}; + datasetId: 'ECMWF/ERA5_LAND/MONTHLY_AGGR', + band: ['temperature_2m'], + resolution: era5LandResolution, +} export const era5HeatDaily = { - datasetId: "projects/climate-engine-pro/assets/ce-era5-heat", - band: ["utci_mean", "utci_min", "utci_max"], - reducer: ["mean", "min", "max"], - periodType: "daily", - resolution: era5Resolution, -}; + datasetId: 'projects/climate-engine-pro/assets/ce-era5-heat', + band: ['utci_mean', 'utci_min', 'utci_max'], + reducer: ['mean', 'min', 'max'], + periodType: 'daily', + resolution: era5Resolution, +} export const era5HeatMonthly = { - ...era5HeatDaily, - aggregationPeriod: MONTHLY, -}; + ...era5HeatDaily, + aggregationPeriod: MONTHLY, +} diff --git a/src/data/heat-stress-legend.js b/src/data/heat-stress-legend.js index c84042c..f2910ad 100644 --- a/src/data/heat-stress-legend.js +++ b/src/data/heat-stress-legend.js @@ -1,92 +1,92 @@ -import i18n from "@dhis2/d2-i18n"; +import i18n from '@dhis2/d2-i18n' -const opacity = 0.4; +const opacity = 0.4 export default { - name: i18n.t("Heat/cold stress"), - description: i18n.t( - "You only need to include categories that are relevant for your area." - ), - items: [ - { - name: i18n.t("Extreme cold stress"), - label: i18n.t("Extreme
cold stress"), - color: `rgba(10,48,107,${opacity})`, - hexColor: "#0A306B", - from: -60, - to: -40, - }, - { - name: i18n.t("Very strong cold stress"), - label: i18n.t("Very strong
cold stress"), - color: `rgba(10,82,156,${opacity})`, - hexColor: "#0A529C", - from: -40, - to: -27, - }, - { - name: i18n.t("Strong cold stress"), - label: i18n.t("Strong
cold stress"), - color: `rgba(35,112,181,${opacity})`, - hexColor: "#2370B5", - from: -27, - to: -13, - }, - { - name: i18n.t("Moderate cold stress"), - label: i18n.t("Moderate
cold stress"), - color: `rgba(65,146,197,${opacity})`, - hexColor: "#4192C5", - from: -13, - to: 0, - }, - { - name: i18n.t("Slight cold stress"), - label: i18n.t("Slight
cold stress"), - color: `rgba(158,203,224,${opacity})`, - hexColor: "#9ECBE0", - from: 0, - to: 9, - }, - { - name: i18n.t("No thermal stress"), - label: i18n.t("No thermal
stress"), - color: `rgba(216,240,162,${opacity})`, - hexColor: "#D8F0A2", - from: 9, - to: 26, - }, - { - name: i18n.t("Moderate heat stress"), - label: i18n.t("Moderate
heat stress"), - color: `rgba(255,140,0,${opacity - 0.1})`, - hexColor: "#FF8C00", - from: 26, - to: 32, - }, - { - name: i18n.t("Strong heat stress"), - label: i18n.t("Strong
heat stress"), - color: `rgba(255,70,2,${opacity})`, - hexColor: "#FF4602", - from: 32, - to: 38, - }, - { - name: i18n.t("Very strong heat stress"), - label: i18n.t("Very strong
heat stress"), - color: `rgba(206,1,2,${opacity})`, - hexColor: "#CE0102", - from: 38, - to: 46, - }, - { - name: i18n.t("Extreme heat stress"), - label: i18n.t("Extreme
heat stress"), - color: `rgba(139,1,2,${opacity})`, - hexColor: "#8B0102", - from: 46, - to: 60, - }, - ], -}; + name: i18n.t('Heat/cold stress'), + description: i18n.t( + 'You only need to include categories that are relevant for your area.' + ), + items: [ + { + name: i18n.t('Extreme cold stress'), + label: i18n.t('Extreme
cold stress'), + color: `rgba(10,48,107,${opacity})`, + hexColor: '#0A306B', + from: -60, + to: -40, + }, + { + name: i18n.t('Very strong cold stress'), + label: i18n.t('Very strong
cold stress'), + color: `rgba(10,82,156,${opacity})`, + hexColor: '#0A529C', + from: -40, + to: -27, + }, + { + name: i18n.t('Strong cold stress'), + label: i18n.t('Strong
cold stress'), + color: `rgba(35,112,181,${opacity})`, + hexColor: '#2370B5', + from: -27, + to: -13, + }, + { + name: i18n.t('Moderate cold stress'), + label: i18n.t('Moderate
cold stress'), + color: `rgba(65,146,197,${opacity})`, + hexColor: '#4192C5', + from: -13, + to: 0, + }, + { + name: i18n.t('Slight cold stress'), + label: i18n.t('Slight
cold stress'), + color: `rgba(158,203,224,${opacity})`, + hexColor: '#9ECBE0', + from: 0, + to: 9, + }, + { + name: i18n.t('No thermal stress'), + label: i18n.t('No thermal
stress'), + color: `rgba(216,240,162,${opacity})`, + hexColor: '#D8F0A2', + from: 9, + to: 26, + }, + { + name: i18n.t('Moderate heat stress'), + label: i18n.t('Moderate
heat stress'), + color: `rgba(255,140,0,${opacity - 0.1})`, + hexColor: '#FF8C00', + from: 26, + to: 32, + }, + { + name: i18n.t('Strong heat stress'), + label: i18n.t('Strong
heat stress'), + color: `rgba(255,70,2,${opacity})`, + hexColor: '#FF4602', + from: 32, + to: 38, + }, + { + name: i18n.t('Very strong heat stress'), + label: i18n.t('Very strong
heat stress'), + color: `rgba(206,1,2,${opacity})`, + hexColor: '#CE0102', + from: 38, + to: 46, + }, + { + name: i18n.t('Extreme heat stress'), + label: i18n.t('Extreme
heat stress'), + color: `rgba(139,1,2,${opacity})`, + hexColor: '#8B0102', + from: 46, + to: 60, + }, + ], +} diff --git a/src/data/locations.js b/src/data/locations.js index 44bb702..a5d5300 100644 --- a/src/data/locations.js +++ b/src/data/locations.js @@ -1,213 +1,231 @@ // Locations used to check data export const locations = { - id: "world", - path: "/world", - displayName: "World", - children: [ - { - id: "cambodia", - path: "/world/cambodia", - displayName: "Cambodia", - children: [ + id: 'world', + path: '/world', + displayName: 'World', + children: [ { - id: "phnompenh", - path: "/world/cambodia/phnompenh", - displayName: "Phnom Penh", - children: [], - geometry: { type: "Point", coordinates: [104.921111, 11.569444] }, - }, - ], - }, - { - id: "ethiopia", - path: "/world/ethiopia", - displayName: "Ethiopia", - children: [ - { - id: "addis", - path: "/world/ethiopia/addis", - displayName: "Addis Ababa", - children: [], - geometry: { type: "Point", coordinates: [38.74, 9.03] }, + id: 'cambodia', + path: '/world/cambodia', + displayName: 'Cambodia', + children: [ + { + id: 'phnompenh', + path: '/world/cambodia/phnompenh', + displayName: 'Phnom Penh', + children: [], + geometry: { + type: 'Point', + coordinates: [104.921111, 11.569444], + }, + }, + ], }, - ], - }, - { - id: "india", - path: "/world/india", - displayName: "India", - children: [ { - id: "delhi", - path: "/world/india/delhi", - displayName: "Delhi", - children: [], - geometry: { type: "Point", coordinates: [77.23, 28.61] }, + id: 'ethiopia', + path: '/world/ethiopia', + displayName: 'Ethiopia', + children: [ + { + id: 'addis', + path: '/world/ethiopia/addis', + displayName: 'Addis Ababa', + children: [], + geometry: { type: 'Point', coordinates: [38.74, 9.03] }, + }, + ], }, - ], - }, - { - id: "laos", - path: "/world/laos", - displayName: "Laos", - children: [ { - id: "vientiane", - path: "/world/laos/vientiane", - displayName: "Vientiane", - children: [], - geometry: { type: "Point", coordinates: [102.63, 17.98] }, + id: 'india', + path: '/world/india', + displayName: 'India', + children: [ + { + id: 'delhi', + path: '/world/india/delhi', + displayName: 'Delhi', + children: [], + geometry: { type: 'Point', coordinates: [77.23, 28.61] }, + }, + ], }, - ], - }, - { - id: "malawi", - path: "/world/malawi", - displayName: "Malawi", - children: [ { - id: "lilongwe", - path: "/world/malawi/lilongwe", - displayName: "Lilongwe", - children: [], - geometry: { type: "Point", coordinates: [33.783333, -13.983333] }, + id: 'laos', + path: '/world/laos', + displayName: 'Laos', + children: [ + { + id: 'vientiane', + path: '/world/laos/vientiane', + displayName: 'Vientiane', + children: [], + geometry: { type: 'Point', coordinates: [102.63, 17.98] }, + }, + ], }, - ], - }, - { - id: "myanmar", - path: "/world/myanmar", - displayName: "Myanmar", - children: [ { - id: "Chauk", - path: "/world/myanmar/chauk", - displayName: "Chauk", - geometry: { type: "Point", coordinates: [94.816667, 20.883333] }, - children: [], + id: 'malawi', + path: '/world/malawi', + displayName: 'Malawi', + children: [ + { + id: 'lilongwe', + path: '/world/malawi/lilongwe', + displayName: 'Lilongwe', + children: [], + geometry: { + type: 'Point', + coordinates: [33.783333, -13.983333], + }, + }, + ], }, - ], - }, - { - id: "nepal", - path: "/world/nepal", - displayName: "Nepal", - children: [ { - id: "bagmati", - path: "/world/nepal/bagmati", - displayName: "Bagmati", - children: [ - { - id: "kathmandu_district", - path: "/world/nepal/kathmandu", - displayName: "Kathmandu District", - children: [ + id: 'myanmar', + path: '/world/myanmar', + displayName: 'Myanmar', + children: [ { - id: "kathmandu", - path: "/world/nepal/kathmandu/kathmandu", - displayName: "Kathmandu", - geometry: { type: "Point", coordinates: [85.32, 27.71] }, - children: [], + id: 'Chauk', + path: '/world/myanmar/chauk', + displayName: 'Chauk', + geometry: { + type: 'Point', + coordinates: [94.816667, 20.883333], + }, + children: [], }, - ], - }, - { - id: "rasuwa", - path: "/world/nepal/bagmati/rasuwa", - displayName: "Rasuwa", - children: [ + ], + }, + { + id: 'nepal', + path: '/world/nepal', + displayName: 'Nepal', + children: [ { - id: "dhunche", - path: "/world/nepal/bagmati/rasuwa/dhunche", - displayName: "Dhunche (Rasuwa)", - geometry: { - type: "Point", - coordinates: [85.297778, 28.111667], - }, - children: [], + id: 'bagmati', + path: '/world/nepal/bagmati', + displayName: 'Bagmati', + children: [ + { + id: 'kathmandu_district', + path: '/world/nepal/kathmandu', + displayName: 'Kathmandu District', + children: [ + { + id: 'kathmandu', + path: '/world/nepal/kathmandu/kathmandu', + displayName: 'Kathmandu', + geometry: { + type: 'Point', + coordinates: [85.32, 27.71], + }, + children: [], + }, + ], + }, + { + id: 'rasuwa', + path: '/world/nepal/bagmati/rasuwa', + displayName: 'Rasuwa', + children: [ + { + id: 'dhunche', + path: '/world/nepal/bagmati/rasuwa/dhunche', + displayName: 'Dhunche (Rasuwa)', + geometry: { + type: 'Point', + coordinates: [85.297778, 28.111667], + }, + children: [], + }, + ], + }, + { + id: 'chitwan', + path: '/world/nepal/chitwan', + displayName: 'Chitwan', + children: [ + { + id: 'bharatpur', + path: '/world/nepal/bagmati/chitwan/bharatpur', + displayName: 'Bharatpur (Chitwan)', + geometry: { + type: 'Point', + coordinates: [84.433333, 27.683333], + }, + children: [], + }, + ], + }, + ], }, - ], - }, - { - id: "chitwan", - path: "/world/nepal/chitwan", - displayName: "Chitwan", - children: [ { - id: "bharatpur", - path: "/world/nepal/bagmati/chitwan/bharatpur", - displayName: "Bharatpur (Chitwan)", - geometry: { - type: "Point", - coordinates: [84.433333, 27.683333], - }, - children: [], + id: 'gandaki', + path: '/world/nepal/gandaki', + displayName: 'Gandaki', + children: [ + { + id: 'tanahu', + path: '/world/nepal/gandaki/tanahu', + displayName: 'Tanahu', + children: [ + { + id: 'yyas', + path: '/world/nepal/gandaki/tanahu/yyas', + displayName: 'Bandipur (Tanahu)', + geometry: { + type: 'Point', + coordinates: [84.416667, 27.933333], + }, + children: [], + }, + ], + }, + ], }, - ], - }, - ], + ], }, { - id: "gandaki", - path: "/world/nepal/gandaki", - displayName: "Gandaki", - children: [ - { - id: "tanahu", - path: "/world/nepal/gandaki/tanahu", - displayName: "Tanahu", - children: [ + id: 'norway', + path: '/world/norway', + displayName: 'Norway', + children: [ { - id: "yyas", - path: "/world/nepal/gandaki/tanahu/yyas", - displayName: "Bandipur (Tanahu)", - geometry: { - type: "Point", - coordinates: [84.416667, 27.933333], - }, - children: [], + id: 'finse', + path: '/world/norway/finse', + displayName: 'Finse', + children: [], + geometry: { + type: 'Point', + coordinates: [7.502289, 60.602791], + }, }, - ], - }, - ], - }, - ], - }, - { - id: "norway", - path: "/world/norway", - displayName: "Norway", - children: [ - { - id: "finse", - path: "/world/norway/finse", - displayName: "Finse", - children: [], - geometry: { type: "Point", coordinates: [7.502289, 60.602791] }, - }, - { - id: "oslo", - path: "/world/norway/oslo", - displayName: "Oslo", - children: [], - geometry: { type: "Point", coordinates: [10.738889, 59.913333] }, + { + id: 'oslo', + path: '/world/norway/oslo', + displayName: 'Oslo', + children: [], + geometry: { + type: 'Point', + coordinates: [10.738889, 59.913333], + }, + }, + ], }, - ], - }, - ], -}; + ], +} export const findLocation = (id, orgUnit = locations) => { - if (orgUnit.id === id) { - return orgUnit; - } else if (orgUnit.children) { - let result = null; - for (let i = 0; result == null && i < orgUnit.children.length; i++) { - result = findLocation(id, orgUnit.children[i]); + if (orgUnit.id === id) { + return orgUnit + } else if (orgUnit.children) { + let result = null + for (let i = 0; result == null && i < orgUnit.children.length; i++) { + result = findLocation(id, orgUnit.children[i]) + } + return result } - return result; - } - return null; -}; + return null +} diff --git a/src/hooks/useAppSettings.js b/src/hooks/useAppSettings.js index f06853d..57a27d1 100644 --- a/src/hooks/useAppSettings.js +++ b/src/hooks/useAppSettings.js @@ -1,77 +1,79 @@ -import { useState, useCallback, useEffect } from "react"; -import { useDataEngine } from "@dhis2/app-runtime"; +import { useDataEngine } from '@dhis2/app-runtime' +import { useState, useCallback, useEffect } from 'react' -const APP_NAMESPACE = "CLIMATE_DATA"; -const SETTINGS_KEY = "settings"; +const APP_NAMESPACE = 'CLIMATE_DATA' +const SETTINGS_KEY = 'settings' -const resource = `dataStore/${APP_NAMESPACE}/${SETTINGS_KEY}`; +const resource = `dataStore/${APP_NAMESPACE}/${SETTINGS_KEY}` const useAppSettings = () => { - const [loading, setLoading] = useState(true); - const [settings, setSettings] = useState(); - const [error, setError] = useState(); - const engine = useDataEngine(); + const [loading, setLoading] = useState(true) + const [settings, setSettings] = useState() + const [error, setError] = useState() + const engine = useDataEngine() - // Fetch app settings / create namspace/key if missing - const getSettings = useCallback(() => { - setLoading(true); - engine - .query({ dataStore: { resource: "dataStore" } }) - .then(({ dataStore }) => { - if (dataStore.includes(APP_NAMESPACE)) { - // Fetch settings if namespace/keys exists in data store - engine.query({ settings: { resource } }).then(({ settings }) => { - setSettings(settings); - setLoading(false); - }); - } else { - // Create namespace/keys if missing in data store - engine - .mutate({ - resource, - type: "create", - data: {}, + // Fetch app settings / create namspace/key if missing + const getSettings = useCallback(() => { + setLoading(true) + engine + .query({ dataStore: { resource: 'dataStore' } }) + .then(({ dataStore }) => { + if (dataStore.includes(APP_NAMESPACE)) { + // Fetch settings if namespace/keys exists in data store + engine + .query({ settings: { resource } }) + .then(({ settings }) => { + setSettings(settings) + setLoading(false) + }) + } else { + // Create namespace/keys if missing in data store + engine + .mutate({ + resource, + type: 'create', + data: {}, + }) + .then((response) => { + if (response.httpStatusCode === 201) { + setLoading(false) + } else { + setError(response) + } + }) + .catch(setError) + } }) - .then((response) => { - if (response.httpStatusCode === 201) { - setLoading(false); - } else { - setError(response); - } - }) - .catch(setError); - } - }); - }, [engine]); + }, [engine]) - const changeSetting = useCallback( - (setting, value) => { - engine - .mutate({ - resource, - type: "update", - data: { - ...settings, - [setting]: value, - }, - }) - .then((response) => { - if (response.httpStatusCode === 200) { - getSettings(); - } else { - setError(response); - } - }) - .catch(setError); - }, - [engine, settings, getSettings] - ); + const changeSetting = useCallback( + (setting, value) => { + engine + .mutate({ + resource, + type: 'update', + data: { + ...settings, + [setting]: value, + }, + }) + .then((response) => { + if (response.httpStatusCode === 200) { + getSettings() + } else { + setError(response) + } + }) + .catch(setError) + }, + [engine, settings, getSettings] + ) - useEffect(() => { - getSettings(); - }, [engine, getSettings]); + useEffect(() => { + getSettings() + }, [engine, getSettings]) - return { settings, loading, error, changeSetting }; -}; + return { settings, loading, error, changeSetting } +} -export default useAppSettings; +export default useAppSettings diff --git a/src/hooks/useEarthEngine.js b/src/hooks/useEarthEngine.js index cdc7ed1..46690f9 100644 --- a/src/hooks/useEarthEngine.js +++ b/src/hooks/useEarthEngine.js @@ -1,48 +1,55 @@ -import ee from "../lib/earthengine"; -import useEarthEngineToken from "./useEarthEngineToken"; +import ee from '../lib/earthengine' +import useEarthEngineToken from './useEarthEngineToken' const eePromise = (tokenPromise) => - new Promise((resolve, reject) => { - if (ee.data.getAuthToken()) { - ee.initialize(null, null, () => resolve(ee), reject); - } else { - tokenPromise - .then((token) => { - const { token_type, access_token, client_id, expires_in } = token; - const extraScopes = null; - const updateAuthLibrary = false; - - ee.data.setAuthToken( - client_id, - token_type, - access_token, - expires_in, - extraScopes, - () => ee.initialize(null, null, () => resolve(ee), reject), - updateAuthLibrary - ); - - ee.data.setAuthTokenRefresher(async (authArgs, callback) => - callback({ - ...(await tokenPromise), - state: authArgs.scope, - }) - ); - }) - .catch(reject); - } - }); - -let eeInstance; + new Promise((resolve, reject) => { + if (ee.data.getAuthToken()) { + ee.initialize(null, null, () => resolve(ee), reject) + } else { + tokenPromise + .then((token) => { + const { token_type, access_token, client_id, expires_in } = + token + const extraScopes = null + const updateAuthLibrary = false + + ee.data.setAuthToken( + client_id, + token_type, + access_token, + expires_in, + extraScopes, + () => + ee.initialize( + null, + null, + () => resolve(ee), + reject + ), + updateAuthLibrary + ) + + ee.data.setAuthTokenRefresher(async (authArgs, callback) => + callback({ + ...(await tokenPromise), + state: authArgs.scope, + }) + ) + }) + .catch(reject) + } + }) + +let eeInstance const useEarthEngine = () => { - const tokenPromise = useEarthEngineToken(); + const tokenPromise = useEarthEngineToken() - if (!eeInstance) { - eeInstance = eePromise(tokenPromise); - } + if (!eeInstance) { + eeInstance = eePromise(tokenPromise) + } - return eeInstance; -}; + return eeInstance +} -export default useEarthEngine; +export default useEarthEngine diff --git a/src/hooks/useEarthEngineClimateNormals.js b/src/hooks/useEarthEngineClimateNormals.js index 5d22202..9b62061 100644 --- a/src/hooks/useEarthEngineClimateNormals.js +++ b/src/hooks/useEarthEngineClimateNormals.js @@ -1,54 +1,54 @@ -import { useState, useEffect } from "react"; -import useEarthEngine from "./useEarthEngine"; -import { getClimateNormals, getCacheKey } from "../utils/ee-utils"; +import { useState, useEffect } from 'react' +import { getClimateNormals, getCacheKey } from '../utils/ee-utils' +import useEarthEngine from './useEarthEngine' -const cachedPromise = {}; +const cachedPromise = {} const useEarthEngineClimateNormals = (dataset, period, feature) => { - const [data, setData] = useState(); - const eePromise = useEarthEngine(); - - useEffect(() => { - let canceled = false; - - if (dataset && period && feature) { - const key = getCacheKey(dataset, period, feature); - - if (cachedPromise[key]) { - cachedPromise[key].then((data) => { - if (!canceled) { - setData(data); - } - }); - - return () => { - canceled = true; - }; - } - - setData(); - eePromise.then((ee) => { - cachedPromise[key] = getClimateNormals( - ee, - dataset, - period, - feature.geometry - ); - - cachedPromise[key].then((data) => { - if (!canceled) { - setData(data); - } - }); - }); - - return () => { - canceled = true; - }; - } - }, [eePromise, dataset, period, feature]); - - return data; -}; - -export default useEarthEngineClimateNormals; + const [data, setData] = useState() + const eePromise = useEarthEngine() + + useEffect(() => { + let canceled = false + + if (dataset && period && feature) { + const key = getCacheKey(dataset, period, feature) + + if (cachedPromise[key]) { + cachedPromise[key].then((data) => { + if (!canceled) { + setData(data) + } + }) + + return () => { + canceled = true + } + } + + setData() + eePromise.then((ee) => { + cachedPromise[key] = getClimateNormals( + ee, + dataset, + period, + feature.geometry + ) + + cachedPromise[key].then((data) => { + if (!canceled) { + setData(data) + } + }) + }) + + return () => { + canceled = true + } + } + }, [eePromise, dataset, period, feature]) + + return data +} + +export default useEarthEngineClimateNormals diff --git a/src/hooks/useEarthEngineData.js b/src/hooks/useEarthEngineData.js index 7265119..7d01306 100644 --- a/src/hooks/useEarthEngineData.js +++ b/src/hooks/useEarthEngineData.js @@ -1,32 +1,32 @@ -import { useState, useEffect } from "react"; -import useEarthEngine from "./useEarthEngine"; -import { getEarthEngineData } from "../utils/ee-utils"; +import { useState, useEffect } from 'react' +import { getEarthEngineData } from '../utils/ee-utils' +import useEarthEngine from './useEarthEngine' const useEarthEngineData = (dataset, period, features) => { - const [loading, setLoading] = useState(true); - const [data, setData] = useState(); - const [error, setError] = useState(); - const eePromise = useEarthEngine(); + const [loading, setLoading] = useState(true) + const [data, setData] = useState() + const [error, setError] = useState() + const eePromise = useEarthEngine() - useEffect(() => { - if (dataset && features?.length) { - setLoading(true); - setData(); - eePromise.then((ee) => - getEarthEngineData(ee, dataset, period, features) - .then((data) => { - setData(data); - setLoading(false); - }) - .catch((error) => { - setError(error); - setLoading(false); - }) - ); - } - }, [eePromise, dataset, period, features]); + useEffect(() => { + if (dataset && features?.length) { + setLoading(true) + setData() + eePromise.then((ee) => + getEarthEngineData(ee, dataset, period, features) + .then((data) => { + setData(data) + setLoading(false) + }) + .catch((error) => { + setError(error) + setLoading(false) + }) + ) + } + }, [eePromise, dataset, period, features]) - return { data, error, loading }; -}; + return { data, error, loading } +} -export default useEarthEngineData; +export default useEarthEngineData diff --git a/src/hooks/useEarthEngineTimeSeries.js b/src/hooks/useEarthEngineTimeSeries.js index 8e667f2..f4373a6 100644 --- a/src/hooks/useEarthEngineTimeSeries.js +++ b/src/hooks/useEarthEngineTimeSeries.js @@ -1,65 +1,65 @@ -import { useState, useEffect } from "react"; -import useEarthEngine from "./useEarthEngine"; -import { getTimeSeriesData, getCacheKey } from "../utils/ee-utils"; +import { useState, useEffect } from 'react' +import { getTimeSeriesData, getCacheKey } from '../utils/ee-utils' +import useEarthEngine from './useEarthEngine' const getPeriodFromId = (id) => { - const year = id.slice(0, 4); - const month = id.slice(4, 6); - const day = id.slice(6, 8); - return `${year}-${month}${day ? `-${day}` : ""}`; -}; + const year = id.slice(0, 4) + const month = id.slice(4, 6) + const day = id.slice(6, 8) + return `${year}-${month}${day ? `-${day}` : ''}` +} const parseIds = (data) => - data.map((d) => ({ ...d, id: getPeriodFromId(d.id) })); + data.map((d) => ({ ...d, id: getPeriodFromId(d.id) })) -const cachedPromise = {}; +const cachedPromise = {} const useEarthEngineTimeSeries = (dataset, period, feature, filter) => { - const [data, setData] = useState(); - const eePromise = useEarthEngine(); + const [data, setData] = useState() + const eePromise = useEarthEngine() - useEffect(() => { - let canceled = false; + useEffect(() => { + let canceled = false - if (dataset && period && feature) { - const key = getCacheKey(dataset, period, feature, filter); + if (dataset && period && feature) { + const key = getCacheKey(dataset, period, feature, filter) - if (cachedPromise[key]) { - cachedPromise[key].then((data) => { - if (!canceled) { - setData(data); - } - }); + if (cachedPromise[key]) { + cachedPromise[key].then((data) => { + if (!canceled) { + setData(data) + } + }) - return () => { - canceled = true; - }; - } + return () => { + canceled = true + } + } - setData(); - eePromise.then((ee) => { - cachedPromise[key] = getTimeSeriesData( - ee, - dataset, - period, - feature.geometry, - filter - ).then(parseIds); + setData() + eePromise.then((ee) => { + cachedPromise[key] = getTimeSeriesData( + ee, + dataset, + period, + feature.geometry, + filter + ).then(parseIds) - cachedPromise[key].then((data) => { - if (!canceled) { - setData(data); - } - }); - }); + cachedPromise[key].then((data) => { + if (!canceled) { + setData(data) + } + }) + }) - return () => { - canceled = true; - }; - } - }, [eePromise, dataset, period, feature, filter]); + return () => { + canceled = true + } + } + }, [eePromise, dataset, period, feature, filter]) - return data; -}; + return data +} -export default useEarthEngineTimeSeries; +export default useEarthEngineTimeSeries diff --git a/src/hooks/useEarthEngineToken.js b/src/hooks/useEarthEngineToken.js index 6816bff..3e5cbd1 100644 --- a/src/hooks/useEarthEngineToken.js +++ b/src/hooks/useEarthEngineToken.js @@ -1,17 +1,17 @@ -import { useDataEngine } from "@dhis2/app-runtime"; +import { useDataEngine } from '@dhis2/app-runtime' const tokenQuery = { - token: { - resource: "tokens/google", - }, -}; + token: { + resource: 'tokens/google', + }, +} const useEarthEngineToken = () => { - const engine = useDataEngine(); + const engine = useDataEngine() - return engine - .query(tokenQuery) - .then((data) => ({ ...data.token, token_type: "Bearer" })); -}; + return engine + .query(tokenQuery) + .then((data) => ({ ...data.token, token_type: 'Bearer' })) +} -export default useEarthEngineToken; +export default useEarthEngineToken diff --git a/src/hooks/useExploreUri.js b/src/hooks/useExploreUri.js index 4871c2a..b090b88 100644 --- a/src/hooks/useExploreUri.js +++ b/src/hooks/useExploreUri.js @@ -1,103 +1,108 @@ -import { useState, useMemo, useEffect } from "react"; -import { useNavigationType, useLocation, useParams } from "react-router-dom"; -import exploreStore from "../store/exploreStore"; -import { referencePeriods } from "../components/explore/ReferencePeriodSelect"; -import { MONTHLY } from "../utils/time"; +import { useState, useMemo, useEffect } from 'react' +import { useNavigationType, useLocation, useParams } from 'react-router-dom' +import { referencePeriods } from '../components/explore/ReferencePeriodSelect' +import exploreStore from '../store/exploreStore' +import { MONTHLY } from '../utils/time' const hasMonthlyAndDailyData = [ - "temperature", - "precipitation", - "humidity", - "heat", -]; + 'temperature', + 'precipitation', + 'humidity', + 'heat', +] // Returns syncronized (uri/store) explore params const useExploreUri = () => { - const [isPop, setIsPop] = useState(false); - const navigationType = useNavigationType(); - const { pathname } = useLocation(); - const params = useParams(); - const store = exploreStore(); - - const path = pathname.split("/"); - const section = path[1]; - const tab = path[3]; - - const uri = useMemo(() => { - if (!isPop) { - const { - orgUnit, - tab, - periodType, - monthlyPeriod, - dailyPeriod, - referencePeriod, - month, - } = store; - - if (!orgUnit || !tab) { - return null; - } - - const baseUri = `/${section}/${orgUnit.id}/${tab}`; - let uri; - - if (tab === "forecast10days") { - uri = baseUri; - } else if (tab === "climatechange" && month && referencePeriod) { - uri = `${baseUri}/${month}/${referencePeriod.id}`; - } else if (hasMonthlyAndDailyData.includes(tab)) { - if (periodType === MONTHLY && monthlyPeriod && referencePeriod) { - uri = `${baseUri}/monthly/${monthlyPeriod.startTime}/${ - monthlyPeriod.endTime - }${tab !== "heat" ? `/${referencePeriod.id}` : ""}`; - } else if (dailyPeriod) { - uri = `${baseUri}/daily/${dailyPeriod.startTime}/${dailyPeriod.endTime}`; + const [isPop, setIsPop] = useState(false) + const navigationType = useNavigationType() + const { pathname } = useLocation() + const params = useParams() + const store = exploreStore() + + const path = pathname.split('/') + const section = path[1] + const tab = path[3] + + const uri = useMemo(() => { + if (!isPop) { + const { + orgUnit, + tab, + periodType, + monthlyPeriod, + dailyPeriod, + referencePeriod, + month, + } = store + + if (!orgUnit || !tab) { + return null + } + + const baseUri = `/${section}/${orgUnit.id}/${tab}` + let uri + + if (tab === 'forecast10days') { + uri = baseUri + } else if (tab === 'climatechange' && month && referencePeriod) { + uri = `${baseUri}/${month}/${referencePeriod.id}` + } else if (hasMonthlyAndDailyData.includes(tab)) { + if ( + periodType === MONTHLY && + monthlyPeriod && + referencePeriod + ) { + uri = `${baseUri}/monthly/${monthlyPeriod.startTime}/${ + monthlyPeriod.endTime + }${tab !== 'heat' ? `/${referencePeriod.id}` : ''}` + } else if (dailyPeriod) { + uri = `${baseUri}/daily/${dailyPeriod.startTime}/${dailyPeriod.endTime}` + } + } + + return uri } - } - return uri; - } - - return null; - }, [store, section, isPop]); - - useEffect(() => { - setIsPop(navigationType === "POP"); - }, [navigationType]); - - useEffect(() => { - if (isPop) { - store.setTab(tab); - - const { month, startTime, endTime, referencePeriodId } = params; - - if (tab === "climatechange") { - store.setMonth(Number(month)); - } else if (hasMonthlyAndDailyData.includes(tab)) { - const periodType = pathname.split("/")[4]?.toUpperCase() || MONTHLY; - store.setPeriodType(periodType); - - if (periodType === MONTHLY) { - store.setMonthlyPeriod({ startTime, endTime }); - } else if (periodType === "DAILY") { - store.setDailyPeriod({ startTime, endTime }); + return null + }, [store, section, isPop]) + + useEffect(() => { + setIsPop(navigationType === 'POP') + }, [navigationType]) + + useEffect(() => { + if (isPop) { + store.setTab(tab) + + const { month, startTime, endTime, referencePeriodId } = params + + if (tab === 'climatechange') { + store.setMonth(Number(month)) + } else if (hasMonthlyAndDailyData.includes(tab)) { + const periodType = + pathname.split('/')[4]?.toUpperCase() || MONTHLY + store.setPeriodType(periodType) + + if (periodType === MONTHLY) { + store.setMonthlyPeriod({ startTime, endTime }) + } else if (periodType === 'DAILY') { + store.setDailyPeriod({ startTime, endTime }) + } + } + + if (referencePeriodId) { + store.setReferencePeriod( + referencePeriods.find((p) => p.id === referencePeriodId) + ) + } } - } - if (referencePeriodId) { - store.setReferencePeriod( - referencePeriods.find((p) => p.id === referencePeriodId) - ); - } - } - - return () => { - setIsPop(false); - }; - }, [store, isPop, tab, params]); + return () => { + setIsPop(false) + } + }, [store, isPop, tab, params]) - return uri; -}; + return uri +} -export default useExploreUri; +export default useExploreUri diff --git a/src/hooks/useOrgUnit.js b/src/hooks/useOrgUnit.js index 62d6808..aa58db5 100644 --- a/src/hooks/useOrgUnit.js +++ b/src/hooks/useOrgUnit.js @@ -1,38 +1,38 @@ -import { useDataQuery } from "@dhis2/app-runtime"; -import { useState, useEffect } from "react"; +import { useDataQuery } from '@dhis2/app-runtime' +import { useState, useEffect } from 'react' const ORG_UNIT_QUERY = { - ou: { - resource: "organisationUnits", - id: ({ id }) => id, - }, -}; + ou: { + resource: 'organisationUnits', + id: ({ id }) => id, + }, +} const useOrgUnit = (id) => { - const [orgUnit, setOrgUnit] = useState(); + const [orgUnit, setOrgUnit] = useState() - const { refetch } = useDataQuery(ORG_UNIT_QUERY, { - lazy: true, - variables: { id }, - onComplete: ({ ou }) => - setOrgUnit({ - type: "Feature", - id: ou.id, - geometry: ou.geometry, - properties: { - name: ou.displayName, - }, - }), - }); + const { refetch } = useDataQuery(ORG_UNIT_QUERY, { + lazy: true, + variables: { id }, + onComplete: ({ ou }) => + setOrgUnit({ + type: 'Feature', + id: ou.id, + geometry: ou.geometry, + properties: { + name: ou.displayName, + }, + }), + }) - useEffect(() => { - if (id) { - setOrgUnit(); - refetch({ id }); - } - }, [refetch, id]); + useEffect(() => { + if (id) { + setOrgUnit() + refetch({ id }) + } + }, [refetch, id]) - return orgUnit; -}; + return orgUnit +} -export default useOrgUnit; +export default useOrgUnit diff --git a/src/hooks/useOrgUnitCount.js b/src/hooks/useOrgUnitCount.js index 2c3f2bf..598d701 100644 --- a/src/hooks/useOrgUnitCount.js +++ b/src/hooks/useOrgUnitCount.js @@ -1,23 +1,23 @@ -import { useState, useEffect } from "react"; -import { useDataQuery } from "@dhis2/app-runtime"; -import { ORG_UNITS_QUERY } from "./useOrgUnits"; +import { useDataQuery } from '@dhis2/app-runtime' +import { useState, useEffect } from 'react' +import { ORG_UNITS_QUERY } from './useOrgUnits' const useOrgUnitCount = (parent, level) => { - const [orgUnitCount, setOrgUnitCount] = useState(0); + const [orgUnitCount, setOrgUnitCount] = useState(0) - const { refetch } = useDataQuery(ORG_UNITS_QUERY, { - lazy: true, - variables: { parent, level }, - onComplete: ({ geojson }) => setOrgUnitCount(geojson.features.length), - }); + const { refetch } = useDataQuery(ORG_UNITS_QUERY, { + lazy: true, + variables: { parent, level }, + onComplete: ({ geojson }) => setOrgUnitCount(geojson.features.length), + }) - useEffect(() => { - if (parent && level) { - refetch({ parent, level }); - } - }, [refetch, parent, level]); + useEffect(() => { + if (parent && level) { + refetch({ parent, level }) + } + }, [refetch, parent, level]) - return orgUnitCount; -}; + return orgUnitCount +} -export default useOrgUnitCount; +export default useOrgUnitCount diff --git a/src/hooks/useOrgUnitLevels.js b/src/hooks/useOrgUnitLevels.js index e7518ac..84686b4 100644 --- a/src/hooks/useOrgUnitLevels.js +++ b/src/hooks/useOrgUnitLevels.js @@ -1,24 +1,24 @@ -import { useDataQuery } from "@dhis2/app-runtime"; +import { useDataQuery } from '@dhis2/app-runtime' const ORG_UNIT_LEVELS_QUERY = { - levels: { - resource: "organisationUnitLevels", - params: { - fields: ["id", "displayName~rename(name)", "level"], - order: "level:asc", - paging: false, + levels: { + resource: 'organisationUnitLevels', + params: { + fields: ['id', 'displayName~rename(name)', 'level'], + order: 'level:asc', + paging: false, + }, }, - }, -}; +} const useOrgUnitLevels = () => { - const { loading, error, data } = useDataQuery(ORG_UNIT_LEVELS_QUERY); + const { loading, error, data } = useDataQuery(ORG_UNIT_LEVELS_QUERY) - return { - levels: data?.levels?.organisationUnitLevels, - error, - loading, - }; -}; + return { + levels: data?.levels?.organisationUnitLevels, + error, + loading, + } +} -export default useOrgUnitLevels; +export default useOrgUnitLevels diff --git a/src/hooks/useOrgUnitRoots.js b/src/hooks/useOrgUnitRoots.js index b678d41..483873a 100644 --- a/src/hooks/useOrgUnitRoots.js +++ b/src/hooks/useOrgUnitRoots.js @@ -1,24 +1,24 @@ -import { useDataQuery } from "@dhis2/app-runtime"; +import { useDataQuery } from '@dhis2/app-runtime' // Fetches the root org units associated with the current user with fallback to data capture org units const ORG_UNIT_ROOTS_QUERY = { - roots: { - resource: "organisationUnits", - params: () => ({ - fields: ["id", "displayName~rename(name)", "path"], - userDataViewFallback: true, - }), - }, -}; + roots: { + resource: 'organisationUnits', + params: () => ({ + fields: ['id', 'displayName~rename(name)', 'path'], + userDataViewFallback: true, + }), + }, +} const useOrgUnitRoots = () => { - const { loading, error, data } = useDataQuery(ORG_UNIT_ROOTS_QUERY); + const { loading, error, data } = useDataQuery(ORG_UNIT_ROOTS_QUERY) - return { - roots: data?.roots?.organisationUnits, - error, - loading, - }; -}; + return { + roots: data?.roots?.organisationUnits, + error, + loading, + } +} -export default useOrgUnitRoots; +export default useOrgUnitRoots diff --git a/src/hooks/useOrgUnits.js b/src/hooks/useOrgUnits.js index 0ebe0ec..3520de6 100644 --- a/src/hooks/useOrgUnits.js +++ b/src/hooks/useOrgUnits.js @@ -1,37 +1,37 @@ -import { useState } from "react"; -import { useDataQuery } from "@dhis2/app-runtime"; +import { useDataQuery } from '@dhis2/app-runtime' +import { useState } from 'react' export const ORG_UNITS_QUERY = { - geojson: { - resource: "organisationUnits.geojson", - params: ({ parent, level }) => ({ - parent, - level, - }), - }, -}; + geojson: { + resource: 'organisationUnits.geojson', + params: ({ parent, level }) => ({ + parent, + level, + }), + }, +} const parseOrgUnits = (data) => - data.geojson.features.map(({ type, id, geometry, properties }) => ({ - type, - id, - properties: { id, name: properties.name }, - geometry, - })); + data.geojson.features.map(({ type, id, geometry, properties }) => ({ + type, + id, + properties: { id, name: properties.name }, + geometry, + })) const useOrgUnits = (parent, level) => { - const [features, setFeatures] = useState(); + const [features, setFeatures] = useState() - const { loading, error } = useDataQuery(ORG_UNITS_QUERY, { - variables: { parent, level }, - onComplete: (data) => setFeatures(parseOrgUnits(data)), - }); + const { loading, error } = useDataQuery(ORG_UNITS_QUERY, { + variables: { parent, level }, + onComplete: (data) => setFeatures(parseOrgUnits(data)), + }) - return { - features, - error, - loading, - }; -}; + return { + features, + error, + loading, + } +} -export default useOrgUnits; +export default useOrgUnits diff --git a/src/hooks/useSystemInfo.js b/src/hooks/useSystemInfo.js index 69feb60..f1e8620 100644 --- a/src/hooks/useSystemInfo.js +++ b/src/hooks/useSystemInfo.js @@ -1,30 +1,29 @@ -import { useDataQuery } from "@dhis2/app-runtime"; +import { useDataQuery } from '@dhis2/app-runtime' // TODO: Check if user has necessary authorities const SYSTEM_QUERY = { - currentUser: { - resource: "me", - params: { - fields: - "id,username,displayName~rename(name),authorities,settings[keyAnalysisDisplayProperty]", + currentUser: { + resource: 'me', + params: { + fields: 'id,username,displayName~rename(name),authorities,settings[keyAnalysisDisplayProperty]', + }, }, - }, - systemInfo: { - resource: "system/info", - params: { - fields: "serverTimeZoneId", + systemInfo: { + resource: 'system/info', + params: { + fields: 'serverTimeZoneId', + }, }, - }, -}; +} const useSystemInfo = () => { - const { loading, error, data: system } = useDataQuery(SYSTEM_QUERY); + const { loading, error, data: system } = useDataQuery(SYSTEM_QUERY) - return { - system, - error, - loading, - }; -}; + return { + system, + error, + loading, + } +} -export default useSystemInfo; +export default useSystemInfo diff --git a/src/lib/earthengine.js b/src/lib/earthengine.js index 6d2c0f1..140d497 100644 --- a/src/lib/earthengine.js +++ b/src/lib/earthengine.js @@ -1,33312 +1,34256 @@ -var $jscomp = $jscomp || {}; -$jscomp.scope = {}; +var $jscomp = $jscomp || {} +$jscomp.scope = {} $jscomp.arrayIteratorImpl = function (array) { - var index = 0; - return function () { - return index < array.length - ? { done: !1, value: array[index++] } - : { done: !0 }; - }; -}; + var index = 0 + return function () { + return index < array.length + ? { done: !1, value: array[index++] } + : { done: !0 } + } +} $jscomp.arrayIterator = function (array) { - return { next: $jscomp.arrayIteratorImpl(array) }; -}; -$jscomp.ASSUME_ES5 = !1; -$jscomp.ASSUME_NO_NATIVE_MAP = !1; -$jscomp.ASSUME_NO_NATIVE_SET = !1; -$jscomp.SIMPLE_FROUND_POLYFILL = !1; -$jscomp.ISOLATE_POLYFILLS = !1; -$jscomp.FORCE_POLYFILL_PROMISE = !1; -$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1; + return { next: $jscomp.arrayIteratorImpl(array) } +} +$jscomp.ASSUME_ES5 = !1 +$jscomp.ASSUME_NO_NATIVE_MAP = !1 +$jscomp.ASSUME_NO_NATIVE_SET = !1 +$jscomp.SIMPLE_FROUND_POLYFILL = !1 +$jscomp.ISOLATE_POLYFILLS = !1 +$jscomp.FORCE_POLYFILL_PROMISE = !1 +$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1 $jscomp.defineProperty = - $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties - ? Object.defineProperty - : function (target, property, descriptor) { - if (target == Array.prototype || target == Object.prototype) { - return target; - } - target[property] = descriptor.value; - return target; - }; + $jscomp.ASSUME_ES5 || 'function' == typeof Object.defineProperties + ? Object.defineProperty + : function (target, property, descriptor) { + if (target == Array.prototype || target == Object.prototype) { + return target + } + target[property] = descriptor.value + return target + } $jscomp.getGlobal = function (passedInThis) { - for ( - var possibleGlobals = [ - "object" == typeof globalThis && globalThis, - passedInThis, - "object" == typeof window && window, - "object" == typeof self && self, - "object" == typeof global && global, - ], - i = 0; - i < possibleGlobals.length; - ++i - ) { - var maybeGlobal = possibleGlobals[i]; - if (maybeGlobal && maybeGlobal.Math == Math) { - return maybeGlobal; - } - } - return (function () { - throw Error("Cannot find global object"); - })(); -}; -$jscomp.global = $jscomp.getGlobal(this); + for ( + var possibleGlobals = [ + 'object' == typeof globalThis && globalThis, + passedInThis, + 'object' == typeof window && window, + 'object' == typeof self && self, + 'object' == typeof global && global, + ], + i = 0; + i < possibleGlobals.length; + ++i + ) { + var maybeGlobal = possibleGlobals[i] + if (maybeGlobal && maybeGlobal.Math == Math) { + return maybeGlobal + } + } + return (function () { + throw Error('Cannot find global object') + })() +} +$jscomp.global = $jscomp.getGlobal(this) $jscomp.IS_SYMBOL_NATIVE = - "function" === typeof Symbol && "symbol" === typeof Symbol("x"); + 'function' === typeof Symbol && 'symbol' === typeof Symbol('x') $jscomp.TRUST_ES6_POLYFILLS = - !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE; -$jscomp.polyfills = {}; -$jscomp.propertyToPolyfillSymbol = {}; -$jscomp.POLYFILL_PREFIX = "$jscp$"; + !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE +$jscomp.polyfills = {} +$jscomp.propertyToPolyfillSymbol = {} +$jscomp.POLYFILL_PREFIX = '$jscp$' var $jscomp$lookupPolyfilledValue = function ( - target, - property, - isOptionalAccess -) { - if (!isOptionalAccess || null != target) { - var obfuscatedName = $jscomp.propertyToPolyfillSymbol[property]; - if (null == obfuscatedName) { - return target[property]; - } - var polyfill = target[obfuscatedName]; - return void 0 !== polyfill ? polyfill : target[property]; - } -}; + target, + property, + isOptionalAccess +) { + if (!isOptionalAccess || null != target) { + var obfuscatedName = $jscomp.propertyToPolyfillSymbol[property] + if (null == obfuscatedName) { + return target[property] + } + var polyfill = target[obfuscatedName] + return void 0 !== polyfill ? polyfill : target[property] + } +} $jscomp.polyfill = function (target, polyfill, fromLang, toLang) { - polyfill && - ($jscomp.ISOLATE_POLYFILLS - ? $jscomp.polyfillIsolated(target, polyfill, fromLang, toLang) - : $jscomp.polyfillUnisolated(target, polyfill, fromLang, toLang)); -}; + polyfill && + ($jscomp.ISOLATE_POLYFILLS + ? $jscomp.polyfillIsolated(target, polyfill, fromLang, toLang) + : $jscomp.polyfillUnisolated(target, polyfill, fromLang, toLang)) +} $jscomp.polyfillUnisolated = function (target, polyfill, fromLang, toLang) { - for ( - var obj = $jscomp.global, split = target.split("."), i = 0; - i < split.length - 1; - i++ - ) { - var key = split[i]; - if (!(key in obj)) { - return; - } - obj = obj[key]; - } - var property = split[split.length - 1], - orig = obj[property], - impl = polyfill(orig); - impl != orig && - null != impl && - $jscomp.defineProperty(obj, property, { - configurable: !0, - writable: !0, - value: impl, - }); -}; + for ( + var obj = $jscomp.global, split = target.split('.'), i = 0; + i < split.length - 1; + i++ + ) { + var key = split[i] + if (!(key in obj)) { + return + } + obj = obj[key] + } + var property = split[split.length - 1], + orig = obj[property], + impl = polyfill(orig) + impl != orig && + null != impl && + $jscomp.defineProperty(obj, property, { + configurable: !0, + writable: !0, + value: impl, + }) +} $jscomp.polyfillIsolated = function (target, polyfill, fromLang, toLang) { - var split = target.split("."), - isSimpleName = 1 === split.length, - root = split[0]; - var ownerObject = - !isSimpleName && root in $jscomp.polyfills - ? $jscomp.polyfills - : $jscomp.global; - for (var i = 0; i < split.length - 1; i++) { - var key = split[i]; - if (!(key in ownerObject)) { - return; - } - ownerObject = ownerObject[key]; - } - var property = split[split.length - 1], - nativeImpl = - $jscomp.IS_SYMBOL_NATIVE && "es6" === fromLang - ? ownerObject[property] - : null, - impl = polyfill(nativeImpl); - if (null != impl) { - if (isSimpleName) { - $jscomp.defineProperty($jscomp.polyfills, property, { - configurable: !0, - writable: !0, - value: impl, - }); - } else if (impl !== nativeImpl) { - if (void 0 === $jscomp.propertyToPolyfillSymbol[property]) { - var BIN_ID = (1e9 * Math.random()) >>> 0; - $jscomp.propertyToPolyfillSymbol[property] = $jscomp.IS_SYMBOL_NATIVE - ? $jscomp.global.Symbol(property) - : $jscomp.POLYFILL_PREFIX + BIN_ID + "$" + property; - } - $jscomp.defineProperty( - ownerObject, - $jscomp.propertyToPolyfillSymbol[property], - { configurable: !0, writable: !0, value: impl } - ); - } - } -}; -$jscomp.initSymbol = function () {}; + var split = target.split('.'), + isSimpleName = 1 === split.length, + root = split[0] + var ownerObject = + !isSimpleName && root in $jscomp.polyfills + ? $jscomp.polyfills + : $jscomp.global + for (var i = 0; i < split.length - 1; i++) { + var key = split[i] + if (!(key in ownerObject)) { + return + } + ownerObject = ownerObject[key] + } + var property = split[split.length - 1], + nativeImpl = + $jscomp.IS_SYMBOL_NATIVE && 'es6' === fromLang + ? ownerObject[property] + : null, + impl = polyfill(nativeImpl) + if (null != impl) { + if (isSimpleName) { + $jscomp.defineProperty($jscomp.polyfills, property, { + configurable: !0, + writable: !0, + value: impl, + }) + } else if (impl !== nativeImpl) { + if (void 0 === $jscomp.propertyToPolyfillSymbol[property]) { + var BIN_ID = (1e9 * Math.random()) >>> 0 + $jscomp.propertyToPolyfillSymbol[property] = + $jscomp.IS_SYMBOL_NATIVE + ? $jscomp.global.Symbol(property) + : $jscomp.POLYFILL_PREFIX + BIN_ID + '$' + property + } + $jscomp.defineProperty( + ownerObject, + $jscomp.propertyToPolyfillSymbol[property], + { configurable: !0, writable: !0, value: impl } + ) + } + } +} +$jscomp.initSymbol = function () {} $jscomp.polyfill( - "Symbol", - function (orig) { - if (orig) { - return orig; - } - var SymbolClass = function (id, opt_description) { - this.$jscomp$symbol$id_ = id; - $jscomp.defineProperty(this, "description", { - configurable: !0, - writable: !0, - value: opt_description, - }); - }; - SymbolClass.prototype.toString = function () { - return this.$jscomp$symbol$id_; - }; - var SYMBOL_PREFIX = "jscomp_symbol_" + ((1e9 * Math.random()) >>> 0) + "_", - counter = 0, - symbolPolyfill = function (opt_description) { - if (this instanceof symbolPolyfill) { - throw new TypeError("Symbol is not a constructor"); - } - return new SymbolClass( - SYMBOL_PREFIX + (opt_description || "") + "_" + counter++, - opt_description - ); - }; - return symbolPolyfill; - }, - "es6", - "es3" -); + 'Symbol', + function (orig) { + if (orig) { + return orig + } + var SymbolClass = function (id, opt_description) { + this.$jscomp$symbol$id_ = id + $jscomp.defineProperty(this, 'description', { + configurable: !0, + writable: !0, + value: opt_description, + }) + } + SymbolClass.prototype.toString = function () { + return this.$jscomp$symbol$id_ + } + var SYMBOL_PREFIX = + 'jscomp_symbol_' + ((1e9 * Math.random()) >>> 0) + '_', + counter = 0, + symbolPolyfill = function (opt_description) { + if (this instanceof symbolPolyfill) { + throw new TypeError('Symbol is not a constructor') + } + return new SymbolClass( + SYMBOL_PREFIX + (opt_description || '') + '_' + counter++, + opt_description + ) + } + return symbolPolyfill + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "Symbol.iterator", - function (orig) { - if (orig) { - return orig; - } - for ( - var symbolIterator = Symbol("Symbol.iterator"), - arrayLikes = - "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split( - " " - ), - i = 0; - i < arrayLikes.length; - i++ - ) { - var ArrayLikeCtor = $jscomp.global[arrayLikes[i]]; - "function" === typeof ArrayLikeCtor && - "function" != typeof ArrayLikeCtor.prototype[symbolIterator] && - $jscomp.defineProperty(ArrayLikeCtor.prototype, symbolIterator, { - configurable: !0, - writable: !0, - value: function () { - return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this)); - }, - }); - } - return symbolIterator; - }, - "es6", - "es3" -); + 'Symbol.iterator', + function (orig) { + if (orig) { + return orig + } + for ( + var symbolIterator = Symbol('Symbol.iterator'), + arrayLikes = + 'Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split( + ' ' + ), + i = 0; + i < arrayLikes.length; + i++ + ) { + var ArrayLikeCtor = $jscomp.global[arrayLikes[i]] + 'function' === typeof ArrayLikeCtor && + 'function' != typeof ArrayLikeCtor.prototype[symbolIterator] && + $jscomp.defineProperty( + ArrayLikeCtor.prototype, + symbolIterator, + { + configurable: !0, + writable: !0, + value: function () { + return $jscomp.iteratorPrototype( + $jscomp.arrayIteratorImpl(this) + ) + }, + } + ) + } + return symbolIterator + }, + 'es6', + 'es3' +) $jscomp.iteratorPrototype = function (next) { - var iterator = { next: next }; - iterator[Symbol.iterator] = function () { - return this; - }; - return iterator; -}; + var iterator = { next: next } + iterator[Symbol.iterator] = function () { + return this + } + return iterator +} $jscomp.createTemplateTagFirstArg = function (arrayStrings) { - return (arrayStrings.raw = arrayStrings); -}; + return (arrayStrings.raw = arrayStrings) +} $jscomp.createTemplateTagFirstArgWithRaw = function ( - arrayStrings, - rawArrayStrings + arrayStrings, + rawArrayStrings ) { - arrayStrings.raw = rawArrayStrings; - return arrayStrings; -}; + arrayStrings.raw = rawArrayStrings + return arrayStrings +} $jscomp.makeIterator = function (iterable) { - var iteratorFunction = - "undefined" != typeof Symbol && - Symbol.iterator && - iterable[Symbol.iterator]; - if (iteratorFunction) { - return iteratorFunction.call(iterable); - } - if ("number" == typeof iterable.length) { - return $jscomp.arrayIterator(iterable); - } - throw Error(String(iterable) + " is not an iterable or ArrayLike"); -}; + var iteratorFunction = + 'undefined' != typeof Symbol && + Symbol.iterator && + iterable[Symbol.iterator] + if (iteratorFunction) { + return iteratorFunction.call(iterable) + } + if ('number' == typeof iterable.length) { + return $jscomp.arrayIterator(iterable) + } + throw Error(String(iterable) + ' is not an iterable or ArrayLike') +} $jscomp.arrayFromIterator = function (iterator) { - for (var i, arr = []; !(i = iterator.next()).done; ) { - arr.push(i.value); - } - return arr; -}; + for (var i, arr = []; !(i = iterator.next()).done; ) { + arr.push(i.value) + } + return arr +} $jscomp.arrayFromIterable = function (iterable) { - return iterable instanceof Array - ? iterable - : $jscomp.arrayFromIterator($jscomp.makeIterator(iterable)); -}; + return iterable instanceof Array + ? iterable + : $jscomp.arrayFromIterator($jscomp.makeIterator(iterable)) +} $jscomp.owns = function (obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -}; + return Object.prototype.hasOwnProperty.call(obj, prop) +} $jscomp.assign = - $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.assign - ? Object.assign - : function (target, var_args) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - if (source) { - for (var key in source) { - $jscomp.owns(source, key) && (target[key] = source[key]); - } + $jscomp.TRUST_ES6_POLYFILLS && 'function' == typeof Object.assign + ? Object.assign + : function (target, var_args) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] + if (source) { + for (var key in source) { + $jscomp.owns(source, key) && + (target[key] = source[key]) + } + } + } + return target } - } - return target; - }; $jscomp.polyfill( - "Object.assign", - function (orig) { - return orig || $jscomp.assign; - }, - "es6", - "es3" -); + 'Object.assign', + function (orig) { + return orig || $jscomp.assign + }, + 'es6', + 'es3' +) $jscomp.objectCreate = - $jscomp.ASSUME_ES5 || "function" == typeof Object.create - ? Object.create - : function (prototype) { - var ctor = function () {}; - ctor.prototype = prototype; - return new ctor(); - }; + $jscomp.ASSUME_ES5 || 'function' == typeof Object.create + ? Object.create + : function (prototype) { + var ctor = function () {} + ctor.prototype = prototype + return new ctor() + } $jscomp.getConstructImplementation = function () { - function reflectConstructWorks() { - function Base() {} - new Base(); - Reflect.construct(Base, [], function () {}); - return new Base() instanceof Base; - } - if ( - $jscomp.TRUST_ES6_POLYFILLS && - "undefined" != typeof Reflect && - Reflect.construct - ) { - if (reflectConstructWorks()) { - return Reflect.construct; - } - var brokenConstruct = Reflect.construct; + function reflectConstructWorks() { + function Base() {} + new Base() + Reflect.construct(Base, [], function () {}) + return new Base() instanceof Base + } + if ( + $jscomp.TRUST_ES6_POLYFILLS && + 'undefined' != typeof Reflect && + Reflect.construct + ) { + if (reflectConstructWorks()) { + return Reflect.construct + } + var brokenConstruct = Reflect.construct + return function (target, argList, opt_newTarget) { + var out = brokenConstruct(target, argList) + opt_newTarget && + Reflect.setPrototypeOf(out, opt_newTarget.prototype) + return out + } + } return function (target, argList, opt_newTarget) { - var out = brokenConstruct(target, argList); - opt_newTarget && Reflect.setPrototypeOf(out, opt_newTarget.prototype); - return out; - }; - } - return function (target, argList, opt_newTarget) { - void 0 === opt_newTarget && (opt_newTarget = target); - var obj = $jscomp.objectCreate(opt_newTarget.prototype || Object.prototype); - return Function.prototype.apply.call(target, obj, argList) || obj; - }; -}; -$jscomp.construct = { valueOf: $jscomp.getConstructImplementation }.valueOf(); + void 0 === opt_newTarget && (opt_newTarget = target) + var obj = $jscomp.objectCreate( + opt_newTarget.prototype || Object.prototype + ) + return Function.prototype.apply.call(target, obj, argList) || obj + } +} +$jscomp.construct = { valueOf: $jscomp.getConstructImplementation }.valueOf() $jscomp.underscoreProtoCanBeSet = function () { - var x = { a: !0 }, - y = {}; - try { - return (y.__proto__ = x), y.a; - } catch (e) {} - return !1; -}; + var x = { a: !0 }, + y = {} + try { + return (y.__proto__ = x), y.a + } catch (e) {} + return !1 +} $jscomp.setPrototypeOf = - $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.setPrototypeOf - ? Object.setPrototypeOf - : $jscomp.underscoreProtoCanBeSet() - ? function (target, proto) { - target.__proto__ = proto; - if (target.__proto__ !== proto) { - throw new TypeError(target + " is not extensible"); - } - return target; - } - : null; + $jscomp.TRUST_ES6_POLYFILLS && 'function' == typeof Object.setPrototypeOf + ? Object.setPrototypeOf + : $jscomp.underscoreProtoCanBeSet() + ? function (target, proto) { + target.__proto__ = proto + if (target.__proto__ !== proto) { + throw new TypeError(target + ' is not extensible') + } + return target + } + : null $jscomp.inherits = function (childCtor, parentCtor) { - childCtor.prototype = $jscomp.objectCreate(parentCtor.prototype); - childCtor.prototype.constructor = childCtor; - if ($jscomp.setPrototypeOf) { - var setPrototypeOf = $jscomp.setPrototypeOf; - setPrototypeOf(childCtor, parentCtor); - } else { - for (var p in parentCtor) { - if ("prototype" != p) { - if (Object.defineProperties) { - var descriptor = Object.getOwnPropertyDescriptor(parentCtor, p); - descriptor && Object.defineProperty(childCtor, p, descriptor); - } else { - childCtor[p] = parentCtor[p]; + childCtor.prototype = $jscomp.objectCreate(parentCtor.prototype) + childCtor.prototype.constructor = childCtor + if ($jscomp.setPrototypeOf) { + var setPrototypeOf = $jscomp.setPrototypeOf + setPrototypeOf(childCtor, parentCtor) + } else { + for (var p in parentCtor) { + if ('prototype' != p) { + if (Object.defineProperties) { + var descriptor = Object.getOwnPropertyDescriptor( + parentCtor, + p + ) + descriptor && + Object.defineProperty(childCtor, p, descriptor) + } else { + childCtor[p] = parentCtor[p] + } + } } - } } - } - childCtor.superClass_ = parentCtor.prototype; -}; -$jscomp.generator = {}; + childCtor.superClass_ = parentCtor.prototype +} +$jscomp.generator = {} $jscomp.generator.ensureIteratorResultIsObject_ = function (result) { - if (!(result instanceof Object)) { - throw new TypeError("Iterator result " + result + " is not an object"); - } -}; + if (!(result instanceof Object)) { + throw new TypeError('Iterator result ' + result + ' is not an object') + } +} $jscomp.generator.Context = function () { - this.isRunning_ = !1; - this.yieldAllIterator_ = null; - this.yieldResult = void 0; - this.nextAddress = 1; - this.finallyAddress_ = this.catchAddress_ = 0; - this.finallyContexts_ = this.abruptCompletion_ = null; -}; + this.isRunning_ = !1 + this.yieldAllIterator_ = null + this.yieldResult = void 0 + this.nextAddress = 1 + this.finallyAddress_ = this.catchAddress_ = 0 + this.finallyContexts_ = this.abruptCompletion_ = null +} $jscomp.generator.Context.prototype.start_ = function () { - if (this.isRunning_) { - throw new TypeError("Generator is already running"); - } - this.isRunning_ = !0; -}; + if (this.isRunning_) { + throw new TypeError('Generator is already running') + } + this.isRunning_ = !0 +} $jscomp.generator.Context.prototype.stop_ = function () { - this.isRunning_ = !1; -}; + this.isRunning_ = !1 +} $jscomp.generator.Context.prototype.jumpToErrorHandler_ = function () { - this.nextAddress = this.catchAddress_ || this.finallyAddress_; -}; + this.nextAddress = this.catchAddress_ || this.finallyAddress_ +} $jscomp.generator.Context.prototype.next_ = function (value) { - this.yieldResult = value; -}; + this.yieldResult = value +} $jscomp.generator.Context.prototype.throw_ = function (e) { - this.abruptCompletion_ = { exception: e, isException: !0 }; - this.jumpToErrorHandler_(); -}; + this.abruptCompletion_ = { exception: e, isException: !0 } + this.jumpToErrorHandler_() +} $jscomp.generator.Context.prototype.return = function (value) { - this.abruptCompletion_ = { return: value }; - this.nextAddress = this.finallyAddress_; -}; + this.abruptCompletion_ = { return: value } + this.nextAddress = this.finallyAddress_ +} $jscomp.generator.Context.prototype.jumpThroughFinallyBlocks = function ( - nextAddress + nextAddress ) { - this.abruptCompletion_ = { jumpTo: nextAddress }; - this.nextAddress = this.finallyAddress_; -}; + this.abruptCompletion_ = { jumpTo: nextAddress } + this.nextAddress = this.finallyAddress_ +} $jscomp.generator.Context.prototype.yield = function (value, resumeAddress) { - this.nextAddress = resumeAddress; - return { value: value }; -}; + this.nextAddress = resumeAddress + return { value: value } +} $jscomp.generator.Context.prototype.yieldAll = function ( - iterable, - resumeAddress -) { - var iterator = $jscomp.makeIterator(iterable), - result = iterator.next(); - $jscomp.generator.ensureIteratorResultIsObject_(result); - if (result.done) { - (this.yieldResult = result.value), (this.nextAddress = resumeAddress); - } else { - return ( - (this.yieldAllIterator_ = iterator), - this.yield(result.value, resumeAddress) - ); - } -}; + iterable, + resumeAddress +) { + var iterator = $jscomp.makeIterator(iterable), + result = iterator.next() + $jscomp.generator.ensureIteratorResultIsObject_(result) + if (result.done) { + ;(this.yieldResult = result.value), (this.nextAddress = resumeAddress) + } else { + return ( + (this.yieldAllIterator_ = iterator), + this.yield(result.value, resumeAddress) + ) + } +} $jscomp.generator.Context.prototype.jumpTo = function (nextAddress) { - this.nextAddress = nextAddress; -}; + this.nextAddress = nextAddress +} $jscomp.generator.Context.prototype.jumpToEnd = function () { - this.nextAddress = 0; -}; + this.nextAddress = 0 +} $jscomp.generator.Context.prototype.setCatchFinallyBlocks = function ( - catchAddress, - finallyAddress + catchAddress, + finallyAddress ) { - this.catchAddress_ = catchAddress; - void 0 != finallyAddress && (this.finallyAddress_ = finallyAddress); -}; + this.catchAddress_ = catchAddress + void 0 != finallyAddress && (this.finallyAddress_ = finallyAddress) +} $jscomp.generator.Context.prototype.setFinallyBlock = function ( - finallyAddress + finallyAddress ) { - this.catchAddress_ = 0; - this.finallyAddress_ = finallyAddress || 0; -}; + this.catchAddress_ = 0 + this.finallyAddress_ = finallyAddress || 0 +} $jscomp.generator.Context.prototype.leaveTryBlock = function ( - nextAddress, - catchAddress + nextAddress, + catchAddress ) { - this.nextAddress = nextAddress; - this.catchAddress_ = catchAddress || 0; -}; + this.nextAddress = nextAddress + this.catchAddress_ = catchAddress || 0 +} $jscomp.generator.Context.prototype.enterCatchBlock = function ( - nextCatchBlockAddress + nextCatchBlockAddress ) { - this.catchAddress_ = nextCatchBlockAddress || 0; - var exception = this.abruptCompletion_.exception; - this.abruptCompletion_ = null; - return exception; -}; + this.catchAddress_ = nextCatchBlockAddress || 0 + var exception = this.abruptCompletion_.exception + this.abruptCompletion_ = null + return exception +} $jscomp.generator.Context.prototype.enterFinallyBlock = function ( - nextCatchAddress, - nextFinallyAddress, - finallyDepth -) { - finallyDepth - ? (this.finallyContexts_[finallyDepth] = this.abruptCompletion_) - : (this.finallyContexts_ = [this.abruptCompletion_]); - this.catchAddress_ = nextCatchAddress || 0; - this.finallyAddress_ = nextFinallyAddress || 0; -}; + nextCatchAddress, + nextFinallyAddress, + finallyDepth +) { + finallyDepth + ? (this.finallyContexts_[finallyDepth] = this.abruptCompletion_) + : (this.finallyContexts_ = [this.abruptCompletion_]) + this.catchAddress_ = nextCatchAddress || 0 + this.finallyAddress_ = nextFinallyAddress || 0 +} $jscomp.generator.Context.prototype.leaveFinallyBlock = function ( - nextAddress, - finallyDepth -) { - var preservedContext = this.finallyContexts_.splice(finallyDepth || 0)[0], - abruptCompletion = (this.abruptCompletion_ = - this.abruptCompletion_ || preservedContext); - if (abruptCompletion) { - if (abruptCompletion.isException) { - return this.jumpToErrorHandler_(); - } - void 0 != abruptCompletion.jumpTo && - this.finallyAddress_ < abruptCompletion.jumpTo - ? ((this.nextAddress = abruptCompletion.jumpTo), - (this.abruptCompletion_ = null)) - : (this.nextAddress = this.finallyAddress_); - } else { - this.nextAddress = nextAddress; - } -}; + nextAddress, + finallyDepth +) { + var preservedContext = this.finallyContexts_.splice(finallyDepth || 0)[0], + abruptCompletion = (this.abruptCompletion_ = + this.abruptCompletion_ || preservedContext) + if (abruptCompletion) { + if (abruptCompletion.isException) { + return this.jumpToErrorHandler_() + } + void 0 != abruptCompletion.jumpTo && + this.finallyAddress_ < abruptCompletion.jumpTo + ? ((this.nextAddress = abruptCompletion.jumpTo), + (this.abruptCompletion_ = null)) + : (this.nextAddress = this.finallyAddress_) + } else { + this.nextAddress = nextAddress + } +} $jscomp.generator.Context.prototype.forIn = function (object) { - return new $jscomp.generator.Context.PropertyIterator(object); -}; + return new $jscomp.generator.Context.PropertyIterator(object) +} $jscomp.generator.Context.PropertyIterator = function (object) { - this.object_ = object; - this.properties_ = []; - for (var property in object) { - this.properties_.push(property); - } - this.properties_.reverse(); -}; + this.object_ = object + this.properties_ = [] + for (var property in object) { + this.properties_.push(property) + } + this.properties_.reverse() +} $jscomp.generator.Context.PropertyIterator.prototype.getNext = function () { - for (; 0 < this.properties_.length; ) { - var property = this.properties_.pop(); - if (property in this.object_) { - return property; - } - } - return null; -}; + for (; 0 < this.properties_.length; ) { + var property = this.properties_.pop() + if (property in this.object_) { + return property + } + } + return null +} $jscomp.generator.Engine_ = function (program) { - this.context_ = new $jscomp.generator.Context(); - this.program_ = program; -}; + this.context_ = new $jscomp.generator.Context() + this.program_ = program +} $jscomp.generator.Engine_.prototype.next_ = function (value) { - this.context_.start_(); - if (this.context_.yieldAllIterator_) { - return this.yieldAllStep_( - this.context_.yieldAllIterator_.next, - value, - this.context_.next_ - ); - } - this.context_.next_(value); - return this.nextStep_(); -}; + this.context_.start_() + if (this.context_.yieldAllIterator_) { + return this.yieldAllStep_( + this.context_.yieldAllIterator_.next, + value, + this.context_.next_ + ) + } + this.context_.next_(value) + return this.nextStep_() +} $jscomp.generator.Engine_.prototype.return_ = function (value) { - this.context_.start_(); - var yieldAllIterator = this.context_.yieldAllIterator_; - if (yieldAllIterator) { - return this.yieldAllStep_( - "return" in yieldAllIterator - ? yieldAllIterator["return"] - : function (v) { - return { value: v, done: !0 }; - }, - value, - this.context_.return - ); - } - this.context_.return(value); - return this.nextStep_(); -}; + this.context_.start_() + var yieldAllIterator = this.context_.yieldAllIterator_ + if (yieldAllIterator) { + return this.yieldAllStep_( + 'return' in yieldAllIterator + ? yieldAllIterator['return'] + : function (v) { + return { value: v, done: !0 } + }, + value, + this.context_.return + ) + } + this.context_.return(value) + return this.nextStep_() +} $jscomp.generator.Engine_.prototype.throw_ = function (exception) { - this.context_.start_(); - if (this.context_.yieldAllIterator_) { - return this.yieldAllStep_( - this.context_.yieldAllIterator_["throw"], - exception, - this.context_.next_ - ); - } - this.context_.throw_(exception); - return this.nextStep_(); -}; + this.context_.start_() + if (this.context_.yieldAllIterator_) { + return this.yieldAllStep_( + this.context_.yieldAllIterator_['throw'], + exception, + this.context_.next_ + ) + } + this.context_.throw_(exception) + return this.nextStep_() +} $jscomp.generator.Engine_.prototype.yieldAllStep_ = function ( - action, - value, - nextAction -) { - try { - var result = action.call(this.context_.yieldAllIterator_, value); - $jscomp.generator.ensureIteratorResultIsObject_(result); - if (!result.done) { - return this.context_.stop_(), result; - } - var resultValue = result.value; - } catch (e) { - return ( - (this.context_.yieldAllIterator_ = null), - this.context_.throw_(e), - this.nextStep_() - ); - } - this.context_.yieldAllIterator_ = null; - nextAction.call(this.context_, resultValue); - return this.nextStep_(); -}; -$jscomp.generator.Engine_.prototype.nextStep_ = function () { - for (; this.context_.nextAddress; ) { + action, + value, + nextAction +) { try { - var yieldValue = this.program_(this.context_); - if (yieldValue) { - return this.context_.stop_(), { value: yieldValue.value, done: !1 }; - } + var result = action.call(this.context_.yieldAllIterator_, value) + $jscomp.generator.ensureIteratorResultIsObject_(result) + if (!result.done) { + return this.context_.stop_(), result + } + var resultValue = result.value } catch (e) { - (this.context_.yieldResult = void 0), this.context_.throw_(e); - } - } - this.context_.stop_(); - if (this.context_.abruptCompletion_) { - var abruptCompletion = this.context_.abruptCompletion_; - this.context_.abruptCompletion_ = null; - if (abruptCompletion.isException) { - throw abruptCompletion.exception; - } - return { value: abruptCompletion.return, done: !0 }; - } - return { value: void 0, done: !0 }; -}; -$jscomp.generator.Generator_ = function (engine) { - this.next = function (opt_value) { - return engine.next_(opt_value); - }; - this.throw = function (exception) { - return engine.throw_(exception); - }; - this.return = function (value) { - return engine.return_(value); - }; - this[Symbol.iterator] = function () { - return this; - }; -}; -$jscomp.generator.createGenerator = function (generator, program) { - var result = new $jscomp.generator.Generator_( - new $jscomp.generator.Engine_(program) - ); - $jscomp.setPrototypeOf && - generator.prototype && - $jscomp.setPrototypeOf(result, generator.prototype); - return result; -}; -$jscomp.asyncExecutePromiseGenerator = function (generator) { - function passValueToGenerator(value) { - return generator.next(value); - } - function passErrorToGenerator(error) { - return generator.throw(error); - } - return new Promise(function (resolve, reject) { - function handleGeneratorRecord(genRec) { - genRec.done - ? resolve(genRec.value) - : Promise.resolve(genRec.value) - .then(passValueToGenerator, passErrorToGenerator) - .then(handleGeneratorRecord, reject); - } - handleGeneratorRecord(generator.next()); - }); -}; -$jscomp.asyncExecutePromiseGeneratorFunction = function (generatorFunction) { - return $jscomp.asyncExecutePromiseGenerator(generatorFunction()); -}; -$jscomp.asyncExecutePromiseGeneratorProgram = function (program) { - return $jscomp.asyncExecutePromiseGenerator( - new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(program)) - ); -}; -$jscomp.getRestArguments = function () { - for ( - var startIndex = Number(this), restArgs = [], i = startIndex; - i < arguments.length; - i++ - ) { - restArgs[i - startIndex] = arguments[i]; - } - return restArgs; -}; -$jscomp.polyfill( - "Reflect", - function (orig) { - return orig ? orig : {}; - }, - "es6", - "es3" -); -$jscomp.polyfill( - "Reflect.construct", - function (orig) { - return $jscomp.construct; - }, - "es6", - "es3" -); -$jscomp.polyfill( - "Reflect.setPrototypeOf", - function (orig) { - if (orig) { - return orig; + return ( + (this.context_.yieldAllIterator_ = null), + this.context_.throw_(e), + this.nextStep_() + ) } - if ($jscomp.setPrototypeOf) { - var setPrototypeOf = $jscomp.setPrototypeOf; - return function (target, proto) { + this.context_.yieldAllIterator_ = null + nextAction.call(this.context_, resultValue) + return this.nextStep_() +} +$jscomp.generator.Engine_.prototype.nextStep_ = function () { + for (; this.context_.nextAddress; ) { try { - return setPrototypeOf(target, proto), !0; + var yieldValue = this.program_(this.context_) + if (yieldValue) { + return ( + this.context_.stop_(), { value: yieldValue.value, done: !1 } + ) + } } catch (e) { - return !1; + ;(this.context_.yieldResult = void 0), this.context_.throw_(e) } - }; - } - return null; - }, - "es6", - "es5" -); -$jscomp.polyfill( - "Promise", - function (NativePromise) { - function platformSupportsPromiseRejectionEvents() { - return "undefined" !== typeof $jscomp.global.PromiseRejectionEvent; - } - function globalPromiseIsNative() { - return ( - $jscomp.global.Promise && - -1 !== $jscomp.global.Promise.toString().indexOf("[native code]") - ); - } - function shouldForcePolyfillPromise() { - return ( - ($jscomp.FORCE_POLYFILL_PROMISE || - ($jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION && - !platformSupportsPromiseRejectionEvents())) && - globalPromiseIsNative() - ); - } - function AsyncExecutor() { - this.batch_ = null; - } - function isObject(value) { - switch (typeof value) { - case "object": - return null != value; - case "function": - return !0; - default: - return !1; - } } - function resolvingPromise(opt_value) { - return opt_value instanceof PolyfillPromise - ? opt_value - : new PolyfillPromise(function (resolve, reject) { - resolve(opt_value); - }); - } - if (NativePromise && !shouldForcePolyfillPromise()) { - return NativePromise; - } - AsyncExecutor.prototype.asyncExecute = function (f) { - if (null == this.batch_) { - this.batch_ = []; - var self = this; - this.asyncExecuteFunction(function () { - self.executeBatch_(); - }); - } - this.batch_.push(f); - }; - var nativeSetTimeout = $jscomp.global.setTimeout; - AsyncExecutor.prototype.asyncExecuteFunction = function (f) { - nativeSetTimeout(f, 0); - }; - AsyncExecutor.prototype.executeBatch_ = function () { - for (; this.batch_ && this.batch_.length; ) { - var executingBatch = this.batch_; - this.batch_ = []; - for (var i = 0; i < executingBatch.length; ++i) { - var f = executingBatch[i]; - executingBatch[i] = null; - try { - f(); - } catch (error) { - this.asyncThrow_(error); - } - } - } - this.batch_ = null; - }; - AsyncExecutor.prototype.asyncThrow_ = function (exception) { - this.asyncExecuteFunction(function () { - throw exception; - }); - }; - var PromiseState = { PENDING: 0, FULFILLED: 1, REJECTED: 2 }, - PolyfillPromise = function (executor) { - this.state_ = PromiseState.PENDING; - this.result_ = void 0; - this.onSettledCallbacks_ = []; - this.isRejectionHandled_ = !1; - var resolveAndReject = this.createResolveAndReject_(); - try { - executor(resolveAndReject.resolve, resolveAndReject.reject); - } catch (e) { - resolveAndReject.reject(e); - } - }; - PolyfillPromise.prototype.createResolveAndReject_ = function () { - function firstCallWins(method) { - return function (x) { - alreadyCalled || ((alreadyCalled = !0), method.call(thisPromise, x)); - }; - } - var thisPromise = this, - alreadyCalled = !1; - return { - resolve: firstCallWins(this.resolveTo_), - reject: firstCallWins(this.reject_), - }; - }; - PolyfillPromise.prototype.resolveTo_ = function (value) { - value === this - ? this.reject_(new TypeError("A Promise cannot resolve to itself")) - : value instanceof PolyfillPromise - ? this.settleSameAsPromise_(value) - : isObject(value) - ? this.resolveToNonPromiseObj_(value) - : this.fulfill_(value); - }; - PolyfillPromise.prototype.resolveToNonPromiseObj_ = function (obj) { - var thenMethod = void 0; - try { - thenMethod = obj.then; - } catch (error) { - this.reject_(error); - return; - } - "function" == typeof thenMethod - ? this.settleSameAsThenable_(thenMethod, obj) - : this.fulfill_(obj); - }; - PolyfillPromise.prototype.reject_ = function (reason) { - this.settle_(PromiseState.REJECTED, reason); - }; - PolyfillPromise.prototype.fulfill_ = function (value) { - this.settle_(PromiseState.FULFILLED, value); - }; - PolyfillPromise.prototype.settle_ = function (settledState, valueOrReason) { - if (this.state_ != PromiseState.PENDING) { - throw Error( - "Cannot settle(" + - settledState + - ", " + - valueOrReason + - "): Promise already settled in state" + - this.state_ - ); - } - this.state_ = settledState; - this.result_ = valueOrReason; - this.state_ === PromiseState.REJECTED && - this.scheduleUnhandledRejectionCheck_(); - this.executeOnSettledCallbacks_(); - }; - PolyfillPromise.prototype.scheduleUnhandledRejectionCheck_ = function () { - var self = this; - nativeSetTimeout(function () { - if (self.notifyUnhandledRejection_()) { - var nativeConsole = $jscomp.global.console; - "undefined" !== typeof nativeConsole && - nativeConsole.error(self.result_); - } - }, 1); - }; - PolyfillPromise.prototype.notifyUnhandledRejection_ = function () { - if (this.isRejectionHandled_) { - return !1; - } - var NativeCustomEvent = $jscomp.global.CustomEvent, - NativeEvent = $jscomp.global.Event, - nativeDispatchEvent = $jscomp.global.dispatchEvent; - if ("undefined" === typeof nativeDispatchEvent) { - return !0; - } - if ("function" === typeof NativeCustomEvent) { - var event = new NativeCustomEvent("unhandledrejection", { - cancelable: !0, - }); - } else { - "function" === typeof NativeEvent - ? (event = new NativeEvent("unhandledrejection", { cancelable: !0 })) - : ((event = $jscomp.global.document.createEvent("CustomEvent")), - event.initCustomEvent("unhandledrejection", !1, !0, event)); - } - event.promise = this; - event.reason = this.result_; - return nativeDispatchEvent(event); - }; - PolyfillPromise.prototype.executeOnSettledCallbacks_ = function () { - if (null != this.onSettledCallbacks_) { - for (var i = 0; i < this.onSettledCallbacks_.length; ++i) { - asyncExecutor.asyncExecute(this.onSettledCallbacks_[i]); - } - this.onSettledCallbacks_ = null; - } - }; - var asyncExecutor = new AsyncExecutor(); - PolyfillPromise.prototype.settleSameAsPromise_ = function (promise) { - var methods = this.createResolveAndReject_(); - promise.callWhenSettled_(methods.resolve, methods.reject); - }; - PolyfillPromise.prototype.settleSameAsThenable_ = function ( - thenMethod, - thenable - ) { - var methods = this.createResolveAndReject_(); - try { - thenMethod.call(thenable, methods.resolve, methods.reject); - } catch (error) { - methods.reject(error); - } - }; - PolyfillPromise.prototype.then = function (onFulfilled, onRejected) { - function createCallback(paramF, defaultF) { - return "function" == typeof paramF - ? function (x) { - try { - resolveChild(paramF(x)); - } catch (error) { - rejectChild(error); - } - } - : defaultF; - } - var resolveChild, - rejectChild, - childPromise = new PolyfillPromise(function (resolve, reject) { - resolveChild = resolve; - rejectChild = reject; - }); - this.callWhenSettled_( - createCallback(onFulfilled, resolveChild), - createCallback(onRejected, rejectChild) - ); - return childPromise; - }; - PolyfillPromise.prototype.catch = function (onRejected) { - return this.then(void 0, onRejected); - }; - PolyfillPromise.prototype.callWhenSettled_ = function ( - onFulfilled, - onRejected - ) { - function callback() { - switch (thisPromise.state_) { - case PromiseState.FULFILLED: - onFulfilled(thisPromise.result_); - break; - case PromiseState.REJECTED: - onRejected(thisPromise.result_); - break; - default: - throw Error("Unexpected state: " + thisPromise.state_); + this.context_.stop_() + if (this.context_.abruptCompletion_) { + var abruptCompletion = this.context_.abruptCompletion_ + this.context_.abruptCompletion_ = null + if (abruptCompletion.isException) { + throw abruptCompletion.exception } - } - var thisPromise = this; - null == this.onSettledCallbacks_ - ? asyncExecutor.asyncExecute(callback) - : this.onSettledCallbacks_.push(callback); - this.isRejectionHandled_ = !0; - }; - PolyfillPromise.resolve = resolvingPromise; - PolyfillPromise.reject = function (opt_reason) { - return new PolyfillPromise(function (resolve, reject) { - reject(opt_reason); - }); - }; - PolyfillPromise.race = function (thenablesOrValues) { - return new PolyfillPromise(function (resolve, reject) { - for ( - var iterator = $jscomp.makeIterator(thenablesOrValues), - iterRec = iterator.next(); - !iterRec.done; - iterRec = iterator.next() - ) { - resolvingPromise(iterRec.value).callWhenSettled_(resolve, reject); - } - }); - }; - PolyfillPromise.all = function (thenablesOrValues) { - var iterator = $jscomp.makeIterator(thenablesOrValues), - iterRec = iterator.next(); - return iterRec.done - ? resolvingPromise([]) - : new PolyfillPromise(function (resolveAll, rejectAll) { - function onFulfilled(i) { - return function (ithResult) { - resultsArray[i] = ithResult; - unresolvedCount--; - 0 == unresolvedCount && resolveAll(resultsArray); - }; - } - var resultsArray = [], - unresolvedCount = 0; - do { - resultsArray.push(void 0), - unresolvedCount++, - resolvingPromise(iterRec.value).callWhenSettled_( - onFulfilled(resultsArray.length - 1), - rejectAll - ), - (iterRec = iterator.next()); - } while (!iterRec.done); - }); - }; - return PolyfillPromise; - }, - "es6", - "es3" -); -$jscomp.checkEs6ConformanceViaProxy = function () { - try { - var proxied = {}, - proxy = Object.create( - new $jscomp.global.Proxy(proxied, { - get: function (target, key, receiver) { - return target == proxied && "q" == key && receiver == proxy; - }, - }) - ); - return !0 === proxy.q; - } catch (err) { - return !1; - } -}; -$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS = !1; -$jscomp.ES6_CONFORMANCE = - $jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS && - $jscomp.checkEs6ConformanceViaProxy(); -$jscomp.polyfill( - "WeakMap", - function (NativeWeakMap) { - function isConformant() { - if (!NativeWeakMap || !Object.seal) { - return !1; - } - try { - var x = Object.seal({}), - y = Object.seal({}), - map = new NativeWeakMap([ - [x, 2], - [y, 3], - ]); - if (2 != map.get(x) || 3 != map.get(y)) { - return !1; - } - map.delete(x); - map.set(y, 4); - return !map.has(x) && 4 == map.get(y); - } catch (err) { - return !1; - } + return { value: abruptCompletion.return, done: !0 } } - function WeakMapMembership() {} - function isValidKey(key) { - var type = typeof key; - return ("object" === type && null !== key) || "function" === type; + return { value: void 0, done: !0 } +} +$jscomp.generator.Generator_ = function (engine) { + this.next = function (opt_value) { + return engine.next_(opt_value) } - function insert(target) { - if (!$jscomp.owns(target, prop)) { - var obj = new WeakMapMembership(); - $jscomp.defineProperty(target, prop, { value: obj }); - } + this.throw = function (exception) { + return engine.throw_(exception) } - function patch(name) { - if (!$jscomp.ISOLATE_POLYFILLS) { - var prev = Object[name]; - prev && - (Object[name] = function (target) { - if (target instanceof WeakMapMembership) { - return target; - } - Object.isExtensible(target) && insert(target); - return prev(target); - }); - } + this.return = function (value) { + return engine.return_(value) } - if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { - if (NativeWeakMap && $jscomp.ES6_CONFORMANCE) { - return NativeWeakMap; - } - } else { - if (isConformant()) { - return NativeWeakMap; - } + this[Symbol.iterator] = function () { + return this } - var prop = "$jscomp_hidden_" + Math.random(); - patch("freeze"); - patch("preventExtensions"); - patch("seal"); - var index = 0, - PolyfillWeakMap = function (opt_iterable) { - this.id_ = (index += Math.random() + 1).toString(); - if (opt_iterable) { - for ( - var iter = $jscomp.makeIterator(opt_iterable), entry; - !(entry = iter.next()).done; - - ) { - var item = entry.value; - this.set(item[0], item[1]); - } - } - }; - PolyfillWeakMap.prototype.set = function (key, value) { - if (!isValidKey(key)) { - throw Error("Invalid WeakMap key"); - } - insert(key); - if (!$jscomp.owns(key, prop)) { - throw Error("WeakMap key fail: " + key); - } - key[prop][this.id_] = value; - return this; - }; - PolyfillWeakMap.prototype.get = function (key) { - return isValidKey(key) && $jscomp.owns(key, prop) - ? key[prop][this.id_] - : void 0; - }; - PolyfillWeakMap.prototype.has = function (key) { - return ( - isValidKey(key) && - $jscomp.owns(key, prop) && - $jscomp.owns(key[prop], this.id_) - ); - }; - PolyfillWeakMap.prototype.delete = function (key) { - return isValidKey(key) && - $jscomp.owns(key, prop) && - $jscomp.owns(key[prop], this.id_) - ? delete key[prop][this.id_] - : !1; - }; - return PolyfillWeakMap; - }, - "es6", - "es3" -); -$jscomp.MapEntry = function () {}; -$jscomp.polyfill( - "Map", - function (NativeMap) { - function isConformant() { - if ( - $jscomp.ASSUME_NO_NATIVE_MAP || - !NativeMap || - "function" != typeof NativeMap || - !NativeMap.prototype.entries || - "function" != typeof Object.seal - ) { - return !1; - } - try { - var key = Object.seal({ x: 4 }), - map = new NativeMap($jscomp.makeIterator([[key, "s"]])); - if ( - "s" != map.get(key) || - 1 != map.size || - map.get({ x: 4 }) || - map.set({ x: 4 }, "t") != map || - 2 != map.size - ) { - return !1; - } - var iter = map.entries(), - item = iter.next(); - if (item.done || item.value[0] != key || "s" != item.value[1]) { - return !1; - } - item = iter.next(); - return item.done || - 4 != item.value[0].x || - "t" != item.value[1] || - !iter.next().done - ? !1 - : !0; - } catch (err) { - return !1; - } +} +$jscomp.generator.createGenerator = function (generator, program) { + var result = new $jscomp.generator.Generator_( + new $jscomp.generator.Engine_(program) + ) + $jscomp.setPrototypeOf && + generator.prototype && + $jscomp.setPrototypeOf(result, generator.prototype) + return result +} +$jscomp.asyncExecutePromiseGenerator = function (generator) { + function passValueToGenerator(value) { + return generator.next(value) } - if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { - if (NativeMap && $jscomp.ES6_CONFORMANCE) { - return NativeMap; - } - } else { - if (isConformant()) { - return NativeMap; - } + function passErrorToGenerator(error) { + return generator.throw(error) } - var idMap = new WeakMap(), - PolyfillMap = function (opt_iterable) { - this[0] = {}; - this[1] = createHead(); - this.size = 0; - if (opt_iterable) { - for ( - var iter = $jscomp.makeIterator(opt_iterable), entry; - !(entry = iter.next()).done; - - ) { - var item = entry.value; - this.set(item[0], item[1]); - } - } - }; - PolyfillMap.prototype.set = function (key, value) { - key = 0 === key ? 0 : key; - var r = maybeGetEntry(this, key); - r.list || (r.list = this[0][r.id] = []); - r.entry - ? (r.entry.value = value) - : ((r.entry = { - next: this[1], - previous: this[1].previous, - head: this[1], - key: key, - value: value, - }), - r.list.push(r.entry), - (this[1].previous.next = r.entry), - (this[1].previous = r.entry), - this.size++); - return this; - }; - PolyfillMap.prototype.delete = function (key) { - var r = maybeGetEntry(this, key); - return r.entry && r.list - ? (r.list.splice(r.index, 1), - r.list.length || delete this[0][r.id], - (r.entry.previous.next = r.entry.next), - (r.entry.next.previous = r.entry.previous), - (r.entry.head = null), - this.size--, - !0) - : !1; - }; - PolyfillMap.prototype.clear = function () { - this[0] = {}; - this[1] = this[1].previous = createHead(); - this.size = 0; - }; - PolyfillMap.prototype.has = function (key) { - return !!maybeGetEntry(this, key).entry; - }; - PolyfillMap.prototype.get = function (key) { - var entry = maybeGetEntry(this, key).entry; - return entry && entry.value; - }; - PolyfillMap.prototype.entries = function () { - return makeIterator(this, function (entry) { - return [entry.key, entry.value]; - }); - }; - PolyfillMap.prototype.keys = function () { - return makeIterator(this, function (entry) { - return entry.key; - }); - }; - PolyfillMap.prototype.values = function () { - return makeIterator(this, function (entry) { - return entry.value; - }); - }; - PolyfillMap.prototype.forEach = function (callback, opt_thisArg) { - for (var iter = this.entries(), item; !(item = iter.next()).done; ) { - var entry = item.value; - callback.call(opt_thisArg, entry[1], entry[0], this); - } - }; - PolyfillMap.prototype[Symbol.iterator] = PolyfillMap.prototype.entries; - var maybeGetEntry = function (map, key) { - var id = getId(key), - list = map[0][id]; - if (list && $jscomp.owns(map[0], id)) { - for (var index = 0; index < list.length; index++) { - var entry = list[index]; - if ((key !== key && entry.key !== entry.key) || key === entry.key) { - return { id: id, list: list, index: index, entry: entry }; - } - } + return new Promise(function (resolve, reject) { + function handleGeneratorRecord(genRec) { + genRec.done + ? resolve(genRec.value) + : Promise.resolve(genRec.value) + .then(passValueToGenerator, passErrorToGenerator) + .then(handleGeneratorRecord, reject) } - return { id: id, list: list, index: -1, entry: void 0 }; - }, - makeIterator = function (map, func) { - var entry = map[1]; - return $jscomp.iteratorPrototype(function () { - if (entry) { - for (; entry.head != map[1]; ) { - entry = entry.previous; - } - for (; entry.next != entry.head; ) { - return (entry = entry.next), { done: !1, value: func(entry) }; - } - entry = null; - } - return { done: !0, value: void 0 }; - }); - }, - createHead = function () { - var head = {}; - return (head.previous = head.next = head.head = head); - }, - mapIndex = 0, - getId = function (obj) { - var type = obj && typeof obj; - if ("object" == type || "function" == type) { - if (!idMap.has(obj)) { - var id = "" + ++mapIndex; - idMap.set(obj, id); - return id; - } - return idMap.get(obj); - } - return "p_" + obj; - }; - return PolyfillMap; - }, - "es6", - "es3" -); + handleGeneratorRecord(generator.next()) + }) +} +$jscomp.asyncExecutePromiseGeneratorFunction = function (generatorFunction) { + return $jscomp.asyncExecutePromiseGenerator(generatorFunction()) +} +$jscomp.asyncExecutePromiseGeneratorProgram = function (program) { + return $jscomp.asyncExecutePromiseGenerator( + new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(program)) + ) +} +$jscomp.getRestArguments = function () { + for ( + var startIndex = Number(this), restArgs = [], i = startIndex; + i < arguments.length; + i++ + ) { + restArgs[i - startIndex] = arguments[i] + } + return restArgs +} $jscomp.polyfill( - "Object.setPrototypeOf", - function (orig) { - return orig || $jscomp.setPrototypeOf; - }, - "es6", - "es5" -); -$jscomp.findInternal = function (array, callback, thisArg) { - array instanceof String && (array = String(array)); - for (var len = array.length, i = 0; i < len; i++) { - var value = array[i]; - if (callback.call(thisArg, value, i, array)) { - return { i: i, v: value }; - } - } - return { i: -1, v: void 0 }; -}; + 'Reflect', + function (orig) { + return orig ? orig : {} + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "Array.prototype.find", - function (orig) { - return orig - ? orig - : function (callback, opt_thisArg) { - return $jscomp.findInternal(this, callback, opt_thisArg).v; - }; - }, - "es6", - "es3" -); -$jscomp.checkStringArgs = function (thisArg, arg, func) { - if (null == thisArg) { - throw new TypeError( - "The 'this' value for String.prototype." + - func + - " must not be null or undefined" - ); - } - if (arg instanceof RegExp) { - throw new TypeError( - "First argument to String.prototype." + - func + - " must not be a regular expression" - ); - } - return thisArg + ""; -}; + 'Reflect.construct', + function (orig) { + return $jscomp.construct + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "String.prototype.repeat", - function (orig) { - return orig - ? orig - : function (copies) { - var string = $jscomp.checkStringArgs(this, null, "repeat"); - if (0 > copies || 1342177279 < copies) { - throw new RangeError("Invalid count value"); - } - copies |= 0; - for (var result = ""; copies; ) { - if ((copies & 1 && (result += string), (copies >>>= 1))) { - string += string; + 'Reflect.setPrototypeOf', + function (orig) { + if (orig) { + return orig + } + if ($jscomp.setPrototypeOf) { + var setPrototypeOf = $jscomp.setPrototypeOf + return function (target, proto) { + try { + return setPrototypeOf(target, proto), !0 + } catch (e) { + return !1 + } } - } - return result; - }; - }, - "es6", - "es3" -); -$jscomp.iteratorFromArray = function (array, transform) { - array instanceof String && (array += ""); - var i = 0, - done = !1, - iter = { - next: function () { - if (!done && i < array.length) { - var index = i++; - return { value: transform(index, array[index]), done: !1 }; - } - done = !0; - return { done: !0, value: void 0 }; - }, - }; - iter[Symbol.iterator] = function () { - return iter; - }; - return iter; -}; -$jscomp.polyfill( - "Array.prototype.keys", - function (orig) { - return orig - ? orig - : function () { - return $jscomp.iteratorFromArray(this, function (i) { - return i; - }); - }; - }, - "es6", - "es3" -); + } + return null + }, + 'es6', + 'es5' +) $jscomp.polyfill( - "Array.from", - function (orig) { - return orig - ? orig - : function (arrayLike, opt_mapFn, opt_thisArg) { - opt_mapFn = - null != opt_mapFn - ? opt_mapFn - : function (x) { - return x; - }; - var result = [], - iteratorFunction = - "undefined" != typeof Symbol && - Symbol.iterator && - arrayLike[Symbol.iterator]; - if ("function" == typeof iteratorFunction) { - arrayLike = iteratorFunction.call(arrayLike); - for (var next, k = 0; !(next = arrayLike.next()).done; ) { - result.push(opt_mapFn.call(opt_thisArg, next.value, k++)); + 'Promise', + function (NativePromise) { + function platformSupportsPromiseRejectionEvents() { + return 'undefined' !== typeof $jscomp.global.PromiseRejectionEvent + } + function globalPromiseIsNative() { + return ( + $jscomp.global.Promise && + -1 !== + $jscomp.global.Promise.toString().indexOf('[native code]') + ) + } + function shouldForcePolyfillPromise() { + return ( + ($jscomp.FORCE_POLYFILL_PROMISE || + ($jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION && + !platformSupportsPromiseRejectionEvents())) && + globalPromiseIsNative() + ) + } + function AsyncExecutor() { + this.batch_ = null + } + function isObject(value) { + switch (typeof value) { + case 'object': + return null != value + case 'function': + return !0 + default: + return !1 + } + } + function resolvingPromise(opt_value) { + return opt_value instanceof PolyfillPromise + ? opt_value + : new PolyfillPromise(function (resolve, reject) { + resolve(opt_value) + }) + } + if (NativePromise && !shouldForcePolyfillPromise()) { + return NativePromise + } + AsyncExecutor.prototype.asyncExecute = function (f) { + if (null == this.batch_) { + this.batch_ = [] + var self = this + this.asyncExecuteFunction(function () { + self.executeBatch_() + }) } - } else { - for (var len = arrayLike.length, i = 0; i < len; i++) { - result.push(opt_mapFn.call(opt_thisArg, arrayLike[i], i)); + this.batch_.push(f) + } + var nativeSetTimeout = $jscomp.global.setTimeout + AsyncExecutor.prototype.asyncExecuteFunction = function (f) { + nativeSetTimeout(f, 0) + } + AsyncExecutor.prototype.executeBatch_ = function () { + for (; this.batch_ && this.batch_.length; ) { + var executingBatch = this.batch_ + this.batch_ = [] + for (var i = 0; i < executingBatch.length; ++i) { + var f = executingBatch[i] + executingBatch[i] = null + try { + f() + } catch (error) { + this.asyncThrow_(error) + } + } } - } - return result; - }; - }, - "es6", - "es3" -); -$jscomp.polyfill( - "Array.prototype.values", - function (orig) { - return orig - ? orig - : function () { - return $jscomp.iteratorFromArray(this, function (k, v) { - return v; - }); - }; - }, - "es8", - "es3" -); + this.batch_ = null + } + AsyncExecutor.prototype.asyncThrow_ = function (exception) { + this.asyncExecuteFunction(function () { + throw exception + }) + } + var PromiseState = { PENDING: 0, FULFILLED: 1, REJECTED: 2 }, + PolyfillPromise = function (executor) { + this.state_ = PromiseState.PENDING + this.result_ = void 0 + this.onSettledCallbacks_ = [] + this.isRejectionHandled_ = !1 + var resolveAndReject = this.createResolveAndReject_() + try { + executor(resolveAndReject.resolve, resolveAndReject.reject) + } catch (e) { + resolveAndReject.reject(e) + } + } + PolyfillPromise.prototype.createResolveAndReject_ = function () { + function firstCallWins(method) { + return function (x) { + alreadyCalled || + ((alreadyCalled = !0), method.call(thisPromise, x)) + } + } + var thisPromise = this, + alreadyCalled = !1 + return { + resolve: firstCallWins(this.resolveTo_), + reject: firstCallWins(this.reject_), + } + } + PolyfillPromise.prototype.resolveTo_ = function (value) { + value === this + ? this.reject_( + new TypeError('A Promise cannot resolve to itself') + ) + : value instanceof PolyfillPromise + ? this.settleSameAsPromise_(value) + : isObject(value) + ? this.resolveToNonPromiseObj_(value) + : this.fulfill_(value) + } + PolyfillPromise.prototype.resolveToNonPromiseObj_ = function (obj) { + var thenMethod = void 0 + try { + thenMethod = obj.then + } catch (error) { + this.reject_(error) + return + } + 'function' == typeof thenMethod + ? this.settleSameAsThenable_(thenMethod, obj) + : this.fulfill_(obj) + } + PolyfillPromise.prototype.reject_ = function (reason) { + this.settle_(PromiseState.REJECTED, reason) + } + PolyfillPromise.prototype.fulfill_ = function (value) { + this.settle_(PromiseState.FULFILLED, value) + } + PolyfillPromise.prototype.settle_ = function ( + settledState, + valueOrReason + ) { + if (this.state_ != PromiseState.PENDING) { + throw Error( + 'Cannot settle(' + + settledState + + ', ' + + valueOrReason + + '): Promise already settled in state' + + this.state_ + ) + } + this.state_ = settledState + this.result_ = valueOrReason + this.state_ === PromiseState.REJECTED && + this.scheduleUnhandledRejectionCheck_() + this.executeOnSettledCallbacks_() + } + PolyfillPromise.prototype.scheduleUnhandledRejectionCheck_ = + function () { + var self = this + nativeSetTimeout(function () { + if (self.notifyUnhandledRejection_()) { + var nativeConsole = $jscomp.global.console + 'undefined' !== typeof nativeConsole && + nativeConsole.error(self.result_) + } + }, 1) + } + PolyfillPromise.prototype.notifyUnhandledRejection_ = function () { + if (this.isRejectionHandled_) { + return !1 + } + var NativeCustomEvent = $jscomp.global.CustomEvent, + NativeEvent = $jscomp.global.Event, + nativeDispatchEvent = $jscomp.global.dispatchEvent + if ('undefined' === typeof nativeDispatchEvent) { + return !0 + } + if ('function' === typeof NativeCustomEvent) { + var event = new NativeCustomEvent('unhandledrejection', { + cancelable: !0, + }) + } else { + 'function' === typeof NativeEvent + ? (event = new NativeEvent('unhandledrejection', { + cancelable: !0, + })) + : ((event = + $jscomp.global.document.createEvent('CustomEvent')), + event.initCustomEvent( + 'unhandledrejection', + !1, + !0, + event + )) + } + event.promise = this + event.reason = this.result_ + return nativeDispatchEvent(event) + } + PolyfillPromise.prototype.executeOnSettledCallbacks_ = function () { + if (null != this.onSettledCallbacks_) { + for (var i = 0; i < this.onSettledCallbacks_.length; ++i) { + asyncExecutor.asyncExecute(this.onSettledCallbacks_[i]) + } + this.onSettledCallbacks_ = null + } + } + var asyncExecutor = new AsyncExecutor() + PolyfillPromise.prototype.settleSameAsPromise_ = function (promise) { + var methods = this.createResolveAndReject_() + promise.callWhenSettled_(methods.resolve, methods.reject) + } + PolyfillPromise.prototype.settleSameAsThenable_ = function ( + thenMethod, + thenable + ) { + var methods = this.createResolveAndReject_() + try { + thenMethod.call(thenable, methods.resolve, methods.reject) + } catch (error) { + methods.reject(error) + } + } + PolyfillPromise.prototype.then = function (onFulfilled, onRejected) { + function createCallback(paramF, defaultF) { + return 'function' == typeof paramF + ? function (x) { + try { + resolveChild(paramF(x)) + } catch (error) { + rejectChild(error) + } + } + : defaultF + } + var resolveChild, + rejectChild, + childPromise = new PolyfillPromise(function (resolve, reject) { + resolveChild = resolve + rejectChild = reject + }) + this.callWhenSettled_( + createCallback(onFulfilled, resolveChild), + createCallback(onRejected, rejectChild) + ) + return childPromise + } + PolyfillPromise.prototype.catch = function (onRejected) { + return this.then(void 0, onRejected) + } + PolyfillPromise.prototype.callWhenSettled_ = function ( + onFulfilled, + onRejected + ) { + function callback() { + switch (thisPromise.state_) { + case PromiseState.FULFILLED: + onFulfilled(thisPromise.result_) + break + case PromiseState.REJECTED: + onRejected(thisPromise.result_) + break + default: + throw Error('Unexpected state: ' + thisPromise.state_) + } + } + var thisPromise = this + null == this.onSettledCallbacks_ + ? asyncExecutor.asyncExecute(callback) + : this.onSettledCallbacks_.push(callback) + this.isRejectionHandled_ = !0 + } + PolyfillPromise.resolve = resolvingPromise + PolyfillPromise.reject = function (opt_reason) { + return new PolyfillPromise(function (resolve, reject) { + reject(opt_reason) + }) + } + PolyfillPromise.race = function (thenablesOrValues) { + return new PolyfillPromise(function (resolve, reject) { + for ( + var iterator = $jscomp.makeIterator(thenablesOrValues), + iterRec = iterator.next(); + !iterRec.done; + iterRec = iterator.next() + ) { + resolvingPromise(iterRec.value).callWhenSettled_( + resolve, + reject + ) + } + }) + } + PolyfillPromise.all = function (thenablesOrValues) { + var iterator = $jscomp.makeIterator(thenablesOrValues), + iterRec = iterator.next() + return iterRec.done + ? resolvingPromise([]) + : new PolyfillPromise(function (resolveAll, rejectAll) { + function onFulfilled(i) { + return function (ithResult) { + resultsArray[i] = ithResult + unresolvedCount-- + 0 == unresolvedCount && resolveAll(resultsArray) + } + } + var resultsArray = [], + unresolvedCount = 0 + do { + resultsArray.push(void 0), + unresolvedCount++, + resolvingPromise(iterRec.value).callWhenSettled_( + onFulfilled(resultsArray.length - 1), + rejectAll + ), + (iterRec = iterator.next()) + } while (!iterRec.done) + }) + } + return PolyfillPromise + }, + 'es6', + 'es3' +) +$jscomp.checkEs6ConformanceViaProxy = function () { + try { + var proxied = {}, + proxy = Object.create( + new $jscomp.global.Proxy(proxied, { + get: function (target, key, receiver) { + return ( + target == proxied && 'q' == key && receiver == proxy + ) + }, + }) + ) + return !0 === proxy.q + } catch (err) { + return !1 + } +} +$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS = !1 +$jscomp.ES6_CONFORMANCE = + $jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS && + $jscomp.checkEs6ConformanceViaProxy() $jscomp.polyfill( - "String.prototype.endsWith", - function (orig) { - return orig - ? orig - : function (searchString, opt_position) { - var string = $jscomp.checkStringArgs(this, searchString, "endsWith"); - searchString += ""; - void 0 === opt_position && (opt_position = string.length); - for ( - var i = Math.max(0, Math.min(opt_position | 0, string.length)), - j = searchString.length; - 0 < j && 0 < i; + 'WeakMap', + function (NativeWeakMap) { + function isConformant() { + if (!NativeWeakMap || !Object.seal) { + return !1 + } + try { + var x = Object.seal({}), + y = Object.seal({}), + map = new NativeWeakMap([ + [x, 2], + [y, 3], + ]) + if (2 != map.get(x) || 3 != map.get(y)) { + return !1 + } + map.delete(x) + map.set(y, 4) + return !map.has(x) && 4 == map.get(y) + } catch (err) { + return !1 + } + } + function WeakMapMembership() {} + function isValidKey(key) { + var type = typeof key + return ('object' === type && null !== key) || 'function' === type + } + function insert(target) { + if (!$jscomp.owns(target, prop)) { + var obj = new WeakMapMembership() + $jscomp.defineProperty(target, prop, { value: obj }) + } + } + function patch(name) { + if (!$jscomp.ISOLATE_POLYFILLS) { + var prev = Object[name] + prev && + (Object[name] = function (target) { + if (target instanceof WeakMapMembership) { + return target + } + Object.isExtensible(target) && insert(target) + return prev(target) + }) + } + } + if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { + if (NativeWeakMap && $jscomp.ES6_CONFORMANCE) { + return NativeWeakMap + } + } else { + if (isConformant()) { + return NativeWeakMap + } + } + var prop = '$jscomp_hidden_' + Math.random() + patch('freeze') + patch('preventExtensions') + patch('seal') + var index = 0, + PolyfillWeakMap = function (opt_iterable) { + this.id_ = (index += Math.random() + 1).toString() + if (opt_iterable) { + for ( + var iter = $jscomp.makeIterator(opt_iterable), entry; + !(entry = iter.next()).done; - ) { - if (string[--i] != searchString[--j]) { - return !1; + ) { + var item = entry.value + this.set(item[0], item[1]) + } + } } - } - return 0 >= j; - }; - }, - "es6", - "es3" -); + PolyfillWeakMap.prototype.set = function (key, value) { + if (!isValidKey(key)) { + throw Error('Invalid WeakMap key') + } + insert(key) + if (!$jscomp.owns(key, prop)) { + throw Error('WeakMap key fail: ' + key) + } + key[prop][this.id_] = value + return this + } + PolyfillWeakMap.prototype.get = function (key) { + return isValidKey(key) && $jscomp.owns(key, prop) + ? key[prop][this.id_] + : void 0 + } + PolyfillWeakMap.prototype.has = function (key) { + return ( + isValidKey(key) && + $jscomp.owns(key, prop) && + $jscomp.owns(key[prop], this.id_) + ) + } + PolyfillWeakMap.prototype.delete = function (key) { + return isValidKey(key) && + $jscomp.owns(key, prop) && + $jscomp.owns(key[prop], this.id_) + ? delete key[prop][this.id_] + : !1 + } + return PolyfillWeakMap + }, + 'es6', + 'es3' +) +$jscomp.MapEntry = function () {} $jscomp.polyfill( - "String.prototype.startsWith", - function (orig) { - return orig - ? orig - : function (searchString, opt_position) { - var string = $jscomp.checkStringArgs( - this, - searchString, - "startsWith" - ); - searchString += ""; - for ( - var strLen = string.length, - searchLen = searchString.length, - i = Math.max(0, Math.min(opt_position | 0, string.length)), - j = 0; - j < searchLen && i < strLen; + 'Map', + function (NativeMap) { + function isConformant() { + if ( + $jscomp.ASSUME_NO_NATIVE_MAP || + !NativeMap || + 'function' != typeof NativeMap || + !NativeMap.prototype.entries || + 'function' != typeof Object.seal + ) { + return !1 + } + try { + var key = Object.seal({ x: 4 }), + map = new NativeMap($jscomp.makeIterator([[key, 's']])) + if ( + 's' != map.get(key) || + 1 != map.size || + map.get({ x: 4 }) || + map.set({ x: 4 }, 't') != map || + 2 != map.size + ) { + return !1 + } + var iter = map.entries(), + item = iter.next() + if (item.done || item.value[0] != key || 's' != item.value[1]) { + return !1 + } + item = iter.next() + return item.done || + 4 != item.value[0].x || + 't' != item.value[1] || + !iter.next().done + ? !1 + : !0 + } catch (err) { + return !1 + } + } + if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { + if (NativeMap && $jscomp.ES6_CONFORMANCE) { + return NativeMap + } + } else { + if (isConformant()) { + return NativeMap + } + } + var idMap = new WeakMap(), + PolyfillMap = function (opt_iterable) { + this[0] = {} + this[1] = createHead() + this.size = 0 + if (opt_iterable) { + for ( + var iter = $jscomp.makeIterator(opt_iterable), entry; + !(entry = iter.next()).done; - ) { - if (string[i++] != searchString[j++]) { - return !1; + ) { + var item = entry.value + this.set(item[0], item[1]) + } + } } - } - return j >= searchLen; - }; - }, - "es6", - "es3" -); + PolyfillMap.prototype.set = function (key, value) { + key = 0 === key ? 0 : key + var r = maybeGetEntry(this, key) + r.list || (r.list = this[0][r.id] = []) + r.entry + ? (r.entry.value = value) + : ((r.entry = { + next: this[1], + previous: this[1].previous, + head: this[1], + key: key, + value: value, + }), + r.list.push(r.entry), + (this[1].previous.next = r.entry), + (this[1].previous = r.entry), + this.size++) + return this + } + PolyfillMap.prototype.delete = function (key) { + var r = maybeGetEntry(this, key) + return r.entry && r.list + ? (r.list.splice(r.index, 1), + r.list.length || delete this[0][r.id], + (r.entry.previous.next = r.entry.next), + (r.entry.next.previous = r.entry.previous), + (r.entry.head = null), + this.size--, + !0) + : !1 + } + PolyfillMap.prototype.clear = function () { + this[0] = {} + this[1] = this[1].previous = createHead() + this.size = 0 + } + PolyfillMap.prototype.has = function (key) { + return !!maybeGetEntry(this, key).entry + } + PolyfillMap.prototype.get = function (key) { + var entry = maybeGetEntry(this, key).entry + return entry && entry.value + } + PolyfillMap.prototype.entries = function () { + return makeIterator(this, function (entry) { + return [entry.key, entry.value] + }) + } + PolyfillMap.prototype.keys = function () { + return makeIterator(this, function (entry) { + return entry.key + }) + } + PolyfillMap.prototype.values = function () { + return makeIterator(this, function (entry) { + return entry.value + }) + } + PolyfillMap.prototype.forEach = function (callback, opt_thisArg) { + for ( + var iter = this.entries(), item; + !(item = iter.next()).done; + + ) { + var entry = item.value + callback.call(opt_thisArg, entry[1], entry[0], this) + } + } + PolyfillMap.prototype[Symbol.iterator] = PolyfillMap.prototype.entries + var maybeGetEntry = function (map, key) { + var id = getId(key), + list = map[0][id] + if (list && $jscomp.owns(map[0], id)) { + for (var index = 0; index < list.length; index++) { + var entry = list[index] + if ( + (key !== key && entry.key !== entry.key) || + key === entry.key + ) { + return { + id: id, + list: list, + index: index, + entry: entry, + } + } + } + } + return { id: id, list: list, index: -1, entry: void 0 } + }, + makeIterator = function (map, func) { + var entry = map[1] + return $jscomp.iteratorPrototype(function () { + if (entry) { + for (; entry.head != map[1]; ) { + entry = entry.previous + } + for (; entry.next != entry.head; ) { + return ( + (entry = entry.next), + { done: !1, value: func(entry) } + ) + } + entry = null + } + return { done: !0, value: void 0 } + }) + }, + createHead = function () { + var head = {} + return (head.previous = head.next = head.head = head) + }, + mapIndex = 0, + getId = function (obj) { + var type = obj && typeof obj + if ('object' == type || 'function' == type) { + if (!idMap.has(obj)) { + var id = '' + ++mapIndex + idMap.set(obj, id) + return id + } + return idMap.get(obj) + } + return 'p_' + obj + } + return PolyfillMap + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "Number.isFinite", - function (orig) { - return orig - ? orig - : function (x) { - return "number" !== typeof x - ? !1 - : !isNaN(x) && Infinity !== x && -Infinity !== x; - }; - }, - "es6", - "es3" -); + 'Object.setPrototypeOf', + function (orig) { + return orig || $jscomp.setPrototypeOf + }, + 'es6', + 'es5' +) +$jscomp.findInternal = function (array, callback, thisArg) { + array instanceof String && (array = String(array)) + for (var len = array.length, i = 0; i < len; i++) { + var value = array[i] + if (callback.call(thisArg, value, i, array)) { + return { i: i, v: value } + } + } + return { i: -1, v: void 0 } +} $jscomp.polyfill( - "Object.entries", - function (orig) { - return orig - ? orig - : function (obj) { - var result = [], - key; - for (key in obj) { - $jscomp.owns(obj, key) && result.push([key, obj[key]]); - } - return result; - }; - }, - "es8", - "es3" -); + 'Array.prototype.find', + function (orig) { + return orig + ? orig + : function (callback, opt_thisArg) { + return $jscomp.findInternal(this, callback, opt_thisArg).v + } + }, + 'es6', + 'es3' +) +$jscomp.checkStringArgs = function (thisArg, arg, func) { + if (null == thisArg) { + throw new TypeError( + "The 'this' value for String.prototype." + + func + + ' must not be null or undefined' + ) + } + if (arg instanceof RegExp) { + throw new TypeError( + 'First argument to String.prototype.' + + func + + ' must not be a regular expression' + ) + } + return thisArg + '' +} $jscomp.polyfill( - "Object.is", - function (orig) { - return orig - ? orig - : function (left, right) { - return left === right - ? 0 !== left || 1 / left === 1 / right - : left !== left && right !== right; - }; - }, - "es6", - "es3" -); + 'String.prototype.repeat', + function (orig) { + return orig + ? orig + : function (copies) { + var string = $jscomp.checkStringArgs(this, null, 'repeat') + if (0 > copies || 1342177279 < copies) { + throw new RangeError('Invalid count value') + } + copies |= 0 + for (var result = ''; copies; ) { + if ((copies & 1 && (result += string), (copies >>>= 1))) { + string += string + } + } + return result + } + }, + 'es6', + 'es3' +) +$jscomp.iteratorFromArray = function (array, transform) { + array instanceof String && (array += '') + var i = 0, + done = !1, + iter = { + next: function () { + if (!done && i < array.length) { + var index = i++ + return { value: transform(index, array[index]), done: !1 } + } + done = !0 + return { done: !0, value: void 0 } + }, + } + iter[Symbol.iterator] = function () { + return iter + } + return iter +} $jscomp.polyfill( - "Array.prototype.includes", - function (orig) { - return orig - ? orig - : function (searchElement, opt_fromIndex) { - var array = this; - array instanceof String && (array = String(array)); - var len = array.length, - i = opt_fromIndex || 0; - for (0 > i && (i = Math.max(i + len, 0)); i < len; i++) { - var element = array[i]; - if ( - element === searchElement || - Object.is(element, searchElement) - ) { - return !0; - } - } - return !1; - }; - }, - "es7", - "es3" -); + 'Array.prototype.keys', + function (orig) { + return orig + ? orig + : function () { + return $jscomp.iteratorFromArray(this, function (i) { + return i + }) + } + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "String.prototype.includes", - function (orig) { - return orig - ? orig - : function (searchString, opt_position) { - return ( - -1 !== - $jscomp - .checkStringArgs(this, searchString, "includes") - .indexOf(searchString, opt_position || 0) - ); - }; - }, - "es6", - "es3" -); + 'Array.from', + function (orig) { + return orig + ? orig + : function (arrayLike, opt_mapFn, opt_thisArg) { + opt_mapFn = + null != opt_mapFn + ? opt_mapFn + : function (x) { + return x + } + var result = [], + iteratorFunction = + 'undefined' != typeof Symbol && + Symbol.iterator && + arrayLike[Symbol.iterator] + if ('function' == typeof iteratorFunction) { + arrayLike = iteratorFunction.call(arrayLike) + for (var next, k = 0; !(next = arrayLike.next()).done; ) { + result.push( + opt_mapFn.call(opt_thisArg, next.value, k++) + ) + } + } else { + for (var len = arrayLike.length, i = 0; i < len; i++) { + result.push( + opt_mapFn.call(opt_thisArg, arrayLike[i], i) + ) + } + } + return result + } + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "String.prototype.trimLeft", - function (orig) { - function polyfill() { - return this.replace(/^[\s\xa0]+/, ""); - } - return orig || polyfill; - }, - "es_2019", - "es3" -); + 'Array.prototype.values', + function (orig) { + return orig + ? orig + : function () { + return $jscomp.iteratorFromArray(this, function (k, v) { + return v + }) + } + }, + 'es8', + 'es3' +) $jscomp.polyfill( - "Array.prototype.entries", - function (orig) { - return orig - ? orig - : function () { - return $jscomp.iteratorFromArray(this, function (i, v) { - return [i, v]; - }); - }; - }, - "es6", - "es3" -); + 'String.prototype.endsWith', + function (orig) { + return orig + ? orig + : function (searchString, opt_position) { + var string = $jscomp.checkStringArgs( + this, + searchString, + 'endsWith' + ) + searchString += '' + void 0 === opt_position && (opt_position = string.length) + for ( + var i = Math.max( + 0, + Math.min(opt_position | 0, string.length) + ), + j = searchString.length; + 0 < j && 0 < i; + + ) { + if (string[--i] != searchString[--j]) { + return !1 + } + } + return 0 >= j + } + }, + 'es6', + 'es3' +) $jscomp.polyfill( - "Set", - function (NativeSet) { - function isConformant() { - if ( - $jscomp.ASSUME_NO_NATIVE_SET || - !NativeSet || - "function" != typeof NativeSet || - !NativeSet.prototype.entries || - "function" != typeof Object.seal - ) { - return !1; - } - try { - var value = Object.seal({ x: 4 }), - set = new NativeSet($jscomp.makeIterator([value])); - if ( - !set.has(value) || - 1 != set.size || - set.add(value) != set || - 1 != set.size || - set.add({ x: 4 }) != set || - 2 != set.size - ) { - return !1; - } - var iter = set.entries(), - item = iter.next(); - if (item.done || item.value[0] != value || item.value[1] != value) { - return !1; - } - item = iter.next(); - return item.done || - item.value[0] == value || - 4 != item.value[0].x || - item.value[1] != item.value[0] - ? !1 - : iter.next().done; - } catch (err) { - return !1; - } - } - if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { - if (NativeSet && $jscomp.ES6_CONFORMANCE) { - return NativeSet; - } - } else { - if (isConformant()) { - return NativeSet; - } - } - var PolyfillSet = function (opt_iterable) { - this.map_ = new Map(); - if (opt_iterable) { - for ( - var iter = $jscomp.makeIterator(opt_iterable), entry; - !(entry = iter.next()).done; + 'String.prototype.startsWith', + function (orig) { + return orig + ? orig + : function (searchString, opt_position) { + var string = $jscomp.checkStringArgs( + this, + searchString, + 'startsWith' + ) + searchString += '' + for ( + var strLen = string.length, + searchLen = searchString.length, + i = Math.max( + 0, + Math.min(opt_position | 0, string.length) + ), + j = 0; + j < searchLen && i < strLen; - ) { - this.add(entry.value); + ) { + if (string[i++] != searchString[j++]) { + return !1 + } + } + return j >= searchLen + } + }, + 'es6', + 'es3' +) +$jscomp.polyfill( + 'Number.isFinite', + function (orig) { + return orig + ? orig + : function (x) { + return 'number' !== typeof x + ? !1 + : !isNaN(x) && Infinity !== x && -Infinity !== x + } + }, + 'es6', + 'es3' +) +$jscomp.polyfill( + 'Object.entries', + function (orig) { + return orig + ? orig + : function (obj) { + var result = [], + key + for (key in obj) { + $jscomp.owns(obj, key) && result.push([key, obj[key]]) + } + return result + } + }, + 'es8', + 'es3' +) +$jscomp.polyfill( + 'Object.is', + function (orig) { + return orig + ? orig + : function (left, right) { + return left === right + ? 0 !== left || 1 / left === 1 / right + : left !== left && right !== right + } + }, + 'es6', + 'es3' +) +$jscomp.polyfill( + 'Array.prototype.includes', + function (orig) { + return orig + ? orig + : function (searchElement, opt_fromIndex) { + var array = this + array instanceof String && (array = String(array)) + var len = array.length, + i = opt_fromIndex || 0 + for (0 > i && (i = Math.max(i + len, 0)); i < len; i++) { + var element = array[i] + if ( + element === searchElement || + Object.is(element, searchElement) + ) { + return !0 + } + } + return !1 + } + }, + 'es7', + 'es3' +) +$jscomp.polyfill( + 'String.prototype.includes', + function (orig) { + return orig + ? orig + : function (searchString, opt_position) { + return ( + -1 !== + $jscomp + .checkStringArgs(this, searchString, 'includes') + .indexOf(searchString, opt_position || 0) + ) + } + }, + 'es6', + 'es3' +) +$jscomp.polyfill( + 'String.prototype.trimLeft', + function (orig) { + function polyfill() { + return this.replace(/^[\s\xa0]+/, '') } - } - this.size = this.map_.size; - }; - PolyfillSet.prototype.add = function (value) { - value = 0 === value ? 0 : value; - this.map_.set(value, value); - this.size = this.map_.size; - return this; - }; - PolyfillSet.prototype.delete = function (value) { - var result = this.map_.delete(value); - this.size = this.map_.size; - return result; - }; - PolyfillSet.prototype.clear = function () { - this.map_.clear(); - this.size = 0; - }; - PolyfillSet.prototype.has = function (value) { - return this.map_.has(value); - }; - PolyfillSet.prototype.entries = function () { - return this.map_.entries(); - }; - PolyfillSet.prototype.values = function () { - return this.map_.values(); - }; - PolyfillSet.prototype.keys = PolyfillSet.prototype.values; - PolyfillSet.prototype[Symbol.iterator] = PolyfillSet.prototype.values; - PolyfillSet.prototype.forEach = function (callback, opt_thisArg) { - var set = this; - this.map_.forEach(function (value) { - return callback.call(opt_thisArg, value, value, set); - }); - }; - return PolyfillSet; - }, - "es6", - "es3" -); + return orig || polyfill + }, + 'es_2019', + 'es3' +) $jscomp.polyfill( - "Object.values", - function (orig) { - return orig - ? orig - : function (obj) { - var result = [], - key; - for (key in obj) { - $jscomp.owns(obj, key) && result.push(obj[key]); - } - return result; - }; - }, - "es8", - "es3" -); + 'Array.prototype.entries', + function (orig) { + return orig + ? orig + : function () { + return $jscomp.iteratorFromArray(this, function (i, v) { + return [i, v] + }) + } + }, + 'es6', + 'es3' +) +$jscomp.polyfill( + 'Set', + function (NativeSet) { + function isConformant() { + if ( + $jscomp.ASSUME_NO_NATIVE_SET || + !NativeSet || + 'function' != typeof NativeSet || + !NativeSet.prototype.entries || + 'function' != typeof Object.seal + ) { + return !1 + } + try { + var value = Object.seal({ x: 4 }), + set = new NativeSet($jscomp.makeIterator([value])) + if ( + !set.has(value) || + 1 != set.size || + set.add(value) != set || + 1 != set.size || + set.add({ x: 4 }) != set || + 2 != set.size + ) { + return !1 + } + var iter = set.entries(), + item = iter.next() + if ( + item.done || + item.value[0] != value || + item.value[1] != value + ) { + return !1 + } + item = iter.next() + return item.done || + item.value[0] == value || + 4 != item.value[0].x || + item.value[1] != item.value[0] + ? !1 + : iter.next().done + } catch (err) { + return !1 + } + } + if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) { + if (NativeSet && $jscomp.ES6_CONFORMANCE) { + return NativeSet + } + } else { + if (isConformant()) { + return NativeSet + } + } + var PolyfillSet = function (opt_iterable) { + this.map_ = new Map() + if (opt_iterable) { + for ( + var iter = $jscomp.makeIterator(opt_iterable), entry; + !(entry = iter.next()).done; + + ) { + this.add(entry.value) + } + } + this.size = this.map_.size + } + PolyfillSet.prototype.add = function (value) { + value = 0 === value ? 0 : value + this.map_.set(value, value) + this.size = this.map_.size + return this + } + PolyfillSet.prototype.delete = function (value) { + var result = this.map_.delete(value) + this.size = this.map_.size + return result + } + PolyfillSet.prototype.clear = function () { + this.map_.clear() + this.size = 0 + } + PolyfillSet.prototype.has = function (value) { + return this.map_.has(value) + } + PolyfillSet.prototype.entries = function () { + return this.map_.entries() + } + PolyfillSet.prototype.values = function () { + return this.map_.values() + } + PolyfillSet.prototype.keys = PolyfillSet.prototype.values + PolyfillSet.prototype[Symbol.iterator] = PolyfillSet.prototype.values + PolyfillSet.prototype.forEach = function (callback, opt_thisArg) { + var set = this + this.map_.forEach(function (value) { + return callback.call(opt_thisArg, value, value, set) + }) + } + return PolyfillSet + }, + 'es6', + 'es3' +) +$jscomp.polyfill( + 'Object.values', + function (orig) { + return orig + ? orig + : function (obj) { + var result = [], + key + for (key in obj) { + $jscomp.owns(obj, key) && result.push(obj[key]) + } + return result + } + }, + 'es8', + 'es3' +) $jscomp.stringPadding = function (padString, padLength) { - var padding = void 0 !== padString ? String(padString) : " "; - return 0 < padLength && padding - ? padding - .repeat(Math.ceil(padLength / padding.length)) - .substring(0, padLength) - : ""; -}; + var padding = void 0 !== padString ? String(padString) : ' ' + return 0 < padLength && padding + ? padding + .repeat(Math.ceil(padLength / padding.length)) + .substring(0, padLength) + : '' +} $jscomp.polyfill( - "String.prototype.padStart", - function (orig) { - return orig - ? orig - : function (targetLength, opt_padString) { - var string = $jscomp.checkStringArgs(this, null, "padStart"); - return ( - $jscomp.stringPadding(opt_padString, targetLength - string.length) + - string - ); - }; - }, - "es8", - "es3" -); + 'String.prototype.padStart', + function (orig) { + return orig + ? orig + : function (targetLength, opt_padString) { + var string = $jscomp.checkStringArgs(this, null, 'padStart') + return ( + $jscomp.stringPadding( + opt_padString, + targetLength - string.length + ) + string + ) + } + }, + 'es8', + 'es3' +) var CLOSURE_TOGGLE_ORDINALS = { - GoogFlags__async_throw_on_unicode_to_byte__enable: !1, - GoogFlags__client_only_wiz_attribute_sanitization__disable: !1, - GoogFlags__client_only_wiz_hook_context_fix__enable: !1, - GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable: - !1, - GoogFlags__override_disable_toggles: !1, - GoogFlags__testonly_debug_flag__enable: !1, - GoogFlags__testonly_disabled_flag__enable: !1, - GoogFlags__testonly_stable_flag__disable: !1, - GoogFlags__testonly_staging_flag__disable: !1, - GoogFlags__use_toggles: !1, - GoogFlags__use_user_agent_client_hints__enable: !1, -}; + GoogFlags__async_throw_on_unicode_to_byte__enable: !1, + GoogFlags__client_only_wiz_attribute_sanitization__disable: !1, + GoogFlags__client_only_wiz_hook_context_fix__enable: !1, + GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable: + !1, + GoogFlags__override_disable_toggles: !1, + GoogFlags__testonly_debug_flag__enable: !1, + GoogFlags__testonly_disabled_flag__enable: !1, + GoogFlags__testonly_stable_flag__disable: !1, + GoogFlags__testonly_staging_flag__disable: !1, + GoogFlags__use_toggles: !1, + GoogFlags__use_user_agent_client_hints__enable: !1, +} /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var isChrome87, - goog = goog || {}; -goog.global = this || self; + goog = goog || {} +goog.global = this || self goog.exportPath_ = function ( - name, - object, - overwriteImplicit, - objectToExportTo -) { - var parts = name.split("."), - cur = objectToExportTo || goog.global; - parts[0] in cur || - "undefined" == typeof cur.execScript || - cur.execScript("var " + parts[0]); - for (var part; parts.length && (part = parts.shift()); ) { - if (parts.length || void 0 === object) { - cur = - cur[part] && cur[part] !== Object.prototype[part] - ? cur[part] - : (cur[part] = {}); - } else { - if ( - !overwriteImplicit && - goog.isObject(object) && - goog.isObject(cur[part]) - ) { - for (var prop in object) { - object.hasOwnProperty(prop) && (cur[part][prop] = object[prop]); - } - } else { - cur[part] = object; - } + name, + object, + overwriteImplicit, + objectToExportTo +) { + var parts = name.split('.'), + cur = objectToExportTo || goog.global + parts[0] in cur || + 'undefined' == typeof cur.execScript || + cur.execScript('var ' + parts[0]) + for (var part; parts.length && (part = parts.shift()); ) { + if (parts.length || void 0 === object) { + cur = + cur[part] && cur[part] !== Object.prototype[part] + ? cur[part] + : (cur[part] = {}) + } else { + if ( + !overwriteImplicit && + goog.isObject(object) && + goog.isObject(cur[part]) + ) { + for (var prop in object) { + object.hasOwnProperty(prop) && + (cur[part][prop] = object[prop]) + } + } else { + cur[part] = object + } + } } - } -}; +} goog.define = function (name, defaultValue) { - var defines, uncompiledDefines; - return defaultValue; -}; -goog.FEATURESET_YEAR = 2012; -goog.DEBUG = !0; -goog.LOCALE = "en"; -goog.TRUSTED_SITE = !0; -goog.DISALLOW_TEST_ONLY_CODE = !goog.DEBUG; -goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1; + var defines, uncompiledDefines + return defaultValue +} +goog.FEATURESET_YEAR = 2012 +goog.DEBUG = !0 +goog.LOCALE = 'en' +goog.TRUSTED_SITE = !0 +goog.DISALLOW_TEST_ONLY_CODE = !goog.DEBUG +goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1 goog.readFlagInternalDoNotUseOrElse = function (googFlagId, defaultValue) { - var obj = goog.getObjectByName(goog.FLAGS_OBJECT_), - val = obj && obj[googFlagId]; - return null != val ? val : defaultValue; -}; -goog.FLAGS_OBJECT_ = "CLOSURE_FLAGS"; -goog.FLAGS_STAGING_DEFAULT = !0; + var obj = goog.getObjectByName(goog.FLAGS_OBJECT_), + val = obj && obj[googFlagId] + return null != val ? val : defaultValue +} +goog.FLAGS_OBJECT_ = 'CLOSURE_FLAGS' +goog.FLAGS_STAGING_DEFAULT = !0 goog.readToggleInternalDoNotCallDirectly = function (name) { - var ordinals = - "object" === typeof CLOSURE_TOGGLE_ORDINALS - ? CLOSURE_TOGGLE_ORDINALS - : void 0, - ordinal = ordinals && ordinals[name]; - return "number" !== typeof ordinal - ? !!ordinal - : !!(goog.TOGGLES_[Math.floor(ordinal / 30)] & (1 << ordinal % 30)); -}; -goog.TOGGLE_VAR_ = "_F_toggles"; -goog.TOGGLES_ = goog.global[goog.TOGGLE_VAR_] || []; -goog.LEGACY_NAMESPACE_OBJECT_ = goog.global; + var ordinals = + 'object' === typeof CLOSURE_TOGGLE_ORDINALS + ? CLOSURE_TOGGLE_ORDINALS + : void 0, + ordinal = ordinals && ordinals[name] + return 'number' !== typeof ordinal + ? !!ordinal + : !!(goog.TOGGLES_[Math.floor(ordinal / 30)] & (1 << ordinal % 30)) +} +goog.TOGGLE_VAR_ = '_F_toggles' +goog.TOGGLES_ = goog.global[goog.TOGGLE_VAR_] || [] +goog.LEGACY_NAMESPACE_OBJECT_ = goog.global goog.provide = function (name) { - if (goog.isInModuleLoader_()) { - throw Error("goog.provide cannot be used within a module."); - } - goog.constructNamespace_(name); -}; + if (goog.isInModuleLoader_()) { + throw Error('goog.provide cannot be used within a module.') + } + goog.constructNamespace_(name) +} goog.constructNamespace_ = function (name, object, overwriteImplicit) { - var namespace; - goog.exportPath_( - name, - object, - overwriteImplicit, - goog.LEGACY_NAMESPACE_OBJECT_ - ); -}; -goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/; + var namespace + goog.exportPath_( + name, + object, + overwriteImplicit, + goog.LEGACY_NAMESPACE_OBJECT_ + ) +} +goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/ goog.getScriptNonce_ = function (opt_window) { - var doc = (opt_window || goog.global).document, - script = doc.querySelector && doc.querySelector("script[nonce]"); - if (script) { - var nonce = script.nonce || script.getAttribute("nonce"); - if (nonce && goog.NONCE_PATTERN_.test(nonce)) { - return nonce; - } - } - return ""; -}; -goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/; + var doc = (opt_window || goog.global).document, + script = doc.querySelector && doc.querySelector('script[nonce]') + if (script) { + var nonce = script.nonce || script.getAttribute('nonce') + if (nonce && goog.NONCE_PATTERN_.test(nonce)) { + return nonce + } + } + return '' +} +goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/ goog.module = function (name) { - if ( - "string" !== typeof name || - !name || - -1 == name.search(goog.VALID_MODULE_RE_) - ) { - throw Error("Invalid module identifier"); - } - if (!goog.isInGoogModuleLoader_()) { - throw Error( - "Module " + - name + - " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide." - ); - } - if (goog.moduleLoaderState_.moduleName) { - throw Error("goog.module may only be called once per module."); - } - goog.moduleLoaderState_.moduleName = name; -}; + if ( + 'string' !== typeof name || + !name || + -1 == name.search(goog.VALID_MODULE_RE_) + ) { + throw Error('Invalid module identifier') + } + if (!goog.isInGoogModuleLoader_()) { + throw Error( + 'Module ' + + name + + " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide." + ) + } + if (goog.moduleLoaderState_.moduleName) { + throw Error('goog.module may only be called once per module.') + } + goog.moduleLoaderState_.moduleName = name +} goog.module.get = function (name) { - return goog.module.getInternal_(name); -}; + return goog.module.getInternal_(name) +} goog.module.getInternal_ = function (name) { - var ns; - return null; -}; + var ns + return null +} goog.requireDynamic = function (name) { - return null; -}; -goog.importHandler_ = null; -goog.uncompiledChunkIdHandler_ = null; + return null +} +goog.importHandler_ = null +goog.uncompiledChunkIdHandler_ = null goog.setImportHandlerInternalDoNotCallOrElse = function (fn) { - goog.importHandler_ = fn; -}; + goog.importHandler_ = fn +} goog.setUncompiledChunkIdHandlerInternalDoNotCallOrElse = function (fn) { - goog.uncompiledChunkIdHandler_ = fn; -}; -goog.maybeRequireFrameworkInternalOnlyDoNotCallOrElse = function (namespace) {}; -goog.ModuleType = { ES6: "es6", GOOG: "goog" }; -goog.moduleLoaderState_ = null; + goog.uncompiledChunkIdHandler_ = fn +} +goog.maybeRequireFrameworkInternalOnlyDoNotCallOrElse = function (namespace) {} +goog.ModuleType = { ES6: 'es6', GOOG: 'goog' } +goog.moduleLoaderState_ = null goog.isInModuleLoader_ = function () { - return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_(); -}; + return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_() +} goog.isInGoogModuleLoader_ = function () { - return ( - !!goog.moduleLoaderState_ && - goog.moduleLoaderState_.type == goog.ModuleType.GOOG - ); -}; + return ( + !!goog.moduleLoaderState_ && + goog.moduleLoaderState_.type == goog.ModuleType.GOOG + ) +} goog.isInEs6ModuleLoader_ = function () { - if ( - goog.moduleLoaderState_ && - goog.moduleLoaderState_.type == goog.ModuleType.ES6 - ) { - return !0; - } - var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp; - return jscomp - ? "function" != typeof jscomp.getCurrentModulePath - ? !1 - : !!jscomp.getCurrentModulePath() - : !1; -}; + if ( + goog.moduleLoaderState_ && + goog.moduleLoaderState_.type == goog.ModuleType.ES6 + ) { + return !0 + } + var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp + return jscomp + ? 'function' != typeof jscomp.getCurrentModulePath + ? !1 + : !!jscomp.getCurrentModulePath() + : !1 +} goog.module.declareLegacyNamespace = function () { - goog.moduleLoaderState_.declareLegacyNamespace = !0; -}; + goog.moduleLoaderState_.declareLegacyNamespace = !0 +} goog.declareModuleId = function (namespace) { - if (goog.moduleLoaderState_) { - goog.moduleLoaderState_.moduleName = namespace; - } else { - var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp; - if (!jscomp || "function" != typeof jscomp.getCurrentModulePath) { - throw Error( - 'Module with namespace "' + namespace + '" has been loaded incorrectly.' - ); - } - var exports = jscomp.require(jscomp.getCurrentModulePath()); - goog.loadedModules_[namespace] = { - exports: exports, - type: goog.ModuleType.ES6, - moduleId: namespace, - }; - } -}; + if (goog.moduleLoaderState_) { + goog.moduleLoaderState_.moduleName = namespace + } else { + var jscomp = goog.LEGACY_NAMESPACE_OBJECT_.$jscomp + if (!jscomp || 'function' != typeof jscomp.getCurrentModulePath) { + throw Error( + 'Module with namespace "' + + namespace + + '" has been loaded incorrectly.' + ) + } + var exports = jscomp.require(jscomp.getCurrentModulePath()) + goog.loadedModules_[namespace] = { + exports: exports, + type: goog.ModuleType.ES6, + moduleId: namespace, + } + } +} goog.setTestOnly = function (opt_message) { - if (goog.DISALLOW_TEST_ONLY_CODE) { - throw ( - ((opt_message = opt_message || ""), - Error( - "Importing test-only code into non-debug environment" + - (opt_message ? ": " + opt_message : ".") - )) - ); - } -}; -goog.forwardDeclare = function (name) {}; + if (goog.DISALLOW_TEST_ONLY_CODE) { + throw ( + ((opt_message = opt_message || ''), + Error( + 'Importing test-only code into non-debug environment' + + (opt_message ? ': ' + opt_message : '.') + )) + ) + } +} +goog.forwardDeclare = function (name) {} goog.getObjectByName = function (name, opt_obj) { - for ( - var parts = name.split("."), cur = opt_obj || goog.global, i = 0; - i < parts.length; - i++ - ) { - if (((cur = cur[parts[i]]), null == cur)) { - return null; - } - } - return cur; -}; -goog.addDependency = function (relPath, provides, requires, opt_loadFlags) {}; -goog.ENABLE_DEBUG_LOADER = !1; + for ( + var parts = name.split('.'), cur = opt_obj || goog.global, i = 0; + i < parts.length; + i++ + ) { + if (((cur = cur[parts[i]]), null == cur)) { + return null + } + } + return cur +} +goog.addDependency = function (relPath, provides, requires, opt_loadFlags) {} +goog.ENABLE_DEBUG_LOADER = !1 goog.logToConsole_ = function (msg) { - goog.global.console && goog.global.console.error(msg); -}; + goog.global.console && goog.global.console.error(msg) +} goog.require = function (namespace) { - var moduleLoaderState; -}; + var moduleLoaderState +} goog.requireType = function (namespace) { - return {}; -}; -goog.basePath = ""; + return {} +} +goog.basePath = '' goog.abstractMethod = function () { - throw Error("unimplemented abstract method"); -}; + throw Error('unimplemented abstract method') +} goog.addSingletonGetter = function (ctor) { - ctor.instance_ = void 0; - ctor.getInstance = function () { - if (ctor.instance_) { - return ctor.instance_; + ctor.instance_ = void 0 + ctor.getInstance = function () { + if (ctor.instance_) { + return ctor.instance_ + } + goog.DEBUG && + (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = + ctor) + return (ctor.instance_ = new ctor()) } - goog.DEBUG && - (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = - ctor); - return (ctor.instance_ = new ctor()); - }; -}; -goog.instantiatedSingletons_ = []; -goog.LOAD_MODULE_USING_EVAL = !0; -goog.SEAL_MODULE_EXPORTS = goog.DEBUG; -goog.loadedModules_ = {}; -goog.DEPENDENCIES_ENABLED = !1; -goog.TRANSPILE = "detect"; -goog.ASSUME_ES_MODULES_TRANSPILED = !1; -goog.TRUSTED_TYPES_POLICY_NAME = "goog"; -goog.hasBadLetScoping = null; +} +goog.instantiatedSingletons_ = [] +goog.LOAD_MODULE_USING_EVAL = !0 +goog.SEAL_MODULE_EXPORTS = goog.DEBUG +goog.loadedModules_ = {} +goog.DEPENDENCIES_ENABLED = !1 +goog.TRANSPILE = 'detect' +goog.ASSUME_ES_MODULES_TRANSPILED = !1 +goog.TRUSTED_TYPES_POLICY_NAME = 'goog' +goog.hasBadLetScoping = null goog.loadModule = function (moduleDef) { - var previousState = goog.moduleLoaderState_; - try { - goog.moduleLoaderState_ = { - moduleName: "", - declareLegacyNamespace: !1, - type: goog.ModuleType.GOOG, - }; - var origExports = {}, - exports = origExports; - if ("function" === typeof moduleDef) { - exports = moduleDef.call(void 0, exports); - } else if ("string" === typeof moduleDef) { - exports = goog.loadModuleFromSource_.call(void 0, exports, moduleDef); - } else { - throw Error("Invalid module definition"); - } - var moduleName = goog.moduleLoaderState_.moduleName; - if ("string" === typeof moduleName && moduleName) { - goog.moduleLoaderState_.declareLegacyNamespace - ? goog.constructNamespace_(moduleName, exports, origExports !== exports) - : goog.SEAL_MODULE_EXPORTS && - Object.seal && - "object" == typeof exports && - null != exports && - Object.seal(exports), - (goog.loadedModules_[moduleName] = { - exports: exports, - type: goog.ModuleType.GOOG, - moduleId: goog.moduleLoaderState_.moduleName, - }); - } else { - throw Error('Invalid module name "' + moduleName + '"'); + var previousState = goog.moduleLoaderState_ + try { + goog.moduleLoaderState_ = { + moduleName: '', + declareLegacyNamespace: !1, + type: goog.ModuleType.GOOG, + } + var origExports = {}, + exports = origExports + if ('function' === typeof moduleDef) { + exports = moduleDef.call(void 0, exports) + } else if ('string' === typeof moduleDef) { + exports = goog.loadModuleFromSource_.call( + void 0, + exports, + moduleDef + ) + } else { + throw Error('Invalid module definition') + } + var moduleName = goog.moduleLoaderState_.moduleName + if ('string' === typeof moduleName && moduleName) { + goog.moduleLoaderState_.declareLegacyNamespace + ? goog.constructNamespace_( + moduleName, + exports, + origExports !== exports + ) + : goog.SEAL_MODULE_EXPORTS && + Object.seal && + 'object' == typeof exports && + null != exports && + Object.seal(exports), + (goog.loadedModules_[moduleName] = { + exports: exports, + type: goog.ModuleType.GOOG, + moduleId: goog.moduleLoaderState_.moduleName, + }) + } else { + throw Error('Invalid module name "' + moduleName + '"') + } + } finally { + goog.moduleLoaderState_ = previousState } - } finally { - goog.moduleLoaderState_ = previousState; - } -}; +} goog.loadModuleFromSource_ = function ( - exports, - JSCompiler_OptimizeArgumentsArray_p0 + exports, + JSCompiler_OptimizeArgumentsArray_p0 ) { - eval( - goog.CLOSURE_EVAL_PREFILTER_.createScript( - JSCompiler_OptimizeArgumentsArray_p0 + eval( + goog.CLOSURE_EVAL_PREFILTER_.createScript( + JSCompiler_OptimizeArgumentsArray_p0 + ) ) - ); - return exports; -}; + return exports +} goog.normalizePath_ = function (path) { - for (var components = path.split("/"), i = 0; i < components.length; ) { - "." == components[i] - ? components.splice(i, 1) - : i && - ".." == components[i] && - components[i - 1] && - ".." != components[i - 1] - ? components.splice(--i, 2) - : i++; - } - return components.join("/"); -}; + for (var components = path.split('/'), i = 0; i < components.length; ) { + '.' == components[i] + ? components.splice(i, 1) + : i && + '..' == components[i] && + components[i - 1] && + '..' != components[i - 1] + ? components.splice(--i, 2) + : i++ + } + return components.join('/') +} goog.loadFileSync_ = function (src) { - if (goog.global.CLOSURE_LOAD_FILE_SYNC) { - return goog.global.CLOSURE_LOAD_FILE_SYNC(src); - } - try { - var xhr = new goog.global.XMLHttpRequest(); - xhr.open("get", src, !1); - xhr.send(); - return 0 == xhr.status || 200 == xhr.status ? xhr.responseText : null; - } catch (err) { - return null; - } -}; + if (goog.global.CLOSURE_LOAD_FILE_SYNC) { + return goog.global.CLOSURE_LOAD_FILE_SYNC(src) + } + try { + var xhr = new goog.global.XMLHttpRequest() + xhr.open('get', src, !1) + xhr.send() + return 0 == xhr.status || 200 == xhr.status ? xhr.responseText : null + } catch (err) { + return null + } +} goog.typeOf = function (value) { - var s = typeof value; - return "object" != s - ? s - : value - ? Array.isArray(value) - ? "array" - : s - : "null"; -}; + var s = typeof value + return 'object' != s + ? s + : value + ? Array.isArray(value) + ? 'array' + : s + : 'null' +} goog.isArrayLike = function (val) { - var type = goog.typeOf(val); - return "array" == type || ("object" == type && "number" == typeof val.length); -}; + var type = goog.typeOf(val) + return ( + 'array' == type || ('object' == type && 'number' == typeof val.length) + ) +} goog.isDateLike = function (val) { - return goog.isObject(val) && "function" == typeof val.getFullYear; -}; + return goog.isObject(val) && 'function' == typeof val.getFullYear +} goog.isObject = function (val) { - var type = typeof val; - return ("object" == type && null != val) || "function" == type; -}; + var type = typeof val + return ('object' == type && null != val) || 'function' == type +} goog.getUid = function (obj) { - return ( - (Object.prototype.hasOwnProperty.call(obj, goog.UID_PROPERTY_) && - obj[goog.UID_PROPERTY_]) || - (obj[goog.UID_PROPERTY_] = ++goog.uidCounter_) - ); -}; + return ( + (Object.prototype.hasOwnProperty.call(obj, goog.UID_PROPERTY_) && + obj[goog.UID_PROPERTY_]) || + (obj[goog.UID_PROPERTY_] = ++goog.uidCounter_) + ) +} goog.hasUid = function (obj) { - return !!obj[goog.UID_PROPERTY_]; -}; + return !!obj[goog.UID_PROPERTY_] +} goog.removeUid = function (obj) { - null !== obj && - "removeAttribute" in obj && - obj.removeAttribute(goog.UID_PROPERTY_); - try { - delete obj[goog.UID_PROPERTY_]; - } catch (ex) {} -}; -goog.UID_PROPERTY_ = "closure_uid_" + ((1e9 * Math.random()) >>> 0); -goog.uidCounter_ = 0; + null !== obj && + 'removeAttribute' in obj && + obj.removeAttribute(goog.UID_PROPERTY_) + try { + delete obj[goog.UID_PROPERTY_] + } catch (ex) {} +} +goog.UID_PROPERTY_ = 'closure_uid_' + ((1e9 * Math.random()) >>> 0) +goog.uidCounter_ = 0 goog.cloneObject = function (obj) { - var type = goog.typeOf(obj); - if ("object" == type || "array" == type) { - if ("function" === typeof obj.clone) { - return obj.clone(); - } - if ("undefined" !== typeof Map && obj instanceof Map) { - return new Map(obj); - } - if ("undefined" !== typeof Set && obj instanceof Set) { - return new Set(obj); - } - var clone = "array" == type ? [] : {}, - key; - for (key in obj) { - clone[key] = goog.cloneObject(obj[key]); + var type = goog.typeOf(obj) + if ('object' == type || 'array' == type) { + if ('function' === typeof obj.clone) { + return obj.clone() + } + if ('undefined' !== typeof Map && obj instanceof Map) { + return new Map(obj) + } + if ('undefined' !== typeof Set && obj instanceof Set) { + return new Set(obj) + } + var clone = 'array' == type ? [] : {}, + key + for (key in obj) { + clone[key] = goog.cloneObject(obj[key]) + } + return clone } - return clone; - } - return obj; -}; + return obj +} goog.bindNative_ = function (fn, selfObj, var_args) { - return fn.call.apply(fn.bind, arguments); -}; + return fn.call.apply(fn.bind, arguments) +} goog.bindJs_ = function (fn, selfObj, var_args) { - if (!fn) { - throw Error(); - } - if (2 < arguments.length) { - var boundArgs = Array.prototype.slice.call(arguments, 2); + if (!fn) { + throw Error() + } + if (2 < arguments.length) { + var boundArgs = Array.prototype.slice.call(arguments, 2) + return function () { + var newArgs = Array.prototype.slice.call(arguments) + Array.prototype.unshift.apply(newArgs, boundArgs) + return fn.apply(selfObj, newArgs) + } + } return function () { - var newArgs = Array.prototype.slice.call(arguments); - Array.prototype.unshift.apply(newArgs, boundArgs); - return fn.apply(selfObj, newArgs); - }; - } - return function () { - return fn.apply(selfObj, arguments); - }; -}; + return fn.apply(selfObj, arguments) + } +} goog.bind = function (fn, selfObj, var_args) { - Function.prototype.bind && - -1 != Function.prototype.bind.toString().indexOf("native code") - ? (goog.bind = goog.bindNative_) - : (goog.bind = goog.bindJs_); - return goog.bind.apply(null, arguments); -}; + Function.prototype.bind && + -1 != Function.prototype.bind.toString().indexOf('native code') + ? (goog.bind = goog.bindNative_) + : (goog.bind = goog.bindJs_) + return goog.bind.apply(null, arguments) +} goog.partial = function (fn, var_args) { - var args = Array.prototype.slice.call(arguments, 1); - return function () { - var newArgs = args.slice(); - newArgs.push.apply(newArgs, arguments); - return fn.apply(this, newArgs); - }; -}; + var args = Array.prototype.slice.call(arguments, 1) + return function () { + var newArgs = args.slice() + newArgs.push.apply(newArgs, arguments) + return fn.apply(this, newArgs) + } +} goog.now = function () { - return Date.now(); -}; + return Date.now() +} goog.globalEval = function (script) { - (0, eval)(script); -}; + ;(0, eval)(script) +} goog.getCssName = function (className, opt_modifier) { - if ("." == String(className).charAt(0)) { - throw Error( - 'className passed in goog.getCssName must not start with ".". You passed: ' + - className - ); - } - var getMapping = function (cssName) { - return goog.cssNameMapping_[cssName] || cssName; - }, - renameByParts = function (cssName) { - for ( - var parts = cssName.split("-"), mapped = [], i = 0; - i < parts.length; - i++ - ) { - mapped.push(getMapping(parts[i])); - } - return mapped.join("-"); - }; - var rename = goog.cssNameMapping_ - ? "BY_WHOLE" == goog.cssNameMappingStyle_ - ? getMapping - : renameByParts - : function (a) { - return a; - }; - var result = opt_modifier - ? className + "-" + rename(opt_modifier) - : rename(className); - return goog.global.CLOSURE_CSS_NAME_MAP_FN - ? goog.global.CLOSURE_CSS_NAME_MAP_FN(result) - : result; -}; + if ('.' == String(className).charAt(0)) { + throw Error( + 'className passed in goog.getCssName must not start with ".". You passed: ' + + className + ) + } + var getMapping = function (cssName) { + return goog.cssNameMapping_[cssName] || cssName + }, + renameByParts = function (cssName) { + for ( + var parts = cssName.split('-'), mapped = [], i = 0; + i < parts.length; + i++ + ) { + mapped.push(getMapping(parts[i])) + } + return mapped.join('-') + } + var rename = goog.cssNameMapping_ + ? 'BY_WHOLE' == goog.cssNameMappingStyle_ + ? getMapping + : renameByParts + : function (a) { + return a + } + var result = opt_modifier + ? className + '-' + rename(opt_modifier) + : rename(className) + return goog.global.CLOSURE_CSS_NAME_MAP_FN + ? goog.global.CLOSURE_CSS_NAME_MAP_FN(result) + : result +} goog.setCssNameMapping = function (mapping, opt_style) { - goog.cssNameMapping_ = mapping; - goog.cssNameMappingStyle_ = opt_style; -}; -goog.GetMsgOptions = function () {}; + goog.cssNameMapping_ = mapping + goog.cssNameMappingStyle_ = opt_style +} +goog.GetMsgOptions = function () {} goog.getMsg = function (str, opt_values, opt_options) { - opt_options && opt_options.html && (str = str.replace(/") - .replace(/'/g, "'") - .replace(/"/g, '"') - .replace(/&/g, "&")); - opt_values && - (str = str.replace(/\{\$([^}]+)}/g, function (match, key) { - return null != opt_values && key in opt_values ? opt_values[key] : match; - })); - return str; -}; + opt_options && opt_options.html && (str = str.replace(/') + .replace(/'/g, "'") + .replace(/"/g, '"') + .replace(/&/g, '&')) + opt_values && + (str = str.replace(/\{\$([^}]+)}/g, function (match, key) { + return null != opt_values && key in opt_values + ? opt_values[key] + : match + })) + return str +} goog.getMsgWithFallback = function (a, b) { - return a; -}; + return a +} goog.exportSymbol = function (publicPath, object, objectToExportTo) { - goog.exportPath_(publicPath, object, !0, objectToExportTo); -}; + goog.exportPath_(publicPath, object, !0, objectToExportTo) +} goog.exportProperty = function (object, publicName, symbol) { - object[publicName] = symbol; -}; + object[publicName] = symbol +} goog.inherits = function (childCtor, parentCtor) { - function tempCtor() {} - tempCtor.prototype = parentCtor.prototype; - childCtor.superClass_ = parentCtor.prototype; - childCtor.prototype = new tempCtor(); - childCtor.prototype.constructor = childCtor; - childCtor.base = function (me, methodName, var_args) { - for ( - var args = Array(arguments.length - 2), i = 2; - i < arguments.length; - i++ - ) { - args[i - 2] = arguments[i]; + function tempCtor() {} + tempCtor.prototype = parentCtor.prototype + childCtor.superClass_ = parentCtor.prototype + childCtor.prototype = new tempCtor() + childCtor.prototype.constructor = childCtor + childCtor.base = function (me, methodName, var_args) { + for ( + var args = Array(arguments.length - 2), i = 2; + i < arguments.length; + i++ + ) { + args[i - 2] = arguments[i] + } + return parentCtor.prototype[methodName].apply(me, args) } - return parentCtor.prototype[methodName].apply(me, args); - }; -}; +} goog.scope = function (fn) { - if (goog.isInModuleLoader_()) { - throw Error("goog.scope is not supported within a module."); - } - fn.call(goog.global); -}; + if (goog.isInModuleLoader_()) { + throw Error('goog.scope is not supported within a module.') + } + fn.call(goog.global) +} goog.defineClass = function (superClass, def) { - var constructor = def.constructor, - statics = def.statics; - (constructor && constructor != Object.prototype.constructor) || - (constructor = function () { - throw Error("cannot instantiate an interface (no constructor defined)."); - }); - var cls = goog.defineClass.createSealingConstructor_(constructor, superClass); - superClass && goog.inherits(cls, superClass); - delete def.constructor; - delete def.statics; - goog.defineClass.applyProperties_(cls.prototype, def); - null != statics && - (statics instanceof Function - ? statics(cls) - : goog.defineClass.applyProperties_(cls, statics)); - return cls; -}; -goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG; + var constructor = def.constructor, + statics = def.statics + ;(constructor && constructor != Object.prototype.constructor) || + (constructor = function () { + throw Error( + 'cannot instantiate an interface (no constructor defined).' + ) + }) + var cls = goog.defineClass.createSealingConstructor_( + constructor, + superClass + ) + superClass && goog.inherits(cls, superClass) + delete def.constructor + delete def.statics + goog.defineClass.applyProperties_(cls.prototype, def) + null != statics && + (statics instanceof Function + ? statics(cls) + : goog.defineClass.applyProperties_(cls, statics)) + return cls +} +goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG goog.defineClass.createSealingConstructor_ = function (ctr, superClass) { - return goog.defineClass.SEAL_CLASS_INSTANCES - ? function () { - var instance = ctr.apply(this, arguments) || this; - instance[goog.UID_PROPERTY_] = instance[goog.UID_PROPERTY_]; - return instance; - } - : ctr; -}; + return goog.defineClass.SEAL_CLASS_INSTANCES + ? function () { + var instance = ctr.apply(this, arguments) || this + instance[goog.UID_PROPERTY_] = instance[goog.UID_PROPERTY_] + return instance + } + : ctr +} goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = - "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split( - " " - ); + 'constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf'.split( + ' ' + ) goog.defineClass.applyProperties_ = function (target, source) { - for (var key in source) { - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } - for (var i = 0; i < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; i++) { - (key = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[i]), - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); - } -}; + for (var key in source) { + Object.prototype.hasOwnProperty.call(source, key) && + (target[key] = source[key]) + } + for (var i = 0; i < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; i++) { + ;(key = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[i]), + Object.prototype.hasOwnProperty.call(source, key) && + (target[key] = source[key]) + } +} goog.identity_ = function (s) { - return s; -}; + return s +} goog.createTrustedTypesPolicy = function (name) { - var policy = null, - policyFactory = goog.global.trustedTypes; - if (!policyFactory || !policyFactory.createPolicy) { - return policy; - } - try { - policy = policyFactory.createPolicy(name, { - createHTML: goog.identity_, - createScript: goog.identity_, - createScriptURL: goog.identity_, - }); - } catch (e) { - goog.logToConsole_(e.message); - } - return policy; -}; + var policy = null, + policyFactory = goog.global.trustedTypes + if (!policyFactory || !policyFactory.createPolicy) { + return policy + } + try { + policy = policyFactory.createPolicy(name, { + createHTML: goog.identity_, + createScript: goog.identity_, + createScriptURL: goog.identity_, + }) + } catch (e) { + goog.logToConsole_(e.message) + } + return policy +} function module$contents$goog$dispose_dispose(obj) { - obj && "function" == typeof obj.dispose && obj.dispose(); + obj && 'function' == typeof obj.dispose && obj.dispose() } -goog.dispose = module$contents$goog$dispose_dispose; +goog.dispose = module$contents$goog$dispose_dispose function module$contents$goog$disposeAll_disposeAll(var_args) { - for (var i = 0, len = arguments.length; i < len; ++i) { - var disposable = arguments[i]; - goog.isArrayLike(disposable) - ? module$contents$goog$disposeAll_disposeAll.apply(null, disposable) - : module$contents$goog$dispose_dispose(disposable); - } -} -goog.disposeAll = module$contents$goog$disposeAll_disposeAll; -goog.disposable = {}; -goog.disposable.IDisposable = function () {}; + for (var i = 0, len = arguments.length; i < len; ++i) { + var disposable = arguments[i] + goog.isArrayLike(disposable) + ? module$contents$goog$disposeAll_disposeAll.apply(null, disposable) + : module$contents$goog$dispose_dispose(disposable) + } +} +goog.disposeAll = module$contents$goog$disposeAll_disposeAll +goog.disposable = {} +goog.disposable.IDisposable = function () {} goog.Disposable = function () { - goog.Disposable.MONITORING_MODE != goog.Disposable.MonitoringMode.OFF && - (goog.Disposable.INCLUDE_STACK_ON_CREATION && - (this.creationStack = Error().stack), - (goog.Disposable.instances_[goog.getUid(this)] = this)); - this.disposed_ = this.disposed_; - this.onDisposeCallbacks_ = this.onDisposeCallbacks_; -}; -goog.Disposable.MonitoringMode = { OFF: 0, PERMANENT: 1, INTERACTIVE: 2 }; -goog.Disposable.MONITORING_MODE = 0; -goog.Disposable.INCLUDE_STACK_ON_CREATION = !0; -goog.Disposable.instances_ = {}; + goog.Disposable.MONITORING_MODE != goog.Disposable.MonitoringMode.OFF && + (goog.Disposable.INCLUDE_STACK_ON_CREATION && + (this.creationStack = Error().stack), + (goog.Disposable.instances_[goog.getUid(this)] = this)) + this.disposed_ = this.disposed_ + this.onDisposeCallbacks_ = this.onDisposeCallbacks_ +} +goog.Disposable.MonitoringMode = { OFF: 0, PERMANENT: 1, INTERACTIVE: 2 } +goog.Disposable.MONITORING_MODE = 0 +goog.Disposable.INCLUDE_STACK_ON_CREATION = !0 +goog.Disposable.instances_ = {} goog.Disposable.getUndisposedObjects = function () { - var ret = [], - id; - for (id in goog.Disposable.instances_) { - goog.Disposable.instances_.hasOwnProperty(id) && - ret.push(goog.Disposable.instances_[Number(id)]); - } - return ret; -}; + var ret = [], + id + for (id in goog.Disposable.instances_) { + goog.Disposable.instances_.hasOwnProperty(id) && + ret.push(goog.Disposable.instances_[Number(id)]) + } + return ret +} goog.Disposable.clearUndisposedObjects = function () { - goog.Disposable.instances_ = {}; -}; -goog.Disposable.prototype.disposed_ = !1; + goog.Disposable.instances_ = {} +} +goog.Disposable.prototype.disposed_ = !1 goog.Disposable.prototype.isDisposed = function () { - return this.disposed_; -}; -goog.Disposable.prototype.getDisposed = goog.Disposable.prototype.isDisposed; + return this.disposed_ +} +goog.Disposable.prototype.getDisposed = goog.Disposable.prototype.isDisposed goog.Disposable.prototype.dispose = function () { - if ( - !this.disposed_ && - ((this.disposed_ = !0), - this.disposeInternal(), - goog.Disposable.MONITORING_MODE != goog.Disposable.MonitoringMode.OFF) - ) { - var uid = goog.getUid(this); if ( - goog.Disposable.MONITORING_MODE == - goog.Disposable.MonitoringMode.PERMANENT && - !goog.Disposable.instances_.hasOwnProperty(uid) + !this.disposed_ && + ((this.disposed_ = !0), + this.disposeInternal(), + goog.Disposable.MONITORING_MODE != goog.Disposable.MonitoringMode.OFF) ) { - throw Error( - this + - " did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call" - ); + var uid = goog.getUid(this) + if ( + goog.Disposable.MONITORING_MODE == + goog.Disposable.MonitoringMode.PERMANENT && + !goog.Disposable.instances_.hasOwnProperty(uid) + ) { + throw Error( + this + + ' did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call' + ) + } + if ( + goog.Disposable.MONITORING_MODE != + goog.Disposable.MonitoringMode.OFF && + this.onDisposeCallbacks_ && + 0 < this.onDisposeCallbacks_.length + ) { + throw Error( + this + + " did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method." + ) + } + delete goog.Disposable.instances_[uid] } - if ( - goog.Disposable.MONITORING_MODE != goog.Disposable.MonitoringMode.OFF && - this.onDisposeCallbacks_ && - 0 < this.onDisposeCallbacks_.length - ) { - throw Error( - this + - " did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method." - ); - } - delete goog.Disposable.instances_[uid]; - } -}; +} goog.Disposable.prototype.registerDisposable = function (disposable) { - this.addOnDisposeCallback( - goog.partial(module$contents$goog$dispose_dispose, disposable) - ); -}; + this.addOnDisposeCallback( + goog.partial(module$contents$goog$dispose_dispose, disposable) + ) +} goog.Disposable.prototype.addOnDisposeCallback = function ( - callback, - opt_scope -) { - this.disposed_ - ? void 0 !== opt_scope - ? callback.call(opt_scope) - : callback() - : (this.onDisposeCallbacks_ || (this.onDisposeCallbacks_ = []), - this.onDisposeCallbacks_.push( - void 0 !== opt_scope ? goog.bind(callback, opt_scope) : callback - )); -}; + callback, + opt_scope +) { + this.disposed_ + ? void 0 !== opt_scope + ? callback.call(opt_scope) + : callback() + : (this.onDisposeCallbacks_ || (this.onDisposeCallbacks_ = []), + this.onDisposeCallbacks_.push( + void 0 !== opt_scope ? goog.bind(callback, opt_scope) : callback + )) +} goog.Disposable.prototype.disposeInternal = function () { - if (this.onDisposeCallbacks_) { - for (; this.onDisposeCallbacks_.length; ) { - this.onDisposeCallbacks_.shift()(); + if (this.onDisposeCallbacks_) { + for (; this.onDisposeCallbacks_.length; ) { + this.onDisposeCallbacks_.shift()() + } } - } -}; +} goog.Disposable.isDisposed = function (obj) { - return obj && "function" == typeof obj.isDisposed ? obj.isDisposed() : !1; -}; -goog.events = {}; + return obj && 'function' == typeof obj.isDisposed ? obj.isDisposed() : !1 +} +goog.events = {} goog.events.EventId = function (eventId) { - this.id = eventId; -}; + this.id = eventId +} goog.events.EventId.prototype.toString = function () { - return this.id; -}; + return this.id +} goog.events.Event = function (type, opt_target) { - this.type = type instanceof goog.events.EventId ? String(type) : type; - this.currentTarget = this.target = opt_target; - this.defaultPrevented = this.propagationStopped_ = !1; -}; + this.type = type instanceof goog.events.EventId ? String(type) : type + this.currentTarget = this.target = opt_target + this.defaultPrevented = this.propagationStopped_ = !1 +} goog.events.Event.prototype.hasPropagationStopped = function () { - return this.propagationStopped_; -}; + return this.propagationStopped_ +} goog.events.Event.prototype.stopPropagation = function () { - this.propagationStopped_ = !0; -}; + this.propagationStopped_ = !0 +} goog.events.Event.prototype.preventDefault = function () { - this.defaultPrevented = !0; -}; + this.defaultPrevented = !0 +} goog.events.Event.stopPropagation = function (e) { - e.stopPropagation(); -}; + e.stopPropagation() +} goog.events.Event.preventDefault = function (e) { - e.preventDefault(); -}; -goog.debug = {}; + e.preventDefault() +} +goog.debug = {} function module$contents$goog$debug$Error_DebugError(msg, cause) { - if (Error.captureStackTrace) { - Error.captureStackTrace(this, module$contents$goog$debug$Error_DebugError); - } else { - var stack = Error().stack; - stack && (this.stack = stack); - } - msg && (this.message = String(msg)); - void 0 !== cause && (this.cause = cause); - this.reportErrorToServer = !0; -} -goog.inherits(module$contents$goog$debug$Error_DebugError, Error); -module$contents$goog$debug$Error_DebugError.prototype.name = "CustomError"; -goog.debug.Error = module$contents$goog$debug$Error_DebugError; -goog.dom = {}; + if (Error.captureStackTrace) { + Error.captureStackTrace( + this, + module$contents$goog$debug$Error_DebugError + ) + } else { + var stack = Error().stack + stack && (this.stack = stack) + } + msg && (this.message = String(msg)) + void 0 !== cause && (this.cause = cause) + this.reportErrorToServer = !0 +} +goog.inherits(module$contents$goog$debug$Error_DebugError, Error) +module$contents$goog$debug$Error_DebugError.prototype.name = 'CustomError' +goog.debug.Error = module$contents$goog$debug$Error_DebugError +goog.dom = {} goog.dom.NodeType = { - ELEMENT: 1, - ATTRIBUTE: 2, - TEXT: 3, - CDATA_SECTION: 4, - ENTITY_REFERENCE: 5, - ENTITY: 6, - PROCESSING_INSTRUCTION: 7, - COMMENT: 8, - DOCUMENT: 9, - DOCUMENT_TYPE: 10, - DOCUMENT_FRAGMENT: 11, - NOTATION: 12, -}; -goog.asserts = {}; -goog.asserts.ENABLE_ASSERTS = goog.DEBUG; + ELEMENT: 1, + ATTRIBUTE: 2, + TEXT: 3, + CDATA_SECTION: 4, + ENTITY_REFERENCE: 5, + ENTITY: 6, + PROCESSING_INSTRUCTION: 7, + COMMENT: 8, + DOCUMENT: 9, + DOCUMENT_TYPE: 10, + DOCUMENT_FRAGMENT: 11, + NOTATION: 12, +} +goog.asserts = {} +goog.asserts.ENABLE_ASSERTS = goog.DEBUG function module$contents$goog$asserts_AssertionError( - messagePattern, - messageArgs + messagePattern, + messageArgs ) { - module$contents$goog$debug$Error_DebugError.call( - this, - module$contents$goog$asserts_subs(messagePattern, messageArgs) - ); - this.messagePattern = messagePattern; + module$contents$goog$debug$Error_DebugError.call( + this, + module$contents$goog$asserts_subs(messagePattern, messageArgs) + ) + this.messagePattern = messagePattern } goog.inherits( - module$contents$goog$asserts_AssertionError, - module$contents$goog$debug$Error_DebugError -); -goog.asserts.AssertionError = module$contents$goog$asserts_AssertionError; -module$contents$goog$asserts_AssertionError.prototype.name = "AssertionError"; + module$contents$goog$asserts_AssertionError, + module$contents$goog$debug$Error_DebugError +) +goog.asserts.AssertionError = module$contents$goog$asserts_AssertionError +module$contents$goog$asserts_AssertionError.prototype.name = 'AssertionError' goog.asserts.DEFAULT_ERROR_HANDLER = function (e) { - throw e; -}; + throw e +} var module$contents$goog$asserts_errorHandler_ = - goog.asserts.DEFAULT_ERROR_HANDLER; + goog.asserts.DEFAULT_ERROR_HANDLER function module$contents$goog$asserts_subs(pattern, subs) { - for ( - var splitParts = pattern.split("%s"), - returnString = "", - subLast = splitParts.length - 1, - i = 0; - i < subLast; - i++ - ) { - returnString += splitParts[i] + (i < subs.length ? subs[i] : "%s"); - } - return returnString + splitParts[subLast]; + for ( + var splitParts = pattern.split('%s'), + returnString = '', + subLast = splitParts.length - 1, + i = 0; + i < subLast; + i++ + ) { + returnString += splitParts[i] + (i < subs.length ? subs[i] : '%s') + } + return returnString + splitParts[subLast] } function module$contents$goog$asserts_doAssertFailure( - defaultMessage, - defaultArgs, - givenMessage, - givenArgs -) { - var message = "Assertion failed"; - if (givenMessage) { - message += ": " + givenMessage; - var args = givenArgs; - } else { - defaultMessage && - ((message += ": " + defaultMessage), (args = defaultArgs)); - } - var e = new module$contents$goog$asserts_AssertionError( - "" + message, - args || [] - ); - module$contents$goog$asserts_errorHandler_(e); + defaultMessage, + defaultArgs, + givenMessage, + givenArgs +) { + var message = 'Assertion failed' + if (givenMessage) { + message += ': ' + givenMessage + var args = givenArgs + } else { + defaultMessage && + ((message += ': ' + defaultMessage), (args = defaultArgs)) + } + var e = new module$contents$goog$asserts_AssertionError( + '' + message, + args || [] + ) + module$contents$goog$asserts_errorHandler_(e) } goog.asserts.setErrorHandler = function (errorHandler) { - goog.asserts.ENABLE_ASSERTS && - (module$contents$goog$asserts_errorHandler_ = errorHandler); -}; + goog.asserts.ENABLE_ASSERTS && + (module$contents$goog$asserts_errorHandler_ = errorHandler) +} goog.asserts.assert = function (condition, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - !condition && - module$contents$goog$asserts_doAssertFailure( - "", - null, - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return condition; -}; + goog.asserts.ENABLE_ASSERTS && + !condition && + module$contents$goog$asserts_doAssertFailure( + '', + null, + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return condition +} goog.asserts.assertExists = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - null == value && - module$contents$goog$asserts_doAssertFailure( - "Expected to exist: %s.", - [value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + null == value && + module$contents$goog$asserts_doAssertFailure( + 'Expected to exist: %s.', + [value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.fail = function (opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - module$contents$goog$asserts_errorHandler_( - new module$contents$goog$asserts_AssertionError( - "Failure" + (opt_message ? ": " + opt_message : ""), - Array.prototype.slice.call(arguments, 1) - ) - ); -}; + goog.asserts.ENABLE_ASSERTS && + module$contents$goog$asserts_errorHandler_( + new module$contents$goog$asserts_AssertionError( + 'Failure' + (opt_message ? ': ' + opt_message : ''), + Array.prototype.slice.call(arguments, 1) + ) + ) +} goog.asserts.assertNumber = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - "number" !== typeof value && - module$contents$goog$asserts_doAssertFailure( - "Expected number but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + 'number' !== typeof value && + module$contents$goog$asserts_doAssertFailure( + 'Expected number but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.assertString = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - "string" !== typeof value && - module$contents$goog$asserts_doAssertFailure( - "Expected string but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + 'string' !== typeof value && + module$contents$goog$asserts_doAssertFailure( + 'Expected string but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.assertFunction = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - "function" !== typeof value && - module$contents$goog$asserts_doAssertFailure( - "Expected function but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + 'function' !== typeof value && + module$contents$goog$asserts_doAssertFailure( + 'Expected function but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.assertObject = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - !goog.isObject(value) && - module$contents$goog$asserts_doAssertFailure( - "Expected object but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; -goog.asserts.assertArray = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - !Array.isArray(value) && - module$contents$goog$asserts_doAssertFailure( - "Expected array but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + !goog.isObject(value) && + module$contents$goog$asserts_doAssertFailure( + 'Expected object but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} +goog.asserts.assertArray = function (value, opt_message, var_args) { + goog.asserts.ENABLE_ASSERTS && + !Array.isArray(value) && + module$contents$goog$asserts_doAssertFailure( + 'Expected array but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.assertBoolean = function (value, opt_message, var_args) { - goog.asserts.ENABLE_ASSERTS && - "boolean" !== typeof value && - module$contents$goog$asserts_doAssertFailure( - "Expected boolean but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + 'boolean' !== typeof value && + module$contents$goog$asserts_doAssertFailure( + 'Expected boolean but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.assertElement = function (value, opt_message, var_args) { - !goog.asserts.ENABLE_ASSERTS || - (goog.isObject(value) && value.nodeType == goog.dom.NodeType.ELEMENT) || - module$contents$goog$asserts_doAssertFailure( - "Expected Element but got %s: %s.", - [goog.typeOf(value), value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + !goog.asserts.ENABLE_ASSERTS || + (goog.isObject(value) && value.nodeType == goog.dom.NodeType.ELEMENT) || + module$contents$goog$asserts_doAssertFailure( + 'Expected Element but got %s: %s.', + [goog.typeOf(value), value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} goog.asserts.assertInstanceof = function (value, type, opt_message, var_args) { - !goog.asserts.ENABLE_ASSERTS || - value instanceof type || - module$contents$goog$asserts_doAssertFailure( - "Expected instanceof %s but got %s.", - [ - module$contents$goog$asserts_getType(type), - module$contents$goog$asserts_getType(value), - ], - opt_message, - Array.prototype.slice.call(arguments, 3) - ); - return value; -}; + !goog.asserts.ENABLE_ASSERTS || + value instanceof type || + module$contents$goog$asserts_doAssertFailure( + 'Expected instanceof %s but got %s.', + [ + module$contents$goog$asserts_getType(type), + module$contents$goog$asserts_getType(value), + ], + opt_message, + Array.prototype.slice.call(arguments, 3) + ) + return value +} goog.asserts.assertFinite = function (value, opt_message, var_args) { - !goog.asserts.ENABLE_ASSERTS || - ("number" == typeof value && isFinite(value)) || - module$contents$goog$asserts_doAssertFailure( - "Expected %s to be a finite number but it is not.", - [value], - opt_message, - Array.prototype.slice.call(arguments, 2) - ); - return value; -}; + !goog.asserts.ENABLE_ASSERTS || + ('number' == typeof value && isFinite(value)) || + module$contents$goog$asserts_doAssertFailure( + 'Expected %s to be a finite number but it is not.', + [value], + opt_message, + Array.prototype.slice.call(arguments, 2) + ) + return value +} function module$contents$goog$asserts_getType(value) { - return value instanceof Function - ? value.displayName || value.name || "unknown type name" - : value instanceof Object - ? value.constructor.displayName || - value.constructor.name || - Object.prototype.toString.call(value) - : null === value - ? "null" - : typeof value; -} -goog.debug.entryPointRegistry = {}; -goog.debug.entryPointRegistry.EntryPointMonitor = function () {}; -goog.debug.EntryPointMonitor = goog.debug.entryPointRegistry.EntryPointMonitor; -goog.debug.entryPointRegistry.refList_ = []; -goog.debug.entryPointRegistry.monitors_ = []; -goog.debug.entryPointRegistry.monitorsMayExist_ = !1; + return value instanceof Function + ? value.displayName || value.name || 'unknown type name' + : value instanceof Object + ? value.constructor.displayName || + value.constructor.name || + Object.prototype.toString.call(value) + : null === value + ? 'null' + : typeof value +} +goog.debug.entryPointRegistry = {} +goog.debug.entryPointRegistry.EntryPointMonitor = function () {} +goog.debug.EntryPointMonitor = goog.debug.entryPointRegistry.EntryPointMonitor +goog.debug.entryPointRegistry.refList_ = [] +goog.debug.entryPointRegistry.monitors_ = [] +goog.debug.entryPointRegistry.monitorsMayExist_ = !1 goog.debug.entryPointRegistry.register = function (callback) { - goog.debug.entryPointRegistry.refList_[ - goog.debug.entryPointRegistry.refList_.length - ] = callback; - if (goog.debug.entryPointRegistry.monitorsMayExist_) { + goog.debug.entryPointRegistry.refList_[ + goog.debug.entryPointRegistry.refList_.length + ] = callback + if (goog.debug.entryPointRegistry.monitorsMayExist_) { + for ( + var monitors = goog.debug.entryPointRegistry.monitors_, i = 0; + i < monitors.length; + i++ + ) { + callback(goog.bind(monitors[i].wrap, monitors[i])) + } + } +} +goog.debug.entryPointRegistry.monitorAll = function (monitor) { + goog.debug.entryPointRegistry.monitorsMayExist_ = !0 for ( - var monitors = goog.debug.entryPointRegistry.monitors_, i = 0; - i < monitors.length; - i++ + var transformer = goog.bind(monitor.wrap, monitor), i = 0; + i < goog.debug.entryPointRegistry.refList_.length; + i++ ) { - callback(goog.bind(monitors[i].wrap, monitors[i])); + goog.debug.entryPointRegistry.refList_[i](transformer) } - } -}; -goog.debug.entryPointRegistry.monitorAll = function (monitor) { - goog.debug.entryPointRegistry.monitorsMayExist_ = !0; - for ( - var transformer = goog.bind(monitor.wrap, monitor), i = 0; - i < goog.debug.entryPointRegistry.refList_.length; - i++ - ) { - goog.debug.entryPointRegistry.refList_[i](transformer); - } - goog.debug.entryPointRegistry.monitors_.push(monitor); -}; + goog.debug.entryPointRegistry.monitors_.push(monitor) +} goog.debug.entryPointRegistry.unmonitorAllIfPossible = function (monitor) { - var monitors = goog.debug.entryPointRegistry.monitors_; - goog.asserts.assert( - monitor == monitors[monitors.length - 1], - "Only the most recent monitor can be unwrapped." - ); - for ( - var transformer = goog.bind(monitor.unwrap, monitor), i = 0; - i < goog.debug.entryPointRegistry.refList_.length; - i++ - ) { - goog.debug.entryPointRegistry.refList_[i](transformer); - } - monitors.length--; -}; -goog.array = {}; -goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE; + var monitors = goog.debug.entryPointRegistry.monitors_ + goog.asserts.assert( + monitor == monitors[monitors.length - 1], + 'Only the most recent monitor can be unwrapped.' + ) + for ( + var transformer = goog.bind(monitor.unwrap, monitor), i = 0; + i < goog.debug.entryPointRegistry.refList_.length; + i++ + ) { + goog.debug.entryPointRegistry.refList_[i](transformer) + } + monitors.length-- +} +goog.array = {} +goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS = - 2012 < goog.FEATURESET_YEAR; + 2012 < goog.FEATURESET_YEAR goog.array.ASSUME_NATIVE_FUNCTIONS = - module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS; + module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS function module$contents$goog$array_peek(array) { - return array[array.length - 1]; + return array[array.length - 1] } -goog.array.peek = module$contents$goog$array_peek; -goog.array.last = module$contents$goog$array_peek; +goog.array.peek = module$contents$goog$array_peek +goog.array.last = module$contents$goog$array_peek var module$contents$goog$array_indexOf = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || - Array.prototype.indexOf) - ? function (arr, obj, opt_fromIndex) { - goog.asserts.assert(null != arr.length); - return Array.prototype.indexOf.call(arr, obj, opt_fromIndex); - } - : function (arr, obj, opt_fromIndex) { - var fromIndex = - null == opt_fromIndex - ? 0 - : 0 > opt_fromIndex - ? Math.max(0, arr.length + opt_fromIndex) - : opt_fromIndex; - if ("string" === typeof arr) { - return "string" !== typeof obj || 1 != obj.length - ? -1 - : arr.indexOf(obj, fromIndex); - } - for (var i = fromIndex; i < arr.length; i++) { - if (i in arr && arr[i] === obj) { - return i; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.indexOf) + ? function (arr, obj, opt_fromIndex) { + goog.asserts.assert(null != arr.length) + return Array.prototype.indexOf.call(arr, obj, opt_fromIndex) } - } - return -1; - }; -goog.array.indexOf = module$contents$goog$array_indexOf; + : function (arr, obj, opt_fromIndex) { + var fromIndex = + null == opt_fromIndex + ? 0 + : 0 > opt_fromIndex + ? Math.max(0, arr.length + opt_fromIndex) + : opt_fromIndex + if ('string' === typeof arr) { + return 'string' !== typeof obj || 1 != obj.length + ? -1 + : arr.indexOf(obj, fromIndex) + } + for (var i = fromIndex; i < arr.length; i++) { + if (i in arr && arr[i] === obj) { + return i + } + } + return -1 + } +goog.array.indexOf = module$contents$goog$array_indexOf var module$contents$goog$array_lastIndexOf = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || - Array.prototype.lastIndexOf) - ? function (arr, obj, opt_fromIndex) { - goog.asserts.assert(null != arr.length); - return Array.prototype.lastIndexOf.call( - arr, - obj, - null == opt_fromIndex ? arr.length - 1 : opt_fromIndex - ); - } - : function (arr, obj, opt_fromIndex) { - var fromIndex = null == opt_fromIndex ? arr.length - 1 : opt_fromIndex; - 0 > fromIndex && (fromIndex = Math.max(0, arr.length + fromIndex)); - if ("string" === typeof arr) { - return "string" !== typeof obj || 1 != obj.length - ? -1 - : arr.lastIndexOf(obj, fromIndex); - } - for (var i = fromIndex; 0 <= i; i--) { - if (i in arr && arr[i] === obj) { - return i; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.lastIndexOf) + ? function (arr, obj, opt_fromIndex) { + goog.asserts.assert(null != arr.length) + return Array.prototype.lastIndexOf.call( + arr, + obj, + null == opt_fromIndex ? arr.length - 1 : opt_fromIndex + ) } - } - return -1; - }; -goog.array.lastIndexOf = module$contents$goog$array_lastIndexOf; + : function (arr, obj, opt_fromIndex) { + var fromIndex = + null == opt_fromIndex ? arr.length - 1 : opt_fromIndex + 0 > fromIndex && (fromIndex = Math.max(0, arr.length + fromIndex)) + if ('string' === typeof arr) { + return 'string' !== typeof obj || 1 != obj.length + ? -1 + : arr.lastIndexOf(obj, fromIndex) + } + for (var i = fromIndex; 0 <= i; i--) { + if (i in arr && arr[i] === obj) { + return i + } + } + return -1 + } +goog.array.lastIndexOf = module$contents$goog$array_lastIndexOf var module$contents$goog$array_forEach = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || - Array.prototype.forEach) - ? function (arr, f, opt_obj) { - goog.asserts.assert(null != arr.length); - Array.prototype.forEach.call(arr, f, opt_obj); - } - : function (arr, f, opt_obj) { - for ( - var l = arr.length, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = 0; - i < l; - i++ - ) { - i in arr2 && f.call(opt_obj, arr2[i], i, arr); - } - }; -goog.array.forEach = module$contents$goog$array_forEach; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.forEach) + ? function (arr, f, opt_obj) { + goog.asserts.assert(null != arr.length) + Array.prototype.forEach.call(arr, f, opt_obj) + } + : function (arr, f, opt_obj) { + for ( + var l = arr.length, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = 0; + i < l; + i++ + ) { + i in arr2 && f.call(opt_obj, arr2[i], i, arr) + } + } +goog.array.forEach = module$contents$goog$array_forEach function module$contents$goog$array_forEachRight(arr, f, opt_obj) { - for ( - var l = arr.length, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = l - 1; - 0 <= i; - --i - ) { - i in arr2 && f.call(opt_obj, arr2[i], i, arr); - } -} -goog.array.forEachRight = module$contents$goog$array_forEachRight; + for ( + var l = arr.length, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = l - 1; + 0 <= i; + --i + ) { + i in arr2 && f.call(opt_obj, arr2[i], i, arr) + } +} +goog.array.forEachRight = module$contents$goog$array_forEachRight var module$contents$goog$array_filter = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.filter) - ? function (arr, f, opt_obj) { - goog.asserts.assert(null != arr.length); - return Array.prototype.filter.call(arr, f, opt_obj); - } - : function (arr, f, opt_obj) { - for ( - var l = arr.length, - res = [], - resLength = 0, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = 0; - i < l; - i++ - ) { - if (i in arr2) { - var val = arr2[i]; - f.call(opt_obj, val, i, arr) && (res[resLength++] = val); + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.filter) + ? function (arr, f, opt_obj) { + goog.asserts.assert(null != arr.length) + return Array.prototype.filter.call(arr, f, opt_obj) } - } - return res; - }; -goog.array.filter = module$contents$goog$array_filter; + : function (arr, f, opt_obj) { + for ( + var l = arr.length, + res = [], + resLength = 0, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = 0; + i < l; + i++ + ) { + if (i in arr2) { + var val = arr2[i] + f.call(opt_obj, val, i, arr) && (res[resLength++] = val) + } + } + return res + } +goog.array.filter = module$contents$goog$array_filter var module$contents$goog$array_map = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.map) - ? function (arr, f, opt_obj) { - goog.asserts.assert(null != arr.length); - return Array.prototype.map.call(arr, f, opt_obj); - } - : function (arr, f, opt_obj) { - for ( - var l = arr.length, - res = Array(l), - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = 0; - i < l; - i++ - ) { - i in arr2 && (res[i] = f.call(opt_obj, arr2[i], i, arr)); - } - return res; - }; -goog.array.map = module$contents$goog$array_map; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.map) + ? function (arr, f, opt_obj) { + goog.asserts.assert(null != arr.length) + return Array.prototype.map.call(arr, f, opt_obj) + } + : function (arr, f, opt_obj) { + for ( + var l = arr.length, + res = Array(l), + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = 0; + i < l; + i++ + ) { + i in arr2 && (res[i] = f.call(opt_obj, arr2[i], i, arr)) + } + return res + } +goog.array.map = module$contents$goog$array_map goog.array.reduce = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduce) - ? function (arr, f, val, opt_obj) { - goog.asserts.assert(null != arr.length); - opt_obj && (f = goog.bind(f, opt_obj)); - return Array.prototype.reduce.call(arr, f, val); - } - : function (arr, f, val, opt_obj) { - var rval = val; - module$contents$goog$array_forEach(arr, function (val, index) { - rval = f.call(opt_obj, rval, val, index, arr); - }); - return rval; - }; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.reduce) + ? function (arr, f, val, opt_obj) { + goog.asserts.assert(null != arr.length) + opt_obj && (f = goog.bind(f, opt_obj)) + return Array.prototype.reduce.call(arr, f, val) + } + : function (arr, f, val, opt_obj) { + var rval = val + module$contents$goog$array_forEach(arr, function (val, index) { + rval = f.call(opt_obj, rval, val, index, arr) + }) + return rval + } goog.array.reduceRight = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || - Array.prototype.reduceRight) - ? function (arr, f, val, opt_obj) { - goog.asserts.assert(null != arr.length); - goog.asserts.assert(null != f); - opt_obj && (f = goog.bind(f, opt_obj)); - return Array.prototype.reduceRight.call(arr, f, val); - } - : function (arr, f, val, opt_obj) { - var rval = val; - module$contents$goog$array_forEachRight(arr, function (val, index) { - rval = f.call(opt_obj, rval, val, index, arr); - }); - return rval; - }; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.reduceRight) + ? function (arr, f, val, opt_obj) { + goog.asserts.assert(null != arr.length) + goog.asserts.assert(null != f) + opt_obj && (f = goog.bind(f, opt_obj)) + return Array.prototype.reduceRight.call(arr, f, val) + } + : function (arr, f, val, opt_obj) { + var rval = val + module$contents$goog$array_forEachRight( + arr, + function (val, index) { + rval = f.call(opt_obj, rval, val, index, arr) + } + ) + return rval + } var module$contents$goog$array_some = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.some) - ? function (arr, f, opt_obj) { - goog.asserts.assert(null != arr.length); - return Array.prototype.some.call(arr, f, opt_obj); - } - : function (arr, f, opt_obj) { - for ( - var l = arr.length, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = 0; - i < l; - i++ - ) { - if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) { - return !0; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.some) + ? function (arr, f, opt_obj) { + goog.asserts.assert(null != arr.length) + return Array.prototype.some.call(arr, f, opt_obj) } - } - return !1; - }; -goog.array.some = module$contents$goog$array_some; + : function (arr, f, opt_obj) { + for ( + var l = arr.length, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = 0; + i < l; + i++ + ) { + if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) { + return !0 + } + } + return !1 + } +goog.array.some = module$contents$goog$array_some var module$contents$goog$array_every = - goog.NATIVE_ARRAY_PROTOTYPES && - (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.every) - ? function (arr, f, opt_obj) { - goog.asserts.assert(null != arr.length); - return Array.prototype.every.call(arr, f, opt_obj); - } - : function (arr, f, opt_obj) { - for ( - var l = arr.length, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = 0; - i < l; - i++ - ) { - if (i in arr2 && !f.call(opt_obj, arr2[i], i, arr)) { - return !1; + goog.NATIVE_ARRAY_PROTOTYPES && + (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || + Array.prototype.every) + ? function (arr, f, opt_obj) { + goog.asserts.assert(null != arr.length) + return Array.prototype.every.call(arr, f, opt_obj) } - } - return !0; - }; -goog.array.every = module$contents$goog$array_every; + : function (arr, f, opt_obj) { + for ( + var l = arr.length, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = 0; + i < l; + i++ + ) { + if (i in arr2 && !f.call(opt_obj, arr2[i], i, arr)) { + return !1 + } + } + return !0 + } +goog.array.every = module$contents$goog$array_every function module$contents$goog$array_count(arr, f, opt_obj) { - var count = 0; - module$contents$goog$array_forEach( - arr, - function (element, index, arr) { - f.call(opt_obj, element, index, arr) && ++count; - }, - opt_obj - ); - return count; + var count = 0 + module$contents$goog$array_forEach( + arr, + function (element, index, arr) { + f.call(opt_obj, element, index, arr) && ++count + }, + opt_obj + ) + return count } -goog.array.count = module$contents$goog$array_count; +goog.array.count = module$contents$goog$array_count function module$contents$goog$array_find(arr, f, opt_obj) { - var i = module$contents$goog$array_findIndex(arr, f, opt_obj); - return 0 > i ? null : "string" === typeof arr ? arr.charAt(i) : arr[i]; + var i = module$contents$goog$array_findIndex(arr, f, opt_obj) + return 0 > i ? null : 'string' === typeof arr ? arr.charAt(i) : arr[i] } -goog.array.find = module$contents$goog$array_find; +goog.array.find = module$contents$goog$array_find function module$contents$goog$array_findIndex(arr, f, opt_obj) { - for ( - var l = arr.length, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = 0; - i < l; - i++ - ) { - if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) { - return i; - } - } - return -1; -} -goog.array.findIndex = module$contents$goog$array_findIndex; + for ( + var l = arr.length, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = 0; + i < l; + i++ + ) { + if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) { + return i + } + } + return -1 +} +goog.array.findIndex = module$contents$goog$array_findIndex goog.array.findRight = function (arr, f, opt_obj) { - var i = module$contents$goog$array_findIndexRight(arr, f, opt_obj); - return 0 > i ? null : "string" === typeof arr ? arr.charAt(i) : arr[i]; -}; + var i = module$contents$goog$array_findIndexRight(arr, f, opt_obj) + return 0 > i ? null : 'string' === typeof arr ? arr.charAt(i) : arr[i] +} function module$contents$goog$array_findIndexRight(arr, f, opt_obj) { - for ( - var l = arr.length, - arr2 = "string" === typeof arr ? arr.split("") : arr, - i = l - 1; - 0 <= i; - i-- - ) { - if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) { - return i; - } - } - return -1; -} -goog.array.findIndexRight = module$contents$goog$array_findIndexRight; + for ( + var l = arr.length, + arr2 = 'string' === typeof arr ? arr.split('') : arr, + i = l - 1; + 0 <= i; + i-- + ) { + if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) { + return i + } + } + return -1 +} +goog.array.findIndexRight = module$contents$goog$array_findIndexRight function module$contents$goog$array_contains(arr, obj) { - return 0 <= module$contents$goog$array_indexOf(arr, obj); + return 0 <= module$contents$goog$array_indexOf(arr, obj) } -goog.array.contains = module$contents$goog$array_contains; +goog.array.contains = module$contents$goog$array_contains function module$contents$goog$array_isEmpty(arr) { - return 0 == arr.length; + return 0 == arr.length } -goog.array.isEmpty = module$contents$goog$array_isEmpty; +goog.array.isEmpty = module$contents$goog$array_isEmpty function module$contents$goog$array_clear(arr) { - if (!Array.isArray(arr)) { - for (var i = arr.length - 1; 0 <= i; i--) { - delete arr[i]; + if (!Array.isArray(arr)) { + for (var i = arr.length - 1; 0 <= i; i--) { + delete arr[i] + } } - } - arr.length = 0; + arr.length = 0 } -goog.array.clear = module$contents$goog$array_clear; +goog.array.clear = module$contents$goog$array_clear goog.array.insert = function (arr, obj) { - module$contents$goog$array_contains(arr, obj) || arr.push(obj); -}; + module$contents$goog$array_contains(arr, obj) || arr.push(obj) +} function module$contents$goog$array_insertAt(arr, obj, opt_i) { - module$contents$goog$array_splice(arr, opt_i, 0, obj); + module$contents$goog$array_splice(arr, opt_i, 0, obj) } -goog.array.insertAt = module$contents$goog$array_insertAt; +goog.array.insertAt = module$contents$goog$array_insertAt goog.array.insertArrayAt = function (arr, elementsToAdd, opt_i) { - goog - .partial(module$contents$goog$array_splice, arr, opt_i, 0) - .apply(null, elementsToAdd); -}; + goog.partial(module$contents$goog$array_splice, arr, opt_i, 0).apply( + null, + elementsToAdd + ) +} goog.array.insertBefore = function (arr, obj, opt_obj2) { - var i; - 2 == arguments.length || - 0 > (i = module$contents$goog$array_indexOf(arr, opt_obj2)) - ? arr.push(obj) - : module$contents$goog$array_insertAt(arr, obj, i); -}; + var i + 2 == arguments.length || + 0 > (i = module$contents$goog$array_indexOf(arr, opt_obj2)) + ? arr.push(obj) + : module$contents$goog$array_insertAt(arr, obj, i) +} function module$contents$goog$array_remove(arr, obj) { - var i = module$contents$goog$array_indexOf(arr, obj), - rv; - (rv = 0 <= i) && module$contents$goog$array_removeAt(arr, i); - return rv; + var i = module$contents$goog$array_indexOf(arr, obj), + rv + ;(rv = 0 <= i) && module$contents$goog$array_removeAt(arr, i) + return rv } -goog.array.remove = module$contents$goog$array_remove; +goog.array.remove = module$contents$goog$array_remove function module$contents$goog$array_removeLast(arr, obj) { - var i = module$contents$goog$array_lastIndexOf(arr, obj); - return 0 <= i ? (module$contents$goog$array_removeAt(arr, i), !0) : !1; + var i = module$contents$goog$array_lastIndexOf(arr, obj) + return 0 <= i ? (module$contents$goog$array_removeAt(arr, i), !0) : !1 } -goog.array.removeLast = module$contents$goog$array_removeLast; +goog.array.removeLast = module$contents$goog$array_removeLast function module$contents$goog$array_removeAt(arr, i) { - goog.asserts.assert(null != arr.length); - return 1 == Array.prototype.splice.call(arr, i, 1).length; + goog.asserts.assert(null != arr.length) + return 1 == Array.prototype.splice.call(arr, i, 1).length } -goog.array.removeAt = module$contents$goog$array_removeAt; +goog.array.removeAt = module$contents$goog$array_removeAt goog.array.removeIf = function (arr, f, opt_obj) { - var i = module$contents$goog$array_findIndex(arr, f, opt_obj); - return 0 <= i ? (module$contents$goog$array_removeAt(arr, i), !0) : !1; -}; + var i = module$contents$goog$array_findIndex(arr, f, opt_obj) + return 0 <= i ? (module$contents$goog$array_removeAt(arr, i), !0) : !1 +} goog.array.removeAllIf = function (arr, f, opt_obj) { - var removedCount = 0; - module$contents$goog$array_forEachRight(arr, function (val, index) { - f.call(opt_obj, val, index, arr) && - module$contents$goog$array_removeAt(arr, index) && - removedCount++; - }); - return removedCount; -}; + var removedCount = 0 + module$contents$goog$array_forEachRight(arr, function (val, index) { + f.call(opt_obj, val, index, arr) && + module$contents$goog$array_removeAt(arr, index) && + removedCount++ + }) + return removedCount +} function module$contents$goog$array_concat(var_args) { - return Array.prototype.concat.apply([], arguments); + return Array.prototype.concat.apply([], arguments) } -goog.array.concat = module$contents$goog$array_concat; +goog.array.concat = module$contents$goog$array_concat goog.array.join = function (var_args) { - return Array.prototype.concat.apply([], arguments); -}; + return Array.prototype.concat.apply([], arguments) +} function module$contents$goog$array_toArray(object) { - var length = object.length; - if (0 < length) { - for (var rv = Array(length), i = 0; i < length; i++) { - rv[i] = object[i]; + var length = object.length + if (0 < length) { + for (var rv = Array(length), i = 0; i < length; i++) { + rv[i] = object[i] + } + return rv } - return rv; - } - return []; + return [] } -goog.array.toArray = module$contents$goog$array_toArray; -goog.array.clone = module$contents$goog$array_toArray; +goog.array.toArray = module$contents$goog$array_toArray +goog.array.clone = module$contents$goog$array_toArray function module$contents$goog$array_extend(arr1, var_args) { - for (var i = 1; i < arguments.length; i++) { - var arr2 = arguments[i]; - if (goog.isArrayLike(arr2)) { - var len1 = arr1.length || 0, - len2 = arr2.length || 0; - arr1.length = len1 + len2; - for (var j = 0; j < len2; j++) { - arr1[len1 + j] = arr2[j]; - } - } else { - arr1.push(arr2); + for (var i = 1; i < arguments.length; i++) { + var arr2 = arguments[i] + if (goog.isArrayLike(arr2)) { + var len1 = arr1.length || 0, + len2 = arr2.length || 0 + arr1.length = len1 + len2 + for (var j = 0; j < len2; j++) { + arr1[len1 + j] = arr2[j] + } + } else { + arr1.push(arr2) + } } - } } -goog.array.extend = module$contents$goog$array_extend; +goog.array.extend = module$contents$goog$array_extend function module$contents$goog$array_splice(arr, index, howMany, var_args) { - goog.asserts.assert(null != arr.length); - return Array.prototype.splice.apply( - arr, - module$contents$goog$array_slice(arguments, 1) - ); + goog.asserts.assert(null != arr.length) + return Array.prototype.splice.apply( + arr, + module$contents$goog$array_slice(arguments, 1) + ) } -goog.array.splice = module$contents$goog$array_splice; +goog.array.splice = module$contents$goog$array_splice function module$contents$goog$array_slice(arr, start, opt_end) { - goog.asserts.assert(null != arr.length); - return 2 >= arguments.length - ? Array.prototype.slice.call(arr, start) - : Array.prototype.slice.call(arr, start, opt_end); + goog.asserts.assert(null != arr.length) + return 2 >= arguments.length + ? Array.prototype.slice.call(arr, start) + : Array.prototype.slice.call(arr, start, opt_end) } -goog.array.slice = module$contents$goog$array_slice; +goog.array.slice = module$contents$goog$array_slice function module$contents$goog$array_removeDuplicates(arr, opt_rv, opt_hashFn) { - for ( - var returnArray = opt_rv || arr, - defaultHashFn = function (item) { - return goog.isObject(item) - ? "o" + goog.getUid(item) - : (typeof item).charAt(0) + item; - }, - hashFn = opt_hashFn || defaultHashFn, - cursorInsert = 0, - cursorRead = 0, - seen = {}; - cursorRead < arr.length; + for ( + var returnArray = opt_rv || arr, + defaultHashFn = function (item) { + return goog.isObject(item) + ? 'o' + goog.getUid(item) + : (typeof item).charAt(0) + item + }, + hashFn = opt_hashFn || defaultHashFn, + cursorInsert = 0, + cursorRead = 0, + seen = {}; + cursorRead < arr.length; - ) { - var current = arr[cursorRead++], - key = hashFn(current); - Object.prototype.hasOwnProperty.call(seen, key) || - ((seen[key] = !0), (returnArray[cursorInsert++] = current)); - } - returnArray.length = cursorInsert; -} -goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates; + ) { + var current = arr[cursorRead++], + key = hashFn(current) + Object.prototype.hasOwnProperty.call(seen, key) || + ((seen[key] = !0), (returnArray[cursorInsert++] = current)) + } + returnArray.length = cursorInsert +} +goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates function module$contents$goog$array_binarySearch(arr, target, opt_compareFn) { - return module$contents$goog$array_binarySearch_( - arr, - opt_compareFn || module$contents$goog$array_defaultCompare, - !1, - target - ); + return module$contents$goog$array_binarySearch_( + arr, + opt_compareFn || module$contents$goog$array_defaultCompare, + !1, + target + ) } -goog.array.binarySearch = module$contents$goog$array_binarySearch; +goog.array.binarySearch = module$contents$goog$array_binarySearch goog.array.binarySelect = function (arr, evaluator, opt_obj) { - return module$contents$goog$array_binarySearch_( - arr, - evaluator, - !0, - void 0, - opt_obj - ); -}; + return module$contents$goog$array_binarySearch_( + arr, + evaluator, + !0, + void 0, + opt_obj + ) +} function module$contents$goog$array_binarySearch_( - arr, - compareFn, - isEvaluator, - opt_target, - opt_selfObj -) { - for (var left = 0, right = arr.length, found; left < right; ) { - var middle = left + ((right - left) >>> 1), - compareResult = void 0; - compareResult = isEvaluator - ? compareFn.call(opt_selfObj, arr[middle], middle, arr) - : compareFn(opt_target, arr[middle]); - 0 < compareResult - ? (left = middle + 1) - : ((right = middle), (found = !compareResult)); - } - return found ? left : -left - 1; + arr, + compareFn, + isEvaluator, + opt_target, + opt_selfObj +) { + for (var left = 0, right = arr.length, found; left < right; ) { + var middle = left + ((right - left) >>> 1), + compareResult = void 0 + compareResult = isEvaluator + ? compareFn.call(opt_selfObj, arr[middle], middle, arr) + : compareFn(opt_target, arr[middle]) + 0 < compareResult + ? (left = middle + 1) + : ((right = middle), (found = !compareResult)) + } + return found ? left : -left - 1 } function module$contents$goog$array_sort(arr, opt_compareFn) { - arr.sort(opt_compareFn || module$contents$goog$array_defaultCompare); + arr.sort(opt_compareFn || module$contents$goog$array_defaultCompare) } -goog.array.sort = module$contents$goog$array_sort; +goog.array.sort = module$contents$goog$array_sort goog.array.stableSort = function (arr, opt_compareFn) { - for (var compArr = Array(arr.length), i = 0; i < arr.length; i++) { - compArr[i] = { index: i, value: arr[i] }; - } - var valueCompareFn = - opt_compareFn || module$contents$goog$array_defaultCompare; - module$contents$goog$array_sort(compArr, function (obj1, obj2) { - return valueCompareFn(obj1.value, obj2.value) || obj1.index - obj2.index; - }); - for (var i$jscomp$0 = 0; i$jscomp$0 < arr.length; i$jscomp$0++) { - arr[i$jscomp$0] = compArr[i$jscomp$0].value; - } -}; + for (var compArr = Array(arr.length), i = 0; i < arr.length; i++) { + compArr[i] = { index: i, value: arr[i] } + } + var valueCompareFn = + opt_compareFn || module$contents$goog$array_defaultCompare + module$contents$goog$array_sort(compArr, function (obj1, obj2) { + return valueCompareFn(obj1.value, obj2.value) || obj1.index - obj2.index + }) + for (var i$jscomp$0 = 0; i$jscomp$0 < arr.length; i$jscomp$0++) { + arr[i$jscomp$0] = compArr[i$jscomp$0].value + } +} function module$contents$goog$array_sortByKey(arr, keyFn, opt_compareFn) { - var keyCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare; - module$contents$goog$array_sort(arr, function (a, b) { - return keyCompareFn(keyFn(a), keyFn(b)); - }); + var keyCompareFn = + opt_compareFn || module$contents$goog$array_defaultCompare + module$contents$goog$array_sort(arr, function (a, b) { + return keyCompareFn(keyFn(a), keyFn(b)) + }) } -goog.array.sortByKey = module$contents$goog$array_sortByKey; +goog.array.sortByKey = module$contents$goog$array_sortByKey goog.array.sortObjectsByKey = function (arr, key, opt_compareFn) { - module$contents$goog$array_sortByKey( - arr, - function (obj) { - return obj[key]; - }, - opt_compareFn - ); -}; + module$contents$goog$array_sortByKey( + arr, + function (obj) { + return obj[key] + }, + opt_compareFn + ) +} function module$contents$goog$array_isSorted(arr, opt_compareFn, opt_strict) { - for ( - var compare = opt_compareFn || module$contents$goog$array_defaultCompare, - i = 1; - i < arr.length; - i++ - ) { - var compareResult = compare(arr[i - 1], arr[i]); - if (0 < compareResult || (0 == compareResult && opt_strict)) { - return !1; - } - } - return !0; -} -goog.array.isSorted = module$contents$goog$array_isSorted; + for ( + var compare = + opt_compareFn || module$contents$goog$array_defaultCompare, + i = 1; + i < arr.length; + i++ + ) { + var compareResult = compare(arr[i - 1], arr[i]) + if (0 < compareResult || (0 == compareResult && opt_strict)) { + return !1 + } + } + return !0 +} +goog.array.isSorted = module$contents$goog$array_isSorted function module$contents$goog$array_equals(arr1, arr2, opt_equalsFn) { - if ( - !goog.isArrayLike(arr1) || - !goog.isArrayLike(arr2) || - arr1.length != arr2.length - ) { - return !1; - } - for ( - var l = arr1.length, - equalsFn = - opt_equalsFn || module$contents$goog$array_defaultCompareEquality, - i = 0; - i < l; - i++ - ) { - if (!equalsFn(arr1[i], arr2[i])) { - return !1; - } - } - return !0; -} -goog.array.equals = module$contents$goog$array_equals; + if ( + !goog.isArrayLike(arr1) || + !goog.isArrayLike(arr2) || + arr1.length != arr2.length + ) { + return !1 + } + for ( + var l = arr1.length, + equalsFn = + opt_equalsFn || + module$contents$goog$array_defaultCompareEquality, + i = 0; + i < l; + i++ + ) { + if (!equalsFn(arr1[i], arr2[i])) { + return !1 + } + } + return !0 +} +goog.array.equals = module$contents$goog$array_equals goog.array.compare3 = function (arr1, arr2, opt_compareFn) { - for ( - var compare = opt_compareFn || module$contents$goog$array_defaultCompare, - l = Math.min(arr1.length, arr2.length), - i = 0; - i < l; - i++ - ) { - var result = compare(arr1[i], arr2[i]); - if (0 != result) { - return result; - } - } - return module$contents$goog$array_defaultCompare(arr1.length, arr2.length); -}; + for ( + var compare = + opt_compareFn || module$contents$goog$array_defaultCompare, + l = Math.min(arr1.length, arr2.length), + i = 0; + i < l; + i++ + ) { + var result = compare(arr1[i], arr2[i]) + if (0 != result) { + return result + } + } + return module$contents$goog$array_defaultCompare(arr1.length, arr2.length) +} function module$contents$goog$array_defaultCompare(a, b) { - return a > b ? 1 : a < b ? -1 : 0; + return a > b ? 1 : a < b ? -1 : 0 } -goog.array.defaultCompare = module$contents$goog$array_defaultCompare; +goog.array.defaultCompare = module$contents$goog$array_defaultCompare goog.array.inverseDefaultCompare = function (a, b) { - return -module$contents$goog$array_defaultCompare(a, b); -}; + return -module$contents$goog$array_defaultCompare(a, b) +} function module$contents$goog$array_defaultCompareEquality(a, b) { - return a === b; + return a === b } goog.array.defaultCompareEquality = - module$contents$goog$array_defaultCompareEquality; + module$contents$goog$array_defaultCompareEquality goog.array.binaryInsert = function (array, value, opt_compareFn) { - var index = module$contents$goog$array_binarySearch( - array, - value, - opt_compareFn - ); - return 0 > index - ? (module$contents$goog$array_insertAt(array, value, -(index + 1)), !0) - : !1; -}; + var index = module$contents$goog$array_binarySearch( + array, + value, + opt_compareFn + ) + return 0 > index + ? (module$contents$goog$array_insertAt(array, value, -(index + 1)), !0) + : !1 +} goog.array.binaryRemove = function (array, value, opt_compareFn) { - var index = module$contents$goog$array_binarySearch( - array, - value, - opt_compareFn - ); - return 0 <= index ? module$contents$goog$array_removeAt(array, index) : !1; -}; + var index = module$contents$goog$array_binarySearch( + array, + value, + opt_compareFn + ) + return 0 <= index ? module$contents$goog$array_removeAt(array, index) : !1 +} goog.array.bucket = function (array, sorter, opt_obj) { - for (var buckets = {}, i = 0; i < array.length; i++) { - var value = array[i], - key = sorter.call(opt_obj, value, i, array); - void 0 !== key && (buckets[key] || (buckets[key] = [])).push(value); - } - return buckets; -}; + for (var buckets = {}, i = 0; i < array.length; i++) { + var value = array[i], + key = sorter.call(opt_obj, value, i, array) + void 0 !== key && (buckets[key] || (buckets[key] = [])).push(value) + } + return buckets +} goog.array.bucketToMap = function (array, sorter) { - for (var buckets = new Map(), i = 0; i < array.length; i++) { - var value = array[i], - key = sorter(value, i, array); - if (void 0 !== key) { - var bucket = buckets.get(key); - bucket || ((bucket = []), buckets.set(key, bucket)); - bucket.push(value); - } - } - return buckets; -}; + for (var buckets = new Map(), i = 0; i < array.length; i++) { + var value = array[i], + key = sorter(value, i, array) + if (void 0 !== key) { + var bucket = buckets.get(key) + bucket || ((bucket = []), buckets.set(key, bucket)) + bucket.push(value) + } + } + return buckets +} goog.array.toObject = function (arr, keyFunc, opt_obj) { - var ret = {}; - module$contents$goog$array_forEach(arr, function (element, index) { - ret[keyFunc.call(opt_obj, element, index, arr)] = element; - }); - return ret; -}; + var ret = {} + module$contents$goog$array_forEach(arr, function (element, index) { + ret[keyFunc.call(opt_obj, element, index, arr)] = element + }) + return ret +} goog.array.toMap = function (arr, keyFunc) { - for (var map = new Map(), i = 0; i < arr.length; i++) { - var element = arr[i]; - map.set(keyFunc(element, i, arr), element); - } - return map; -}; + for (var map = new Map(), i = 0; i < arr.length; i++) { + var element = arr[i] + map.set(keyFunc(element, i, arr), element) + } + return map +} function module$contents$goog$array_range(startOrEnd, opt_end, opt_step) { - var array = [], - start = 0, - end = startOrEnd, - step = opt_step || 1; - void 0 !== opt_end && ((start = startOrEnd), (end = opt_end)); - if (0 > step * (end - start)) { - return []; - } - if (0 < step) { - for (var i = start; i < end; i += step) { - array.push(i); - } - } else { - for (var i$jscomp$0 = start; i$jscomp$0 > end; i$jscomp$0 += step) { - array.push(i$jscomp$0); - } - } - return array; -} -goog.array.range = module$contents$goog$array_range; + var array = [], + start = 0, + end = startOrEnd, + step = opt_step || 1 + void 0 !== opt_end && ((start = startOrEnd), (end = opt_end)) + if (0 > step * (end - start)) { + return [] + } + if (0 < step) { + for (var i = start; i < end; i += step) { + array.push(i) + } + } else { + for (var i$jscomp$0 = start; i$jscomp$0 > end; i$jscomp$0 += step) { + array.push(i$jscomp$0) + } + } + return array +} +goog.array.range = module$contents$goog$array_range function module$contents$goog$array_repeat(value, n) { - for (var array = [], i = 0; i < n; i++) { - array[i] = value; - } - return array; + for (var array = [], i = 0; i < n; i++) { + array[i] = value + } + return array } -goog.array.repeat = module$contents$goog$array_repeat; +goog.array.repeat = module$contents$goog$array_repeat function module$contents$goog$array_flatten(var_args) { - for (var result = [], i = 0; i < arguments.length; i++) { - var element = arguments[i]; - if (Array.isArray(element)) { - for (var c = 0; c < element.length; c += 8192) { - for ( - var chunk = module$contents$goog$array_slice(element, c, c + 8192), - recurseResult = module$contents$goog$array_flatten.apply( - null, - chunk - ), - r = 0; - r < recurseResult.length; - r++ - ) { - result.push(recurseResult[r]); + for (var result = [], i = 0; i < arguments.length; i++) { + var element = arguments[i] + if (Array.isArray(element)) { + for (var c = 0; c < element.length; c += 8192) { + for ( + var chunk = module$contents$goog$array_slice( + element, + c, + c + 8192 + ), + recurseResult = + module$contents$goog$array_flatten.apply( + null, + chunk + ), + r = 0; + r < recurseResult.length; + r++ + ) { + result.push(recurseResult[r]) + } + } + } else { + result.push(element) } - } - } else { - result.push(element); } - } - return result; + return result } -goog.array.flatten = module$contents$goog$array_flatten; +goog.array.flatten = module$contents$goog$array_flatten goog.array.rotate = function (array, n) { - goog.asserts.assert(null != array.length); - array.length && - ((n %= array.length), - 0 < n - ? Array.prototype.unshift.apply(array, array.splice(-n, n)) - : 0 > n && Array.prototype.push.apply(array, array.splice(0, -n))); - return array; -}; + goog.asserts.assert(null != array.length) + array.length && + ((n %= array.length), + 0 < n + ? Array.prototype.unshift.apply(array, array.splice(-n, n)) + : 0 > n && Array.prototype.push.apply(array, array.splice(0, -n))) + return array +} goog.array.moveItem = function (arr, fromIndex, toIndex) { - goog.asserts.assert(0 <= fromIndex && fromIndex < arr.length); - goog.asserts.assert(0 <= toIndex && toIndex < arr.length); - var removedItems = Array.prototype.splice.call(arr, fromIndex, 1); - Array.prototype.splice.call(arr, toIndex, 0, removedItems[0]); -}; + goog.asserts.assert(0 <= fromIndex && fromIndex < arr.length) + goog.asserts.assert(0 <= toIndex && toIndex < arr.length) + var removedItems = Array.prototype.splice.call(arr, fromIndex, 1) + Array.prototype.splice.call(arr, toIndex, 0, removedItems[0]) +} goog.array.zip = function (var_args) { - if (!arguments.length) { - return []; - } - for ( - var result = [], minLen = arguments[0].length, i = 1; - i < arguments.length; - i++ - ) { - arguments[i].length < minLen && (minLen = arguments[i].length); - } - for (var i$jscomp$0 = 0; i$jscomp$0 < minLen; i$jscomp$0++) { - for (var value = [], j = 0; j < arguments.length; j++) { - value.push(arguments[j][i$jscomp$0]); - } - result.push(value); - } - return result; -}; + if (!arguments.length) { + return [] + } + for ( + var result = [], minLen = arguments[0].length, i = 1; + i < arguments.length; + i++ + ) { + arguments[i].length < minLen && (minLen = arguments[i].length) + } + for (var i$jscomp$0 = 0; i$jscomp$0 < minLen; i$jscomp$0++) { + for (var value = [], j = 0; j < arguments.length; j++) { + value.push(arguments[j][i$jscomp$0]) + } + result.push(value) + } + return result +} goog.array.shuffle = function (arr, opt_randFn) { - for (var randFn = opt_randFn || Math.random, i = arr.length - 1; 0 < i; i--) { - var j = Math.floor(randFn() * (i + 1)), - tmp = arr[i]; - arr[i] = arr[j]; - arr[j] = tmp; - } -}; + for ( + var randFn = opt_randFn || Math.random, i = arr.length - 1; + 0 < i; + i-- + ) { + var j = Math.floor(randFn() * (i + 1)), + tmp = arr[i] + arr[i] = arr[j] + arr[j] = tmp + } +} goog.array.copyByIndex = function (arr, index_arr) { - var result = []; - module$contents$goog$array_forEach(index_arr, function (index) { - result.push(arr[index]); - }); - return result; -}; + var result = [] + module$contents$goog$array_forEach(index_arr, function (index) { + result.push(arr[index]) + }) + return result +} goog.array.concatMap = function (arr, f, opt_obj) { - return module$contents$goog$array_concat.apply( - [], - module$contents$goog$array_map(arr, f, opt_obj) - ); -}; -goog.debug.errorcontext = {}; + return module$contents$goog$array_concat.apply( + [], + module$contents$goog$array_map(arr, f, opt_obj) + ) +} +goog.debug.errorcontext = {} goog.debug.errorcontext.addErrorContext = function ( - err, - contextKey, - contextValue -) { - err[goog.debug.errorcontext.CONTEXT_KEY_] || - (err[goog.debug.errorcontext.CONTEXT_KEY_] = {}); - err[goog.debug.errorcontext.CONTEXT_KEY_][contextKey] = contextValue; -}; + err, + contextKey, + contextValue +) { + err[goog.debug.errorcontext.CONTEXT_KEY_] || + (err[goog.debug.errorcontext.CONTEXT_KEY_] = {}) + err[goog.debug.errorcontext.CONTEXT_KEY_][contextKey] = contextValue +} goog.debug.errorcontext.getErrorContext = function (err) { - return err[goog.debug.errorcontext.CONTEXT_KEY_] || {}; -}; -goog.debug.errorcontext.CONTEXT_KEY_ = "__closure__error__context__984382"; -goog.debug.LOGGING_ENABLED = goog.DEBUG; -goog.debug.FORCE_SLOPPY_STACKS = !1; -goog.debug.CHECK_FOR_THROWN_EVENT = !1; + return err[goog.debug.errorcontext.CONTEXT_KEY_] || {} +} +goog.debug.errorcontext.CONTEXT_KEY_ = '__closure__error__context__984382' +goog.debug.LOGGING_ENABLED = goog.DEBUG +goog.debug.FORCE_SLOPPY_STACKS = !1 +goog.debug.CHECK_FOR_THROWN_EVENT = !1 goog.debug.catchErrors = function (logFunc, opt_cancel, opt_target) { - var target = opt_target || goog.global, - oldErrorHandler = target.onerror, - retVal = !!opt_cancel; - target.onerror = function (message, url, line, opt_col, opt_error) { - oldErrorHandler && oldErrorHandler(message, url, line, opt_col, opt_error); - logFunc({ - message: message, - fileName: url, - line: line, - lineNumber: line, - col: opt_col, - error: opt_error, - }); - return retVal; - }; -}; + var target = opt_target || goog.global, + oldErrorHandler = target.onerror, + retVal = !!opt_cancel + target.onerror = function (message, url, line, opt_col, opt_error) { + oldErrorHandler && + oldErrorHandler(message, url, line, opt_col, opt_error) + logFunc({ + message: message, + fileName: url, + line: line, + lineNumber: line, + col: opt_col, + error: opt_error, + }) + return retVal + } +} goog.debug.expose = function (obj, opt_showFn) { - if ("undefined" == typeof obj) { - return "undefined"; - } - if (null == obj) { - return "NULL"; - } - var str = [], - x; - for (x in obj) { - if (opt_showFn || "function" !== typeof obj[x]) { - var s = x + " = "; - try { - s += obj[x]; - } catch (e) { - s += "*** " + e + " ***"; - } - str.push(s); + if ('undefined' == typeof obj) { + return 'undefined' } - } - return str.join("\n"); -}; -goog.debug.deepExpose = function (obj, opt_showFn) { - var str = [], - uidsToCleanup = [], - ancestorUids = {}, - helper = function (obj, space) { - var nestspace = space + " ", - indentMultiline = function (str) { - return str.replace(/\n/g, "\n" + space); - }; - try { - if (void 0 === obj) { - str.push("undefined"); - } else if (null === obj) { - str.push("NULL"); - } else if ("string" === typeof obj) { - str.push('"' + indentMultiline(obj) + '"'); - } else if ("function" === typeof obj) { - str.push(indentMultiline(String(obj))); - } else if (goog.isObject(obj)) { - goog.hasUid(obj) || uidsToCleanup.push(obj); - var uid = goog.getUid(obj); - if (ancestorUids[uid]) { - str.push("*** reference loop detected (id=" + uid + ") ***"); - } else { - ancestorUids[uid] = !0; - str.push("{"); - for (var x in obj) { - if (opt_showFn || "function" !== typeof obj[x]) { - str.push("\n"), - str.push(nestspace), - str.push(x + " = "), - helper(obj[x], nestspace); - } + if (null == obj) { + return 'NULL' + } + var str = [], + x + for (x in obj) { + if (opt_showFn || 'function' !== typeof obj[x]) { + var s = x + ' = ' + try { + s += obj[x] + } catch (e) { + s += '*** ' + e + ' ***' } - str.push("\n" + space + "}"); - delete ancestorUids[uid]; - } - } else { - str.push(obj); + str.push(s) } - } catch (e) { - str.push("*** " + e + " ***"); - } - }; - helper(obj, ""); - for (var i = 0; i < uidsToCleanup.length; i++) { - goog.removeUid(uidsToCleanup[i]); - } - return str.join(""); -}; + } + return str.join('\n') +} +goog.debug.deepExpose = function (obj, opt_showFn) { + var str = [], + uidsToCleanup = [], + ancestorUids = {}, + helper = function (obj, space) { + var nestspace = space + ' ', + indentMultiline = function (str) { + return str.replace(/\n/g, '\n' + space) + } + try { + if (void 0 === obj) { + str.push('undefined') + } else if (null === obj) { + str.push('NULL') + } else if ('string' === typeof obj) { + str.push('"' + indentMultiline(obj) + '"') + } else if ('function' === typeof obj) { + str.push(indentMultiline(String(obj))) + } else if (goog.isObject(obj)) { + goog.hasUid(obj) || uidsToCleanup.push(obj) + var uid = goog.getUid(obj) + if (ancestorUids[uid]) { + str.push( + '*** reference loop detected (id=' + uid + ') ***' + ) + } else { + ancestorUids[uid] = !0 + str.push('{') + for (var x in obj) { + if (opt_showFn || 'function' !== typeof obj[x]) { + str.push('\n'), + str.push(nestspace), + str.push(x + ' = '), + helper(obj[x], nestspace) + } + } + str.push('\n' + space + '}') + delete ancestorUids[uid] + } + } else { + str.push(obj) + } + } catch (e) { + str.push('*** ' + e + ' ***') + } + } + helper(obj, '') + for (var i = 0; i < uidsToCleanup.length; i++) { + goog.removeUid(uidsToCleanup[i]) + } + return str.join('') +} goog.debug.exposeArray = function (arr) { - for (var str = [], i = 0; i < arr.length; i++) { - Array.isArray(arr[i]) - ? str.push(goog.debug.exposeArray(arr[i])) - : str.push(arr[i]); - } - return "[ " + str.join(", ") + " ]"; -}; + for (var str = [], i = 0; i < arr.length; i++) { + Array.isArray(arr[i]) + ? str.push(goog.debug.exposeArray(arr[i])) + : str.push(arr[i]) + } + return '[ ' + str.join(', ') + ' ]' +} goog.debug.normalizeErrorObject = function (err) { - var href = goog.getObjectByName("window.location.href"); - null == err && (err = 'Unknown Error of type "null/undefined"'); - if ("string" === typeof err) { - return { - message: err, - name: "Unknown error", - lineNumber: "Not available", - fileName: href, - stack: "Not available", - }; - } - var threwError = !1; - try { - var lineNumber = err.lineNumber || err.line || "Not available"; - } catch (e) { - (lineNumber = "Not available"), (threwError = !0); - } - try { - var fileName = - err.fileName || - err.filename || - err.sourceURL || - goog.global.$googDebugFname || - href; - } catch (e) { - (fileName = "Not available"), (threwError = !0); - } - var stack = goog.debug.serializeErrorStack_(err); - if ( - !( - !threwError && - err.lineNumber && - err.fileName && - err.stack && - err.message && - err.name - ) - ) { - var message = err.message; - if (null == message) { - if (err.constructor && err.constructor instanceof Function) { - var ctorName = err.constructor.name - ? err.constructor.name - : goog.debug.getFunctionName(err.constructor); - message = 'Unknown Error of type "' + ctorName + '"'; - if (goog.debug.CHECK_FOR_THROWN_EVENT && "Event" == ctorName) { - try { - message = message + ' with Event.type "' + (err.type || "") + '"'; - } catch (e) {} + var href = goog.getObjectByName('window.location.href') + null == err && (err = 'Unknown Error of type "null/undefined"') + if ('string' === typeof err) { + return { + message: err, + name: 'Unknown error', + lineNumber: 'Not available', + fileName: href, + stack: 'Not available', + } + } + var threwError = !1 + try { + var lineNumber = err.lineNumber || err.line || 'Not available' + } catch (e) { + ;(lineNumber = 'Not available'), (threwError = !0) + } + try { + var fileName = + err.fileName || + err.filename || + err.sourceURL || + goog.global.$googDebugFname || + href + } catch (e) { + ;(fileName = 'Not available'), (threwError = !0) + } + var stack = goog.debug.serializeErrorStack_(err) + if ( + !( + !threwError && + err.lineNumber && + err.fileName && + err.stack && + err.message && + err.name + ) + ) { + var message = err.message + if (null == message) { + if (err.constructor && err.constructor instanceof Function) { + var ctorName = err.constructor.name + ? err.constructor.name + : goog.debug.getFunctionName(err.constructor) + message = 'Unknown Error of type "' + ctorName + '"' + if (goog.debug.CHECK_FOR_THROWN_EVENT && 'Event' == ctorName) { + try { + message = + message + + ' with Event.type "' + + (err.type || '') + + '"' + } catch (e) {} + } + } else { + message = 'Unknown Error of unknown type' + } + 'function' === typeof err.toString && + Object.prototype.toString !== err.toString && + (message += ': ' + err.toString()) + } + return { + message: message, + name: err.name || 'UnknownError', + lineNumber: lineNumber, + fileName: fileName, + stack: stack || 'Not available', } - } else { - message = "Unknown Error of unknown type"; - } - "function" === typeof err.toString && - Object.prototype.toString !== err.toString && - (message += ": " + err.toString()); } return { - message: message, - name: err.name || "UnknownError", - lineNumber: lineNumber, - fileName: fileName, - stack: stack || "Not available", - }; - } - return { - message: err.message, - name: err.name, - lineNumber: err.lineNumber, - fileName: err.fileName, - stack: stack, - }; -}; + message: err.message, + name: err.name, + lineNumber: err.lineNumber, + fileName: err.fileName, + stack: stack, + } +} goog.debug.serializeErrorStack_ = function (e, seen) { - seen || (seen = {}); - seen[goog.debug.serializeErrorAsKey_(e)] = !0; - var stack = e.stack || "", - cause = e.cause; - cause && - !seen[goog.debug.serializeErrorAsKey_(cause)] && - ((stack += "\nCaused by: "), - (cause.stack && 0 == cause.stack.indexOf(cause.toString())) || - (stack += "string" === typeof cause ? cause : cause.message + "\n"), - (stack += goog.debug.serializeErrorStack_(cause, seen))); - return stack; -}; + seen || (seen = {}) + seen[goog.debug.serializeErrorAsKey_(e)] = !0 + var stack = e.stack || '', + cause = e.cause + cause && + !seen[goog.debug.serializeErrorAsKey_(cause)] && + ((stack += '\nCaused by: '), + (cause.stack && 0 == cause.stack.indexOf(cause.toString())) || + (stack += 'string' === typeof cause ? cause : cause.message + '\n'), + (stack += goog.debug.serializeErrorStack_(cause, seen))) + return stack +} goog.debug.serializeErrorAsKey_ = function (e) { - var keyPrefix = ""; - "function" === typeof e.toString && (keyPrefix = "" + e); - return keyPrefix + e.stack; -}; + var keyPrefix = '' + 'function' === typeof e.toString && (keyPrefix = '' + e) + return keyPrefix + e.stack +} goog.debug.enhanceError = function (err, opt_message) { - if (err instanceof Error) { - var error = err; - } else { - (error = Error(err)), - Error.captureStackTrace && - Error.captureStackTrace(error, goog.debug.enhanceError); - } - error.stack || - (error.stack = goog.debug.getStacktrace(goog.debug.enhanceError)); - if (opt_message) { - for (var x = 0; error["message" + x]; ) { - ++x; - } - error["message" + x] = String(opt_message); - } - return error; -}; + if (err instanceof Error) { + var error = err + } else { + ;(error = Error(err)), + Error.captureStackTrace && + Error.captureStackTrace(error, goog.debug.enhanceError) + } + error.stack || + (error.stack = goog.debug.getStacktrace(goog.debug.enhanceError)) + if (opt_message) { + for (var x = 0; error['message' + x]; ) { + ++x + } + error['message' + x] = String(opt_message) + } + return error +} goog.debug.enhanceErrorWithContext = function (err, opt_context) { - var error = goog.debug.enhanceError(err); - if (opt_context) { - for (var key in opt_context) { - goog.debug.errorcontext.addErrorContext(error, key, opt_context[key]); - } - } - return error; -}; + var error = goog.debug.enhanceError(err) + if (opt_context) { + for (var key in opt_context) { + goog.debug.errorcontext.addErrorContext( + error, + key, + opt_context[key] + ) + } + } + return error +} goog.debug.getStacktraceSimple = function (opt_depth) { - if (!goog.debug.FORCE_SLOPPY_STACKS) { - var stack = goog.debug.getNativeStackTrace_(goog.debug.getStacktraceSimple); - if (stack) { - return stack; - } - } - for ( - var sb = [], fn = arguments.callee.caller, depth = 0; - fn && (!opt_depth || depth < opt_depth); + if (!goog.debug.FORCE_SLOPPY_STACKS) { + var stack = goog.debug.getNativeStackTrace_( + goog.debug.getStacktraceSimple + ) + if (stack) { + return stack + } + } + for ( + var sb = [], fn = arguments.callee.caller, depth = 0; + fn && (!opt_depth || depth < opt_depth); - ) { - sb.push(goog.debug.getFunctionName(fn)); - sb.push("()\n"); - try { - fn = fn.caller; - } catch (e) { - sb.push("[exception trying to get caller]\n"); - break; - } - depth++; - if (depth >= goog.debug.MAX_STACK_DEPTH) { - sb.push("[...long stack...]"); - break; - } - } - opt_depth && depth >= opt_depth - ? sb.push("[...reached max depth limit...]") - : sb.push("[end]"); - return sb.join(""); -}; -goog.debug.MAX_STACK_DEPTH = 50; + ) { + sb.push(goog.debug.getFunctionName(fn)) + sb.push('()\n') + try { + fn = fn.caller + } catch (e) { + sb.push('[exception trying to get caller]\n') + break + } + depth++ + if (depth >= goog.debug.MAX_STACK_DEPTH) { + sb.push('[...long stack...]') + break + } + } + opt_depth && depth >= opt_depth + ? sb.push('[...reached max depth limit...]') + : sb.push('[end]') + return sb.join('') +} +goog.debug.MAX_STACK_DEPTH = 50 goog.debug.getNativeStackTrace_ = function (fn) { - var tempErr = Error(); - if (Error.captureStackTrace) { - return Error.captureStackTrace(tempErr, fn), String(tempErr.stack); - } - try { - throw tempErr; - } catch (e) { - tempErr = e; - } - var stack = tempErr.stack; - return stack ? String(stack) : null; -}; -goog.debug.getStacktrace = function (fn) { - var stack; - goog.debug.FORCE_SLOPPY_STACKS || - (stack = goog.debug.getNativeStackTrace_(fn || goog.debug.getStacktrace)); - stack || - (stack = goog.debug.getStacktraceHelper_( - fn || arguments.callee.caller, - [] - )); - return stack; -}; -goog.debug.getStacktraceHelper_ = function (fn, visited) { - var sb = []; - if (module$contents$goog$array_contains(visited, fn)) { - sb.push("[...circular reference...]"); - } else if (fn && visited.length < goog.debug.MAX_STACK_DEPTH) { - sb.push(goog.debug.getFunctionName(fn) + "("); - for (var args = fn.arguments, i = 0; args && i < args.length; i++) { - 0 < i && sb.push(", "); - var arg = args[i]; - switch (typeof arg) { - case "object": - var argDesc = arg ? "object" : "null"; - break; - case "string": - argDesc = arg; - break; - case "number": - argDesc = String(arg); - break; - case "boolean": - argDesc = arg ? "true" : "false"; - break; - case "function": - argDesc = (argDesc = goog.debug.getFunctionName(arg)) - ? argDesc - : "[fn]"; - break; - default: - argDesc = typeof arg; - } - 40 < argDesc.length && (argDesc = argDesc.slice(0, 40) + "..."); - sb.push(argDesc); + var tempErr = Error() + if (Error.captureStackTrace) { + return Error.captureStackTrace(tempErr, fn), String(tempErr.stack) } - visited.push(fn); - sb.push(")\n"); try { - sb.push(goog.debug.getStacktraceHelper_(fn.caller, visited)); + throw tempErr } catch (e) { - sb.push("[exception trying to get caller]\n"); + tempErr = e + } + var stack = tempErr.stack + return stack ? String(stack) : null +} +goog.debug.getStacktrace = function (fn) { + var stack + goog.debug.FORCE_SLOPPY_STACKS || + (stack = goog.debug.getNativeStackTrace_( + fn || goog.debug.getStacktrace + )) + stack || + (stack = goog.debug.getStacktraceHelper_( + fn || arguments.callee.caller, + [] + )) + return stack +} +goog.debug.getStacktraceHelper_ = function (fn, visited) { + var sb = [] + if (module$contents$goog$array_contains(visited, fn)) { + sb.push('[...circular reference...]') + } else if (fn && visited.length < goog.debug.MAX_STACK_DEPTH) { + sb.push(goog.debug.getFunctionName(fn) + '(') + for (var args = fn.arguments, i = 0; args && i < args.length; i++) { + 0 < i && sb.push(', ') + var arg = args[i] + switch (typeof arg) { + case 'object': + var argDesc = arg ? 'object' : 'null' + break + case 'string': + argDesc = arg + break + case 'number': + argDesc = String(arg) + break + case 'boolean': + argDesc = arg ? 'true' : 'false' + break + case 'function': + argDesc = (argDesc = goog.debug.getFunctionName(arg)) + ? argDesc + : '[fn]' + break + default: + argDesc = typeof arg + } + 40 < argDesc.length && (argDesc = argDesc.slice(0, 40) + '...') + sb.push(argDesc) + } + visited.push(fn) + sb.push(')\n') + try { + sb.push(goog.debug.getStacktraceHelper_(fn.caller, visited)) + } catch (e) { + sb.push('[exception trying to get caller]\n') + } + } else { + fn ? sb.push('[...long stack...]') : sb.push('[end]') } - } else { - fn ? sb.push("[...long stack...]") : sb.push("[end]"); - } - return sb.join(""); -}; + return sb.join('') +} goog.debug.getFunctionName = function (fn) { - if (goog.debug.fnNameCache_[fn]) { - return goog.debug.fnNameCache_[fn]; - } - var functionSource = String(fn); - if (!goog.debug.fnNameCache_[functionSource]) { - var matches = /function\s+([^\(]+)/m.exec(functionSource); - goog.debug.fnNameCache_[functionSource] = matches - ? matches[1] - : "[Anonymous]"; - } - return goog.debug.fnNameCache_[functionSource]; -}; + if (goog.debug.fnNameCache_[fn]) { + return goog.debug.fnNameCache_[fn] + } + var functionSource = String(fn) + if (!goog.debug.fnNameCache_[functionSource]) { + var matches = /function\s+([^\(]+)/m.exec(functionSource) + goog.debug.fnNameCache_[functionSource] = matches + ? matches[1] + : '[Anonymous]' + } + return goog.debug.fnNameCache_[functionSource] +} goog.debug.makeWhitespaceVisible = function (string) { - return string - .replace(/ /g, "[_]") - .replace(/\f/g, "[f]") - .replace(/\n/g, "[n]\n") - .replace(/\r/g, "[r]") - .replace(/\t/g, "[t]"); -}; + return string + .replace(/ /g, '[_]') + .replace(/\f/g, '[f]') + .replace(/\n/g, '[n]\n') + .replace(/\r/g, '[r]') + .replace(/\t/g, '[t]') +} goog.debug.runtimeType = function (value) { - return value instanceof Function - ? value.displayName || value.name || "unknown type name" - : value instanceof Object - ? value.constructor.displayName || - value.constructor.name || - Object.prototype.toString.call(value) - : null === value - ? "null" - : typeof value; -}; -goog.debug.fnNameCache_ = {}; + return value instanceof Function + ? value.displayName || value.name || 'unknown type name' + : value instanceof Object + ? value.constructor.displayName || + value.constructor.name || + Object.prototype.toString.call(value) + : null === value + ? 'null' + : typeof value +} +goog.debug.fnNameCache_ = {} goog.debug.freezeInternal_ = - (goog.DEBUG && Object.freeze) || - function (arg) { - return arg; - }; + (goog.DEBUG && Object.freeze) || + function (arg) { + return arg + } goog.debug.freeze = function (arg) { - return (function () { - return goog.debug.freezeInternal_(arg); - })(); -}; + return (function () { + return goog.debug.freezeInternal_(arg) + })() +} goog.events.BrowserFeature = { - TOUCH_ENABLED: - "ontouchstart" in goog.global || - !!( - goog.global.document && - document.documentElement && - "ontouchstart" in document.documentElement - ) || - !( - !goog.global.navigator || - (!goog.global.navigator.maxTouchPoints && - !goog.global.navigator.msMaxTouchPoints) - ), - POINTER_EVENTS: "PointerEvent" in goog.global, - MSPOINTER_EVENTS: !1, - PASSIVE_EVENTS: (function (fn) { - return { valueOf: fn }.valueOf(); - })(function () { - if (!goog.global.addEventListener || !Object.defineProperty) { - return !1; - } - var passive = !1, - options = Object.defineProperty({}, "passive", { - get: function () { - passive = !0; - }, - }); - try { - var nullFunction = function () {}; - goog.global.addEventListener("test", nullFunction, options); - goog.global.removeEventListener("test", nullFunction, options); - } catch (e) {} - return passive; - }), -}; -goog.labs = {}; -goog.labs.userAgent = {}; -goog.labs.userAgent.chromiumRebrands = {}; + TOUCH_ENABLED: + 'ontouchstart' in goog.global || + !!( + goog.global.document && + document.documentElement && + 'ontouchstart' in document.documentElement + ) || + !( + !goog.global.navigator || + (!goog.global.navigator.maxTouchPoints && + !goog.global.navigator.msMaxTouchPoints) + ), + POINTER_EVENTS: 'PointerEvent' in goog.global, + MSPOINTER_EVENTS: !1, + PASSIVE_EVENTS: (function (fn) { + return { valueOf: fn }.valueOf() + })(function () { + if (!goog.global.addEventListener || !Object.defineProperty) { + return !1 + } + var passive = !1, + options = Object.defineProperty({}, 'passive', { + get: function () { + passive = !0 + }, + }) + try { + var nullFunction = function () {} + goog.global.addEventListener('test', nullFunction, options) + goog.global.removeEventListener('test', nullFunction, options) + } catch (e) {} + return passive + }), +} +goog.labs = {} +goog.labs.userAgent = {} +goog.labs.userAgent.chromiumRebrands = {} goog.labs.userAgent.chromiumRebrands.ChromiumRebrand = { - GOOGLE_CHROME: "Google Chrome", - BRAVE: "Brave", - OPERA: "Opera", - EDGE: "Microsoft Edge", -}; + GOOGLE_CHROME: 'Google Chrome', + BRAVE: 'Brave', + OPERA: 'Opera', + EDGE: 'Microsoft Edge', +} var module$exports$tslib = {}, - module$contents$tslib_extendStatics = - Object.setPrototypeOf || - function (d, b) { - for (var p in b) { - Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); - } - }; + module$contents$tslib_extendStatics = + Object.setPrototypeOf || + function (d, b) { + for (var p in b) { + Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]) + } + } module$exports$tslib.__extends = function (d, b) { - function __() { - this.constructor = d; - } - module$contents$tslib_extendStatics(d, b); - d.prototype = - null === b ? Object.create(b) : ((__.prototype = b.prototype), new __()); -}; + function __() { + this.constructor = d + } + module$contents$tslib_extendStatics(d, b) + d.prototype = + null === b ? Object.create(b) : ((__.prototype = b.prototype), new __()) +} module$exports$tslib.__assign = - Object.assign || - function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) { - Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]); - } + Object.assign || + function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i] + for (var p in s) { + Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]) + } + } + return t } - return t; - }; module$exports$tslib.__rest = function (s, e) { - var t = {}, - p; - for (p in s) { - Object.prototype.hasOwnProperty.call(s, p) && - 0 > e.indexOf(p) && - (t[p] = s[p]); - } - if (null != s && "function" === typeof Object.getOwnPropertySymbols) { - var i = 0; - for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - 0 > e.indexOf(p[i]) && - Object.prototype.propertyIsEnumerable.call(s, p[i]) && - (t[p[i]] = s[p[i]]); - } - } - return t; -}; + var t = {}, + p + for (p in s) { + Object.prototype.hasOwnProperty.call(s, p) && + 0 > e.indexOf(p) && + (t[p] = s[p]) + } + if (null != s && 'function' === typeof Object.getOwnPropertySymbols) { + var i = 0 + for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + 0 > e.indexOf(p[i]) && + Object.prototype.propertyIsEnumerable.call(s, p[i]) && + (t[p[i]] = s[p[i]]) + } + } + return t +} module$exports$tslib.__decorate = function (decorators, target, key, desc) { - var c = arguments.length, - r = - 3 > c - ? target - : null === desc - ? (desc = Object.getOwnPropertyDescriptor(target, key)) - : desc, - d; - if ( - "object" === typeof Reflect && - Reflect && - "function" === typeof Reflect.decorate - ) { - r = Reflect.decorate(decorators, target, key, desc); - } else { - for (var i = decorators.length - 1; 0 <= i; i--) { - if ((d = decorators[i])) { - r = (3 > c ? d(r) : 3 < c ? d(target, key, r) : d(target, key)) || r; - } + var c = arguments.length, + r = + 3 > c + ? target + : null === desc + ? (desc = Object.getOwnPropertyDescriptor(target, key)) + : desc, + d + if ( + 'object' === typeof Reflect && + Reflect && + 'function' === typeof Reflect.decorate + ) { + r = Reflect.decorate(decorators, target, key, desc) + } else { + for (var i = decorators.length - 1; 0 <= i; i--) { + if ((d = decorators[i])) { + r = + (3 > c + ? d(r) + : 3 < c + ? d(target, key, r) + : d(target, key)) || r + } + } } - } - return 3 < c && r && Object.defineProperty(target, key, r), r; -}; + return 3 < c && r && Object.defineProperty(target, key, r), r +} module$exports$tslib.__param = function (paramIndex, decorator) { - return function (target, key) { - decorator(target, key, paramIndex); - }; -}; + return function (target, key) { + decorator(target, key, paramIndex) + } +} module$exports$tslib.__setFunctionName = function (f, name, prefix) { - "symbol" === typeof name && - (name = name.description ? "[".concat(name.description, "]") : ""); - return Object.defineProperty(f, "name", { - configurable: !0, - value: prefix ? "".concat(prefix, " ", name) : name, - }); -}; + 'symbol' === typeof name && + (name = name.description ? '['.concat(name.description, ']') : '') + return Object.defineProperty(f, 'name', { + configurable: !0, + value: prefix ? ''.concat(prefix, ' ', name) : name, + }) +} module$exports$tslib.__metadata = function (metadataKey, metadataValue) { - if ( - "object" === typeof Reflect && - Reflect && - "function" === typeof Reflect.metadata - ) { - return Reflect.metadata(metadataKey, metadataValue); - } -}; -module$exports$tslib.__awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P - ? value - : new P(function (resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done - ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected); + if ( + 'object' === typeof Reflect && + Reflect && + 'function' === typeof Reflect.metadata + ) { + return Reflect.metadata(metadataKey, metadataValue) } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -module$exports$tslib.__generator = function (thisArg, body) { - function verb(n) { - return function (v) { - return step([n, v]); - }; - } - function step(op) { - if (f) { - throw new TypeError("Generator is already executing."); - } - for (; _; ) { - try { - if ( - ((f = 1), - y && - (t = - op[0] & 2 - ? y["return"] - : op[0] - ? y["throw"] || ((t = y["return"]) && t.call(y), 0) - : y.next) && - !(t = t.call(y, op[1])).done) - ) { - return t; - } - if (((y = 0), t)) { - op = [op[0] & 2, t.value]; - } - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - return _.label++, { value: op[1], done: !1 }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if ( - !((t = _.trys), (t = 0 < t.length && t[t.length - 1])) && - (6 === op[0] || 2 === op[0]) - ) { - _ = 0; - continue; +} +module$exports$tslib.__awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P + ? value + : new P(function (resolve) { + resolve(value) + }) + } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)) + } catch (e) { + reject(e) } - if (3 === op[0] && (!t || (op[1] > t[0] && op[1] < t[3]))) { - _.label = op[1]; - } else { - if (6 === op[0] && _.label < t[1]) { - (_.label = t[1]), (t = op); - } else { - if (t && _.label < t[2]) { - (_.label = t[2]), _.ops.push(op); - } else { - t[2] && _.ops.pop(); - _.trys.pop(); - continue; + } + function rejected(value) { + try { + step(generator['throw'](value)) + } catch (e) { + reject(e) + } + } + function step(result) { + result.done + ? resolve(result.value) + : adopt(result.value).then(fulfilled, rejected) + } + step((generator = generator.apply(thisArg, _arguments || [])).next()) + }) +} +module$exports$tslib.__generator = function (thisArg, body) { + function verb(n) { + return function (v) { + return step([n, v]) + } + } + function step(op) { + if (f) { + throw new TypeError('Generator is already executing.') + } + for (; _; ) { + try { + if ( + ((f = 1), + y && + (t = + op[0] & 2 + ? y['return'] + : op[0] + ? y['throw'] || + ((t = y['return']) && t.call(y), 0) + : y.next) && + !(t = t.call(y, op[1])).done) + ) { + return t } - } + if (((y = 0), t)) { + op = [op[0] & 2, t.value] + } + switch (op[0]) { + case 0: + case 1: + t = op + break + case 4: + return _.label++, { value: op[1], done: !1 } + case 5: + _.label++ + y = op[1] + op = [0] + continue + case 7: + op = _.ops.pop() + _.trys.pop() + continue + default: + if ( + !((t = _.trys), + (t = 0 < t.length && t[t.length - 1])) && + (6 === op[0] || 2 === op[0]) + ) { + _ = 0 + continue + } + if ( + 3 === op[0] && + (!t || (op[1] > t[0] && op[1] < t[3])) + ) { + _.label = op[1] + } else { + if (6 === op[0] && _.label < t[1]) { + ;(_.label = t[1]), (t = op) + } else { + if (t && _.label < t[2]) { + ;(_.label = t[2]), _.ops.push(op) + } else { + t[2] && _.ops.pop() + _.trys.pop() + continue + } + } + } + } + op = body.call(thisArg, _) + } catch (e) { + ;(op = [6, e]), (y = 0) + } finally { + f = t = 0 } } - op = body.call(thisArg, _); - } catch (e) { - (op = [6, e]), (y = 0); - } finally { - f = t = 0; - } + if (op[0] & 5) { + throw op[1] + } + return { value: op[0] ? op[1] : void 0, done: !0 } } - if (op[0] & 5) { - throw op[1]; - } - return { value: op[0] ? op[1] : void 0, done: !0 }; - } - var _ = { - label: 0, - sent: function () { - if (t[0] & 1) { - throw t[1]; - } - return t[1]; - }, - trys: [], - ops: [], - }, - f, - y, - t, - g; - return ( - (g = { next: verb(0), throw: verb(1), return: verb(2) }), - "function" === typeof Symbol && - (g[Symbol.iterator] = function () { - return g; - }), - g - ); -}; + var _ = { + label: 0, + sent: function () { + if (t[0] & 1) { + throw t[1] + } + return t[1] + }, + trys: [], + ops: [], + }, + f, + y, + t, + g + return ( + (g = { next: verb(0), throw: verb(1), return: verb(2) }), + 'function' === typeof Symbol && + (g[Symbol.iterator] = function () { + return g + }), + g + ) +} module$exports$tslib.__exportStar = function (m, o) { - for (var p in m) { - o.hasOwnProperty(p) || (o[p] = m[p]); - } -}; + for (var p in m) { + o.hasOwnProperty(p) || (o[p] = m[p]) + } +} module$exports$tslib.__values = function (o) { - var m = "function" === typeof Symbol && o[Symbol.iterator], - i = 0; - return m - ? m.call(o) - : { - next: function () { - o && i >= o.length && (o = void 0); - return { value: o && o[i++], done: !o }; - }, - }; -}; + var m = 'function' === typeof Symbol && o[Symbol.iterator], + i = 0 + return m + ? m.call(o) + : { + next: function () { + o && i >= o.length && (o = void 0) + return { value: o && o[i++], done: !o } + }, + } +} module$exports$tslib.__read = function (o, n) { - var m = "function" === typeof Symbol && o[Symbol.iterator]; - if (!m) { - return o; - } - var i = m.call(o), - r, - ar = []; - try { - for (; (void 0 === n || 0 < n--) && !(r = i.next()).done; ) { - ar.push(r.value); - } - } catch (error) { - var e = { error: error }; - } finally { + var m = 'function' === typeof Symbol && o[Symbol.iterator] + if (!m) { + return o + } + var i = m.call(o), + r, + ar = [] try { - r && !r.done && (m = i["return"]) && m.call(i); + for (; (void 0 === n || 0 < n--) && !(r = i.next()).done; ) { + ar.push(r.value) + } + } catch (error) { + var e = { error: error } } finally { - if (e) { - throw e.error; - } + try { + r && !r.done && (m = i['return']) && m.call(i) + } finally { + if (e) { + throw e.error + } + } } - } - return ar; -}; + return ar +} module$exports$tslib.__spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) { - ar = ar.concat(module$exports$tslib.__read(arguments[i])); - } - return ar; -}; + for (var ar = [], i = 0; i < arguments.length; i++) { + ar = ar.concat(module$exports$tslib.__read(arguments[i])) + } + return ar +} module$exports$tslib.__spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) { - s += arguments[i].length; - } - var r = Array(s), - k = 0; - for (i = 0; i < il; i++) { - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) { - r[k] = a[j]; - } - } - return r; -}; + for (var s = 0, i = 0, il = arguments.length; i < il; i++) { + s += arguments[i].length + } + var r = Array(s), + k = 0 + for (i = 0; i < il; i++) { + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) { + r[k] = a[j] + } + } + return r +} module$exports$tslib.__spreadArray = function (to, from, pack) { - if ( - !(Array.isArray(from) || from instanceof NodeList) && - "[object Arguments]" !== Object.prototype.toString.call(from) - ) { - throw new TypeError( - "Expected an Array, NodeList, or or Arguments: " + String(from) - ); - } - if (pack || 2 === arguments.length) { - for (var i = 0, l = from.length, ar; i < l; i++) { - (!ar && i in from) || - (ar || (ar = Array.prototype.slice.call(from, 0, i)), - (ar[i] = from[i])); - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; + if ( + !(Array.isArray(from) || from instanceof NodeList) && + '[object Arguments]' !== Object.prototype.toString.call(from) + ) { + throw new TypeError( + 'Expected an Array, NodeList, or or Arguments: ' + String(from) + ) + } + if (pack || 2 === arguments.length) { + for (var i = 0, l = from.length, ar; i < l; i++) { + ;(!ar && i in from) || + (ar || (ar = Array.prototype.slice.call(from, 0, i)), + (ar[i] = from[i])) + } + } + return to.concat(ar || Array.prototype.slice.call(from)) +} module$exports$tslib.__await = function (v) { - return this instanceof module$exports$tslib.__await - ? ((this.v = v), this) - : new module$exports$tslib.__await(v); -}; + return this instanceof module$exports$tslib.__await + ? ((this.v = v), this) + : new module$exports$tslib.__await(v) +} module$exports$tslib.__asyncGenerator = function ( - thisArg, - _arguments, - generator -) { - function verb(n) { - g[n] && - (i[n] = function (v) { - return new Promise(function (a, b) { - 1 < q.push([n, v, a, b]) || resume(n, v); - }); - }); - } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } - } - function step(r) { - r.value instanceof module$exports$tslib.__await - ? Promise.resolve(r.value.v).then(fulfill, reject) - : settle(q[0][2], r); - } - function fulfill(value) { - resume("next", value); - } - function reject(value) { - resume("throw", value); - } - function settle(f, v) { - (f(v), q.shift(), q.length) && resume(q[0][0], q[0][1]); - } - if (!Symbol.asyncIterator) { - throw new TypeError("Symbol.asyncIterator is not defined."); - } - var g = generator.apply(thisArg, _arguments || []), - i, - q = []; - return ( - (i = {}), - verb("next"), - verb("throw"), - verb("return"), - (i[Symbol.asyncIterator] = function () { - return this; - }), - i - ); -}; + thisArg, + _arguments, + generator +) { + function verb(n) { + g[n] && + (i[n] = function (v) { + return new Promise(function (a, b) { + 1 < q.push([n, v, a, b]) || resume(n, v) + }) + }) + } + function resume(n, v) { + try { + step(g[n](v)) + } catch (e) { + settle(q[0][3], e) + } + } + function step(r) { + r.value instanceof module$exports$tslib.__await + ? Promise.resolve(r.value.v).then(fulfill, reject) + : settle(q[0][2], r) + } + function fulfill(value) { + resume('next', value) + } + function reject(value) { + resume('throw', value) + } + function settle(f, v) { + ;(f(v), q.shift(), q.length) && resume(q[0][0], q[0][1]) + } + if (!Symbol.asyncIterator) { + throw new TypeError('Symbol.asyncIterator is not defined.') + } + var g = generator.apply(thisArg, _arguments || []), + i, + q = [] + return ( + (i = {}), + verb('next'), + verb('throw'), + verb('return'), + (i[Symbol.asyncIterator] = function () { + return this + }), + i + ) +} module$exports$tslib.__asyncDelegator = function (o) { - function verb(n, f) { - i[n] = o[n] - ? function (v) { - return (p = !p) - ? { - value: new module$exports$tslib.__await(o[n](v)), - done: "return" === n, + function verb(n, f) { + i[n] = o[n] + ? function (v) { + return (p = !p) + ? { + value: new module$exports$tslib.__await(o[n](v)), + done: 'return' === n, + } + : f + ? f(v) + : v } : f - ? f(v) - : v; - } - : f; - } - var i, p; - return ( - (i = {}), - verb("next"), - verb("throw", function (e) { - throw e; - }), - verb("return"), - (i[Symbol.iterator] = function () { - return i; - }), - i - ); -}; + } + var i, p + return ( + (i = {}), + verb('next'), + verb('throw', function (e) { + throw e + }), + verb('return'), + (i[Symbol.iterator] = function () { + return i + }), + i + ) +} module$exports$tslib.__asyncValues = function (o) { - function verb(n) { - i[n] = - o[n] && - function (v) { - return new Promise(function (resolve, reject) { - v = o[n](v); - settle(resolve, reject, v.done, v.value); - }); - }; - } - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function (v) { - resolve({ value: v, done: d }); - }, reject); - } - if (!Symbol.asyncIterator) { - throw new TypeError("Symbol.asyncIterator is not defined."); - } - var m = o[Symbol.asyncIterator], - i; - return m - ? m.call(o) - : ((o = - "function" === typeof __values ? __values(o) : o[Symbol.iterator]()), - (i = {}), - verb("next"), - verb("throw"), - verb("return"), - (i[Symbol.asyncIterator] = function () { - return this; - }), - i); -}; + function verb(n) { + i[n] = + o[n] && + function (v) { + return new Promise(function (resolve, reject) { + v = o[n](v) + settle(resolve, reject, v.done, v.value) + }) + } + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function (v) { + resolve({ value: v, done: d }) + }, reject) + } + if (!Symbol.asyncIterator) { + throw new TypeError('Symbol.asyncIterator is not defined.') + } + var m = o[Symbol.asyncIterator], + i + return m + ? m.call(o) + : ((o = + 'function' === typeof __values + ? __values(o) + : o[Symbol.iterator]()), + (i = {}), + verb('next'), + verb('throw'), + verb('return'), + (i[Symbol.asyncIterator] = function () { + return this + }), + i) +} module$exports$tslib.__makeTemplateObject = function (cooked, raw) { - Object.defineProperty - ? Object.defineProperty(cooked, "raw", { value: raw }) - : (cooked.raw = raw); - return cooked; -}; + Object.defineProperty + ? Object.defineProperty(cooked, 'raw', { value: raw }) + : (cooked.raw = raw) + return cooked +} module$exports$tslib.__classPrivateFieldGet = function ( - receiver, - state, - kind, - f -) { - if ("a" === kind && !f) { - throw new TypeError("Private accessor was defined without a getter"); - } - if ( - "function" === typeof state - ? receiver !== state || !f - : !state.has(receiver) - ) { - throw new TypeError( - "Cannot read private member from an object whose class did not declare it" - ); - } - return "m" === kind - ? f - : "a" === kind - ? f.call(receiver) - : f - ? f.value - : state.get(receiver); -}; + receiver, + state, + kind, + f +) { + if ('a' === kind && !f) { + throw new TypeError('Private accessor was defined without a getter') + } + if ( + 'function' === typeof state + ? receiver !== state || !f + : !state.has(receiver) + ) { + throw new TypeError( + 'Cannot read private member from an object whose class did not declare it' + ) + } + return 'm' === kind + ? f + : 'a' === kind + ? f.call(receiver) + : f + ? f.value + : state.get(receiver) +} module$exports$tslib.__classPrivateFieldSet = function ( - receiver, - state, - value, - kind, - f -) { - if ("m" === kind) { - throw new TypeError("Private method is not writable"); - } - if ("a" === kind && !f) { - throw new TypeError("Private accessor was defined without a setter"); - } - if ( - "function" === typeof state - ? receiver !== state || !f - : !state.has(receiver) - ) { - throw new TypeError( - "Cannot write private member to an object whose class did not declare it" - ); - } - return ( - "a" === kind - ? f.call(receiver, value) - : f - ? (f.value = value) - : state.set(receiver, value), - value - ); -}; + receiver, + state, + value, + kind, + f +) { + if ('m' === kind) { + throw new TypeError('Private method is not writable') + } + if ('a' === kind && !f) { + throw new TypeError('Private accessor was defined without a setter') + } + if ( + 'function' === typeof state + ? receiver !== state || !f + : !state.has(receiver) + ) { + throw new TypeError( + 'Cannot write private member to an object whose class did not declare it' + ) + } + return ( + 'a' === kind + ? f.call(receiver, value) + : f + ? (f.value = value) + : state.set(receiver, value), + value + ) +} module$exports$tslib.__classPrivateFieldIn = function (state, receiver) { - if ( - null === receiver || - ("object" !== typeof receiver && "function" !== typeof receiver) - ) { - throw new TypeError("Cannot use 'in' operator on non-object"); - } - return "function" === typeof state ? receiver === state : state.has(receiver); -}; + if ( + null === receiver || + ('object' !== typeof receiver && 'function' !== typeof receiver) + ) { + throw new TypeError("Cannot use 'in' operator on non-object") + } + return 'function' === typeof state + ? receiver === state + : state.has(receiver) +} var module$exports$closure$flags$flags$2etoggles = {}, - module$contents$closure$flags$flags$2etoggles_module = - module$contents$closure$flags$flags$2etoggles_module || { - id: "third_party/javascript/closure/flags/flags.toggles.closure.js", - }; -module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles = !1; + module$contents$closure$flags$flags$2etoggles_module = + module$contents$closure$flags$flags$2etoggles_module || { + id: 'third_party/javascript/closure/flags/flags.toggles.closure.js', + } +module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles = !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = - !1; + !1 module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_stable_flag__disable = - !1; -goog.flags = {}; + !1 +goog.flags = {} var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse( - 1, - goog.FLAGS_STAGING_DEFAULT -); + 1, + goog.FLAGS_STAGING_DEFAULT +) goog.flags.USE_USER_AGENT_CLIENT_HINTS = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable - : goog.readFlagInternalDoNotUseOrElse(610401301, !1); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable + : goog.readFlagInternalDoNotUseOrElse(610401301, !1) goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable - : goog.readFlagInternalDoNotUseOrElse(899588437, !1); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable + : goog.readFlagInternalDoNotUseOrElse(899588437, !1) goog.flags.CLIENT_ONLY_WIZ_ATTRIBUTE_SANITIZATION = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || - !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable - : goog.readFlagInternalDoNotUseOrElse(533565600, !0); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || + !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable + : goog.readFlagInternalDoNotUseOrElse(533565600, !0) goog.flags.CLIENT_ONLY_WIZ_HOOK_CONTEXT_FIX = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable - : goog.readFlagInternalDoNotUseOrElse(563486499, !1); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable + : goog.readFlagInternalDoNotUseOrElse(563486499, !1) goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || - !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable - : goog.readFlagInternalDoNotUseOrElse(572417392, !0); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || + !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable + : goog.readFlagInternalDoNotUseOrElse(572417392, !0) goog.flags.TESTONLY_DISABLED_FLAG = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable - : goog.readFlagInternalDoNotUseOrElse(2147483644, !1); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable + : goog.readFlagInternalDoNotUseOrElse(2147483644, !1) goog.flags.TESTONLY_DEBUG_FLAG = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? goog.DEBUG || - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable - : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? goog.DEBUG || + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable + : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG) goog.flags.TESTONLY_STAGING_FLAG = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? goog.FLAGS_STAGING_DEFAULT && - (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || - !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) - : goog.readFlagInternalDoNotUseOrElse( - 2147483646, - module$contents$goog$flags_STAGING - ); + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? goog.FLAGS_STAGING_DEFAULT && + (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || + !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) + : goog.readFlagInternalDoNotUseOrElse( + 2147483646, + module$contents$goog$flags_STAGING + ) goog.flags.TESTONLY_STABLE_FLAG = - module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles - ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || - !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_stable_flag__disable - : goog.readFlagInternalDoNotUseOrElse(2147483647, !0); -var module$contents$goog$labs$userAgent_forceClientHintsInTests = !1; + module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles + ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || + !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_stable_flag__disable + : goog.readFlagInternalDoNotUseOrElse(2147483647, !0) +var module$contents$goog$labs$userAgent_forceClientHintsInTests = !1 goog.labs.userAgent.setUseClientHintsForTesting = function (use) { - module$contents$goog$labs$userAgent_forceClientHintsInTests = use; -}; + module$contents$goog$labs$userAgent_forceClientHintsInTests = use +} goog.labs.userAgent.useClientHints = function () { - return ( - goog.flags.USE_USER_AGENT_CLIENT_HINTS || - module$contents$goog$labs$userAgent_forceClientHintsInTests - ); -}; -goog.string = {}; -goog.string.internal = {}; + return ( + goog.flags.USE_USER_AGENT_CLIENT_HINTS || + module$contents$goog$labs$userAgent_forceClientHintsInTests + ) +} +goog.string = {} +goog.string.internal = {} goog.string.internal.startsWith = function (str, prefix) { - return 0 == str.lastIndexOf(prefix, 0); -}; + return 0 == str.lastIndexOf(prefix, 0) +} goog.string.internal.endsWith = function (str, suffix) { - var l = str.length - suffix.length; - return 0 <= l && str.indexOf(suffix, l) == l; -}; + var l = str.length - suffix.length + return 0 <= l && str.indexOf(suffix, l) == l +} goog.string.internal.caseInsensitiveStartsWith = function (str, prefix) { - return ( - 0 == - goog.string.internal.caseInsensitiveCompare( - prefix, - str.slice(0, prefix.length) - ) - ); -}; + return ( + 0 == + goog.string.internal.caseInsensitiveCompare( + prefix, + str.slice(0, prefix.length) + ) + ) +} goog.string.internal.caseInsensitiveEndsWith = function (str, suffix) { - return ( - 0 == - goog.string.internal.caseInsensitiveCompare( - suffix, - str.slice(str.length - suffix.length) - ) - ); -}; + return ( + 0 == + goog.string.internal.caseInsensitiveCompare( + suffix, + str.slice(str.length - suffix.length) + ) + ) +} goog.string.internal.caseInsensitiveEquals = function (str1, str2) { - return str1.toLowerCase() == str2.toLowerCase(); -}; + return str1.toLowerCase() == str2.toLowerCase() +} goog.string.internal.isEmptyOrWhitespace = function (str) { - return /^[\s\xa0]*$/.test(str); -}; + return /^[\s\xa0]*$/.test(str) +} goog.string.internal.trim = - goog.TRUSTED_SITE && String.prototype.trim - ? function (str) { - return str.trim(); - } - : function (str) { - return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(str)[1]; - }; + goog.TRUSTED_SITE && String.prototype.trim + ? function (str) { + return str.trim() + } + : function (str) { + return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(str)[1] + } goog.string.internal.caseInsensitiveCompare = function (str1, str2) { - var test1 = String(str1).toLowerCase(), - test2 = String(str2).toLowerCase(); - return test1 < test2 ? -1 : test1 == test2 ? 0 : 1; -}; + var test1 = String(str1).toLowerCase(), + test2 = String(str2).toLowerCase() + return test1 < test2 ? -1 : test1 == test2 ? 0 : 1 +} goog.string.internal.newLineToBr = function (str, opt_xml) { - return str.replace(/(\r\n|\r|\n)/g, opt_xml ? "
" : "
"); -}; + return str.replace(/(\r\n|\r|\n)/g, opt_xml ? '
' : '
') +} goog.string.internal.htmlEscape = function ( - str, - opt_isLikelyToContainHtmlChars -) { - if (opt_isLikelyToContainHtmlChars) { - str = str - .replace(goog.string.internal.AMP_RE_, "&") - .replace(goog.string.internal.LT_RE_, "<") - .replace(goog.string.internal.GT_RE_, ">") - .replace(goog.string.internal.QUOT_RE_, """) - .replace(goog.string.internal.SINGLE_QUOTE_RE_, "'") - .replace(goog.string.internal.NULL_RE_, "�"); - } else { - if (!goog.string.internal.ALL_RE_.test(str)) { - return str; - } - -1 != str.indexOf("&") && - (str = str.replace(goog.string.internal.AMP_RE_, "&")); - -1 != str.indexOf("<") && - (str = str.replace(goog.string.internal.LT_RE_, "<")); - -1 != str.indexOf(">") && - (str = str.replace(goog.string.internal.GT_RE_, ">")); - -1 != str.indexOf('"') && - (str = str.replace(goog.string.internal.QUOT_RE_, """)); - -1 != str.indexOf("'") && - (str = str.replace(goog.string.internal.SINGLE_QUOTE_RE_, "'")); - -1 != str.indexOf("\x00") && - (str = str.replace(goog.string.internal.NULL_RE_, "�")); - } - return str; -}; -goog.string.internal.AMP_RE_ = /&/g; -goog.string.internal.LT_RE_ = //g; -goog.string.internal.QUOT_RE_ = /"/g; -goog.string.internal.SINGLE_QUOTE_RE_ = /'/g; -goog.string.internal.NULL_RE_ = /\x00/g; -goog.string.internal.ALL_RE_ = /[\x00&<>"']/; + str, + opt_isLikelyToContainHtmlChars +) { + if (opt_isLikelyToContainHtmlChars) { + str = str + .replace(goog.string.internal.AMP_RE_, '&') + .replace(goog.string.internal.LT_RE_, '<') + .replace(goog.string.internal.GT_RE_, '>') + .replace(goog.string.internal.QUOT_RE_, '"') + .replace(goog.string.internal.SINGLE_QUOTE_RE_, ''') + .replace(goog.string.internal.NULL_RE_, '�') + } else { + if (!goog.string.internal.ALL_RE_.test(str)) { + return str + } + ;-1 != str.indexOf('&') && + (str = str.replace(goog.string.internal.AMP_RE_, '&')) + ;-1 != str.indexOf('<') && + (str = str.replace(goog.string.internal.LT_RE_, '<')) + ;-1 != str.indexOf('>') && + (str = str.replace(goog.string.internal.GT_RE_, '>')) + ;-1 != str.indexOf('"') && + (str = str.replace(goog.string.internal.QUOT_RE_, '"')) + ;-1 != str.indexOf("'") && + (str = str.replace(goog.string.internal.SINGLE_QUOTE_RE_, ''')) + ;-1 != str.indexOf('\x00') && + (str = str.replace(goog.string.internal.NULL_RE_, '�')) + } + return str +} +goog.string.internal.AMP_RE_ = /&/g +goog.string.internal.LT_RE_ = //g +goog.string.internal.QUOT_RE_ = /"/g +goog.string.internal.SINGLE_QUOTE_RE_ = /'/g +goog.string.internal.NULL_RE_ = /\x00/g +goog.string.internal.ALL_RE_ = /[\x00&<>"']/ goog.string.internal.whitespaceEscape = function (str, opt_xml) { - return goog.string.internal.newLineToBr( - str.replace(/ /g, "  "), - opt_xml - ); -}; + return goog.string.internal.newLineToBr( + str.replace(/ /g, '  '), + opt_xml + ) +} goog.string.internal.contains = function (str, subString) { - return -1 != str.indexOf(subString); -}; + return -1 != str.indexOf(subString) +} goog.string.internal.caseInsensitiveContains = function (str, subString) { - return goog.string.internal.contains( - str.toLowerCase(), - subString.toLowerCase() - ); -}; + return goog.string.internal.contains( + str.toLowerCase(), + subString.toLowerCase() + ) +} goog.string.internal.compareVersions = function (version1, version2) { - for ( - var order = 0, - v1Subs = goog.string.internal.trim(String(version1)).split("."), - v2Subs = goog.string.internal.trim(String(version2)).split("."), - subCount = Math.max(v1Subs.length, v2Subs.length), - subIdx = 0; - 0 == order && subIdx < subCount; - subIdx++ - ) { - var v1Sub = v1Subs[subIdx] || "", - v2Sub = v2Subs[subIdx] || ""; - do { - var v1Comp = /(\d*)(\D*)(.*)/.exec(v1Sub) || ["", "", "", ""], - v2Comp = /(\d*)(\D*)(.*)/.exec(v2Sub) || ["", "", "", ""]; - if (0 == v1Comp[0].length && 0 == v2Comp[0].length) { - break; - } - order = - goog.string.internal.compareElements_( - 0 == v1Comp[1].length ? 0 : parseInt(v1Comp[1], 10), - 0 == v2Comp[1].length ? 0 : parseInt(v2Comp[1], 10) - ) || - goog.string.internal.compareElements_( - 0 == v1Comp[2].length, - 0 == v2Comp[2].length - ) || - goog.string.internal.compareElements_(v1Comp[2], v2Comp[2]); - v1Sub = v1Comp[3]; - v2Sub = v2Comp[3]; - } while (0 == order); - } - return order; -}; + for ( + var order = 0, + v1Subs = goog.string.internal.trim(String(version1)).split('.'), + v2Subs = goog.string.internal.trim(String(version2)).split('.'), + subCount = Math.max(v1Subs.length, v2Subs.length), + subIdx = 0; + 0 == order && subIdx < subCount; + subIdx++ + ) { + var v1Sub = v1Subs[subIdx] || '', + v2Sub = v2Subs[subIdx] || '' + do { + var v1Comp = /(\d*)(\D*)(.*)/.exec(v1Sub) || ['', '', '', ''], + v2Comp = /(\d*)(\D*)(.*)/.exec(v2Sub) || ['', '', '', ''] + if (0 == v1Comp[0].length && 0 == v2Comp[0].length) { + break + } + order = + goog.string.internal.compareElements_( + 0 == v1Comp[1].length ? 0 : parseInt(v1Comp[1], 10), + 0 == v2Comp[1].length ? 0 : parseInt(v2Comp[1], 10) + ) || + goog.string.internal.compareElements_( + 0 == v1Comp[2].length, + 0 == v2Comp[2].length + ) || + goog.string.internal.compareElements_(v1Comp[2], v2Comp[2]) + v1Sub = v1Comp[3] + v2Sub = v2Comp[3] + } while (0 == order) + } + return order +} goog.string.internal.compareElements_ = function (left, right) { - return left < right ? -1 : left > right ? 1 : 0; -}; -goog.labs.userAgent.util = {}; + return left < right ? -1 : left > right ? 1 : 0 +} +goog.labs.userAgent.util = {} function module$contents$goog$labs$userAgent$util_getNativeUserAgentString() { - var navigator = module$contents$goog$labs$userAgent$util_getNavigator(); - if (navigator) { - var userAgent = navigator.userAgent; - if (userAgent) { - return userAgent; + var navigator = module$contents$goog$labs$userAgent$util_getNavigator() + if (navigator) { + var userAgent = navigator.userAgent + if (userAgent) { + return userAgent + } } - } - return ""; + return '' } function module$contents$goog$labs$userAgent$util_getNativeUserAgentData() { - var navigator = module$contents$goog$labs$userAgent$util_getNavigator(); - return navigator ? navigator.userAgentData || null : null; + var navigator = module$contents$goog$labs$userAgent$util_getNavigator() + return navigator ? navigator.userAgentData || null : null } function module$contents$goog$labs$userAgent$util_getNavigator() { - return goog.global.navigator; + return goog.global.navigator } var module$contents$goog$labs$userAgent$util_userAgentInternal = null, - module$contents$goog$labs$userAgent$util_userAgentDataInternal = - module$contents$goog$labs$userAgent$util_getNativeUserAgentData(); + module$contents$goog$labs$userAgent$util_userAgentDataInternal = + module$contents$goog$labs$userAgent$util_getNativeUserAgentData() function module$contents$goog$labs$userAgent$util_getUserAgent() { - return null == module$contents$goog$labs$userAgent$util_userAgentInternal - ? module$contents$goog$labs$userAgent$util_getNativeUserAgentString() - : module$contents$goog$labs$userAgent$util_userAgentInternal; + return null == module$contents$goog$labs$userAgent$util_userAgentInternal + ? module$contents$goog$labs$userAgent$util_getNativeUserAgentString() + : module$contents$goog$labs$userAgent$util_userAgentInternal } function module$contents$goog$labs$userAgent$util_getUserAgentData() { - return module$contents$goog$labs$userAgent$util_userAgentDataInternal; + return module$contents$goog$labs$userAgent$util_userAgentDataInternal } function module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(str) { - if (!(0, goog.labs.userAgent.useClientHints)()) { - return !1; - } - var data = module$contents$goog$labs$userAgent$util_getUserAgentData(); - return data - ? data.brands.some(function ($jscomp$destructuring$var0) { - var brand = $jscomp$destructuring$var0.brand; - return brand && (0, goog.string.internal.contains)(brand, str); - }) - : !1; + if (!(0, goog.labs.userAgent.useClientHints)()) { + return !1 + } + var data = module$contents$goog$labs$userAgent$util_getUserAgentData() + return data + ? data.brands.some(function ($jscomp$destructuring$var0) { + var brand = $jscomp$destructuring$var0.brand + return brand && (0, goog.string.internal.contains)(brand, str) + }) + : !1 } function module$contents$goog$labs$userAgent$util_matchUserAgent(str) { - return (0, goog.string.internal.contains)( - module$contents$goog$labs$userAgent$util_getUserAgent(), - str - ); + return (0, goog.string.internal.contains)( + module$contents$goog$labs$userAgent$util_getUserAgent(), + str + ) } function module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase( - str -) { - return (0, goog.string.internal.caseInsensitiveContains)( - module$contents$goog$labs$userAgent$util_getUserAgent(), str - ); +) { + return (0, goog.string.internal.caseInsensitiveContains)( + module$contents$goog$labs$userAgent$util_getUserAgent(), + str + ) } function module$contents$goog$labs$userAgent$util_extractVersionTuples( - userAgent -) { - for ( - var versionRegExp = RegExp( - "([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?", - "g" - ), - data = [], - match; - (match = versionRegExp.exec(userAgent)); + userAgent +) { + for ( + var versionRegExp = RegExp( + '([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?', + 'g' + ), + data = [], + match; + (match = versionRegExp.exec(userAgent)); - ) { - data.push([match[1], match[2], match[3] || void 0]); - } - return data; + ) { + data.push([match[1], match[2], match[3] || void 0]) + } + return data } -goog.labs.userAgent.util.ASSUME_CLIENT_HINTS_SUPPORT = !1; +goog.labs.userAgent.util.ASSUME_CLIENT_HINTS_SUPPORT = !1 goog.labs.userAgent.util.extractVersionTuples = - module$contents$goog$labs$userAgent$util_extractVersionTuples; + module$contents$goog$labs$userAgent$util_extractVersionTuples goog.labs.userAgent.util.getNativeUserAgentString = - module$contents$goog$labs$userAgent$util_getNativeUserAgentString; + module$contents$goog$labs$userAgent$util_getNativeUserAgentString goog.labs.userAgent.util.getUserAgent = - module$contents$goog$labs$userAgent$util_getUserAgent; + module$contents$goog$labs$userAgent$util_getUserAgent goog.labs.userAgent.util.getUserAgentData = - module$contents$goog$labs$userAgent$util_getUserAgentData; + module$contents$goog$labs$userAgent$util_getUserAgentData goog.labs.userAgent.util.matchUserAgent = - module$contents$goog$labs$userAgent$util_matchUserAgent; + module$contents$goog$labs$userAgent$util_matchUserAgent goog.labs.userAgent.util.matchUserAgentDataBrand = - module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand; + module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand goog.labs.userAgent.util.matchUserAgentIgnoreCase = - module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase; + module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase goog.labs.userAgent.util.resetUserAgentData = function () { - module$contents$goog$labs$userAgent$util_userAgentDataInternal = - module$contents$goog$labs$userAgent$util_getNativeUserAgentData(); -}; + module$contents$goog$labs$userAgent$util_userAgentDataInternal = + module$contents$goog$labs$userAgent$util_getNativeUserAgentData() +} goog.labs.userAgent.util.setUserAgent = function (userAgent) { - module$contents$goog$labs$userAgent$util_userAgentInternal = - "string" === typeof userAgent - ? userAgent - : module$contents$goog$labs$userAgent$util_getNativeUserAgentString(); -}; + module$contents$goog$labs$userAgent$util_userAgentInternal = + 'string' === typeof userAgent + ? userAgent + : module$contents$goog$labs$userAgent$util_getNativeUserAgentString() +} goog.labs.userAgent.util.setUserAgentData = function (userAgentData) { - module$contents$goog$labs$userAgent$util_userAgentDataInternal = - userAgentData; -}; + module$contents$goog$labs$userAgent$util_userAgentDataInternal = + userAgentData +} var module$exports$goog$labs$userAgent$highEntropy$highEntropyValue = { - AsyncValue: function () {}, -}; + AsyncValue: function () {}, +} module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.AsyncValue.prototype.getIfLoaded = - function () {}; + function () {} module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.AsyncValue.prototype.load = - function () {}; + function () {} module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue = - function (key) { - this.key_ = key; - this.promise_ = this.value_ = void 0; - this.pending_ = !1; - }; + function (key) { + this.key_ = key + this.promise_ = this.value_ = void 0 + this.pending_ = !1 + } module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.getIfLoaded = - function () { - if (module$contents$goog$labs$userAgent$util_getUserAgentData()) { - return this.value_; + function () { + if (module$contents$goog$labs$userAgent$util_getUserAgentData()) { + return this.value_ + } } - }; module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.load = - function () { - var $jscomp$async$this = this, - userAgentData; - return $jscomp.asyncExecutePromiseGeneratorProgram(function ( - $jscomp$generator$context$m2110036436$1 - ) { - if (1 == $jscomp$generator$context$m2110036436$1.nextAddress) { - userAgentData = - module$contents$goog$labs$userAgent$util_getUserAgentData(); - if (!userAgentData) { - return $jscomp$generator$context$m2110036436$1.return(void 0); - } - $jscomp$async$this.promise_ || - (($jscomp$async$this.pending_ = !0), - ($jscomp$async$this.promise_ = (function () { - var dataValues; - return $jscomp.asyncExecutePromiseGeneratorProgram(function ( - $jscomp$generator$context$m2110036436$0 - ) { - if (1 == $jscomp$generator$context$m2110036436$0.nextAddress) { - return ( - $jscomp$generator$context$m2110036436$0.setFinallyBlock(2), - $jscomp$generator$context$m2110036436$0.yield( - userAgentData.getHighEntropyValues([ - $jscomp$async$this.key_, - ]), - 4 - ) - ); - } - if (2 != $jscomp$generator$context$m2110036436$0.nextAddress) { - return ( - (dataValues = - $jscomp$generator$context$m2110036436$0.yieldResult), - ($jscomp$async$this.value_ = - dataValues[$jscomp$async$this.key_]), - $jscomp$generator$context$m2110036436$0.return( - $jscomp$async$this.value_ - ) - ); - } - $jscomp$generator$context$m2110036436$0.enterFinallyBlock(); - $jscomp$async$this.pending_ = !1; - return $jscomp$generator$context$m2110036436$0.leaveFinallyBlock( - 0 - ); - }); - })())); - return $jscomp$generator$context$m2110036436$1.yield( - $jscomp$async$this.promise_, - 2 - ); - } - return $jscomp$generator$context$m2110036436$1.return( - $jscomp$generator$context$m2110036436$1.yieldResult - ); - }); - }; + function () { + var $jscomp$async$this = this, + userAgentData + return $jscomp.asyncExecutePromiseGeneratorProgram(function ( + $jscomp$generator$context$m2110036436$1 + ) { + if (1 == $jscomp$generator$context$m2110036436$1.nextAddress) { + userAgentData = + module$contents$goog$labs$userAgent$util_getUserAgentData() + if (!userAgentData) { + return $jscomp$generator$context$m2110036436$1.return( + void 0 + ) + } + $jscomp$async$this.promise_ || + (($jscomp$async$this.pending_ = !0), + ($jscomp$async$this.promise_ = (function () { + var dataValues + return $jscomp.asyncExecutePromiseGeneratorProgram( + function ($jscomp$generator$context$m2110036436$0) { + if ( + 1 == + $jscomp$generator$context$m2110036436$0.nextAddress + ) { + return ( + $jscomp$generator$context$m2110036436$0.setFinallyBlock( + 2 + ), + $jscomp$generator$context$m2110036436$0.yield( + userAgentData.getHighEntropyValues([ + $jscomp$async$this.key_, + ]), + 4 + ) + ) + } + if ( + 2 != + $jscomp$generator$context$m2110036436$0.nextAddress + ) { + return ( + (dataValues = + $jscomp$generator$context$m2110036436$0.yieldResult), + ($jscomp$async$this.value_ = + dataValues[ + $jscomp$async$this.key_ + ]), + $jscomp$generator$context$m2110036436$0.return( + $jscomp$async$this.value_ + ) + ) + } + $jscomp$generator$context$m2110036436$0.enterFinallyBlock() + $jscomp$async$this.pending_ = !1 + return $jscomp$generator$context$m2110036436$0.leaveFinallyBlock( + 0 + ) + } + ) + })())) + return $jscomp$generator$context$m2110036436$1.yield( + $jscomp$async$this.promise_, + 2 + ) + } + return $jscomp$generator$context$m2110036436$1.return( + $jscomp$generator$context$m2110036436$1.yieldResult + ) + }) + } module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.resetForTesting = - function () { - if (this.pending_) { - throw Error("Unsafe call to resetForTesting"); + function () { + if (this.pending_) { + throw Error('Unsafe call to resetForTesting') + } + this.value_ = this.promise_ = void 0 + this.pending_ = !1 } - this.value_ = this.promise_ = void 0; - this.pending_ = !1; - }; module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version = - function (versionString) { - this.versionString_ = versionString; - }; + function (versionString) { + this.versionString_ = versionString + } module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.toVersionStringForLogging = - function () { - return this.versionString_; - }; + function () { + return this.versionString_ + } module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.isAtLeast = - function (version) { - return ( - 0 <= - (0, goog.string.internal.compareVersions)(this.versionString_, version) - ); - }; -var module$exports$goog$labs$userAgent$highEntropy$highEntropyData = {}; + function (version) { + return ( + 0 <= + (0, goog.string.internal.compareVersions)( + this.versionString_, + version + ) + ) + } +var module$exports$goog$labs$userAgent$highEntropy$highEntropyData = {} module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList = - new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue( - "fullVersionList" - ); + new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue( + 'fullVersionList' + ) module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion = - new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue( - "platformVersion" - ); -goog.labs.userAgent.browser = {}; + new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue( + 'platformVersion' + ) +goog.labs.userAgent.browser = {} var module$contents$goog$labs$userAgent$browser_Brand = { - ANDROID_BROWSER: "Android Browser", - CHROMIUM: "Chromium", - EDGE: "Microsoft Edge", - FIREFOX: "Firefox", - IE: "Internet Explorer", - OPERA: "Opera", - SAFARI: "Safari", - SILK: "Silk", -}; + ANDROID_BROWSER: 'Android Browser', + CHROMIUM: 'Chromium', + EDGE: 'Microsoft Edge', + FIREFOX: 'Firefox', + IE: 'Internet Explorer', + OPERA: 'Opera', + SAFARI: 'Safari', + SILK: 'Silk', +} goog.labs.userAgent.browser.Brand = - module$contents$goog$labs$userAgent$browser_Brand; -var module$contents$goog$labs$userAgent$browser_AllBrandsInternal; + module$contents$goog$labs$userAgent$browser_Brand +var module$contents$goog$labs$userAgent$browser_AllBrandsInternal function module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand( - ignoreClientHintsFlag + ignoreClientHintsFlag ) { - if ( - !( - (void 0 !== ignoreClientHintsFlag && ignoreClientHintsFlag) || - (0, goog.labs.userAgent.useClientHints)() - ) - ) { - return !1; - } - var userAgentData = - module$contents$goog$labs$userAgent$util_getUserAgentData(); - return !!userAgentData && 0 < userAgentData.brands.length; + if ( + !( + (void 0 !== ignoreClientHintsFlag && ignoreClientHintsFlag) || + (0, goog.labs.userAgent.useClientHints)() + ) + ) { + return !1 + } + var userAgentData = + module$contents$goog$labs$userAgent$util_getUserAgentData() + return !!userAgentData && 0 < userAgentData.brands.length } function module$contents$goog$labs$userAgent$browser_hasFullVersionList() { - return module$contents$goog$labs$userAgent$browser_isAtLeast( - module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM, - 98 - ); + return module$contents$goog$labs$userAgent$browser_isAtLeast( + module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM, + 98 + ) } function module$contents$goog$labs$userAgent$browser_matchOpera() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? !1 - : module$contents$goog$labs$userAgent$util_matchUserAgent("Opera"); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? !1 + : module$contents$goog$labs$userAgent$util_matchUserAgent('Opera') } function module$contents$goog$labs$userAgent$browser_matchIE() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? !1 - : module$contents$goog$labs$userAgent$util_matchUserAgent("Trident") || - module$contents$goog$labs$userAgent$util_matchUserAgent("MSIE"); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? !1 + : module$contents$goog$labs$userAgent$util_matchUserAgent('Trident') || + module$contents$goog$labs$userAgent$util_matchUserAgent('MSIE') } function module$contents$goog$labs$userAgent$browser_matchEdgeHtml() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? !1 - : module$contents$goog$labs$userAgent$util_matchUserAgent("Edge"); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? !1 + : module$contents$goog$labs$userAgent$util_matchUserAgent('Edge') } function module$contents$goog$labs$userAgent$browser_matchEdgeChromium() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand( - module$contents$goog$labs$userAgent$browser_Brand.EDGE - ) - : module$contents$goog$labs$userAgent$util_matchUserAgent("Edg/"); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand( + module$contents$goog$labs$userAgent$browser_Brand.EDGE + ) + : module$contents$goog$labs$userAgent$util_matchUserAgent('Edg/') } function module$contents$goog$labs$userAgent$browser_matchOperaChromium() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand( - module$contents$goog$labs$userAgent$browser_Brand.OPERA - ) - : module$contents$goog$labs$userAgent$util_matchUserAgent("OPR"); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand( + module$contents$goog$labs$userAgent$browser_Brand.OPERA + ) + : module$contents$goog$labs$userAgent$util_matchUserAgent('OPR') } function module$contents$goog$labs$userAgent$browser_matchFirefox() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgent("Firefox") || - module$contents$goog$labs$userAgent$util_matchUserAgent("FxiOS") - ); + return ( + module$contents$goog$labs$userAgent$util_matchUserAgent('Firefox') || + module$contents$goog$labs$userAgent$util_matchUserAgent('FxiOS') + ) } function module$contents$goog$labs$userAgent$browser_matchSafari() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgent("Safari") && - !( - module$contents$goog$labs$userAgent$browser_matchChrome() || - module$contents$goog$labs$userAgent$browser_matchCoast() || - module$contents$goog$labs$userAgent$browser_matchOpera() || - module$contents$goog$labs$userAgent$browser_matchEdgeHtml() || - module$contents$goog$labs$userAgent$browser_matchEdgeChromium() || - module$contents$goog$labs$userAgent$browser_matchOperaChromium() || - module$contents$goog$labs$userAgent$browser_matchFirefox() || - module$contents$goog$labs$userAgent$browser_isSilk() || - module$contents$goog$labs$userAgent$util_matchUserAgent("Android") - ) - ); + return ( + module$contents$goog$labs$userAgent$util_matchUserAgent('Safari') && + !( + module$contents$goog$labs$userAgent$browser_matchChrome() || + module$contents$goog$labs$userAgent$browser_matchCoast() || + module$contents$goog$labs$userAgent$browser_matchOpera() || + module$contents$goog$labs$userAgent$browser_matchEdgeHtml() || + module$contents$goog$labs$userAgent$browser_matchEdgeChromium() || + module$contents$goog$labs$userAgent$browser_matchOperaChromium() || + module$contents$goog$labs$userAgent$browser_matchFirefox() || + module$contents$goog$labs$userAgent$browser_isSilk() || + module$contents$goog$labs$userAgent$util_matchUserAgent('Android') + ) + ) } function module$contents$goog$labs$userAgent$browser_matchCoast() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? !1 - : module$contents$goog$labs$userAgent$util_matchUserAgent("Coast"); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? !1 + : module$contents$goog$labs$userAgent$util_matchUserAgent('Coast') } function module$contents$goog$labs$userAgent$browser_matchChrome() { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() - ? module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand( - module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM - ) - : ((module$contents$goog$labs$userAgent$util_matchUserAgent("Chrome") || - module$contents$goog$labs$userAgent$util_matchUserAgent("CriOS")) && - !module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) || - module$contents$goog$labs$userAgent$browser_isSilk(); + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() + ? module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand( + module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM + ) + : ((module$contents$goog$labs$userAgent$util_matchUserAgent('Chrome') || + module$contents$goog$labs$userAgent$util_matchUserAgent( + 'CriOS' + )) && + !module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) || + module$contents$goog$labs$userAgent$browser_isSilk() } function module$contents$goog$labs$userAgent$browser_matchAndroidBrowser() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgent("Android") && - !( - module$contents$goog$labs$userAgent$browser_matchChrome() || - module$contents$goog$labs$userAgent$browser_matchFirefox() || - module$contents$goog$labs$userAgent$browser_matchOpera() || - module$contents$goog$labs$userAgent$browser_isSilk() + return ( + module$contents$goog$labs$userAgent$util_matchUserAgent('Android') && + !( + module$contents$goog$labs$userAgent$browser_matchChrome() || + module$contents$goog$labs$userAgent$browser_matchFirefox() || + module$contents$goog$labs$userAgent$browser_matchOpera() || + module$contents$goog$labs$userAgent$browser_isSilk() + ) ) - ); } var module$contents$goog$labs$userAgent$browser_isOpera = - module$contents$goog$labs$userAgent$browser_matchOpera; + module$contents$goog$labs$userAgent$browser_matchOpera goog.labs.userAgent.browser.isOpera = - module$contents$goog$labs$userAgent$browser_matchOpera; + module$contents$goog$labs$userAgent$browser_matchOpera var module$contents$goog$labs$userAgent$browser_isIE = - module$contents$goog$labs$userAgent$browser_matchIE; + module$contents$goog$labs$userAgent$browser_matchIE goog.labs.userAgent.browser.isIE = - module$contents$goog$labs$userAgent$browser_matchIE; + module$contents$goog$labs$userAgent$browser_matchIE var module$contents$goog$labs$userAgent$browser_isEdge = - module$contents$goog$labs$userAgent$browser_matchEdgeHtml; + module$contents$goog$labs$userAgent$browser_matchEdgeHtml goog.labs.userAgent.browser.isEdge = - module$contents$goog$labs$userAgent$browser_matchEdgeHtml; + module$contents$goog$labs$userAgent$browser_matchEdgeHtml var module$contents$goog$labs$userAgent$browser_isEdgeChromium = - module$contents$goog$labs$userAgent$browser_matchEdgeChromium; + module$contents$goog$labs$userAgent$browser_matchEdgeChromium goog.labs.userAgent.browser.isEdgeChromium = - module$contents$goog$labs$userAgent$browser_matchEdgeChromium; + module$contents$goog$labs$userAgent$browser_matchEdgeChromium var module$contents$goog$labs$userAgent$browser_isOperaChromium = - module$contents$goog$labs$userAgent$browser_matchOperaChromium; + module$contents$goog$labs$userAgent$browser_matchOperaChromium goog.labs.userAgent.browser.isOperaChromium = - module$contents$goog$labs$userAgent$browser_matchOperaChromium; + module$contents$goog$labs$userAgent$browser_matchOperaChromium var module$contents$goog$labs$userAgent$browser_isFirefox = - module$contents$goog$labs$userAgent$browser_matchFirefox; + module$contents$goog$labs$userAgent$browser_matchFirefox goog.labs.userAgent.browser.isFirefox = - module$contents$goog$labs$userAgent$browser_matchFirefox; + module$contents$goog$labs$userAgent$browser_matchFirefox var module$contents$goog$labs$userAgent$browser_isSafari = - module$contents$goog$labs$userAgent$browser_matchSafari; + module$contents$goog$labs$userAgent$browser_matchSafari goog.labs.userAgent.browser.isSafari = - module$contents$goog$labs$userAgent$browser_matchSafari; + module$contents$goog$labs$userAgent$browser_matchSafari var module$contents$goog$labs$userAgent$browser_isCoast = - module$contents$goog$labs$userAgent$browser_matchCoast; + module$contents$goog$labs$userAgent$browser_matchCoast goog.labs.userAgent.browser.isCoast = - module$contents$goog$labs$userAgent$browser_matchCoast; + module$contents$goog$labs$userAgent$browser_matchCoast goog.labs.userAgent.browser.isIosWebview = function () { - return ( - (module$contents$goog$labs$userAgent$util_matchUserAgent("iPad") || - module$contents$goog$labs$userAgent$util_matchUserAgent("iPhone")) && - !module$contents$goog$labs$userAgent$browser_matchSafari() && - !module$contents$goog$labs$userAgent$browser_matchChrome() && - !module$contents$goog$labs$userAgent$browser_matchCoast() && - !module$contents$goog$labs$userAgent$browser_matchFirefox() && - module$contents$goog$labs$userAgent$util_matchUserAgent("AppleWebKit") - ); -}; + return ( + (module$contents$goog$labs$userAgent$util_matchUserAgent('iPad') || + module$contents$goog$labs$userAgent$util_matchUserAgent( + 'iPhone' + )) && + !module$contents$goog$labs$userAgent$browser_matchSafari() && + !module$contents$goog$labs$userAgent$browser_matchChrome() && + !module$contents$goog$labs$userAgent$browser_matchCoast() && + !module$contents$goog$labs$userAgent$browser_matchFirefox() && + module$contents$goog$labs$userAgent$util_matchUserAgent('AppleWebKit') + ) +} var module$contents$goog$labs$userAgent$browser_isChrome = - module$contents$goog$labs$userAgent$browser_matchChrome; + module$contents$goog$labs$userAgent$browser_matchChrome goog.labs.userAgent.browser.isChrome = - module$contents$goog$labs$userAgent$browser_matchChrome; + module$contents$goog$labs$userAgent$browser_matchChrome var module$contents$goog$labs$userAgent$browser_isAndroidBrowser = - module$contents$goog$labs$userAgent$browser_matchAndroidBrowser; + module$contents$goog$labs$userAgent$browser_matchAndroidBrowser goog.labs.userAgent.browser.isAndroidBrowser = - module$contents$goog$labs$userAgent$browser_matchAndroidBrowser; + module$contents$goog$labs$userAgent$browser_matchAndroidBrowser function module$contents$goog$labs$userAgent$browser_isSilk() { - return module$contents$goog$labs$userAgent$util_matchUserAgent("Silk"); + return module$contents$goog$labs$userAgent$util_matchUserAgent('Silk') } goog.labs.userAgent.browser.isSilk = - module$contents$goog$labs$userAgent$browser_isSilk; + module$contents$goog$labs$userAgent$browser_isSilk function module$contents$goog$labs$userAgent$browser_createVersionMap( - versionTuples + versionTuples ) { - var versionMap = {}; - versionTuples.forEach(function (tuple) { - versionMap[tuple[0]] = tuple[1]; - }); - return function (keys) { - return ( - versionMap[ - keys.find(function (key) { - return key in versionMap; - }) - ] || "" - ); - }; + var versionMap = {} + versionTuples.forEach(function (tuple) { + versionMap[tuple[0]] = tuple[1] + }) + return function (keys) { + return ( + versionMap[ + keys.find(function (key) { + return key in versionMap + }) + ] || '' + ) + } } function module$contents$goog$labs$userAgent$browser_getVersion() { - var userAgentString = module$contents$goog$labs$userAgent$util_getUserAgent(); - if (module$contents$goog$labs$userAgent$browser_matchIE()) { - return module$contents$goog$labs$userAgent$browser_getIEVersion( - userAgentString - ); - } - var versionTuples = - module$contents$goog$labs$userAgent$util_extractVersionTuples( - userAgentString - ), - lookUpValueWithKeys = - module$contents$goog$labs$userAgent$browser_createVersionMap( - versionTuples - ); - if (module$contents$goog$labs$userAgent$browser_matchOpera()) { - return lookUpValueWithKeys(["Version", "Opera"]); - } - if (module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) { - return lookUpValueWithKeys(["Edge"]); - } - if (module$contents$goog$labs$userAgent$browser_matchEdgeChromium()) { - return lookUpValueWithKeys(["Edg"]); - } - if (module$contents$goog$labs$userAgent$browser_isSilk()) { - return lookUpValueWithKeys(["Silk"]); - } - if (module$contents$goog$labs$userAgent$browser_matchChrome()) { - return lookUpValueWithKeys(["Chrome", "CriOS", "HeadlessChrome"]); - } - var tuple = versionTuples[2]; - return (tuple && tuple[1]) || ""; + var userAgentString = + module$contents$goog$labs$userAgent$util_getUserAgent() + if (module$contents$goog$labs$userAgent$browser_matchIE()) { + return module$contents$goog$labs$userAgent$browser_getIEVersion( + userAgentString + ) + } + var versionTuples = + module$contents$goog$labs$userAgent$util_extractVersionTuples( + userAgentString + ), + lookUpValueWithKeys = + module$contents$goog$labs$userAgent$browser_createVersionMap( + versionTuples + ) + if (module$contents$goog$labs$userAgent$browser_matchOpera()) { + return lookUpValueWithKeys(['Version', 'Opera']) + } + if (module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) { + return lookUpValueWithKeys(['Edge']) + } + if (module$contents$goog$labs$userAgent$browser_matchEdgeChromium()) { + return lookUpValueWithKeys(['Edg']) + } + if (module$contents$goog$labs$userAgent$browser_isSilk()) { + return lookUpValueWithKeys(['Silk']) + } + if (module$contents$goog$labs$userAgent$browser_matchChrome()) { + return lookUpValueWithKeys(['Chrome', 'CriOS', 'HeadlessChrome']) + } + var tuple = versionTuples[2] + return (tuple && tuple[1]) || '' } goog.labs.userAgent.browser.getVersion = - module$contents$goog$labs$userAgent$browser_getVersion; + module$contents$goog$labs$userAgent$browser_getVersion goog.labs.userAgent.browser.isVersionOrHigher = function (version) { - return ( - 0 <= - (0, goog.string.internal.compareVersions)( - module$contents$goog$labs$userAgent$browser_getVersion(), - version - ) - ); -}; + return ( + 0 <= + (0, goog.string.internal.compareVersions)( + module$contents$goog$labs$userAgent$browser_getVersion(), + version + ) + ) +} function module$contents$goog$labs$userAgent$browser_getIEVersion(userAgent) { - var rv = /rv: *([\d\.]*)/.exec(userAgent); - if (rv && rv[1]) { - return rv[1]; - } - var version = "", - msie = /MSIE +([\d\.]+)/.exec(userAgent); - if (msie && msie[1]) { - var tridentVersion = /Trident\/(\d.\d)/.exec(userAgent); - if ("7.0" == msie[1]) { - if (tridentVersion && tridentVersion[1]) { - switch (tridentVersion[1]) { - case "4.0": - version = "8.0"; - break; - case "5.0": - version = "9.0"; - break; - case "6.0": - version = "10.0"; - break; - case "7.0": - version = "11.0"; - } - } else { - version = "7.0"; - } - } else { - version = msie[1]; + var rv = /rv: *([\d\.]*)/.exec(userAgent) + if (rv && rv[1]) { + return rv[1] + } + var version = '', + msie = /MSIE +([\d\.]+)/.exec(userAgent) + if (msie && msie[1]) { + var tridentVersion = /Trident\/(\d.\d)/.exec(userAgent) + if ('7.0' == msie[1]) { + if (tridentVersion && tridentVersion[1]) { + switch (tridentVersion[1]) { + case '4.0': + version = '8.0' + break + case '5.0': + version = '9.0' + break + case '6.0': + version = '10.0' + break + case '7.0': + version = '11.0' + } + } else { + version = '7.0' + } + } else { + version = msie[1] + } } - } - return version; + return version } function module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( - browser -) { - var userAgentString = module$contents$goog$labs$userAgent$util_getUserAgent(); - if (browser === module$contents$goog$labs$userAgent$browser_Brand.IE) { - return module$contents$goog$labs$userAgent$browser_matchIE() - ? module$contents$goog$labs$userAgent$browser_getIEVersion( - userAgentString - ) - : ""; - } - var versionTuples = - module$contents$goog$labs$userAgent$util_extractVersionTuples( - userAgentString - ), - lookUpValueWithKeys = - module$contents$goog$labs$userAgent$browser_createVersionMap( - versionTuples - ); - switch (browser) { - case module$contents$goog$labs$userAgent$browser_Brand.OPERA: - if (module$contents$goog$labs$userAgent$browser_matchOpera()) { - return lookUpValueWithKeys(["Version", "Opera"]); - } - if (module$contents$goog$labs$userAgent$browser_matchOperaChromium()) { - return lookUpValueWithKeys(["OPR"]); - } - break; - case module$contents$goog$labs$userAgent$browser_Brand.EDGE: - if (module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) { - return lookUpValueWithKeys(["Edge"]); - } - if (module$contents$goog$labs$userAgent$browser_matchEdgeChromium()) { - return lookUpValueWithKeys(["Edg"]); - } - break; - case module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM: - if (module$contents$goog$labs$userAgent$browser_matchChrome()) { - return lookUpValueWithKeys(["Chrome", "CriOS", "HeadlessChrome"]); - } - } - if ( - (browser === module$contents$goog$labs$userAgent$browser_Brand.FIREFOX && - module$contents$goog$labs$userAgent$browser_matchFirefox()) || - (browser === module$contents$goog$labs$userAgent$browser_Brand.SAFARI && - module$contents$goog$labs$userAgent$browser_matchSafari()) || - (browser === - module$contents$goog$labs$userAgent$browser_Brand.ANDROID_BROWSER && - module$contents$goog$labs$userAgent$browser_matchAndroidBrowser()) || - (browser === module$contents$goog$labs$userAgent$browser_Brand.SILK && - module$contents$goog$labs$userAgent$browser_isSilk()) - ) { - var tuple = versionTuples[2]; - return (tuple && tuple[1]) || ""; - } - return ""; + browser +) { + var userAgentString = + module$contents$goog$labs$userAgent$util_getUserAgent() + if (browser === module$contents$goog$labs$userAgent$browser_Brand.IE) { + return module$contents$goog$labs$userAgent$browser_matchIE() + ? module$contents$goog$labs$userAgent$browser_getIEVersion( + userAgentString + ) + : '' + } + var versionTuples = + module$contents$goog$labs$userAgent$util_extractVersionTuples( + userAgentString + ), + lookUpValueWithKeys = + module$contents$goog$labs$userAgent$browser_createVersionMap( + versionTuples + ) + switch (browser) { + case module$contents$goog$labs$userAgent$browser_Brand.OPERA: + if (module$contents$goog$labs$userAgent$browser_matchOpera()) { + return lookUpValueWithKeys(['Version', 'Opera']) + } + if ( + module$contents$goog$labs$userAgent$browser_matchOperaChromium() + ) { + return lookUpValueWithKeys(['OPR']) + } + break + case module$contents$goog$labs$userAgent$browser_Brand.EDGE: + if (module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) { + return lookUpValueWithKeys(['Edge']) + } + if ( + module$contents$goog$labs$userAgent$browser_matchEdgeChromium() + ) { + return lookUpValueWithKeys(['Edg']) + } + break + case module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM: + if (module$contents$goog$labs$userAgent$browser_matchChrome()) { + return lookUpValueWithKeys([ + 'Chrome', + 'CriOS', + 'HeadlessChrome', + ]) + } + } + if ( + (browser === + module$contents$goog$labs$userAgent$browser_Brand.FIREFOX && + module$contents$goog$labs$userAgent$browser_matchFirefox()) || + (browser === module$contents$goog$labs$userAgent$browser_Brand.SAFARI && + module$contents$goog$labs$userAgent$browser_matchSafari()) || + (browser === + module$contents$goog$labs$userAgent$browser_Brand.ANDROID_BROWSER && + module$contents$goog$labs$userAgent$browser_matchAndroidBrowser()) || + (browser === module$contents$goog$labs$userAgent$browser_Brand.SILK && + module$contents$goog$labs$userAgent$browser_isSilk()) + ) { + var tuple = versionTuples[2] + return (tuple && tuple[1]) || '' + } + return '' } function module$contents$goog$labs$userAgent$browser_versionOf_(browser) { - if ( - module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() && - browser !== module$contents$goog$labs$userAgent$browser_Brand.SILK - ) { - var matchingBrand = - module$contents$goog$labs$userAgent$util_getUserAgentData().brands.find( - function ($jscomp$destructuring$var2) { - return $jscomp$destructuring$var2.brand === browser; - } - ); - if (!matchingBrand || !matchingBrand.version) { - return NaN; - } - var versionParts = matchingBrand.version.split("."); - } else { - var fullVersion = - module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( - browser - ); - if ("" === fullVersion) { - return NaN; + if ( + module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand() && + browser !== module$contents$goog$labs$userAgent$browser_Brand.SILK + ) { + var matchingBrand = + module$contents$goog$labs$userAgent$util_getUserAgentData().brands.find( + function ($jscomp$destructuring$var2) { + return $jscomp$destructuring$var2.brand === browser + } + ) + if (!matchingBrand || !matchingBrand.version) { + return NaN + } + var versionParts = matchingBrand.version.split('.') + } else { + var fullVersion = + module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( + browser + ) + if ('' === fullVersion) { + return NaN + } + versionParts = fullVersion.split('.') } - versionParts = fullVersion.split("."); - } - return 0 === versionParts.length ? NaN : Number(versionParts[0]); + return 0 === versionParts.length ? NaN : Number(versionParts[0]) } function module$contents$goog$labs$userAgent$browser_isAtLeast( - brand, - majorVersion -) { - (0, goog.asserts.assert)( - Math.floor(majorVersion) === majorVersion, - "Major version must be an integer" - ); - return ( - module$contents$goog$labs$userAgent$browser_versionOf_(brand) >= + brand, majorVersion - ); +) { + ;(0, goog.asserts.assert)( + Math.floor(majorVersion) === majorVersion, + 'Major version must be an integer' + ) + return ( + module$contents$goog$labs$userAgent$browser_versionOf_(brand) >= + majorVersion + ) } goog.labs.userAgent.browser.isAtLeast = - module$contents$goog$labs$userAgent$browser_isAtLeast; + module$contents$goog$labs$userAgent$browser_isAtLeast goog.labs.userAgent.browser.isAtMost = function (brand, majorVersion) { - (0, goog.asserts.assert)( - Math.floor(majorVersion) === majorVersion, - "Major version must be an integer" - ); - return ( - module$contents$goog$labs$userAgent$browser_versionOf_(brand) <= - majorVersion - ); -}; + ;(0, goog.asserts.assert)( + Math.floor(majorVersion) === majorVersion, + 'Major version must be an integer' + ) + return ( + module$contents$goog$labs$userAgent$browser_versionOf_(brand) <= + majorVersion + ) +} var module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion = - function (brand, useUach, fallbackVersion) { - this.brand_ = brand; - this.version_ = - new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( - fallbackVersion - ); - this.useUach_ = useUach; - }; -module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.getIfLoaded = - function () { - var $jscomp$this = this; - if (this.useUach_) { - var loadedVersionList = - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.getIfLoaded(); - if (void 0 !== loadedVersionList) { - var matchingBrand = loadedVersionList.find(function ( - $jscomp$destructuring$var4 - ) { - return $jscomp$this.brand_ === $jscomp$destructuring$var4.brand; - }); - (0, goog.asserts.assertExists)(matchingBrand); - return new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( - matchingBrand.version - ); - } + function (brand, useUach, fallbackVersion) { + this.brand_ = brand + this.version_ = + new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( + fallbackVersion + ) + this.useUach_ = useUach } - if (module$contents$goog$labs$userAgent$browser_preUachHasLoaded) { - return this.version_; +module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.getIfLoaded = + function () { + var $jscomp$this = this + if (this.useUach_) { + var loadedVersionList = + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.getIfLoaded() + if (void 0 !== loadedVersionList) { + var matchingBrand = loadedVersionList.find(function ( + $jscomp$destructuring$var4 + ) { + return ( + $jscomp$this.brand_ === $jscomp$destructuring$var4.brand + ) + }) + ;(0, goog.asserts.assertExists)(matchingBrand) + return new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( + matchingBrand.version + ) + } + } + if (module$contents$goog$labs$userAgent$browser_preUachHasLoaded) { + return this.version_ + } } - }; module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.load = - function () { - var $jscomp$async$this = this, - loadedVersionList, - matchingBrand; + function () { + var $jscomp$async$this = this, + loadedVersionList, + matchingBrand + return $jscomp.asyncExecutePromiseGeneratorProgram(function ( + $jscomp$generator$context$1683157560$0 + ) { + if (1 == $jscomp$generator$context$1683157560$0.nextAddress) { + return $jscomp$async$this.useUach_ + ? $jscomp$generator$context$1683157560$0.yield( + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(), + 5 + ) + : $jscomp$generator$context$1683157560$0.yield(0, 3) + } + if ( + 3 != $jscomp$generator$context$1683157560$0.nextAddress && + ((loadedVersionList = + $jscomp$generator$context$1683157560$0.yieldResult), + void 0 !== loadedVersionList) + ) { + return ( + (matchingBrand = loadedVersionList.find(function ( + $jscomp$destructuring$var6 + ) { + return ( + $jscomp$async$this.brand_ === + $jscomp$destructuring$var6.brand + ) + })), + (0, goog.asserts.assertExists)(matchingBrand), + $jscomp$generator$context$1683157560$0.return( + new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( + matchingBrand.version + ) + ) + ) + } + module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !0 + return $jscomp$generator$context$1683157560$0.return( + $jscomp$async$this.version_ + ) + }) + } +var module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !1 +goog.labs.userAgent.browser.loadFullVersions = function () { return $jscomp.asyncExecutePromiseGeneratorProgram(function ( - $jscomp$generator$context$1683157560$0 + $jscomp$generator$context$1683157560$1 ) { - if (1 == $jscomp$generator$context$1683157560$0.nextAddress) { - return $jscomp$async$this.useUach_ - ? $jscomp$generator$context$1683157560$0.yield( - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(), - 5 - ) - : $jscomp$generator$context$1683157560$0.yield(0, 3); - } - if ( - 3 != $jscomp$generator$context$1683157560$0.nextAddress && - ((loadedVersionList = - $jscomp$generator$context$1683157560$0.yieldResult), - void 0 !== loadedVersionList) - ) { - return ( - (matchingBrand = loadedVersionList.find(function ( - $jscomp$destructuring$var6 - ) { - return ( - $jscomp$async$this.brand_ === $jscomp$destructuring$var6.brand - ); - })), - (0, goog.asserts.assertExists)(matchingBrand), - $jscomp$generator$context$1683157560$0.return( - new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( - matchingBrand.version + if (1 == $jscomp$generator$context$1683157560$1.nextAddress) { + return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand( + !0 ) - ) - ); - } - module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !0; - return $jscomp$generator$context$1683157560$0.return( - $jscomp$async$this.version_ - ); - }); - }; -var module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !1; -goog.labs.userAgent.browser.loadFullVersions = function () { - return $jscomp.asyncExecutePromiseGeneratorProgram(function ( - $jscomp$generator$context$1683157560$1 - ) { - if (1 == $jscomp$generator$context$1683157560$1.nextAddress) { - return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand( - !0 - ) - ? $jscomp$generator$context$1683157560$1.yield( - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(), - 2 - ) - : $jscomp$generator$context$1683157560$1.jumpTo(2); - } - module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !0; - $jscomp$generator$context$1683157560$1.jumpToEnd(); - }); -}; + ? $jscomp$generator$context$1683157560$1.yield( + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(), + 2 + ) + : $jscomp$generator$context$1683157560$1.jumpTo(2) + } + module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !0 + $jscomp$generator$context$1683157560$1.jumpToEnd() + }) +} goog.labs.userAgent.browser.resetForTesting = function () { - module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !1; - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.resetForTesting(); -}; + module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !1 + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.resetForTesting() +} function module$contents$goog$labs$userAgent$browser_fullVersionOf(browser) { - var fallbackVersionString = ""; - module$contents$goog$labs$userAgent$browser_hasFullVersionList() || - (fallbackVersionString = - module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( - browser - )); - var useUach = - browser !== module$contents$goog$labs$userAgent$browser_Brand.SILK && - module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0); - if (useUach) { - if ( - !module$contents$goog$labs$userAgent$util_getUserAgentData().brands.find( - function ($jscomp$destructuring$var8) { - return $jscomp$destructuring$var8.brand === browser; + var fallbackVersionString = '' + module$contents$goog$labs$userAgent$browser_hasFullVersionList() || + (fallbackVersionString = + module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( + browser + )) + var useUach = + browser !== module$contents$goog$labs$userAgent$browser_Brand.SILK && + module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0) + if (useUach) { + if ( + !module$contents$goog$labs$userAgent$util_getUserAgentData().brands.find( + function ($jscomp$destructuring$var8) { + return $jscomp$destructuring$var8.brand === browser + } + ) + ) { + return } - ) - ) { - return; + } else if ('' === fallbackVersionString) { + return } - } else if ("" === fallbackVersionString) { - return; - } - return new module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion( - browser, - useUach, - fallbackVersionString - ); + return new module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion( + browser, + useUach, + fallbackVersionString + ) } goog.labs.userAgent.browser.fullVersionOf = - module$contents$goog$labs$userAgent$browser_fullVersionOf; + module$contents$goog$labs$userAgent$browser_fullVersionOf goog.labs.userAgent.browser.getVersionStringForLogging = function (browser) { - if (module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0)) { - var fullVersionObj = - module$contents$goog$labs$userAgent$browser_fullVersionOf(browser); - if (fullVersionObj) { - var fullVersion = fullVersionObj.getIfLoaded(); - if (fullVersion) { - return fullVersion.toVersionStringForLogging(); - } - var matchingBrand = - module$contents$goog$labs$userAgent$util_getUserAgentData().brands.find( - function ($jscomp$destructuring$var10) { - return $jscomp$destructuring$var10.brand === browser; - } - ); - (0, goog.asserts.assertExists)(matchingBrand); - return matchingBrand.version; + if (module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0)) { + var fullVersionObj = + module$contents$goog$labs$userAgent$browser_fullVersionOf(browser) + if (fullVersionObj) { + var fullVersion = fullVersionObj.getIfLoaded() + if (fullVersion) { + return fullVersion.toVersionStringForLogging() + } + var matchingBrand = + module$contents$goog$labs$userAgent$util_getUserAgentData().brands.find( + function ($jscomp$destructuring$var10) { + return $jscomp$destructuring$var10.brand === browser + } + ) + ;(0, goog.asserts.assertExists)(matchingBrand) + return matchingBrand.version + } + return '' } - return ""; - } - return module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( - browser - ); -}; -goog.labs.userAgent.engine = {}; + return module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString( + browser + ) +} +goog.labs.userAgent.engine = {} function module$contents$goog$labs$userAgent$engine_isPresto() { - return module$contents$goog$labs$userAgent$util_matchUserAgent("Presto"); + return module$contents$goog$labs$userAgent$util_matchUserAgent('Presto') } function module$contents$goog$labs$userAgent$engine_isTrident() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgent("Trident") || - module$contents$goog$labs$userAgent$util_matchUserAgent("MSIE") - ); + return ( + module$contents$goog$labs$userAgent$util_matchUserAgent('Trident') || + module$contents$goog$labs$userAgent$util_matchUserAgent('MSIE') + ) } function module$contents$goog$labs$userAgent$engine_isEdge() { - return module$contents$goog$labs$userAgent$util_matchUserAgent("Edge"); + return module$contents$goog$labs$userAgent$util_matchUserAgent('Edge') } function module$contents$goog$labs$userAgent$engine_isWebKit() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase( - "WebKit" - ) && !module$contents$goog$labs$userAgent$engine_isEdge() - ); + return ( + module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase( + 'WebKit' + ) && !module$contents$goog$labs$userAgent$engine_isEdge() + ) } function module$contents$goog$labs$userAgent$engine_isGecko() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgent("Gecko") && - !module$contents$goog$labs$userAgent$engine_isWebKit() && - !module$contents$goog$labs$userAgent$engine_isTrident() && - !module$contents$goog$labs$userAgent$engine_isEdge() - ); + return ( + module$contents$goog$labs$userAgent$util_matchUserAgent('Gecko') && + !module$contents$goog$labs$userAgent$engine_isWebKit() && + !module$contents$goog$labs$userAgent$engine_isTrident() && + !module$contents$goog$labs$userAgent$engine_isEdge() + ) } function module$contents$goog$labs$userAgent$engine_getVersion() { - var userAgentString = module$contents$goog$labs$userAgent$util_getUserAgent(); - if (userAgentString) { - var tuples = - module$contents$goog$labs$userAgent$util_extractVersionTuples( - userAgentString - ), - engineTuple = - module$contents$goog$labs$userAgent$engine_getEngineTuple(tuples); - if (engineTuple) { - return "Gecko" == engineTuple[0] - ? module$contents$goog$labs$userAgent$engine_getVersionForKey( - tuples, - "Firefox" - ) - : engineTuple[1]; - } - var browserTuple = tuples[0], - info; - if (browserTuple && (info = browserTuple[2])) { - var match = /Trident\/([^\s;]+)/.exec(info); - if (match) { - return match[1]; - } - } - } - return ""; -} + var userAgentString = + module$contents$goog$labs$userAgent$util_getUserAgent() + if (userAgentString) { + var tuples = + module$contents$goog$labs$userAgent$util_extractVersionTuples( + userAgentString + ), + engineTuple = + module$contents$goog$labs$userAgent$engine_getEngineTuple( + tuples + ) + if (engineTuple) { + return 'Gecko' == engineTuple[0] + ? module$contents$goog$labs$userAgent$engine_getVersionForKey( + tuples, + 'Firefox' + ) + : engineTuple[1] + } + var browserTuple = tuples[0], + info + if (browserTuple && (info = browserTuple[2])) { + var match = /Trident\/([^\s;]+)/.exec(info) + if (match) { + return match[1] + } + } + } + return '' +} function module$contents$goog$labs$userAgent$engine_getEngineTuple(tuples) { - if (!module$contents$goog$labs$userAgent$engine_isEdge()) { - return tuples[1]; - } - for (var i = 0; i < tuples.length; i++) { - var tuple = tuples[i]; - if ("Edge" == tuple[0]) { - return tuple; + if (!module$contents$goog$labs$userAgent$engine_isEdge()) { + return tuples[1] + } + for (var i = 0; i < tuples.length; i++) { + var tuple = tuples[i] + if ('Edge' == tuple[0]) { + return tuple + } } - } } function module$contents$goog$labs$userAgent$engine_getVersionForKey( - tuples, - key + tuples, + key ) { - var pair = module$contents$goog$array_find(tuples, function (pair) { - return key == pair[0]; - }); - return (pair && pair[1]) || ""; + var pair = module$contents$goog$array_find(tuples, function (pair) { + return key == pair[0] + }) + return (pair && pair[1]) || '' } goog.labs.userAgent.engine.getVersion = - module$contents$goog$labs$userAgent$engine_getVersion; + module$contents$goog$labs$userAgent$engine_getVersion goog.labs.userAgent.engine.isEdge = - module$contents$goog$labs$userAgent$engine_isEdge; + module$contents$goog$labs$userAgent$engine_isEdge goog.labs.userAgent.engine.isGecko = - module$contents$goog$labs$userAgent$engine_isGecko; + module$contents$goog$labs$userAgent$engine_isGecko goog.labs.userAgent.engine.isPresto = - module$contents$goog$labs$userAgent$engine_isPresto; + module$contents$goog$labs$userAgent$engine_isPresto goog.labs.userAgent.engine.isTrident = - module$contents$goog$labs$userAgent$engine_isTrident; + module$contents$goog$labs$userAgent$engine_isTrident goog.labs.userAgent.engine.isVersionOrHigher = function (version) { - return ( - 0 <= - goog.string.internal.compareVersions( - module$contents$goog$labs$userAgent$engine_getVersion(), - version - ) - ); -}; + return ( + 0 <= + goog.string.internal.compareVersions( + module$contents$goog$labs$userAgent$engine_getVersion(), + version + ) + ) +} goog.labs.userAgent.engine.isWebKit = - module$contents$goog$labs$userAgent$engine_isWebKit; -goog.labs.userAgent.platform = {}; + module$contents$goog$labs$userAgent$engine_isWebKit +goog.labs.userAgent.platform = {} function module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform( - ignoreClientHintsFlag + ignoreClientHintsFlag ) { - if ( - !( - (void 0 !== ignoreClientHintsFlag && ignoreClientHintsFlag) || - (0, goog.labs.userAgent.useClientHints)() - ) - ) { - return !1; - } - var userAgentData = - module$contents$goog$labs$userAgent$util_getUserAgentData(); - return !!userAgentData && !!userAgentData.platform; + if ( + !( + (void 0 !== ignoreClientHintsFlag && ignoreClientHintsFlag) || + (0, goog.labs.userAgent.useClientHints)() + ) + ) { + return !1 + } + var userAgentData = + module$contents$goog$labs$userAgent$util_getUserAgentData() + return !!userAgentData && !!userAgentData.platform } function module$contents$goog$labs$userAgent$platform_isAndroid() { - return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() - ? "Android" === - module$contents$goog$labs$userAgent$util_getUserAgentData().platform - : module$contents$goog$labs$userAgent$util_matchUserAgent("Android"); + return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() + ? 'Android' === + module$contents$goog$labs$userAgent$util_getUserAgentData() + .platform + : module$contents$goog$labs$userAgent$util_matchUserAgent('Android') } function module$contents$goog$labs$userAgent$platform_isIpod() { - return module$contents$goog$labs$userAgent$util_matchUserAgent("iPod"); + return module$contents$goog$labs$userAgent$util_matchUserAgent('iPod') } function module$contents$goog$labs$userAgent$platform_isIphone() { - return ( - module$contents$goog$labs$userAgent$util_matchUserAgent("iPhone") && - !module$contents$goog$labs$userAgent$util_matchUserAgent("iPod") && - !module$contents$goog$labs$userAgent$util_matchUserAgent("iPad") - ); + return ( + module$contents$goog$labs$userAgent$util_matchUserAgent('iPhone') && + !module$contents$goog$labs$userAgent$util_matchUserAgent('iPod') && + !module$contents$goog$labs$userAgent$util_matchUserAgent('iPad') + ) } function module$contents$goog$labs$userAgent$platform_isIpad() { - return module$contents$goog$labs$userAgent$util_matchUserAgent("iPad"); + return module$contents$goog$labs$userAgent$util_matchUserAgent('iPad') } function module$contents$goog$labs$userAgent$platform_isIos() { - return ( - module$contents$goog$labs$userAgent$platform_isIphone() || - module$contents$goog$labs$userAgent$platform_isIpad() || - module$contents$goog$labs$userAgent$platform_isIpod() - ); + return ( + module$contents$goog$labs$userAgent$platform_isIphone() || + module$contents$goog$labs$userAgent$platform_isIpad() || + module$contents$goog$labs$userAgent$platform_isIpod() + ) } function module$contents$goog$labs$userAgent$platform_isMacintosh() { - return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() - ? "macOS" === - module$contents$goog$labs$userAgent$util_getUserAgentData().platform - : module$contents$goog$labs$userAgent$util_matchUserAgent("Macintosh"); + return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() + ? 'macOS' === + module$contents$goog$labs$userAgent$util_getUserAgentData() + .platform + : module$contents$goog$labs$userAgent$util_matchUserAgent('Macintosh') } function module$contents$goog$labs$userAgent$platform_isLinux() { - return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() - ? "Linux" === - module$contents$goog$labs$userAgent$util_getUserAgentData().platform - : module$contents$goog$labs$userAgent$util_matchUserAgent("Linux"); + return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() + ? 'Linux' === + module$contents$goog$labs$userAgent$util_getUserAgentData() + .platform + : module$contents$goog$labs$userAgent$util_matchUserAgent('Linux') } function module$contents$goog$labs$userAgent$platform_isWindows() { - return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() - ? "Windows" === - module$contents$goog$labs$userAgent$util_getUserAgentData().platform - : module$contents$goog$labs$userAgent$util_matchUserAgent("Windows"); + return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() + ? 'Windows' === + module$contents$goog$labs$userAgent$util_getUserAgentData() + .platform + : module$contents$goog$labs$userAgent$util_matchUserAgent('Windows') } function module$contents$goog$labs$userAgent$platform_isChromeOS() { - return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() - ? "Chrome OS" === - module$contents$goog$labs$userAgent$util_getUserAgentData().platform - : module$contents$goog$labs$userAgent$util_matchUserAgent("CrOS"); + return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform() + ? 'Chrome OS' === + module$contents$goog$labs$userAgent$util_getUserAgentData() + .platform + : module$contents$goog$labs$userAgent$util_matchUserAgent('CrOS') } function module$contents$goog$labs$userAgent$platform_isKaiOS() { - return module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase( - "KaiOS" - ); + return module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase( + 'KaiOS' + ) } function module$contents$goog$labs$userAgent$platform_getVersion() { - var userAgentString = module$contents$goog$labs$userAgent$util_getUserAgent(), - version = ""; - if (module$contents$goog$labs$userAgent$platform_isWindows()) { - var re = /Windows (?:NT|Phone) ([0-9.]+)/; - var match = re.exec(userAgentString); - version = match ? match[1] : "0.0"; - } else if (module$contents$goog$labs$userAgent$platform_isIos()) { - re = /(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/; - var match$jscomp$0 = re.exec(userAgentString); - version = match$jscomp$0 && match$jscomp$0[1].replace(/_/g, "."); - } else if (module$contents$goog$labs$userAgent$platform_isMacintosh()) { - re = /Mac OS X ([0-9_.]+)/; - var match$jscomp$1 = re.exec(userAgentString); - version = match$jscomp$1 ? match$jscomp$1[1].replace(/_/g, ".") : "10"; - } else if (module$contents$goog$labs$userAgent$platform_isKaiOS()) { - re = /(?:KaiOS)\/(\S+)/i; - var match$jscomp$2 = re.exec(userAgentString); - version = match$jscomp$2 && match$jscomp$2[1]; - } else if (module$contents$goog$labs$userAgent$platform_isAndroid()) { - re = /Android\s+([^\);]+)(\)|;)/; - var match$jscomp$3 = re.exec(userAgentString); - version = match$jscomp$3 && match$jscomp$3[1]; - } else if (module$contents$goog$labs$userAgent$platform_isChromeOS()) { - re = /(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/; - var match$jscomp$4 = re.exec(userAgentString); - version = match$jscomp$4 && match$jscomp$4[1]; - } - return version || ""; + var userAgentString = + module$contents$goog$labs$userAgent$util_getUserAgent(), + version = '' + if (module$contents$goog$labs$userAgent$platform_isWindows()) { + var re = /Windows (?:NT|Phone) ([0-9.]+)/ + var match = re.exec(userAgentString) + version = match ? match[1] : '0.0' + } else if (module$contents$goog$labs$userAgent$platform_isIos()) { + re = /(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/ + var match$jscomp$0 = re.exec(userAgentString) + version = match$jscomp$0 && match$jscomp$0[1].replace(/_/g, '.') + } else if (module$contents$goog$labs$userAgent$platform_isMacintosh()) { + re = /Mac OS X ([0-9_.]+)/ + var match$jscomp$1 = re.exec(userAgentString) + version = match$jscomp$1 ? match$jscomp$1[1].replace(/_/g, '.') : '10' + } else if (module$contents$goog$labs$userAgent$platform_isKaiOS()) { + re = /(?:KaiOS)\/(\S+)/i + var match$jscomp$2 = re.exec(userAgentString) + version = match$jscomp$2 && match$jscomp$2[1] + } else if (module$contents$goog$labs$userAgent$platform_isAndroid()) { + re = /Android\s+([^\);]+)(\)|;)/ + var match$jscomp$3 = re.exec(userAgentString) + version = match$jscomp$3 && match$jscomp$3[1] + } else if (module$contents$goog$labs$userAgent$platform_isChromeOS()) { + re = /(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/ + var match$jscomp$4 = re.exec(userAgentString) + version = match$jscomp$4 && match$jscomp$4[1] + } + return version || '' } var module$contents$goog$labs$userAgent$platform_PlatformVersion = function () { - this.preUachHasLoaded_ = !1; -}; + this.preUachHasLoaded_ = !1 +} module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.getIfLoaded = - function () { - if ( - module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(!0) - ) { - var loadedPlatformVersion = - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.getIfLoaded(); - return void 0 === loadedPlatformVersion - ? void 0 - : new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( - loadedPlatformVersion - ); - } - if (this.preUachHasLoaded_) { - return new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( - module$contents$goog$labs$userAgent$platform_getVersion() - ); - } - }; -module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.load = - function () { - var $jscomp$async$this = this, - JSCompiler_temp_const; - return $jscomp.asyncExecutePromiseGeneratorProgram(function ( - $jscomp$generator$context$m1628565157$0 - ) { - if (1 == $jscomp$generator$context$m1628565157$0.nextAddress) { + function () { if ( - !module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform( - !0 - ) + module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform( + !0 + ) ) { - $jscomp$async$this.preUachHasLoaded_ = !0; - return $jscomp$generator$context$m1628565157$0.return( - new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( - module$contents$goog$labs$userAgent$platform_getVersion() + var loadedPlatformVersion = + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.getIfLoaded() + return void 0 === loadedPlatformVersion + ? void 0 + : new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( + loadedPlatformVersion + ) + } + if (this.preUachHasLoaded_) { + return new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( + module$contents$goog$labs$userAgent$platform_getVersion() ) - ); - return $jscomp$generator$context$m1628565157$0.jumpTo(0); - } - JSCompiler_temp_const = - module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version; - return $jscomp$generator$context$m1628565157$0.yield( - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.load(), - 3 - ); - } - return $jscomp$generator$context$m1628565157$0.return( - new JSCompiler_temp_const( - $jscomp$generator$context$m1628565157$0.yieldResult - ) - ); - }); - }; + } + } +module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.load = + function () { + var $jscomp$async$this = this, + JSCompiler_temp_const + return $jscomp.asyncExecutePromiseGeneratorProgram(function ( + $jscomp$generator$context$m1628565157$0 + ) { + if (1 == $jscomp$generator$context$m1628565157$0.nextAddress) { + if ( + !module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform( + !0 + ) + ) { + $jscomp$async$this.preUachHasLoaded_ = !0 + return $jscomp$generator$context$m1628565157$0.return( + new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version( + module$contents$goog$labs$userAgent$platform_getVersion() + ) + ) + return $jscomp$generator$context$m1628565157$0.jumpTo(0) + } + JSCompiler_temp_const = + module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version + return $jscomp$generator$context$m1628565157$0.yield( + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.load(), + 3 + ) + } + return $jscomp$generator$context$m1628565157$0.return( + new JSCompiler_temp_const( + $jscomp$generator$context$m1628565157$0.yieldResult + ) + ) + }) + } module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.resetForTesting = - function () { - module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.resetForTesting(); - this.preUachHasLoaded_ = !1; - }; + function () { + module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.resetForTesting() + this.preUachHasLoaded_ = !1 + } var module$contents$goog$labs$userAgent$platform_version = - new module$contents$goog$labs$userAgent$platform_PlatformVersion(); + new module$contents$goog$labs$userAgent$platform_PlatformVersion() goog.labs.userAgent.platform.getVersion = - module$contents$goog$labs$userAgent$platform_getVersion; + module$contents$goog$labs$userAgent$platform_getVersion goog.labs.userAgent.platform.isAndroid = - module$contents$goog$labs$userAgent$platform_isAndroid; + module$contents$goog$labs$userAgent$platform_isAndroid goog.labs.userAgent.platform.isChromeOS = - module$contents$goog$labs$userAgent$platform_isChromeOS; + module$contents$goog$labs$userAgent$platform_isChromeOS goog.labs.userAgent.platform.isChromecast = function () { - return module$contents$goog$labs$userAgent$util_matchUserAgent("CrKey"); -}; + return module$contents$goog$labs$userAgent$util_matchUserAgent('CrKey') +} goog.labs.userAgent.platform.isIos = - module$contents$goog$labs$userAgent$platform_isIos; + module$contents$goog$labs$userAgent$platform_isIos goog.labs.userAgent.platform.isIpad = - module$contents$goog$labs$userAgent$platform_isIpad; + module$contents$goog$labs$userAgent$platform_isIpad goog.labs.userAgent.platform.isIphone = - module$contents$goog$labs$userAgent$platform_isIphone; + module$contents$goog$labs$userAgent$platform_isIphone goog.labs.userAgent.platform.isIpod = - module$contents$goog$labs$userAgent$platform_isIpod; + module$contents$goog$labs$userAgent$platform_isIpod goog.labs.userAgent.platform.isKaiOS = - module$contents$goog$labs$userAgent$platform_isKaiOS; + module$contents$goog$labs$userAgent$platform_isKaiOS goog.labs.userAgent.platform.isLinux = - module$contents$goog$labs$userAgent$platform_isLinux; + module$contents$goog$labs$userAgent$platform_isLinux goog.labs.userAgent.platform.isMacintosh = - module$contents$goog$labs$userAgent$platform_isMacintosh; + module$contents$goog$labs$userAgent$platform_isMacintosh goog.labs.userAgent.platform.isVersionOrHigher = function (version) { - return ( - 0 <= - goog.string.internal.compareVersions( - module$contents$goog$labs$userAgent$platform_getVersion(), - version - ) - ); -}; + return ( + 0 <= + goog.string.internal.compareVersions( + module$contents$goog$labs$userAgent$platform_getVersion(), + version + ) + ) +} goog.labs.userAgent.platform.isWindows = - module$contents$goog$labs$userAgent$platform_isWindows; + module$contents$goog$labs$userAgent$platform_isWindows goog.labs.userAgent.platform.version = - module$contents$goog$labs$userAgent$platform_version; -goog.reflect = {}; + module$contents$goog$labs$userAgent$platform_version +goog.reflect = {} goog.reflect.object = function (type, object) { - return object; -}; + return object +} goog.reflect.objectProperty = function (prop, object) { - return prop; -}; + return prop +} goog.reflect.sinkValue = function (x) { - goog.reflect.sinkValue[" "](x); - return x; -}; -goog.reflect.sinkValue[" "] = function () {}; + goog.reflect.sinkValue[' '](x) + return x +} +goog.reflect.sinkValue[' '] = function () {} goog.reflect.canAccessProperty = function (obj, prop) { - try { - return goog.reflect.sinkValue(obj[prop]), !0; - } catch (e) {} - return !1; -}; + try { + return goog.reflect.sinkValue(obj[prop]), !0 + } catch (e) {} + return !1 +} goog.reflect.cache = function (cacheObj, key, valueFn, opt_keyFn) { - var storedKey = opt_keyFn ? opt_keyFn(key) : key; - return Object.prototype.hasOwnProperty.call(cacheObj, storedKey) - ? cacheObj[storedKey] - : (cacheObj[storedKey] = valueFn(key)); -}; -goog.userAgent = {}; -goog.userAgent.ASSUME_IE = !1; -goog.userAgent.ASSUME_EDGE = !1; -goog.userAgent.ASSUME_GECKO = !1; -goog.userAgent.ASSUME_WEBKIT = !1; -goog.userAgent.ASSUME_MOBILE_WEBKIT = !1; -goog.userAgent.ASSUME_OPERA = !1; -goog.userAgent.ASSUME_ANY_VERSION = !1; + var storedKey = opt_keyFn ? opt_keyFn(key) : key + return Object.prototype.hasOwnProperty.call(cacheObj, storedKey) + ? cacheObj[storedKey] + : (cacheObj[storedKey] = valueFn(key)) +} +goog.userAgent = {} +goog.userAgent.ASSUME_IE = !1 +goog.userAgent.ASSUME_EDGE = !1 +goog.userAgent.ASSUME_GECKO = !1 +goog.userAgent.ASSUME_WEBKIT = !1 +goog.userAgent.ASSUME_MOBILE_WEBKIT = !1 +goog.userAgent.ASSUME_OPERA = !1 +goog.userAgent.ASSUME_ANY_VERSION = !1 goog.userAgent.BROWSER_KNOWN_ = - goog.userAgent.ASSUME_IE || - goog.userAgent.ASSUME_EDGE || - goog.userAgent.ASSUME_GECKO || - goog.userAgent.ASSUME_MOBILE_WEBKIT || - goog.userAgent.ASSUME_WEBKIT || - goog.userAgent.ASSUME_OPERA; + goog.userAgent.ASSUME_IE || + goog.userAgent.ASSUME_EDGE || + goog.userAgent.ASSUME_GECKO || + goog.userAgent.ASSUME_MOBILE_WEBKIT || + goog.userAgent.ASSUME_WEBKIT || + goog.userAgent.ASSUME_OPERA goog.userAgent.getUserAgentString = function () { - return module$contents$goog$labs$userAgent$util_getUserAgent(); -}; + return module$contents$goog$labs$userAgent$util_getUserAgent() +} goog.userAgent.getNavigatorTyped = function () { - return goog.global.navigator || null; -}; + return goog.global.navigator || null +} goog.userAgent.getNavigator = function () { - return goog.userAgent.getNavigatorTyped(); -}; + return goog.userAgent.getNavigatorTyped() +} goog.userAgent.OPERA = goog.userAgent.BROWSER_KNOWN_ - ? goog.userAgent.ASSUME_OPERA - : module$contents$goog$labs$userAgent$browser_matchOpera(); + ? goog.userAgent.ASSUME_OPERA + : module$contents$goog$labs$userAgent$browser_matchOpera() goog.userAgent.IE = goog.userAgent.BROWSER_KNOWN_ - ? goog.userAgent.ASSUME_IE - : module$contents$goog$labs$userAgent$browser_matchIE(); + ? goog.userAgent.ASSUME_IE + : module$contents$goog$labs$userAgent$browser_matchIE() goog.userAgent.EDGE = goog.userAgent.BROWSER_KNOWN_ - ? goog.userAgent.ASSUME_EDGE - : module$contents$goog$labs$userAgent$engine_isEdge(); -goog.userAgent.EDGE_OR_IE = goog.userAgent.EDGE || goog.userAgent.IE; + ? goog.userAgent.ASSUME_EDGE + : module$contents$goog$labs$userAgent$engine_isEdge() +goog.userAgent.EDGE_OR_IE = goog.userAgent.EDGE || goog.userAgent.IE goog.userAgent.GECKO = goog.userAgent.BROWSER_KNOWN_ - ? goog.userAgent.ASSUME_GECKO - : module$contents$goog$labs$userAgent$engine_isGecko(); + ? goog.userAgent.ASSUME_GECKO + : module$contents$goog$labs$userAgent$engine_isGecko() goog.userAgent.WEBKIT = goog.userAgent.BROWSER_KNOWN_ - ? goog.userAgent.ASSUME_WEBKIT || goog.userAgent.ASSUME_MOBILE_WEBKIT - : module$contents$goog$labs$userAgent$engine_isWebKit(); + ? goog.userAgent.ASSUME_WEBKIT || goog.userAgent.ASSUME_MOBILE_WEBKIT + : module$contents$goog$labs$userAgent$engine_isWebKit() goog.userAgent.isMobile_ = function () { - return ( - goog.userAgent.WEBKIT && - module$contents$goog$labs$userAgent$util_matchUserAgent("Mobile") - ); -}; + return ( + goog.userAgent.WEBKIT && + module$contents$goog$labs$userAgent$util_matchUserAgent('Mobile') + ) +} goog.userAgent.MOBILE = - goog.userAgent.ASSUME_MOBILE_WEBKIT || goog.userAgent.isMobile_(); -goog.userAgent.SAFARI = goog.userAgent.WEBKIT; + goog.userAgent.ASSUME_MOBILE_WEBKIT || goog.userAgent.isMobile_() +goog.userAgent.SAFARI = goog.userAgent.WEBKIT goog.userAgent.determinePlatform_ = function () { - var navigator = goog.userAgent.getNavigatorTyped(); - return (navigator && navigator.platform) || ""; -}; -goog.userAgent.PLATFORM = goog.userAgent.determinePlatform_(); -goog.userAgent.ASSUME_MAC = !1; -goog.userAgent.ASSUME_WINDOWS = !1; -goog.userAgent.ASSUME_LINUX = !1; -goog.userAgent.ASSUME_ANDROID = !1; -goog.userAgent.ASSUME_IPHONE = !1; -goog.userAgent.ASSUME_IPAD = !1; -goog.userAgent.ASSUME_IPOD = !1; -goog.userAgent.ASSUME_KAIOS = !1; + var navigator = goog.userAgent.getNavigatorTyped() + return (navigator && navigator.platform) || '' +} +goog.userAgent.PLATFORM = goog.userAgent.determinePlatform_() +goog.userAgent.ASSUME_MAC = !1 +goog.userAgent.ASSUME_WINDOWS = !1 +goog.userAgent.ASSUME_LINUX = !1 +goog.userAgent.ASSUME_ANDROID = !1 +goog.userAgent.ASSUME_IPHONE = !1 +goog.userAgent.ASSUME_IPAD = !1 +goog.userAgent.ASSUME_IPOD = !1 +goog.userAgent.ASSUME_KAIOS = !1 goog.userAgent.PLATFORM_KNOWN_ = - goog.userAgent.ASSUME_MAC || - goog.userAgent.ASSUME_WINDOWS || - goog.userAgent.ASSUME_LINUX || - goog.userAgent.ASSUME_ANDROID || - goog.userAgent.ASSUME_IPHONE || - goog.userAgent.ASSUME_IPAD || - goog.userAgent.ASSUME_IPOD; + goog.userAgent.ASSUME_MAC || + goog.userAgent.ASSUME_WINDOWS || + goog.userAgent.ASSUME_LINUX || + goog.userAgent.ASSUME_ANDROID || + goog.userAgent.ASSUME_IPHONE || + goog.userAgent.ASSUME_IPAD || + goog.userAgent.ASSUME_IPOD goog.userAgent.MAC = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_MAC - : module$contents$goog$labs$userAgent$platform_isMacintosh(); + ? goog.userAgent.ASSUME_MAC + : module$contents$goog$labs$userAgent$platform_isMacintosh() goog.userAgent.WINDOWS = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_WINDOWS - : module$contents$goog$labs$userAgent$platform_isWindows(); + ? goog.userAgent.ASSUME_WINDOWS + : module$contents$goog$labs$userAgent$platform_isWindows() goog.userAgent.isLegacyLinux_ = function () { - return ( - module$contents$goog$labs$userAgent$platform_isLinux() || - module$contents$goog$labs$userAgent$platform_isChromeOS() - ); -}; + return ( + module$contents$goog$labs$userAgent$platform_isLinux() || + module$contents$goog$labs$userAgent$platform_isChromeOS() + ) +} goog.userAgent.LINUX = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_LINUX - : goog.userAgent.isLegacyLinux_(); + ? goog.userAgent.ASSUME_LINUX + : goog.userAgent.isLegacyLinux_() goog.userAgent.ANDROID = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_ANDROID - : module$contents$goog$labs$userAgent$platform_isAndroid(); + ? goog.userAgent.ASSUME_ANDROID + : module$contents$goog$labs$userAgent$platform_isAndroid() goog.userAgent.IPHONE = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_IPHONE - : module$contents$goog$labs$userAgent$platform_isIphone(); + ? goog.userAgent.ASSUME_IPHONE + : module$contents$goog$labs$userAgent$platform_isIphone() goog.userAgent.IPAD = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_IPAD - : module$contents$goog$labs$userAgent$platform_isIpad(); + ? goog.userAgent.ASSUME_IPAD + : module$contents$goog$labs$userAgent$platform_isIpad() goog.userAgent.IPOD = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_IPOD - : module$contents$goog$labs$userAgent$platform_isIpod(); + ? goog.userAgent.ASSUME_IPOD + : module$contents$goog$labs$userAgent$platform_isIpod() goog.userAgent.IOS = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_IPHONE || - goog.userAgent.ASSUME_IPAD || - goog.userAgent.ASSUME_IPOD - : module$contents$goog$labs$userAgent$platform_isIos(); + ? goog.userAgent.ASSUME_IPHONE || + goog.userAgent.ASSUME_IPAD || + goog.userAgent.ASSUME_IPOD + : module$contents$goog$labs$userAgent$platform_isIos() goog.userAgent.KAIOS = goog.userAgent.PLATFORM_KNOWN_ - ? goog.userAgent.ASSUME_KAIOS - : module$contents$goog$labs$userAgent$platform_isKaiOS(); + ? goog.userAgent.ASSUME_KAIOS + : module$contents$goog$labs$userAgent$platform_isKaiOS() goog.userAgent.determineVersion_ = function () { - var version = "", - arr = goog.userAgent.getVersionRegexResult_(); - arr && (version = arr ? arr[1] : ""); - if (goog.userAgent.IE) { - var docMode = goog.userAgent.getDocumentMode_(); - if (null != docMode && docMode > parseFloat(version)) { - return String(docMode); - } - } - return version; -}; + var version = '', + arr = goog.userAgent.getVersionRegexResult_() + arr && (version = arr ? arr[1] : '') + if (goog.userAgent.IE) { + var docMode = goog.userAgent.getDocumentMode_() + if (null != docMode && docMode > parseFloat(version)) { + return String(docMode) + } + } + return version +} goog.userAgent.getVersionRegexResult_ = function () { - var userAgent = goog.userAgent.getUserAgentString(); - if (goog.userAgent.GECKO) { - return /rv:([^\);]+)(\)|;)/.exec(userAgent); - } - if (goog.userAgent.EDGE) { - return /Edge\/([\d\.]+)/.exec(userAgent); - } - if (goog.userAgent.IE) { - return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(userAgent); - } - if (goog.userAgent.WEBKIT) { - return /WebKit\/(\S+)/.exec(userAgent); - } - if (goog.userAgent.OPERA) { - return /(?:Version)[ \/]?(\S+)/.exec(userAgent); - } -}; + var userAgent = goog.userAgent.getUserAgentString() + if (goog.userAgent.GECKO) { + return /rv:([^\);]+)(\)|;)/.exec(userAgent) + } + if (goog.userAgent.EDGE) { + return /Edge\/([\d\.]+)/.exec(userAgent) + } + if (goog.userAgent.IE) { + return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(userAgent) + } + if (goog.userAgent.WEBKIT) { + return /WebKit\/(\S+)/.exec(userAgent) + } + if (goog.userAgent.OPERA) { + return /(?:Version)[ \/]?(\S+)/.exec(userAgent) + } +} goog.userAgent.getDocumentMode_ = function () { - var doc = goog.global.document; - return doc ? doc.documentMode : void 0; -}; -goog.userAgent.VERSION = goog.userAgent.determineVersion_(); + var doc = goog.global.document + return doc ? doc.documentMode : void 0 +} +goog.userAgent.VERSION = goog.userAgent.determineVersion_() goog.userAgent.compare = function (v1, v2) { - return goog.string.internal.compareVersions(v1, v2); -}; -goog.userAgent.isVersionOrHigherCache_ = {}; + return goog.string.internal.compareVersions(v1, v2) +} +goog.userAgent.isVersionOrHigherCache_ = {} goog.userAgent.isVersionOrHigher = function (version) { - return ( - goog.userAgent.ASSUME_ANY_VERSION || - goog.reflect.cache( - goog.userAgent.isVersionOrHigherCache_, - version, - function () { - return ( - 0 <= - goog.string.internal.compareVersions(goog.userAgent.VERSION, version) - ); - } + return ( + goog.userAgent.ASSUME_ANY_VERSION || + goog.reflect.cache( + goog.userAgent.isVersionOrHigherCache_, + version, + function () { + return ( + 0 <= + goog.string.internal.compareVersions( + goog.userAgent.VERSION, + version + ) + ) + } + ) ) - ); -}; +} goog.userAgent.isDocumentModeOrHigher = function (documentMode) { - return Number(goog.userAgent.DOCUMENT_MODE) >= documentMode; -}; -goog.userAgent.isDocumentMode = goog.userAgent.isDocumentModeOrHigher; + return Number(goog.userAgent.DOCUMENT_MODE) >= documentMode +} +goog.userAgent.isDocumentMode = goog.userAgent.isDocumentModeOrHigher goog.userAgent.DOCUMENT_MODE = (function () { - if (goog.global.document && goog.userAgent.IE) { - var documentMode = goog.userAgent.getDocumentMode_(); - return documentMode - ? documentMode - : parseInt(goog.userAgent.VERSION, 10) || void 0; - } -})(); -goog.events.eventTypeHelpers = {}; + if (goog.global.document && goog.userAgent.IE) { + var documentMode = goog.userAgent.getDocumentMode_() + return documentMode + ? documentMode + : parseInt(goog.userAgent.VERSION, 10) || void 0 + } +})() +goog.events.eventTypeHelpers = {} goog.events.eventTypeHelpers.getVendorPrefixedName = function (eventName) { - return goog.userAgent.WEBKIT ? "webkit" + eventName : eventName.toLowerCase(); -}; + return goog.userAgent.WEBKIT + ? 'webkit' + eventName + : eventName.toLowerCase() +} goog.events.eventTypeHelpers.getPointerFallbackEventName = function ( - pointerEventName, - msPointerEventName, - fallbackEventName -) { - return goog.events.BrowserFeature.POINTER_EVENTS - ? pointerEventName - : goog.events.BrowserFeature.MSPOINTER_EVENTS - ? msPointerEventName - : fallbackEventName; -}; + pointerEventName, + msPointerEventName, + fallbackEventName +) { + return goog.events.BrowserFeature.POINTER_EVENTS + ? pointerEventName + : goog.events.BrowserFeature.MSPOINTER_EVENTS + ? msPointerEventName + : fallbackEventName +} goog.events.EventType = { - CLICK: "click", - RIGHTCLICK: "rightclick", - DBLCLICK: "dblclick", - AUXCLICK: "auxclick", - MOUSEDOWN: "mousedown", - MOUSEUP: "mouseup", - MOUSEOVER: "mouseover", - MOUSEOUT: "mouseout", - MOUSEMOVE: "mousemove", - MOUSEENTER: "mouseenter", - MOUSELEAVE: "mouseleave", - MOUSECANCEL: "mousecancel", - SELECTIONCHANGE: "selectionchange", - SELECTSTART: "selectstart", - WHEEL: "wheel", - KEYPRESS: "keypress", - KEYDOWN: "keydown", - KEYUP: "keyup", - BLUR: "blur", - FOCUS: "focus", - DEACTIVATE: "deactivate", - FOCUSIN: "focusin", - FOCUSOUT: "focusout", - CHANGE: "change", - RESET: "reset", - SELECT: "select", - SUBMIT: "submit", - INPUT: "input", - PROPERTYCHANGE: "propertychange", - DRAGSTART: "dragstart", - DRAG: "drag", - DRAGENTER: "dragenter", - DRAGOVER: "dragover", - DRAGLEAVE: "dragleave", - DROP: "drop", - DRAGEND: "dragend", - TOUCHSTART: "touchstart", - TOUCHMOVE: "touchmove", - TOUCHEND: "touchend", - TOUCHCANCEL: "touchcancel", - BEFOREUNLOAD: "beforeunload", - CONSOLEMESSAGE: "consolemessage", - CONTEXTMENU: "contextmenu", - DEVICECHANGE: "devicechange", - DEVICEMOTION: "devicemotion", - DEVICEORIENTATION: "deviceorientation", - DOMCONTENTLOADED: "DOMContentLoaded", - ERROR: "error", - HELP: "help", - LOAD: "load", - LOSECAPTURE: "losecapture", - ORIENTATIONCHANGE: "orientationchange", - READYSTATECHANGE: "readystatechange", - RESIZE: "resize", - SCROLL: "scroll", - UNLOAD: "unload", - CANPLAY: "canplay", - CANPLAYTHROUGH: "canplaythrough", - DURATIONCHANGE: "durationchange", - EMPTIED: "emptied", - ENDED: "ended", - LOADEDDATA: "loadeddata", - LOADEDMETADATA: "loadedmetadata", - PAUSE: "pause", - PLAY: "play", - PLAYING: "playing", - PROGRESS: "progress", - RATECHANGE: "ratechange", - SEEKED: "seeked", - SEEKING: "seeking", - STALLED: "stalled", - SUSPEND: "suspend", - TIMEUPDATE: "timeupdate", - VOLUMECHANGE: "volumechange", - WAITING: "waiting", - SOURCEOPEN: "sourceopen", - SOURCEENDED: "sourceended", - SOURCECLOSED: "sourceclosed", - ABORT: "abort", - UPDATE: "update", - UPDATESTART: "updatestart", - UPDATEEND: "updateend", - HASHCHANGE: "hashchange", - PAGEHIDE: "pagehide", - PAGESHOW: "pageshow", - POPSTATE: "popstate", - COPY: "copy", - PASTE: "paste", - CUT: "cut", - BEFORECOPY: "beforecopy", - BEFORECUT: "beforecut", - BEFOREPASTE: "beforepaste", - ONLINE: "online", - OFFLINE: "offline", - MESSAGE: "message", - CONNECT: "connect", - INSTALL: "install", - ACTIVATE: "activate", - FETCH: "fetch", - FOREIGNFETCH: "foreignfetch", - MESSAGEERROR: "messageerror", - STATECHANGE: "statechange", - UPDATEFOUND: "updatefound", - CONTROLLERCHANGE: "controllerchange", - ANIMATIONSTART: - goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationStart"), - ANIMATIONEND: - goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationEnd"), - ANIMATIONITERATION: - goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationIteration"), - TRANSITIONEND: - goog.events.eventTypeHelpers.getVendorPrefixedName("TransitionEnd"), - POINTERDOWN: "pointerdown", - POINTERUP: "pointerup", - POINTERCANCEL: "pointercancel", - POINTERMOVE: "pointermove", - POINTEROVER: "pointerover", - POINTEROUT: "pointerout", - POINTERENTER: "pointerenter", - POINTERLEAVE: "pointerleave", - GOTPOINTERCAPTURE: "gotpointercapture", - LOSTPOINTERCAPTURE: "lostpointercapture", - MSGESTURECHANGE: "MSGestureChange", - MSGESTUREEND: "MSGestureEnd", - MSGESTUREHOLD: "MSGestureHold", - MSGESTURESTART: "MSGestureStart", - MSGESTURETAP: "MSGestureTap", - MSGOTPOINTERCAPTURE: "MSGotPointerCapture", - MSINERTIASTART: "MSInertiaStart", - MSLOSTPOINTERCAPTURE: "MSLostPointerCapture", - MSPOINTERCANCEL: "MSPointerCancel", - MSPOINTERDOWN: "MSPointerDown", - MSPOINTERENTER: "MSPointerEnter", - MSPOINTERHOVER: "MSPointerHover", - MSPOINTERLEAVE: "MSPointerLeave", - MSPOINTERMOVE: "MSPointerMove", - MSPOINTEROUT: "MSPointerOut", - MSPOINTEROVER: "MSPointerOver", - MSPOINTERUP: "MSPointerUp", - TEXT: "text", - TEXTINPUT: goog.userAgent.IE ? "textinput" : "textInput", - COMPOSITIONSTART: "compositionstart", - COMPOSITIONUPDATE: "compositionupdate", - COMPOSITIONEND: "compositionend", - BEFOREINPUT: "beforeinput", - FULLSCREENCHANGE: "fullscreenchange", - WEBKITBEGINFULLSCREEN: "webkitbeginfullscreen", - WEBKITENDFULLSCREEN: "webkitendfullscreen", - EXIT: "exit", - LOADABORT: "loadabort", - LOADCOMMIT: "loadcommit", - LOADREDIRECT: "loadredirect", - LOADSTART: "loadstart", - LOADSTOP: "loadstop", - RESPONSIVE: "responsive", - SIZECHANGED: "sizechanged", - UNRESPONSIVE: "unresponsive", - VISIBILITYCHANGE: "visibilitychange", - STORAGE: "storage", - BEFOREPRINT: "beforeprint", - AFTERPRINT: "afterprint", - BEFOREINSTALLPROMPT: "beforeinstallprompt", - APPINSTALLED: "appinstalled", - CANCEL: "cancel", - FINISH: "finish", - REMOVE: "remove", -}; + CLICK: 'click', + RIGHTCLICK: 'rightclick', + DBLCLICK: 'dblclick', + AUXCLICK: 'auxclick', + MOUSEDOWN: 'mousedown', + MOUSEUP: 'mouseup', + MOUSEOVER: 'mouseover', + MOUSEOUT: 'mouseout', + MOUSEMOVE: 'mousemove', + MOUSEENTER: 'mouseenter', + MOUSELEAVE: 'mouseleave', + MOUSECANCEL: 'mousecancel', + SELECTIONCHANGE: 'selectionchange', + SELECTSTART: 'selectstart', + WHEEL: 'wheel', + KEYPRESS: 'keypress', + KEYDOWN: 'keydown', + KEYUP: 'keyup', + BLUR: 'blur', + FOCUS: 'focus', + DEACTIVATE: 'deactivate', + FOCUSIN: 'focusin', + FOCUSOUT: 'focusout', + CHANGE: 'change', + RESET: 'reset', + SELECT: 'select', + SUBMIT: 'submit', + INPUT: 'input', + PROPERTYCHANGE: 'propertychange', + DRAGSTART: 'dragstart', + DRAG: 'drag', + DRAGENTER: 'dragenter', + DRAGOVER: 'dragover', + DRAGLEAVE: 'dragleave', + DROP: 'drop', + DRAGEND: 'dragend', + TOUCHSTART: 'touchstart', + TOUCHMOVE: 'touchmove', + TOUCHEND: 'touchend', + TOUCHCANCEL: 'touchcancel', + BEFOREUNLOAD: 'beforeunload', + CONSOLEMESSAGE: 'consolemessage', + CONTEXTMENU: 'contextmenu', + DEVICECHANGE: 'devicechange', + DEVICEMOTION: 'devicemotion', + DEVICEORIENTATION: 'deviceorientation', + DOMCONTENTLOADED: 'DOMContentLoaded', + ERROR: 'error', + HELP: 'help', + LOAD: 'load', + LOSECAPTURE: 'losecapture', + ORIENTATIONCHANGE: 'orientationchange', + READYSTATECHANGE: 'readystatechange', + RESIZE: 'resize', + SCROLL: 'scroll', + UNLOAD: 'unload', + CANPLAY: 'canplay', + CANPLAYTHROUGH: 'canplaythrough', + DURATIONCHANGE: 'durationchange', + EMPTIED: 'emptied', + ENDED: 'ended', + LOADEDDATA: 'loadeddata', + LOADEDMETADATA: 'loadedmetadata', + PAUSE: 'pause', + PLAY: 'play', + PLAYING: 'playing', + PROGRESS: 'progress', + RATECHANGE: 'ratechange', + SEEKED: 'seeked', + SEEKING: 'seeking', + STALLED: 'stalled', + SUSPEND: 'suspend', + TIMEUPDATE: 'timeupdate', + VOLUMECHANGE: 'volumechange', + WAITING: 'waiting', + SOURCEOPEN: 'sourceopen', + SOURCEENDED: 'sourceended', + SOURCECLOSED: 'sourceclosed', + ABORT: 'abort', + UPDATE: 'update', + UPDATESTART: 'updatestart', + UPDATEEND: 'updateend', + HASHCHANGE: 'hashchange', + PAGEHIDE: 'pagehide', + PAGESHOW: 'pageshow', + POPSTATE: 'popstate', + COPY: 'copy', + PASTE: 'paste', + CUT: 'cut', + BEFORECOPY: 'beforecopy', + BEFORECUT: 'beforecut', + BEFOREPASTE: 'beforepaste', + ONLINE: 'online', + OFFLINE: 'offline', + MESSAGE: 'message', + CONNECT: 'connect', + INSTALL: 'install', + ACTIVATE: 'activate', + FETCH: 'fetch', + FOREIGNFETCH: 'foreignfetch', + MESSAGEERROR: 'messageerror', + STATECHANGE: 'statechange', + UPDATEFOUND: 'updatefound', + CONTROLLERCHANGE: 'controllerchange', + ANIMATIONSTART: + goog.events.eventTypeHelpers.getVendorPrefixedName('AnimationStart'), + ANIMATIONEND: + goog.events.eventTypeHelpers.getVendorPrefixedName('AnimationEnd'), + ANIMATIONITERATION: + goog.events.eventTypeHelpers.getVendorPrefixedName( + 'AnimationIteration' + ), + TRANSITIONEND: + goog.events.eventTypeHelpers.getVendorPrefixedName('TransitionEnd'), + POINTERDOWN: 'pointerdown', + POINTERUP: 'pointerup', + POINTERCANCEL: 'pointercancel', + POINTERMOVE: 'pointermove', + POINTEROVER: 'pointerover', + POINTEROUT: 'pointerout', + POINTERENTER: 'pointerenter', + POINTERLEAVE: 'pointerleave', + GOTPOINTERCAPTURE: 'gotpointercapture', + LOSTPOINTERCAPTURE: 'lostpointercapture', + MSGESTURECHANGE: 'MSGestureChange', + MSGESTUREEND: 'MSGestureEnd', + MSGESTUREHOLD: 'MSGestureHold', + MSGESTURESTART: 'MSGestureStart', + MSGESTURETAP: 'MSGestureTap', + MSGOTPOINTERCAPTURE: 'MSGotPointerCapture', + MSINERTIASTART: 'MSInertiaStart', + MSLOSTPOINTERCAPTURE: 'MSLostPointerCapture', + MSPOINTERCANCEL: 'MSPointerCancel', + MSPOINTERDOWN: 'MSPointerDown', + MSPOINTERENTER: 'MSPointerEnter', + MSPOINTERHOVER: 'MSPointerHover', + MSPOINTERLEAVE: 'MSPointerLeave', + MSPOINTERMOVE: 'MSPointerMove', + MSPOINTEROUT: 'MSPointerOut', + MSPOINTEROVER: 'MSPointerOver', + MSPOINTERUP: 'MSPointerUp', + TEXT: 'text', + TEXTINPUT: goog.userAgent.IE ? 'textinput' : 'textInput', + COMPOSITIONSTART: 'compositionstart', + COMPOSITIONUPDATE: 'compositionupdate', + COMPOSITIONEND: 'compositionend', + BEFOREINPUT: 'beforeinput', + FULLSCREENCHANGE: 'fullscreenchange', + WEBKITBEGINFULLSCREEN: 'webkitbeginfullscreen', + WEBKITENDFULLSCREEN: 'webkitendfullscreen', + EXIT: 'exit', + LOADABORT: 'loadabort', + LOADCOMMIT: 'loadcommit', + LOADREDIRECT: 'loadredirect', + LOADSTART: 'loadstart', + LOADSTOP: 'loadstop', + RESPONSIVE: 'responsive', + SIZECHANGED: 'sizechanged', + UNRESPONSIVE: 'unresponsive', + VISIBILITYCHANGE: 'visibilitychange', + STORAGE: 'storage', + BEFOREPRINT: 'beforeprint', + AFTERPRINT: 'afterprint', + BEFOREINSTALLPROMPT: 'beforeinstallprompt', + APPINSTALLED: 'appinstalled', + CANCEL: 'cancel', + FINISH: 'finish', + REMOVE: 'remove', +} goog.events.BrowserEvent = function (opt_e, opt_currentTarget) { - goog.events.Event.call(this, opt_e ? opt_e.type : ""); - this.relatedTarget = this.currentTarget = this.target = null; - this.button = - this.screenY = - this.screenX = - this.clientY = - this.clientX = - this.offsetY = - this.offsetX = - 0; - this.key = ""; - this.charCode = this.keyCode = 0; - this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1; - this.state = null; - this.platformModifierKey = !1; - this.pointerId = 0; - this.pointerType = ""; - this.timeStamp = 0; - this.event_ = null; - opt_e && this.init(opt_e, opt_currentTarget); -}; -goog.inherits(goog.events.BrowserEvent, goog.events.Event); -goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY = !1; + goog.events.Event.call(this, opt_e ? opt_e.type : '') + this.relatedTarget = this.currentTarget = this.target = null + this.button = + this.screenY = + this.screenX = + this.clientY = + this.clientX = + this.offsetY = + this.offsetX = + 0 + this.key = '' + this.charCode = this.keyCode = 0 + this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1 + this.state = null + this.platformModifierKey = !1 + this.pointerId = 0 + this.pointerType = '' + this.timeStamp = 0 + this.event_ = null + opt_e && this.init(opt_e, opt_currentTarget) +} +goog.inherits(goog.events.BrowserEvent, goog.events.Event) +goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY = !1 goog.events.BrowserEvent.MouseButton = { - LEFT: 0, - MIDDLE: 1, - RIGHT: 2, - BACK: 3, - FORWARD: 4, -}; + LEFT: 0, + MIDDLE: 1, + RIGHT: 2, + BACK: 3, + FORWARD: 4, +} goog.events.BrowserEvent.PointerType = { - MOUSE: "mouse", - PEN: "pen", - TOUCH: "touch", -}; -goog.events.BrowserEvent.IEButtonMap = goog.debug.freeze([1, 4, 2]); -goog.events.BrowserEvent.IE_BUTTON_MAP = goog.events.BrowserEvent.IEButtonMap; + MOUSE: 'mouse', + PEN: 'pen', + TOUCH: 'touch', +} +goog.events.BrowserEvent.IEButtonMap = goog.debug.freeze([1, 4, 2]) +goog.events.BrowserEvent.IE_BUTTON_MAP = goog.events.BrowserEvent.IEButtonMap goog.events.BrowserEvent.IE_POINTER_TYPE_MAP = goog.debug.freeze({ - 2: goog.events.BrowserEvent.PointerType.TOUCH, - 3: goog.events.BrowserEvent.PointerType.PEN, - 4: goog.events.BrowserEvent.PointerType.MOUSE, -}); + 2: goog.events.BrowserEvent.PointerType.TOUCH, + 3: goog.events.BrowserEvent.PointerType.PEN, + 4: goog.events.BrowserEvent.PointerType.MOUSE, +}) goog.events.BrowserEvent.prototype.init = function (e, opt_currentTarget) { - var type = (this.type = e.type), - relevantTouch = - e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : null; - this.target = e.target || e.srcElement; - this.currentTarget = opt_currentTarget; - var relatedTarget = e.relatedTarget; - relatedTarget - ? goog.userAgent.GECKO && - (goog.reflect.canAccessProperty(relatedTarget, "nodeName") || - (relatedTarget = null)) - : type == goog.events.EventType.MOUSEOVER - ? (relatedTarget = e.fromElement) - : type == goog.events.EventType.MOUSEOUT && (relatedTarget = e.toElement); - this.relatedTarget = relatedTarget; - relevantTouch - ? ((this.clientX = - void 0 !== relevantTouch.clientX - ? relevantTouch.clientX - : relevantTouch.pageX), - (this.clientY = - void 0 !== relevantTouch.clientY - ? relevantTouch.clientY - : relevantTouch.pageY), - (this.screenX = relevantTouch.screenX || 0), - (this.screenY = relevantTouch.screenY || 0)) - : (goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY - ? ((this.offsetX = void 0 !== e.layerX ? e.layerX : e.offsetX), - (this.offsetY = void 0 !== e.layerY ? e.layerY : e.offsetY)) - : ((this.offsetX = - goog.userAgent.WEBKIT || void 0 !== e.offsetX - ? e.offsetX - : e.layerX), - (this.offsetY = - goog.userAgent.WEBKIT || void 0 !== e.offsetY - ? e.offsetY - : e.layerY)), - (this.clientX = void 0 !== e.clientX ? e.clientX : e.pageX), - (this.clientY = void 0 !== e.clientY ? e.clientY : e.pageY), - (this.screenX = e.screenX || 0), - (this.screenY = e.screenY || 0)); - this.button = e.button; - this.keyCode = e.keyCode || 0; - this.key = e.key || ""; - this.charCode = e.charCode || ("keypress" == type ? e.keyCode : 0); - this.ctrlKey = e.ctrlKey; - this.altKey = e.altKey; - this.shiftKey = e.shiftKey; - this.metaKey = e.metaKey; - this.platformModifierKey = goog.userAgent.MAC ? e.metaKey : e.ctrlKey; - this.pointerId = e.pointerId || 0; - this.pointerType = goog.events.BrowserEvent.getPointerType_(e); - this.state = e.state; - this.timeStamp = e.timeStamp; - this.event_ = e; - e.defaultPrevented && - goog.events.BrowserEvent.superClass_.preventDefault.call(this); -}; + var type = (this.type = e.type), + relevantTouch = + e.changedTouches && e.changedTouches.length + ? e.changedTouches[0] + : null + this.target = e.target || e.srcElement + this.currentTarget = opt_currentTarget + var relatedTarget = e.relatedTarget + relatedTarget + ? goog.userAgent.GECKO && + (goog.reflect.canAccessProperty(relatedTarget, 'nodeName') || + (relatedTarget = null)) + : type == goog.events.EventType.MOUSEOVER + ? (relatedTarget = e.fromElement) + : type == goog.events.EventType.MOUSEOUT && + (relatedTarget = e.toElement) + this.relatedTarget = relatedTarget + relevantTouch + ? ((this.clientX = + void 0 !== relevantTouch.clientX + ? relevantTouch.clientX + : relevantTouch.pageX), + (this.clientY = + void 0 !== relevantTouch.clientY + ? relevantTouch.clientY + : relevantTouch.pageY), + (this.screenX = relevantTouch.screenX || 0), + (this.screenY = relevantTouch.screenY || 0)) + : (goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY + ? ((this.offsetX = void 0 !== e.layerX ? e.layerX : e.offsetX), + (this.offsetY = void 0 !== e.layerY ? e.layerY : e.offsetY)) + : ((this.offsetX = + goog.userAgent.WEBKIT || void 0 !== e.offsetX + ? e.offsetX + : e.layerX), + (this.offsetY = + goog.userAgent.WEBKIT || void 0 !== e.offsetY + ? e.offsetY + : e.layerY)), + (this.clientX = void 0 !== e.clientX ? e.clientX : e.pageX), + (this.clientY = void 0 !== e.clientY ? e.clientY : e.pageY), + (this.screenX = e.screenX || 0), + (this.screenY = e.screenY || 0)) + this.button = e.button + this.keyCode = e.keyCode || 0 + this.key = e.key || '' + this.charCode = e.charCode || ('keypress' == type ? e.keyCode : 0) + this.ctrlKey = e.ctrlKey + this.altKey = e.altKey + this.shiftKey = e.shiftKey + this.metaKey = e.metaKey + this.platformModifierKey = goog.userAgent.MAC ? e.metaKey : e.ctrlKey + this.pointerId = e.pointerId || 0 + this.pointerType = goog.events.BrowserEvent.getPointerType_(e) + this.state = e.state + this.timeStamp = e.timeStamp + this.event_ = e + e.defaultPrevented && + goog.events.BrowserEvent.superClass_.preventDefault.call(this) +} goog.events.BrowserEvent.prototype.isButton = function (button) { - return this.event_.button == button; -}; + return this.event_.button == button +} goog.events.BrowserEvent.prototype.isMouseActionButton = function () { - return ( - this.isButton(goog.events.BrowserEvent.MouseButton.LEFT) && - !(goog.userAgent.MAC && this.ctrlKey) - ); -}; + return ( + this.isButton(goog.events.BrowserEvent.MouseButton.LEFT) && + !(goog.userAgent.MAC && this.ctrlKey) + ) +} goog.events.BrowserEvent.prototype.stopPropagation = function () { - goog.events.BrowserEvent.superClass_.stopPropagation.call(this); - this.event_.stopPropagation - ? this.event_.stopPropagation() - : (this.event_.cancelBubble = !0); -}; + goog.events.BrowserEvent.superClass_.stopPropagation.call(this) + this.event_.stopPropagation + ? this.event_.stopPropagation() + : (this.event_.cancelBubble = !0) +} goog.events.BrowserEvent.prototype.preventDefault = function () { - goog.events.BrowserEvent.superClass_.preventDefault.call(this); - var be = this.event_; - be.preventDefault ? be.preventDefault() : (be.returnValue = !1); -}; + goog.events.BrowserEvent.superClass_.preventDefault.call(this) + var be = this.event_ + be.preventDefault ? be.preventDefault() : (be.returnValue = !1) +} goog.events.BrowserEvent.prototype.getBrowserEvent = function () { - return this.event_; -}; + return this.event_ +} goog.events.BrowserEvent.getPointerType_ = function (e) { - return "string" === typeof e.pointerType - ? e.pointerType - : goog.events.BrowserEvent.IE_POINTER_TYPE_MAP[e.pointerType] || ""; -}; -goog.events.Listenable = function () {}; + return 'string' === typeof e.pointerType + ? e.pointerType + : goog.events.BrowserEvent.IE_POINTER_TYPE_MAP[e.pointerType] || '' +} +goog.events.Listenable = function () {} goog.events.Listenable.IMPLEMENTED_BY_PROP = - "closure_listenable_" + ((1e6 * Math.random()) | 0); + 'closure_listenable_' + ((1e6 * Math.random()) | 0) goog.events.Listenable.addImplementation = function (cls) { - cls.prototype[goog.events.Listenable.IMPLEMENTED_BY_PROP] = !0; -}; + cls.prototype[goog.events.Listenable.IMPLEMENTED_BY_PROP] = !0 +} goog.events.Listenable.isImplementedBy = function (obj) { - return !(!obj || !obj[goog.events.Listenable.IMPLEMENTED_BY_PROP]); -}; + return !(!obj || !obj[goog.events.Listenable.IMPLEMENTED_BY_PROP]) +} goog.events.Listenable.prototype.listen = function ( - type, - listener, - opt_useCapture, - opt_listenerScope -) {}; + type, + listener, + opt_useCapture, + opt_listenerScope +) {} goog.events.Listenable.prototype.listenOnce = function ( - type, - listener, - opt_useCapture, - opt_listenerScope -) {}; + type, + listener, + opt_useCapture, + opt_listenerScope +) {} goog.events.Listenable.prototype.unlisten = function ( - type, - listener, - opt_useCapture, - opt_listenerScope -) {}; -goog.events.Listenable.prototype.unlistenByKey = function (key) {}; -goog.events.Listenable.prototype.dispatchEvent = function (e) {}; -goog.events.Listenable.prototype.removeAllListeners = function (opt_type) {}; -goog.events.Listenable.prototype.getParentEventTarget = function () {}; + type, + listener, + opt_useCapture, + opt_listenerScope +) {} +goog.events.Listenable.prototype.unlistenByKey = function (key) {} +goog.events.Listenable.prototype.dispatchEvent = function (e) {} +goog.events.Listenable.prototype.removeAllListeners = function (opt_type) {} +goog.events.Listenable.prototype.getParentEventTarget = function () {} goog.events.Listenable.prototype.fireListeners = function ( - type, - capture, - eventObject -) {}; -goog.events.Listenable.prototype.getListeners = function (type, capture) {}; + type, + capture, + eventObject +) {} +goog.events.Listenable.prototype.getListeners = function (type, capture) {} goog.events.Listenable.prototype.getListener = function ( - type, - listener, - capture, - opt_listenerScope -) {}; + type, + listener, + capture, + opt_listenerScope +) {} goog.events.Listenable.prototype.hasListener = function ( - opt_type, - opt_capture -) {}; -goog.events.ListenableKey = function () {}; -goog.events.ListenableKey.counter_ = 0; + opt_type, + opt_capture +) {} +goog.events.ListenableKey = function () {} +goog.events.ListenableKey.counter_ = 0 goog.events.ListenableKey.reserveKey = function () { - return ++goog.events.ListenableKey.counter_; -}; + return ++goog.events.ListenableKey.counter_ +} goog.events.Listener = function ( - listener, - proxy, - src, - type, - capture, - opt_handler -) { - goog.events.Listener.ENABLE_MONITORING && - (this.creationStack = Error().stack); - this.listener = listener; - this.proxy = proxy; - this.src = src; - this.type = type; - this.capture = !!capture; - this.handler = opt_handler; - this.key = goog.events.ListenableKey.reserveKey(); - this.removed = this.callOnce = !1; -}; -goog.events.Listener.ENABLE_MONITORING = !1; + listener, + proxy, + src, + type, + capture, + opt_handler +) { + goog.events.Listener.ENABLE_MONITORING && + (this.creationStack = Error().stack) + this.listener = listener + this.proxy = proxy + this.src = src + this.type = type + this.capture = !!capture + this.handler = opt_handler + this.key = goog.events.ListenableKey.reserveKey() + this.removed = this.callOnce = !1 +} +goog.events.Listener.ENABLE_MONITORING = !1 goog.events.Listener.prototype.markAsRemoved = function () { - this.removed = !0; - this.handler = this.src = this.proxy = this.listener = null; -}; -goog.object = {}; + this.removed = !0 + this.handler = this.src = this.proxy = this.listener = null +} +goog.object = {} function module$contents$goog$object_forEach(obj, f, opt_obj) { - for (var key in obj) { - f.call(opt_obj, obj[key], key, obj); - } + for (var key in obj) { + f.call(opt_obj, obj[key], key, obj) + } } function module$contents$goog$object_filter(obj, f, opt_obj) { - var res = {}, - key; - for (key in obj) { - f.call(opt_obj, obj[key], key, obj) && (res[key] = obj[key]); - } - return res; + var res = {}, + key + for (key in obj) { + f.call(opt_obj, obj[key], key, obj) && (res[key] = obj[key]) + } + return res } function module$contents$goog$object_map(obj, f, opt_obj) { - var res = {}, - key; - for (key in obj) { - res[key] = f.call(opt_obj, obj[key], key, obj); - } - return res; + var res = {}, + key + for (key in obj) { + res[key] = f.call(opt_obj, obj[key], key, obj) + } + return res } function module$contents$goog$object_some(obj, f, opt_obj) { - for (var key in obj) { - if (f.call(opt_obj, obj[key], key, obj)) { - return !0; + for (var key in obj) { + if (f.call(opt_obj, obj[key], key, obj)) { + return !0 + } } - } - return !1; + return !1 } function module$contents$goog$object_getCount(obj) { - var rv = 0, - key; - for (key in obj) { - rv++; - } - return rv; + var rv = 0, + key + for (key in obj) { + rv++ + } + return rv } function module$contents$goog$object_contains(obj, val) { - return module$contents$goog$object_containsValue(obj, val); + return module$contents$goog$object_containsValue(obj, val) } function module$contents$goog$object_getValues(obj) { - var res = [], - i = 0, - key; - for (key in obj) { - res[i++] = obj[key]; - } - return res; + var res = [], + i = 0, + key + for (key in obj) { + res[i++] = obj[key] + } + return res } function module$contents$goog$object_getKeys(obj) { - var res = [], - i = 0, - key; - for (key in obj) { - res[i++] = key; - } - return res; + var res = [], + i = 0, + key + for (key in obj) { + res[i++] = key + } + return res } function module$contents$goog$object_containsKey(obj, key) { - return null !== obj && key in obj; + return null !== obj && key in obj } function module$contents$goog$object_containsValue(obj, val) { - for (var key in obj) { - if (obj[key] == val) { - return !0; + for (var key in obj) { + if (obj[key] == val) { + return !0 + } } - } - return !1; + return !1 } function module$contents$goog$object_findKey(obj, f, thisObj) { - for (var key in obj) { - if (f.call(thisObj, obj[key], key, obj)) { - return key; + for (var key in obj) { + if (f.call(thisObj, obj[key], key, obj)) { + return key + } } - } } function module$contents$goog$object_isEmpty(obj) { - for (var key in obj) { - return !1; - } - return !0; + for (var key in obj) { + return !1 + } + return !0 } function module$contents$goog$object_clear(obj) { - for (var i in obj) { - delete obj[i]; - } + for (var i in obj) { + delete obj[i] + } } function module$contents$goog$object_remove(obj, key) { - var rv; - (rv = key in obj) && delete obj[key]; - return rv; + var rv + ;(rv = key in obj) && delete obj[key] + return rv } function module$contents$goog$object_set(obj, key, value) { - obj[key] = value; + obj[key] = value } function module$contents$goog$object_clone(obj) { - var res = {}, - key; - for (key in obj) { - res[key] = obj[key]; - } - return res; + var res = {}, + key + for (key in obj) { + res[key] = obj[key] + } + return res } function module$contents$goog$object_unsafeClone(obj) { - if (!obj || "object" !== typeof obj) { - return obj; - } - if ("function" === typeof obj.clone) { - return obj.clone(); - } - if ("undefined" !== typeof Map && obj instanceof Map) { - return new Map(obj); - } - if ("undefined" !== typeof Set && obj instanceof Set) { - return new Set(obj); - } - if (obj instanceof Date) { - return new Date(obj.getTime()); - } - var clone = Array.isArray(obj) - ? [] - : "function" !== typeof ArrayBuffer || - "function" !== typeof ArrayBuffer.isView || - !ArrayBuffer.isView(obj) || - obj instanceof DataView - ? {} - : new obj.constructor(obj.length), - key; - for (key in obj) { - clone[key] = module$contents$goog$object_unsafeClone(obj[key]); - } - return clone; + if (!obj || 'object' !== typeof obj) { + return obj + } + if ('function' === typeof obj.clone) { + return obj.clone() + } + if ('undefined' !== typeof Map && obj instanceof Map) { + return new Map(obj) + } + if ('undefined' !== typeof Set && obj instanceof Set) { + return new Set(obj) + } + if (obj instanceof Date) { + return new Date(obj.getTime()) + } + var clone = Array.isArray(obj) + ? [] + : 'function' !== typeof ArrayBuffer || + 'function' !== typeof ArrayBuffer.isView || + !ArrayBuffer.isView(obj) || + obj instanceof DataView + ? {} + : new obj.constructor(obj.length), + key + for (key in obj) { + clone[key] = module$contents$goog$object_unsafeClone(obj[key]) + } + return clone } var module$contents$goog$object_PROTOTYPE_FIELDS = - "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split( - " " - ); + 'constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf'.split( + ' ' + ) function module$contents$goog$object_extend(target, var_args) { - for (var key, source, i = 1; i < arguments.length; i++) { - source = arguments[i]; - for (key in source) { - target[key] = source[key]; - } - for ( - var j = 0; - j < module$contents$goog$object_PROTOTYPE_FIELDS.length; - j++ - ) { - (key = module$contents$goog$object_PROTOTYPE_FIELDS[j]), - Object.prototype.hasOwnProperty.call(source, key) && - (target[key] = source[key]); + for (var key, source, i = 1; i < arguments.length; i++) { + source = arguments[i] + for (key in source) { + target[key] = source[key] + } + for ( + var j = 0; + j < module$contents$goog$object_PROTOTYPE_FIELDS.length; + j++ + ) { + ;(key = module$contents$goog$object_PROTOTYPE_FIELDS[j]), + Object.prototype.hasOwnProperty.call(source, key) && + (target[key] = source[key]) + } } - } } function module$contents$goog$object_create(var_args) { - var argLength = arguments.length; - if (1 == argLength && Array.isArray(arguments[0])) { - return module$contents$goog$object_create.apply(null, arguments[0]); - } - if (argLength % 2) { - throw Error("Uneven number of arguments"); - } - for (var rv = {}, i = 0; i < argLength; i += 2) { - rv[arguments[i]] = arguments[i + 1]; - } - return rv; + var argLength = arguments.length + if (1 == argLength && Array.isArray(arguments[0])) { + return module$contents$goog$object_create.apply(null, arguments[0]) + } + if (argLength % 2) { + throw Error('Uneven number of arguments') + } + for (var rv = {}, i = 0; i < argLength; i += 2) { + rv[arguments[i]] = arguments[i + 1] + } + return rv } function module$contents$goog$object_createSet(var_args) { - var argLength = arguments.length; - if (1 == argLength && Array.isArray(arguments[0])) { - return module$contents$goog$object_createSet.apply(null, arguments[0]); - } - for (var rv = {}, i = 0; i < argLength; i++) { - rv[arguments[i]] = !0; - } - return rv; + var argLength = arguments.length + if (1 == argLength && Array.isArray(arguments[0])) { + return module$contents$goog$object_createSet.apply(null, arguments[0]) + } + for (var rv = {}, i = 0; i < argLength; i++) { + rv[arguments[i]] = !0 + } + return rv } goog.object.add = function (obj, key, val) { - if (null !== obj && key in obj) { - throw Error('The object already contains the key "' + key + '"'); - } - module$contents$goog$object_set(obj, key, val); -}; -goog.object.clear = module$contents$goog$object_clear; -goog.object.clone = module$contents$goog$object_clone; -goog.object.contains = module$contents$goog$object_contains; -goog.object.containsKey = module$contents$goog$object_containsKey; -goog.object.containsValue = module$contents$goog$object_containsValue; -goog.object.create = module$contents$goog$object_create; + if (null !== obj && key in obj) { + throw Error('The object already contains the key "' + key + '"') + } + module$contents$goog$object_set(obj, key, val) +} +goog.object.clear = module$contents$goog$object_clear +goog.object.clone = module$contents$goog$object_clone +goog.object.contains = module$contents$goog$object_contains +goog.object.containsKey = module$contents$goog$object_containsKey +goog.object.containsValue = module$contents$goog$object_containsValue +goog.object.create = module$contents$goog$object_create goog.object.createImmutableView = function (obj) { - var result = obj; - Object.isFrozen && - !Object.isFrozen(obj) && - ((result = Object.create(obj)), Object.freeze(result)); - return result; -}; -goog.object.createSet = module$contents$goog$object_createSet; + var result = obj + Object.isFrozen && + !Object.isFrozen(obj) && + ((result = Object.create(obj)), Object.freeze(result)) + return result +} +goog.object.createSet = module$contents$goog$object_createSet goog.object.equals = function (a, b) { - for (var k in a) { - if (!(k in b) || a[k] !== b[k]) { - return !1; - } - } - for (var k$jscomp$0 in b) { - if (!(k$jscomp$0 in a)) { - return !1; - } - } - return !0; -}; + for (var k in a) { + if (!(k in b) || a[k] !== b[k]) { + return !1 + } + } + for (var k$jscomp$0 in b) { + if (!(k$jscomp$0 in a)) { + return !1 + } + } + return !0 +} goog.object.every = function (obj, f, opt_obj) { - for (var key in obj) { - if (!f.call(opt_obj, obj[key], key, obj)) { - return !1; - } - } - return !0; -}; -goog.object.extend = module$contents$goog$object_extend; -goog.object.filter = module$contents$goog$object_filter; -goog.object.findKey = module$contents$goog$object_findKey; + for (var key in obj) { + if (!f.call(opt_obj, obj[key], key, obj)) { + return !1 + } + } + return !0 +} +goog.object.extend = module$contents$goog$object_extend +goog.object.filter = module$contents$goog$object_filter +goog.object.findKey = module$contents$goog$object_findKey goog.object.findValue = function (obj, f, thisObj) { - var key = module$contents$goog$object_findKey(obj, f, thisObj); - return key && obj[key]; -}; -goog.object.forEach = module$contents$goog$object_forEach; + var key = module$contents$goog$object_findKey(obj, f, thisObj) + return key && obj[key] +} +goog.object.forEach = module$contents$goog$object_forEach goog.object.get = function (obj, key, val) { - return null !== obj && key in obj ? obj[key] : val; -}; + return null !== obj && key in obj ? obj[key] : val +} goog.object.getAllPropertyNames = function ( - obj, - includeObjectPrototype, - includeFunctionPrototype -) { - if (!obj) { - return []; - } - if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) { - return module$contents$goog$object_getKeys(obj); - } - for ( - var visitedSet = {}, proto = obj; - proto && - (proto !== Object.prototype || includeObjectPrototype) && - (proto !== Function.prototype || includeFunctionPrototype); - - ) { + obj, + includeObjectPrototype, + includeFunctionPrototype +) { + if (!obj) { + return [] + } + if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) { + return module$contents$goog$object_getKeys(obj) + } for ( - var names = Object.getOwnPropertyNames(proto), i = 0; - i < names.length; - i++ + var visitedSet = {}, proto = obj; + proto && + (proto !== Object.prototype || includeObjectPrototype) && + (proto !== Function.prototype || includeFunctionPrototype); + ) { - visitedSet[names[i]] = !0; + for ( + var names = Object.getOwnPropertyNames(proto), i = 0; + i < names.length; + i++ + ) { + visitedSet[names[i]] = !0 + } + proto = Object.getPrototypeOf(proto) } - proto = Object.getPrototypeOf(proto); - } - return module$contents$goog$object_getKeys(visitedSet); -}; + return module$contents$goog$object_getKeys(visitedSet) +} goog.object.getAnyKey = function (obj) { - for (var key in obj) { - return key; - } -}; + for (var key in obj) { + return key + } +} goog.object.getAnyValue = function (obj) { - for (var key in obj) { - return obj[key]; - } -}; -goog.object.getCount = module$contents$goog$object_getCount; -goog.object.getKeys = module$contents$goog$object_getKeys; + for (var key in obj) { + return obj[key] + } +} +goog.object.getCount = module$contents$goog$object_getCount +goog.object.getKeys = module$contents$goog$object_getKeys goog.object.getSuperClass = function (constructor) { - var proto = Object.getPrototypeOf(constructor.prototype); - return proto && proto.constructor; -}; + var proto = Object.getPrototypeOf(constructor.prototype) + return proto && proto.constructor +} goog.object.getValueByKeys = function (obj, var_args) { - for ( - var isArrayLike = goog.isArrayLike(var_args), - keys = isArrayLike ? var_args : arguments, - i = isArrayLike ? 0 : 1; - i < keys.length; - i++ - ) { - if (null == obj) { - return; - } - obj = obj[keys[i]]; - } - return obj; -}; -goog.object.getValues = module$contents$goog$object_getValues; -goog.object.isEmpty = module$contents$goog$object_isEmpty; + for ( + var isArrayLike = goog.isArrayLike(var_args), + keys = isArrayLike ? var_args : arguments, + i = isArrayLike ? 0 : 1; + i < keys.length; + i++ + ) { + if (null == obj) { + return + } + obj = obj[keys[i]] + } + return obj +} +goog.object.getValues = module$contents$goog$object_getValues +goog.object.isEmpty = module$contents$goog$object_isEmpty goog.object.isImmutableView = function (obj) { - return !!Object.isFrozen && Object.isFrozen(obj); -}; -goog.object.map = module$contents$goog$object_map; -goog.object.remove = module$contents$goog$object_remove; -goog.object.set = module$contents$goog$object_set; + return !!Object.isFrozen && Object.isFrozen(obj) +} +goog.object.map = module$contents$goog$object_map +goog.object.remove = module$contents$goog$object_remove +goog.object.set = module$contents$goog$object_set goog.object.setIfUndefined = function (obj, key, value) { - return key in obj ? obj[key] : (obj[key] = value); -}; + return key in obj ? obj[key] : (obj[key] = value) +} goog.object.setWithReturnValueIfNotSet = function (obj, key, f) { - if (key in obj) { - return obj[key]; - } - var val = f(); - return (obj[key] = val); -}; -goog.object.some = module$contents$goog$object_some; + if (key in obj) { + return obj[key] + } + var val = f() + return (obj[key] = val) +} +goog.object.some = module$contents$goog$object_some goog.object.transpose = function (obj) { - var transposed = {}, - key; - for (key in obj) { - transposed[obj[key]] = key; - } - return transposed; -}; -goog.object.unsafeClone = module$contents$goog$object_unsafeClone; + var transposed = {}, + key + for (key in obj) { + transposed[obj[key]] = key + } + return transposed +} +goog.object.unsafeClone = module$contents$goog$object_unsafeClone goog.events.ListenerMap = function (src) { - this.src = src; - this.listeners = {}; - this.typeCount_ = 0; -}; + this.src = src + this.listeners = {} + this.typeCount_ = 0 +} goog.events.ListenerMap.prototype.getTypeCount = function () { - return this.typeCount_; -}; + return this.typeCount_ +} goog.events.ListenerMap.prototype.getListenerCount = function () { - var count = 0, - type; - for (type in this.listeners) { - count += this.listeners[type].length; - } - return count; -}; + var count = 0, + type + for (type in this.listeners) { + count += this.listeners[type].length + } + return count +} goog.events.ListenerMap.prototype.add = function ( - type, - listener, - callOnce, - opt_useCapture, - opt_listenerScope -) { - var typeStr = type.toString(), - listenerArray = this.listeners[typeStr]; - listenerArray || - ((listenerArray = this.listeners[typeStr] = []), this.typeCount_++); - var index = goog.events.ListenerMap.findListenerIndex_( - listenerArray, + type, listener, + callOnce, opt_useCapture, opt_listenerScope - ); - if (-1 < index) { - var listenerObj = listenerArray[index]; - callOnce || (listenerObj.callOnce = !1); - } else { - (listenerObj = new goog.events.Listener( - listener, - null, - this.src, - typeStr, - !!opt_useCapture, - opt_listenerScope - )), - (listenerObj.callOnce = callOnce), - listenerArray.push(listenerObj); - } - return listenerObj; -}; -goog.events.ListenerMap.prototype.remove = function ( - type, - listener, - opt_useCapture, - opt_listenerScope -) { - var typeStr = type.toString(); - if (!(typeStr in this.listeners)) { - return !1; - } - var listenerArray = this.listeners[typeStr], - index = goog.events.ListenerMap.findListenerIndex_( - listenerArray, - listener, - opt_useCapture, - opt_listenerScope - ); - return -1 < index - ? (listenerArray[index].markAsRemoved(), - module$contents$goog$array_removeAt(listenerArray, index), - 0 == listenerArray.length && - (delete this.listeners[typeStr], this.typeCount_--), - !0) - : !1; -}; -goog.events.ListenerMap.prototype.removeByKey = function (listener) { - var type = listener.type; - if (!(type in this.listeners)) { - return !1; - } - var removed = module$contents$goog$array_remove( - this.listeners[type], - listener - ); - removed && - (listener.markAsRemoved(), - 0 == this.listeners[type].length && - (delete this.listeners[type], this.typeCount_--)); - return removed; -}; -goog.events.ListenerMap.prototype.removeAll = function (opt_type) { - var typeStr = opt_type && opt_type.toString(), - count = 0, - type; - for (type in this.listeners) { - if (!typeStr || type == typeStr) { - for ( - var listenerArray = this.listeners[type], i = 0; - i < listenerArray.length; - i++ - ) { - ++count, listenerArray[i].markAsRemoved(); - } - delete this.listeners[type]; - this.typeCount_--; +) { + var typeStr = type.toString(), + listenerArray = this.listeners[typeStr] + listenerArray || + ((listenerArray = this.listeners[typeStr] = []), this.typeCount_++) + var index = goog.events.ListenerMap.findListenerIndex_( + listenerArray, + listener, + opt_useCapture, + opt_listenerScope + ) + if (-1 < index) { + var listenerObj = listenerArray[index] + callOnce || (listenerObj.callOnce = !1) + } else { + ;(listenerObj = new goog.events.Listener( + listener, + null, + this.src, + typeStr, + !!opt_useCapture, + opt_listenerScope + )), + (listenerObj.callOnce = callOnce), + listenerArray.push(listenerObj) } - } - return count; -}; + return listenerObj +} +goog.events.ListenerMap.prototype.remove = function ( + type, + listener, + opt_useCapture, + opt_listenerScope +) { + var typeStr = type.toString() + if (!(typeStr in this.listeners)) { + return !1 + } + var listenerArray = this.listeners[typeStr], + index = goog.events.ListenerMap.findListenerIndex_( + listenerArray, + listener, + opt_useCapture, + opt_listenerScope + ) + return -1 < index + ? (listenerArray[index].markAsRemoved(), + module$contents$goog$array_removeAt(listenerArray, index), + 0 == listenerArray.length && + (delete this.listeners[typeStr], this.typeCount_--), + !0) + : !1 +} +goog.events.ListenerMap.prototype.removeByKey = function (listener) { + var type = listener.type + if (!(type in this.listeners)) { + return !1 + } + var removed = module$contents$goog$array_remove( + this.listeners[type], + listener + ) + removed && + (listener.markAsRemoved(), + 0 == this.listeners[type].length && + (delete this.listeners[type], this.typeCount_--)) + return removed +} +goog.events.ListenerMap.prototype.removeAll = function (opt_type) { + var typeStr = opt_type && opt_type.toString(), + count = 0, + type + for (type in this.listeners) { + if (!typeStr || type == typeStr) { + for ( + var listenerArray = this.listeners[type], i = 0; + i < listenerArray.length; + i++ + ) { + ++count, listenerArray[i].markAsRemoved() + } + delete this.listeners[type] + this.typeCount_-- + } + } + return count +} goog.events.ListenerMap.prototype.getListeners = function (type, capture) { - var listenerArray = this.listeners[type.toString()], - rv = []; - if (listenerArray) { - for (var i = 0; i < listenerArray.length; ++i) { - var listenerObj = listenerArray[i]; - listenerObj.capture == capture && rv.push(listenerObj); + var listenerArray = this.listeners[type.toString()], + rv = [] + if (listenerArray) { + for (var i = 0; i < listenerArray.length; ++i) { + var listenerObj = listenerArray[i] + listenerObj.capture == capture && rv.push(listenerObj) + } } - } - return rv; -}; + return rv +} goog.events.ListenerMap.prototype.getListener = function ( - type, - listener, - capture, - opt_listenerScope -) { - var listenerArray = this.listeners[type.toString()], - i = -1; - listenerArray && - (i = goog.events.ListenerMap.findListenerIndex_( - listenerArray, - listener, - capture, - opt_listenerScope - )); - return -1 < i ? listenerArray[i] : null; -}; + type, + listener, + capture, + opt_listenerScope +) { + var listenerArray = this.listeners[type.toString()], + i = -1 + listenerArray && + (i = goog.events.ListenerMap.findListenerIndex_( + listenerArray, + listener, + capture, + opt_listenerScope + )) + return -1 < i ? listenerArray[i] : null +} goog.events.ListenerMap.prototype.hasListener = function ( - opt_type, - opt_capture -) { - var hasType = void 0 !== opt_type, - typeStr = hasType ? opt_type.toString() : "", - hasCapture = void 0 !== opt_capture; - return module$contents$goog$object_some( - this.listeners, - function (listenerArray, type) { - for (var i = 0; i < listenerArray.length; ++i) { + opt_type, + opt_capture +) { + var hasType = void 0 !== opt_type, + typeStr = hasType ? opt_type.toString() : '', + hasCapture = void 0 !== opt_capture + return module$contents$goog$object_some( + this.listeners, + function (listenerArray, type) { + for (var i = 0; i < listenerArray.length; ++i) { + if ( + !( + (hasType && listenerArray[i].type != typeStr) || + (hasCapture && listenerArray[i].capture != opt_capture) + ) + ) { + return !0 + } + } + return !1 + } + ) +} +goog.events.ListenerMap.findListenerIndex_ = function ( + listenerArray, + listener, + opt_useCapture, + opt_listenerScope +) { + for (var i = 0; i < listenerArray.length; ++i) { + var listenerObj = listenerArray[i] if ( - !( - (hasType && listenerArray[i].type != typeStr) || - (hasCapture && listenerArray[i].capture != opt_capture) - ) + !listenerObj.removed && + listenerObj.listener == listener && + listenerObj.capture == !!opt_useCapture && + listenerObj.handler == opt_listenerScope ) { - return !0; + return i } - } - return !1; } - ); -}; -goog.events.ListenerMap.findListenerIndex_ = function ( - listenerArray, - listener, - opt_useCapture, - opt_listenerScope -) { - for (var i = 0; i < listenerArray.length; ++i) { - var listenerObj = listenerArray[i]; - if ( - !listenerObj.removed && - listenerObj.listener == listener && - listenerObj.capture == !!opt_useCapture && - listenerObj.handler == opt_listenerScope - ) { - return i; - } - } - return -1; -}; -goog.events.Key = {}; -goog.events.ListenableType = {}; -goog.events.LISTENER_MAP_PROP_ = "closure_lm_" + ((1e6 * Math.random()) | 0); -goog.events.onString_ = "on"; -goog.events.onStringMap_ = {}; + return -1 +} +goog.events.Key = {} +goog.events.ListenableType = {} +goog.events.LISTENER_MAP_PROP_ = 'closure_lm_' + ((1e6 * Math.random()) | 0) +goog.events.onString_ = 'on' +goog.events.onStringMap_ = {} goog.events.CaptureSimulationMode = { - OFF_AND_FAIL: 0, - OFF_AND_SILENT: 1, - ON: 2, -}; -goog.events.CAPTURE_SIMULATION_MODE = 2; -goog.events.listenerCountEstimate_ = 0; + OFF_AND_FAIL: 0, + OFF_AND_SILENT: 1, + ON: 2, +} +goog.events.CAPTURE_SIMULATION_MODE = 2 +goog.events.listenerCountEstimate_ = 0 goog.events.listen = function (src, type, listener, opt_options, opt_handler) { - if (opt_options && opt_options.once) { - return goog.events.listenOnce( - src, - type, - listener, - opt_options, - opt_handler - ); - } - if (Array.isArray(type)) { - for (var i = 0; i < type.length; i++) { - goog.events.listen(src, type[i], listener, opt_options, opt_handler); + if (opt_options && opt_options.once) { + return goog.events.listenOnce( + src, + type, + listener, + opt_options, + opt_handler + ) } - return null; - } - listener = goog.events.wrapListener(listener); - return goog.events.Listenable.isImplementedBy(src) - ? src.listen( - type, - listener, - goog.isObject(opt_options) ? !!opt_options.capture : !!opt_options, - opt_handler - ) - : goog.events.listen_(src, type, listener, !1, opt_options, opt_handler); -}; + if (Array.isArray(type)) { + for (var i = 0; i < type.length; i++) { + goog.events.listen(src, type[i], listener, opt_options, opt_handler) + } + return null + } + listener = goog.events.wrapListener(listener) + return goog.events.Listenable.isImplementedBy(src) + ? src.listen( + type, + listener, + goog.isObject(opt_options) + ? !!opt_options.capture + : !!opt_options, + opt_handler + ) + : goog.events.listen_(src, type, listener, !1, opt_options, opt_handler) +} goog.events.listen_ = function ( - src, - type, - listener, - callOnce, - opt_options, - opt_handler -) { - if (!type) { - throw Error("Invalid event type"); - } - var capture = goog.isObject(opt_options) - ? !!opt_options.capture - : !!opt_options, - listenerMap = goog.events.getListenerMap_(src); - listenerMap || - (src[goog.events.LISTENER_MAP_PROP_] = listenerMap = - new goog.events.ListenerMap(src)); - var listenerObj = listenerMap.add( + src, type, listener, callOnce, - capture, + opt_options, opt_handler - ); - if (listenerObj.proxy) { - return listenerObj; - } - var proxy = goog.events.getProxy(); - listenerObj.proxy = proxy; - proxy.src = src; - proxy.listener = listenerObj; - if (src.addEventListener) { - goog.events.BrowserFeature.PASSIVE_EVENTS || (opt_options = capture), - void 0 === opt_options && (opt_options = !1), - src.addEventListener(type.toString(), proxy, opt_options); - } else if (src.attachEvent) { - src.attachEvent(goog.events.getOnString_(type.toString()), proxy); - } else if (src.addListener && src.removeListener) { - goog.asserts.assert( - "change" === type, - "MediaQueryList only has a change event" - ), - src.addListener(proxy); - } else { - throw Error("addEventListener and attachEvent are unavailable."); - } - goog.events.listenerCountEstimate_++; - return listenerObj; -}; -goog.events.getProxy = function () { - var proxyCallbackFunction = goog.events.handleBrowserEvent_, - f = function (eventObject) { - return proxyCallbackFunction.call(f.src, f.listener, eventObject); - }; - return f; -}; -goog.events.listenOnce = function ( - src, - type, - listener, - opt_options, - opt_handler ) { - if (Array.isArray(type)) { - for (var i = 0; i < type.length; i++) { - goog.events.listenOnce(src, type[i], listener, opt_options, opt_handler); - } - return null; - } - listener = goog.events.wrapListener(listener); - return goog.events.Listenable.isImplementedBy(src) - ? src.listenOnce( + if (!type) { + throw Error('Invalid event type') + } + var capture = goog.isObject(opt_options) + ? !!opt_options.capture + : !!opt_options, + listenerMap = goog.events.getListenerMap_(src) + listenerMap || + (src[goog.events.LISTENER_MAP_PROP_] = listenerMap = + new goog.events.ListenerMap(src)) + var listenerObj = listenerMap.add( type, listener, - goog.isObject(opt_options) ? !!opt_options.capture : !!opt_options, + callOnce, + capture, opt_handler - ) - : goog.events.listen_(src, type, listener, !0, opt_options, opt_handler); -}; + ) + if (listenerObj.proxy) { + return listenerObj + } + var proxy = goog.events.getProxy() + listenerObj.proxy = proxy + proxy.src = src + proxy.listener = listenerObj + if (src.addEventListener) { + goog.events.BrowserFeature.PASSIVE_EVENTS || (opt_options = capture), + void 0 === opt_options && (opt_options = !1), + src.addEventListener(type.toString(), proxy, opt_options) + } else if (src.attachEvent) { + src.attachEvent(goog.events.getOnString_(type.toString()), proxy) + } else if (src.addListener && src.removeListener) { + goog.asserts.assert( + 'change' === type, + 'MediaQueryList only has a change event' + ), + src.addListener(proxy) + } else { + throw Error('addEventListener and attachEvent are unavailable.') + } + goog.events.listenerCountEstimate_++ + return listenerObj +} +goog.events.getProxy = function () { + var proxyCallbackFunction = goog.events.handleBrowserEvent_, + f = function (eventObject) { + return proxyCallbackFunction.call(f.src, f.listener, eventObject) + } + return f +} +goog.events.listenOnce = function ( + src, + type, + listener, + opt_options, + opt_handler +) { + if (Array.isArray(type)) { + for (var i = 0; i < type.length; i++) { + goog.events.listenOnce( + src, + type[i], + listener, + opt_options, + opt_handler + ) + } + return null + } + listener = goog.events.wrapListener(listener) + return goog.events.Listenable.isImplementedBy(src) + ? src.listenOnce( + type, + listener, + goog.isObject(opt_options) + ? !!opt_options.capture + : !!opt_options, + opt_handler + ) + : goog.events.listen_(src, type, listener, !0, opt_options, opt_handler) +} goog.events.listenWithWrapper = function ( - src, - wrapper, - listener, - opt_capt, - opt_handler -) { - wrapper.listen(src, listener, opt_capt, opt_handler); -}; + src, + wrapper, + listener, + opt_capt, + opt_handler +) { + wrapper.listen(src, listener, opt_capt, opt_handler) +} goog.events.unlisten = function ( - src, - type, - listener, - opt_options, - opt_handler + src, + type, + listener, + opt_options, + opt_handler ) { - if (Array.isArray(type)) { - for (var i = 0; i < type.length; i++) { - goog.events.unlisten(src, type[i], listener, opt_options, opt_handler); - } - return null; - } - var capture = goog.isObject(opt_options) - ? !!opt_options.capture - : !!opt_options; - listener = goog.events.wrapListener(listener); - if (goog.events.Listenable.isImplementedBy(src)) { - return src.unlisten(type, listener, capture, opt_handler); - } - if (!src) { - return !1; - } - var listenerMap = goog.events.getListenerMap_(src); - if (listenerMap) { - var listenerObj = listenerMap.getListener( - type, - listener, - capture, - opt_handler - ); - if (listenerObj) { - return goog.events.unlistenByKey(listenerObj); - } - } - return !1; -}; + if (Array.isArray(type)) { + for (var i = 0; i < type.length; i++) { + goog.events.unlisten( + src, + type[i], + listener, + opt_options, + opt_handler + ) + } + return null + } + var capture = goog.isObject(opt_options) + ? !!opt_options.capture + : !!opt_options + listener = goog.events.wrapListener(listener) + if (goog.events.Listenable.isImplementedBy(src)) { + return src.unlisten(type, listener, capture, opt_handler) + } + if (!src) { + return !1 + } + var listenerMap = goog.events.getListenerMap_(src) + if (listenerMap) { + var listenerObj = listenerMap.getListener( + type, + listener, + capture, + opt_handler + ) + if (listenerObj) { + return goog.events.unlistenByKey(listenerObj) + } + } + return !1 +} goog.events.unlistenByKey = function (key) { - if ("number" === typeof key || !key || key.removed) { - return !1; - } - var src = key.src; - if (goog.events.Listenable.isImplementedBy(src)) { - return src.unlistenByKey(key); - } - var type = key.type, - proxy = key.proxy; - src.removeEventListener - ? src.removeEventListener(type, proxy, key.capture) - : src.detachEvent - ? src.detachEvent(goog.events.getOnString_(type), proxy) - : src.addListener && src.removeListener && src.removeListener(proxy); - goog.events.listenerCountEstimate_--; - var listenerMap = goog.events.getListenerMap_(src); - listenerMap - ? (listenerMap.removeByKey(key), - 0 == listenerMap.getTypeCount() && - ((listenerMap.src = null), - (src[goog.events.LISTENER_MAP_PROP_] = null))) - : key.markAsRemoved(); - return !0; -}; + if ('number' === typeof key || !key || key.removed) { + return !1 + } + var src = key.src + if (goog.events.Listenable.isImplementedBy(src)) { + return src.unlistenByKey(key) + } + var type = key.type, + proxy = key.proxy + src.removeEventListener + ? src.removeEventListener(type, proxy, key.capture) + : src.detachEvent + ? src.detachEvent(goog.events.getOnString_(type), proxy) + : src.addListener && src.removeListener && src.removeListener(proxy) + goog.events.listenerCountEstimate_-- + var listenerMap = goog.events.getListenerMap_(src) + listenerMap + ? (listenerMap.removeByKey(key), + 0 == listenerMap.getTypeCount() && + ((listenerMap.src = null), + (src[goog.events.LISTENER_MAP_PROP_] = null))) + : key.markAsRemoved() + return !0 +} goog.events.unlistenWithWrapper = function ( - src, - wrapper, - listener, - opt_capt, - opt_handler -) { - wrapper.unlisten(src, listener, opt_capt, opt_handler); -}; + src, + wrapper, + listener, + opt_capt, + opt_handler +) { + wrapper.unlisten(src, listener, opt_capt, opt_handler) +} goog.events.removeAll = function (obj, opt_type) { - if (!obj) { - return 0; - } - if (goog.events.Listenable.isImplementedBy(obj)) { - return obj.removeAllListeners(opt_type); - } - var listenerMap = goog.events.getListenerMap_(obj); - if (!listenerMap) { - return 0; - } - var count = 0, - typeStr = opt_type && opt_type.toString(), - type; - for (type in listenerMap.listeners) { - if (!typeStr || type == typeStr) { - for ( - var listeners = listenerMap.listeners[type].concat(), i = 0; - i < listeners.length; - ++i - ) { - goog.events.unlistenByKey(listeners[i]) && ++count; - } + if (!obj) { + return 0 + } + if (goog.events.Listenable.isImplementedBy(obj)) { + return obj.removeAllListeners(opt_type) + } + var listenerMap = goog.events.getListenerMap_(obj) + if (!listenerMap) { + return 0 + } + var count = 0, + typeStr = opt_type && opt_type.toString(), + type + for (type in listenerMap.listeners) { + if (!typeStr || type == typeStr) { + for ( + var listeners = listenerMap.listeners[type].concat(), i = 0; + i < listeners.length; + ++i + ) { + goog.events.unlistenByKey(listeners[i]) && ++count + } + } } - } - return count; -}; + return count +} goog.events.getListeners = function (obj, type, capture) { - if (goog.events.Listenable.isImplementedBy(obj)) { - return obj.getListeners(type, capture); - } - if (!obj) { - return []; - } - var listenerMap = goog.events.getListenerMap_(obj); - return listenerMap ? listenerMap.getListeners(type, capture) : []; -}; + if (goog.events.Listenable.isImplementedBy(obj)) { + return obj.getListeners(type, capture) + } + if (!obj) { + return [] + } + var listenerMap = goog.events.getListenerMap_(obj) + return listenerMap ? listenerMap.getListeners(type, capture) : [] +} goog.events.getListener = function ( - src, - type, - listener, - opt_capt, - opt_handler -) { - listener = goog.events.wrapListener(listener); - var capture = !!opt_capt; - if (goog.events.Listenable.isImplementedBy(src)) { - return src.getListener(type, listener, capture, opt_handler); - } - if (!src) { - return null; - } - var listenerMap = goog.events.getListenerMap_(src); - return listenerMap - ? listenerMap.getListener(type, listener, capture, opt_handler) - : null; -}; + src, + type, + listener, + opt_capt, + opt_handler +) { + listener = goog.events.wrapListener(listener) + var capture = !!opt_capt + if (goog.events.Listenable.isImplementedBy(src)) { + return src.getListener(type, listener, capture, opt_handler) + } + if (!src) { + return null + } + var listenerMap = goog.events.getListenerMap_(src) + return listenerMap + ? listenerMap.getListener(type, listener, capture, opt_handler) + : null +} goog.events.hasListener = function (obj, opt_type, opt_capture) { - if (goog.events.Listenable.isImplementedBy(obj)) { - return obj.hasListener(opt_type, opt_capture); - } - var listenerMap = goog.events.getListenerMap_(obj); - return !!listenerMap && listenerMap.hasListener(opt_type, opt_capture); -}; + if (goog.events.Listenable.isImplementedBy(obj)) { + return obj.hasListener(opt_type, opt_capture) + } + var listenerMap = goog.events.getListenerMap_(obj) + return !!listenerMap && listenerMap.hasListener(opt_type, opt_capture) +} goog.events.expose = function (e) { - var str = [], - key; - for (key in e) { - e[key] && e[key].id - ? str.push(key + " = " + e[key] + " (" + e[key].id + ")") - : str.push(key + " = " + e[key]); - } - return str.join("\n"); -}; + var str = [], + key + for (key in e) { + e[key] && e[key].id + ? str.push(key + ' = ' + e[key] + ' (' + e[key].id + ')') + : str.push(key + ' = ' + e[key]) + } + return str.join('\n') +} goog.events.getOnString_ = function (type) { - return type in goog.events.onStringMap_ - ? goog.events.onStringMap_[type] - : (goog.events.onStringMap_[type] = goog.events.onString_ + type); -}; + return type in goog.events.onStringMap_ + ? goog.events.onStringMap_[type] + : (goog.events.onStringMap_[type] = goog.events.onString_ + type) +} goog.events.fireListeners = function (obj, type, capture, eventObject) { - return goog.events.Listenable.isImplementedBy(obj) - ? obj.fireListeners(type, capture, eventObject) - : goog.events.fireListeners_(obj, type, capture, eventObject); -}; + return goog.events.Listenable.isImplementedBy(obj) + ? obj.fireListeners(type, capture, eventObject) + : goog.events.fireListeners_(obj, type, capture, eventObject) +} goog.events.fireListeners_ = function (obj, type, capture, eventObject) { - var retval = !0, - listenerMap = goog.events.getListenerMap_(obj); - if (listenerMap) { - var listenerArray = listenerMap.listeners[type.toString()]; - if (listenerArray) { - listenerArray = listenerArray.concat(); - for (var i = 0; i < listenerArray.length; i++) { - var listener = listenerArray[i]; - if (listener && listener.capture == capture && !listener.removed) { - var result = goog.events.fireListener(listener, eventObject); - retval = retval && !1 !== result; + var retval = !0, + listenerMap = goog.events.getListenerMap_(obj) + if (listenerMap) { + var listenerArray = listenerMap.listeners[type.toString()] + if (listenerArray) { + listenerArray = listenerArray.concat() + for (var i = 0; i < listenerArray.length; i++) { + var listener = listenerArray[i] + if ( + listener && + listener.capture == capture && + !listener.removed + ) { + var result = goog.events.fireListener(listener, eventObject) + retval = retval && !1 !== result + } + } } - } } - } - return retval; -}; + return retval +} goog.events.fireListener = function (listener, eventObject) { - var listenerFn = listener.listener, - listenerHandler = listener.handler || listener.src; - listener.callOnce && goog.events.unlistenByKey(listener); - return listenerFn.call(listenerHandler, eventObject); -}; + var listenerFn = listener.listener, + listenerHandler = listener.handler || listener.src + listener.callOnce && goog.events.unlistenByKey(listener) + return listenerFn.call(listenerHandler, eventObject) +} goog.events.getTotalListenerCount = function () { - return goog.events.listenerCountEstimate_; -}; + return goog.events.listenerCountEstimate_ +} goog.events.dispatchEvent = function (src, e) { - goog.asserts.assert( - goog.events.Listenable.isImplementedBy(src), - "Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance." - ); - return src.dispatchEvent(e); -}; + goog.asserts.assert( + goog.events.Listenable.isImplementedBy(src), + 'Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.' + ) + return src.dispatchEvent(e) +} goog.events.protectBrowserEventEntryPoint = function (errorHandler) { - goog.events.handleBrowserEvent_ = errorHandler.protectEntryPoint( - goog.events.handleBrowserEvent_ - ); -}; + goog.events.handleBrowserEvent_ = errorHandler.protectEntryPoint( + goog.events.handleBrowserEvent_ + ) +} goog.events.handleBrowserEvent_ = function (listener, opt_evt) { - return listener.removed - ? !0 - : goog.events.fireListener( - listener, - new goog.events.BrowserEvent(opt_evt, this) - ); -}; + return listener.removed + ? !0 + : goog.events.fireListener( + listener, + new goog.events.BrowserEvent(opt_evt, this) + ) +} goog.events.markIeEvent_ = function (e) { - var useReturnValue = !1; - if (0 == e.keyCode) { - try { - e.keyCode = -1; - return; - } catch (ex) { - useReturnValue = !0; - } - } - if (useReturnValue || void 0 == e.returnValue) { - e.returnValue = !0; - } -}; + var useReturnValue = !1 + if (0 == e.keyCode) { + try { + e.keyCode = -1 + return + } catch (ex) { + useReturnValue = !0 + } + } + if (useReturnValue || void 0 == e.returnValue) { + e.returnValue = !0 + } +} goog.events.isMarkedIeEvent_ = function (e) { - return 0 > e.keyCode || void 0 != e.returnValue; -}; -goog.events.uniqueIdCounter_ = 0; + return 0 > e.keyCode || void 0 != e.returnValue +} +goog.events.uniqueIdCounter_ = 0 goog.events.getUniqueId = function (identifier) { - return identifier + "_" + goog.events.uniqueIdCounter_++; -}; + return identifier + '_' + goog.events.uniqueIdCounter_++ +} goog.events.getListenerMap_ = function (src) { - var listenerMap = src[goog.events.LISTENER_MAP_PROP_]; - return listenerMap instanceof goog.events.ListenerMap ? listenerMap : null; -}; + var listenerMap = src[goog.events.LISTENER_MAP_PROP_] + return listenerMap instanceof goog.events.ListenerMap ? listenerMap : null +} goog.events.LISTENER_WRAPPER_PROP_ = - "__closure_events_fn_" + ((1e9 * Math.random()) >>> 0); + '__closure_events_fn_' + ((1e9 * Math.random()) >>> 0) goog.events.wrapListener = function (listener) { - goog.asserts.assert(listener, "Listener can not be null."); - if ("function" === typeof listener) { - return listener; - } - goog.asserts.assert( - listener.handleEvent, - "An object listener must have handleEvent method." - ); - listener[goog.events.LISTENER_WRAPPER_PROP_] || - (listener[goog.events.LISTENER_WRAPPER_PROP_] = function (e) { - return listener.handleEvent(e); - }); - return listener[goog.events.LISTENER_WRAPPER_PROP_]; -}; + goog.asserts.assert(listener, 'Listener can not be null.') + if ('function' === typeof listener) { + return listener + } + goog.asserts.assert( + listener.handleEvent, + 'An object listener must have handleEvent method.' + ) + listener[goog.events.LISTENER_WRAPPER_PROP_] || + (listener[goog.events.LISTENER_WRAPPER_PROP_] = function (e) { + return listener.handleEvent(e) + }) + return listener[goog.events.LISTENER_WRAPPER_PROP_] +} goog.debug.entryPointRegistry.register(function (transformer) { - goog.events.handleBrowserEvent_ = transformer( - goog.events.handleBrowserEvent_ - ); -}); + goog.events.handleBrowserEvent_ = transformer( + goog.events.handleBrowserEvent_ + ) +}) goog.events.EventTarget = function () { - goog.Disposable.call(this); - this.eventTargetListeners_ = new goog.events.ListenerMap(this); - this.actualEventTarget_ = this; - this.parentEventTarget_ = null; -}; -goog.inherits(goog.events.EventTarget, goog.Disposable); -goog.events.Listenable.addImplementation(goog.events.EventTarget); -goog.events.EventTarget.MAX_ANCESTORS_ = 1e3; + goog.Disposable.call(this) + this.eventTargetListeners_ = new goog.events.ListenerMap(this) + this.actualEventTarget_ = this + this.parentEventTarget_ = null +} +goog.inherits(goog.events.EventTarget, goog.Disposable) +goog.events.Listenable.addImplementation(goog.events.EventTarget) +goog.events.EventTarget.MAX_ANCESTORS_ = 1e3 goog.events.EventTarget.prototype.getParentEventTarget = function () { - return this.parentEventTarget_; -}; + return this.parentEventTarget_ +} goog.events.EventTarget.prototype.setParentEventTarget = function (parent) { - this.parentEventTarget_ = parent; -}; + this.parentEventTarget_ = parent +} goog.events.EventTarget.prototype.addEventListener = function ( - type, - handler, - opt_capture, - opt_handlerScope + type, + handler, + opt_capture, + opt_handlerScope ) { - goog.events.listen(this, type, handler, opt_capture, opt_handlerScope); -}; + goog.events.listen(this, type, handler, opt_capture, opt_handlerScope) +} goog.events.EventTarget.prototype.removeEventListener = function ( - type, - handler, - opt_capture, - opt_handlerScope + type, + handler, + opt_capture, + opt_handlerScope ) { - goog.events.unlisten(this, type, handler, opt_capture, opt_handlerScope); -}; + goog.events.unlisten(this, type, handler, opt_capture, opt_handlerScope) +} goog.events.EventTarget.prototype.dispatchEvent = function (e) { - this.assertInitialized_(); - var ancestor = this.getParentEventTarget(); - if (ancestor) { - var ancestorsTree = []; - for ( - var ancestorCount = 1; - ancestor; - ancestor = ancestor.getParentEventTarget() - ) { - ancestorsTree.push(ancestor), - goog.asserts.assert( - ++ancestorCount < goog.events.EventTarget.MAX_ANCESTORS_, - "infinite loop" - ); + this.assertInitialized_() + var ancestor = this.getParentEventTarget() + if (ancestor) { + var ancestorsTree = [] + for ( + var ancestorCount = 1; + ancestor; + ancestor = ancestor.getParentEventTarget() + ) { + ancestorsTree.push(ancestor), + goog.asserts.assert( + ++ancestorCount < goog.events.EventTarget.MAX_ANCESTORS_, + 'infinite loop' + ) + } } - } - return goog.events.EventTarget.dispatchEventInternal_( - this.actualEventTarget_, - e, - ancestorsTree - ); -}; + return goog.events.EventTarget.dispatchEventInternal_( + this.actualEventTarget_, + e, + ancestorsTree + ) +} goog.events.EventTarget.prototype.disposeInternal = function () { - goog.events.EventTarget.superClass_.disposeInternal.call(this); - this.removeAllListeners(); - this.parentEventTarget_ = null; -}; + goog.events.EventTarget.superClass_.disposeInternal.call(this) + this.removeAllListeners() + this.parentEventTarget_ = null +} goog.events.EventTarget.prototype.listen = function ( - type, - listener, - opt_useCapture, - opt_listenerScope -) { - this.assertInitialized_(); - return this.eventTargetListeners_.add( - String(type), + type, listener, - !1, opt_useCapture, opt_listenerScope - ); -}; -goog.events.EventTarget.prototype.listenOnce = function ( - type, - listener, - opt_useCapture, - opt_listenerScope ) { - return this.eventTargetListeners_.add( - String(type), + this.assertInitialized_() + return this.eventTargetListeners_.add( + String(type), + listener, + !1, + opt_useCapture, + opt_listenerScope + ) +} +goog.events.EventTarget.prototype.listenOnce = function ( + type, listener, - !0, opt_useCapture, opt_listenerScope - ); -}; -goog.events.EventTarget.prototype.unlisten = function ( - type, - listener, - opt_useCapture, - opt_listenerScope ) { - return this.eventTargetListeners_.remove( - String(type), + return this.eventTargetListeners_.add( + String(type), + listener, + !0, + opt_useCapture, + opt_listenerScope + ) +} +goog.events.EventTarget.prototype.unlisten = function ( + type, listener, opt_useCapture, opt_listenerScope - ); -}; +) { + return this.eventTargetListeners_.remove( + String(type), + listener, + opt_useCapture, + opt_listenerScope + ) +} goog.events.EventTarget.prototype.unlistenByKey = function (key) { - return this.eventTargetListeners_.removeByKey(key); -}; + return this.eventTargetListeners_.removeByKey(key) +} goog.events.EventTarget.prototype.removeAllListeners = function (opt_type) { - return this.eventTargetListeners_ - ? this.eventTargetListeners_.removeAll(opt_type) - : 0; -}; + return this.eventTargetListeners_ + ? this.eventTargetListeners_.removeAll(opt_type) + : 0 +} goog.events.EventTarget.prototype.fireListeners = function ( - type, - capture, - eventObject -) { - var listenerArray = this.eventTargetListeners_.listeners[String(type)]; - if (!listenerArray) { - return !0; - } - listenerArray = listenerArray.concat(); - for (var rv = !0, i = 0; i < listenerArray.length; ++i) { - var listener = listenerArray[i]; - if (listener && !listener.removed && listener.capture == capture) { - var listenerFn = listener.listener, - listenerHandler = listener.handler || listener.src; - listener.callOnce && this.unlistenByKey(listener); - rv = !1 !== listenerFn.call(listenerHandler, eventObject) && rv; - } - } - return rv && !eventObject.defaultPrevented; -}; + type, + capture, + eventObject +) { + var listenerArray = this.eventTargetListeners_.listeners[String(type)] + if (!listenerArray) { + return !0 + } + listenerArray = listenerArray.concat() + for (var rv = !0, i = 0; i < listenerArray.length; ++i) { + var listener = listenerArray[i] + if (listener && !listener.removed && listener.capture == capture) { + var listenerFn = listener.listener, + listenerHandler = listener.handler || listener.src + listener.callOnce && this.unlistenByKey(listener) + rv = !1 !== listenerFn.call(listenerHandler, eventObject) && rv + } + } + return rv && !eventObject.defaultPrevented +} goog.events.EventTarget.prototype.getListeners = function (type, capture) { - return this.eventTargetListeners_.getListeners(String(type), capture); -}; + return this.eventTargetListeners_.getListeners(String(type), capture) +} goog.events.EventTarget.prototype.getListener = function ( - type, - listener, - capture, - opt_listenerScope -) { - return this.eventTargetListeners_.getListener( - String(type), + type, listener, capture, opt_listenerScope - ); -}; -goog.events.EventTarget.prototype.hasListener = function ( - opt_type, - opt_capture ) { - return this.eventTargetListeners_.hasListener( - void 0 !== opt_type ? String(opt_type) : void 0, + return this.eventTargetListeners_.getListener( + String(type), + listener, + capture, + opt_listenerScope + ) +} +goog.events.EventTarget.prototype.hasListener = function ( + opt_type, opt_capture - ); -}; +) { + return this.eventTargetListeners_.hasListener( + void 0 !== opt_type ? String(opt_type) : void 0, + opt_capture + ) +} goog.events.EventTarget.prototype.setTargetForTesting = function (target) { - this.actualEventTarget_ = target; -}; + this.actualEventTarget_ = target +} goog.events.EventTarget.prototype.assertInitialized_ = function () { - goog.asserts.assert( - this.eventTargetListeners_, - "Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?" - ); -}; + goog.asserts.assert( + this.eventTargetListeners_, + 'Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?' + ) +} goog.events.EventTarget.dispatchEventInternal_ = function ( - target, - e, - opt_ancestorsTree -) { - var type = e.type || e; - if ("string" === typeof e) { - e = new goog.events.Event(e, target); - } else if (e instanceof goog.events.Event) { - e.target = e.target || target; - } else { - var oldEvent = e; - e = new goog.events.Event(type, target); - module$contents$goog$object_extend(e, oldEvent); - } - var rv = !0; - if (opt_ancestorsTree) { - for ( - var i = opt_ancestorsTree.length - 1; - !e.hasPropagationStopped() && 0 <= i; - i-- - ) { - var currentTarget = (e.currentTarget = opt_ancestorsTree[i]); - rv = currentTarget.fireListeners(type, !0, e) && rv; + target, + e, + opt_ancestorsTree +) { + var type = e.type || e + if ('string' === typeof e) { + e = new goog.events.Event(e, target) + } else if (e instanceof goog.events.Event) { + e.target = e.target || target + } else { + var oldEvent = e + e = new goog.events.Event(type, target) + module$contents$goog$object_extend(e, oldEvent) + } + var rv = !0 + if (opt_ancestorsTree) { + for ( + var i = opt_ancestorsTree.length - 1; + !e.hasPropagationStopped() && 0 <= i; + i-- + ) { + var currentTarget = (e.currentTarget = opt_ancestorsTree[i]) + rv = currentTarget.fireListeners(type, !0, e) && rv + } } - } - e.hasPropagationStopped() || - ((currentTarget = e.currentTarget = target), - (rv = currentTarget.fireListeners(type, !0, e) && rv), e.hasPropagationStopped() || - (rv = currentTarget.fireListeners(type, !1, e) && rv)); - if (opt_ancestorsTree) { - for ( - i = 0; - !e.hasPropagationStopped() && i < opt_ancestorsTree.length; - i++ - ) { - (currentTarget = e.currentTarget = opt_ancestorsTree[i]), - (rv = currentTarget.fireListeners(type, !1, e) && rv); - } - } - return rv; -}; -goog.structs = {}; -goog.structs.Collection = function () {}; -goog.collections = {}; -goog.collections.iters = {}; + ((currentTarget = e.currentTarget = target), + (rv = currentTarget.fireListeners(type, !0, e) && rv), + e.hasPropagationStopped() || + (rv = currentTarget.fireListeners(type, !1, e) && rv)) + if (opt_ancestorsTree) { + for ( + i = 0; + !e.hasPropagationStopped() && i < opt_ancestorsTree.length; + i++ + ) { + ;(currentTarget = e.currentTarget = opt_ancestorsTree[i]), + (rv = currentTarget.fireListeners(type, !1, e) && rv) + } + } + return rv +} +goog.structs = {} +goog.structs.Collection = function () {} +goog.collections = {} +goog.collections.iters = {} function module$contents$goog$collections$iters_getIterator(iterable) { - return iterable[goog.global.Symbol.iterator](); + return iterable[goog.global.Symbol.iterator]() } goog.collections.iters.getIterator = - module$contents$goog$collections$iters_getIterator; + module$contents$goog$collections$iters_getIterator function module$contents$goog$collections$iters_forEach(iterator, f) { - for (var result; !(result = iterator.next()).done; ) { - f(result.value); - } + for (var result; !(result = iterator.next()).done; ) { + f(result.value) + } } -goog.collections.iters.forEach = module$contents$goog$collections$iters_forEach; +goog.collections.iters.forEach = module$contents$goog$collections$iters_forEach var module$contents$goog$collections$iters_MapIterator = function ( - childIter, - mapFn + childIter, + mapFn ) { - this.childIterator_ = - module$contents$goog$collections$iters_getIterator(childIter); - this.mapFn_ = mapFn; -}; + this.childIterator_ = + module$contents$goog$collections$iters_getIterator(childIter) + this.mapFn_ = mapFn +} module$contents$goog$collections$iters_MapIterator.prototype[Symbol.iterator] = - function () { - return this; - }; + function () { + return this + } module$contents$goog$collections$iters_MapIterator.prototype.next = - function () { - var childResult = this.childIterator_.next(); - return { - value: childResult.done - ? void 0 - : this.mapFn_.call(void 0, childResult.value), - done: childResult.done, - }; - }; -goog.collections.iters.map = function (iterable, f) { - return new module$contents$goog$collections$iters_MapIterator(iterable, f); -}; -var module$contents$goog$collections$iters_FilterIterator = function ( - childIter, - filterFn -) { - this.childIter_ = - module$contents$goog$collections$iters_getIterator(childIter); - this.filterFn_ = filterFn; -}; + function () { + var childResult = this.childIterator_.next() + return { + value: childResult.done + ? void 0 + : this.mapFn_.call(void 0, childResult.value), + done: childResult.done, + } + } +goog.collections.iters.map = function (iterable, f) { + return new module$contents$goog$collections$iters_MapIterator(iterable, f) +} +var module$contents$goog$collections$iters_FilterIterator = function ( + childIter, + filterFn +) { + this.childIter_ = + module$contents$goog$collections$iters_getIterator(childIter) + this.filterFn_ = filterFn +} module$contents$goog$collections$iters_FilterIterator.prototype[ - Symbol.iterator + Symbol.iterator ] = function () { - return this; -}; + return this +} module$contents$goog$collections$iters_FilterIterator.prototype.next = - function () { - for (;;) { - var childResult = this.childIter_.next(); - if (childResult.done) { - return { done: !0, value: void 0 }; - } - if (this.filterFn_.call(void 0, childResult.value)) { - return childResult; - } + function () { + for (;;) { + var childResult = this.childIter_.next() + if (childResult.done) { + return { done: !0, value: void 0 } + } + if (this.filterFn_.call(void 0, childResult.value)) { + return childResult + } + } } - }; goog.collections.iters.filter = function (iterable, f) { - return new module$contents$goog$collections$iters_FilterIterator(iterable, f); -}; + return new module$contents$goog$collections$iters_FilterIterator( + iterable, + f + ) +} var module$contents$goog$collections$iters_ConcatIterator = function ( - iterators + iterators ) { - this.iterators_ = iterators; - this.iterIndex_ = 0; -}; + this.iterators_ = iterators + this.iterIndex_ = 0 +} module$contents$goog$collections$iters_ConcatIterator.prototype[ - Symbol.iterator + Symbol.iterator ] = function () { - return this; -}; + return this +} module$contents$goog$collections$iters_ConcatIterator.prototype.next = - function () { - for (; this.iterIndex_ < this.iterators_.length; ) { - var result = this.iterators_[this.iterIndex_].next(); - if (!result.done) { - return result; - } - this.iterIndex_++; + function () { + for (; this.iterIndex_ < this.iterators_.length; ) { + var result = this.iterators_[this.iterIndex_].next() + if (!result.done) { + return result + } + this.iterIndex_++ + } + return { done: !0 } } - return { done: !0 }; - }; goog.collections.iters.concat = function () { - return new module$contents$goog$collections$iters_ConcatIterator( - $jscomp.getRestArguments - .apply(0, arguments) - .map(module$contents$goog$collections$iters_getIterator) - ); -}; + return new module$contents$goog$collections$iters_ConcatIterator( + $jscomp.getRestArguments + .apply(0, arguments) + .map(module$contents$goog$collections$iters_getIterator) + ) +} goog.collections.iters.toArray = function (iterator) { - var arr = []; - module$contents$goog$collections$iters_forEach(iterator, function (e) { - return arr.push(e); - }); - return arr; -}; -goog.functions = {}; + var arr = [] + module$contents$goog$collections$iters_forEach(iterator, function (e) { + return arr.push(e) + }) + return arr +} +goog.functions = {} goog.functions.constant = function (retValue) { - return function () { - return retValue; - }; -}; + return function () { + return retValue + } +} goog.functions.FALSE = function () { - return !1; -}; + return !1 +} goog.functions.TRUE = function () { - return !0; -}; + return !0 +} goog.functions.NULL = function () { - return null; -}; -goog.functions.UNDEFINED = function () {}; -goog.functions.EMPTY = goog.functions.UNDEFINED; + return null +} +goog.functions.UNDEFINED = function () {} +goog.functions.EMPTY = goog.functions.UNDEFINED goog.functions.identity = function (opt_returnValue, var_args) { - return opt_returnValue; -}; + return opt_returnValue +} goog.functions.error = function (message) { - return function () { - throw Error(message); - }; -}; + return function () { + throw Error(message) + } +} goog.functions.fail = function (err) { - return function () { - throw err; - }; -}; + return function () { + throw err + } +} goog.functions.lock = function (f, opt_numArgs) { - opt_numArgs = opt_numArgs || 0; - return function () { - return f.apply(this, Array.prototype.slice.call(arguments, 0, opt_numArgs)); - }; -}; + opt_numArgs = opt_numArgs || 0 + return function () { + return f.apply( + this, + Array.prototype.slice.call(arguments, 0, opt_numArgs) + ) + } +} goog.functions.nth = function (n) { - return function () { - return arguments[n]; - }; -}; + return function () { + return arguments[n] + } +} goog.functions.partialRight = function (fn, var_args) { - var rightArgs = Array.prototype.slice.call(arguments, 1); - return function () { - var self = this; - self === goog.global && (self = void 0); - var newArgs = Array.prototype.slice.call(arguments); - newArgs.push.apply(newArgs, rightArgs); - return fn.apply(self, newArgs); - }; -}; + var rightArgs = Array.prototype.slice.call(arguments, 1) + return function () { + var self = this + self === goog.global && (self = void 0) + var newArgs = Array.prototype.slice.call(arguments) + newArgs.push.apply(newArgs, rightArgs) + return fn.apply(self, newArgs) + } +} goog.functions.withReturnValue = function (f, retValue) { - return goog.functions.sequence(f, goog.functions.constant(retValue)); -}; + return goog.functions.sequence(f, goog.functions.constant(retValue)) +} goog.functions.equalTo = function (value, opt_useLooseComparison) { - return function (other) { - return opt_useLooseComparison ? value == other : value === other; - }; -}; + return function (other) { + return opt_useLooseComparison ? value == other : value === other + } +} goog.functions.compose = function (fn, var_args) { - var functions = arguments, - length = functions.length; - return function () { - var result; - length && (result = functions[length - 1].apply(this, arguments)); - for (var i = length - 2; 0 <= i; i--) { - result = functions[i].call(this, result); - } - return result; - }; -}; + var functions = arguments, + length = functions.length + return function () { + var result + length && (result = functions[length - 1].apply(this, arguments)) + for (var i = length - 2; 0 <= i; i--) { + result = functions[i].call(this, result) + } + return result + } +} goog.functions.sequence = function (var_args) { - var functions = arguments, - length = functions.length; - return function () { - for (var result, i = 0; i < length; i++) { - result = functions[i].apply(this, arguments); - } - return result; - }; -}; + var functions = arguments, + length = functions.length + return function () { + for (var result, i = 0; i < length; i++) { + result = functions[i].apply(this, arguments) + } + return result + } +} goog.functions.and = function (var_args) { - var functions = arguments, - length = functions.length; - return function () { - for (var i = 0; i < length; i++) { - if (!functions[i].apply(this, arguments)) { - return !1; - } + var functions = arguments, + length = functions.length + return function () { + for (var i = 0; i < length; i++) { + if (!functions[i].apply(this, arguments)) { + return !1 + } + } + return !0 } - return !0; - }; -}; +} goog.functions.or = function (var_args) { - var functions = arguments, - length = functions.length; - return function () { - for (var i = 0; i < length; i++) { - if (functions[i].apply(this, arguments)) { - return !0; - } + var functions = arguments, + length = functions.length + return function () { + for (var i = 0; i < length; i++) { + if (functions[i].apply(this, arguments)) { + return !0 + } + } + return !1 } - return !1; - }; -}; +} goog.functions.not = function (f) { - return function () { - return !f.apply(this, arguments); - }; -}; + return function () { + return !f.apply(this, arguments) + } +} goog.functions.create = function (constructor, var_args) { - var temp = function () {}; - temp.prototype = constructor.prototype; - var obj = new temp(); - constructor.apply(obj, Array.prototype.slice.call(arguments, 1)); - return obj; -}; -goog.functions.CACHE_RETURN_VALUE = !0; + var temp = function () {} + temp.prototype = constructor.prototype + var obj = new temp() + constructor.apply(obj, Array.prototype.slice.call(arguments, 1)) + return obj +} +goog.functions.CACHE_RETURN_VALUE = !0 goog.functions.cacheReturnValue = function (fn) { - var called = !1, - value; - return function () { - if (!goog.functions.CACHE_RETURN_VALUE) { - return fn(); - } - called || ((value = fn()), (called = !0)); - return value; - }; -}; + var called = !1, + value + return function () { + if (!goog.functions.CACHE_RETURN_VALUE) { + return fn() + } + called || ((value = fn()), (called = !0)) + return value + } +} goog.functions.once = function (f) { - var inner = f; - return function () { - if (inner) { - var tmp = inner; - inner = null; - tmp(); - } - }; -}; + var inner = f + return function () { + if (inner) { + var tmp = inner + inner = null + tmp() + } + } +} goog.functions.debounce = function (f, interval, opt_scope) { - var timeout = 0; - return function (var_args) { - goog.global.clearTimeout(timeout); - var args = arguments; - timeout = goog.global.setTimeout(function () { - f.apply(opt_scope, args); - }, interval); - }; -}; + var timeout = 0 + return function (var_args) { + goog.global.clearTimeout(timeout) + var args = arguments + timeout = goog.global.setTimeout(function () { + f.apply(opt_scope, args) + }, interval) + } +} goog.functions.throttle = function (f, interval, opt_scope) { - var timeout = 0, - shouldFire = !1, - storedArgs = [], - handleTimeout = function () { - timeout = 0; - shouldFire && ((shouldFire = !1), fire()); - }, - fire = function () { - timeout = goog.global.setTimeout(handleTimeout, interval); - var args = storedArgs; - storedArgs = []; - f.apply(opt_scope, args); - }; - return function (var_args) { - storedArgs = arguments; - timeout ? (shouldFire = !0) : fire(); - }; -}; + var timeout = 0, + shouldFire = !1, + storedArgs = [], + handleTimeout = function () { + timeout = 0 + shouldFire && ((shouldFire = !1), fire()) + }, + fire = function () { + timeout = goog.global.setTimeout(handleTimeout, interval) + var args = storedArgs + storedArgs = [] + f.apply(opt_scope, args) + } + return function (var_args) { + storedArgs = arguments + timeout ? (shouldFire = !0) : fire() + } +} goog.functions.rateLimit = function (f, interval, opt_scope) { - var timeout = 0, - handleTimeout = function () { - timeout = 0; - }; - return function (var_args) { - timeout || - ((timeout = goog.global.setTimeout(handleTimeout, interval)), - f.apply(opt_scope, arguments)); - }; -}; + var timeout = 0, + handleTimeout = function () { + timeout = 0 + } + return function (var_args) { + timeout || + ((timeout = goog.global.setTimeout(handleTimeout, interval)), + f.apply(opt_scope, arguments)) + } +} goog.functions.isFunction = function (val) { - return "function" === typeof val; -}; -goog.math = {}; + return 'function' === typeof val +} +goog.math = {} goog.math.randomInt = function (a) { - return Math.floor(Math.random() * a); -}; + return Math.floor(Math.random() * a) +} goog.math.uniformRandom = function (a, b) { - return a + Math.random() * (b - a); -}; + return a + Math.random() * (b - a) +} goog.math.clamp = function (value, min, max) { - return Math.min(Math.max(value, min), max); -}; + return Math.min(Math.max(value, min), max) +} goog.math.modulo = function (a, b) { - var r = a % b; - return 0 > r * b ? r + b : r; -}; + var r = a % b + return 0 > r * b ? r + b : r +} goog.math.lerp = function (a, b, x) { - return a + x * (b - a); -}; + return a + x * (b - a) +} goog.math.nearlyEquals = function (a, b, opt_tolerance) { - return Math.abs(a - b) <= (opt_tolerance || 1e-6); -}; + return Math.abs(a - b) <= (opt_tolerance || 1e-6) +} goog.math.standardAngle = function (angle) { - return goog.math.modulo(angle, 360); -}; + return goog.math.modulo(angle, 360) +} goog.math.standardAngleInRadians = function (angle) { - return goog.math.modulo(angle, 2 * Math.PI); -}; + return goog.math.modulo(angle, 2 * Math.PI) +} goog.math.toRadians = function (angleDegrees) { - return (angleDegrees * Math.PI) / 180; -}; + return (angleDegrees * Math.PI) / 180 +} goog.math.toDegrees = function (angleRadians) { - return (180 * angleRadians) / Math.PI; -}; + return (180 * angleRadians) / Math.PI +} goog.math.angleDx = function (degrees, radius) { - return radius * Math.cos(goog.math.toRadians(degrees)); -}; + return radius * Math.cos(goog.math.toRadians(degrees)) +} goog.math.angleDy = function (degrees, radius) { - return radius * Math.sin(goog.math.toRadians(degrees)); -}; + return radius * Math.sin(goog.math.toRadians(degrees)) +} goog.math.angle = function (x1, y1, x2, y2) { - return goog.math.standardAngle( - goog.math.toDegrees(Math.atan2(y2 - y1, x2 - x1)) - ); -}; + return goog.math.standardAngle( + goog.math.toDegrees(Math.atan2(y2 - y1, x2 - x1)) + ) +} goog.math.angleDifference = function (startAngle, endAngle) { - var d = - goog.math.standardAngle(endAngle) - goog.math.standardAngle(startAngle); - 180 < d ? (d -= 360) : -180 >= d && (d = 360 + d); - return d; -}; + var d = + goog.math.standardAngle(endAngle) - goog.math.standardAngle(startAngle) + 180 < d ? (d -= 360) : -180 >= d && (d = 360 + d) + return d +} goog.math.sign = function (x) { - return 0 < x ? 1 : 0 > x ? -1 : x; -}; + return 0 < x ? 1 : 0 > x ? -1 : x +} goog.math.longestCommonSubsequence = function ( - array1, - array2, - opt_compareFn, - opt_collectorFn -) { - for ( - var compare = - opt_compareFn || - function (a, b) { - return a == b; - }, - collect = - opt_collectorFn || - function (i1, i2) { - return array1[i1]; - }, - length1 = array1.length, - length2 = array2.length, - arr = [], - i = 0; - i < length1 + 1; - i++ - ) { - (arr[i] = []), (arr[i][0] = 0); - } - for (var j = 0; j < length2 + 1; j++) { - arr[0][j] = 0; - } - for (i = 1; i <= length1; i++) { - for (j = 1; j <= length2; j++) { - compare(array1[i - 1], array2[j - 1]) - ? (arr[i][j] = arr[i - 1][j - 1] + 1) - : (arr[i][j] = Math.max(arr[i - 1][j], arr[i][j - 1])); - } - } - var result = []; - i = length1; - for (j = length2; 0 < i && 0 < j; ) { - compare(array1[i - 1], array2[j - 1]) - ? (result.unshift(collect(i - 1, j - 1)), i--, j--) - : arr[i - 1][j] > arr[i][j - 1] - ? i-- - : j--; - } - return result; -}; + array1, + array2, + opt_compareFn, + opt_collectorFn +) { + for ( + var compare = + opt_compareFn || + function (a, b) { + return a == b + }, + collect = + opt_collectorFn || + function (i1, i2) { + return array1[i1] + }, + length1 = array1.length, + length2 = array2.length, + arr = [], + i = 0; + i < length1 + 1; + i++ + ) { + ;(arr[i] = []), (arr[i][0] = 0) + } + for (var j = 0; j < length2 + 1; j++) { + arr[0][j] = 0 + } + for (i = 1; i <= length1; i++) { + for (j = 1; j <= length2; j++) { + compare(array1[i - 1], array2[j - 1]) + ? (arr[i][j] = arr[i - 1][j - 1] + 1) + : (arr[i][j] = Math.max(arr[i - 1][j], arr[i][j - 1])) + } + } + var result = [] + i = length1 + for (j = length2; 0 < i && 0 < j; ) { + compare(array1[i - 1], array2[j - 1]) + ? (result.unshift(collect(i - 1, j - 1)), i--, j--) + : arr[i - 1][j] > arr[i][j - 1] + ? i-- + : j-- + } + return result +} goog.math.sum = function (var_args) { - return Array.prototype.reduce.call( - arguments, - function (sum, value) { - return sum + value; - }, - 0 - ); -}; + return Array.prototype.reduce.call( + arguments, + function (sum, value) { + return sum + value + }, + 0 + ) +} goog.math.average = function (var_args) { - return goog.math.sum.apply(null, arguments) / arguments.length; -}; + return goog.math.sum.apply(null, arguments) / arguments.length +} goog.math.sampleVariance = function (var_args) { - var sampleSize = arguments.length; - if (2 > sampleSize) { - return 0; - } - var mean = goog.math.average.apply(null, arguments); - return ( - goog.math.sum.apply( - null, - Array.prototype.map.call(arguments, function (val) { - return Math.pow(val - mean, 2); - }) - ) / - (sampleSize - 1) - ); -}; + var sampleSize = arguments.length + if (2 > sampleSize) { + return 0 + } + var mean = goog.math.average.apply(null, arguments) + return ( + goog.math.sum.apply( + null, + Array.prototype.map.call(arguments, function (val) { + return Math.pow(val - mean, 2) + }) + ) / + (sampleSize - 1) + ) +} goog.math.standardDeviation = function (var_args) { - return Math.sqrt(goog.math.sampleVariance.apply(null, arguments)); -}; + return Math.sqrt(goog.math.sampleVariance.apply(null, arguments)) +} goog.math.isInt = function (num) { - return isFinite(num) && 0 == num % 1; -}; + return isFinite(num) && 0 == num % 1 +} goog.math.isFiniteNumber = function (num) { - return isFinite(num); -}; + return isFinite(num) +} goog.math.isNegativeZero = function (num) { - return 0 == num && 0 > 1 / num; -}; + return 0 == num && 0 > 1 / num +} goog.math.log10Floor = function (num) { - if (0 < num) { - var x = Math.round(Math.log(num) * Math.LOG10E); - return x - (parseFloat("1e" + x) > num ? 1 : 0); - } - return 0 == num ? -Infinity : NaN; -}; + if (0 < num) { + var x = Math.round(Math.log(num) * Math.LOG10E) + return x - (parseFloat('1e' + x) > num ? 1 : 0) + } + return 0 == num ? -Infinity : NaN +} goog.math.safeFloor = function (num, opt_epsilon) { - goog.asserts.assert(void 0 === opt_epsilon || 0 < opt_epsilon); - return Math.floor(num + (opt_epsilon || 2e-15)); -}; + goog.asserts.assert(void 0 === opt_epsilon || 0 < opt_epsilon) + return Math.floor(num + (opt_epsilon || 2e-15)) +} goog.math.safeCeil = function (num, opt_epsilon) { - goog.asserts.assert(void 0 === opt_epsilon || 0 < opt_epsilon); - return Math.ceil(num - (opt_epsilon || 2e-15)); -}; -goog.iter = {}; -goog.iter.Iterable = {}; -goog.iter.Iterator = function () {}; + goog.asserts.assert(void 0 === opt_epsilon || 0 < opt_epsilon) + return Math.ceil(num - (opt_epsilon || 2e-15)) +} +goog.iter = {} +goog.iter.Iterable = {} +goog.iter.Iterator = function () {} goog.iter.Iterator.prototype.next = function () { - return goog.iter.ES6_ITERATOR_DONE; -}; -goog.iter.ES6_ITERATOR_DONE = goog.debug.freeze({ done: !0, value: void 0 }); + return goog.iter.ES6_ITERATOR_DONE +} +goog.iter.ES6_ITERATOR_DONE = goog.debug.freeze({ done: !0, value: void 0 }) goog.iter.createEs6IteratorYield = function (value) { - return { value: value, done: !1 }; -}; + return { value: value, done: !1 } +} goog.iter.Iterator.prototype.__iterator__ = function (opt_keys) { - return this; -}; + return this +} goog.iter.toIterator = function (iterable) { - if (iterable instanceof goog.iter.Iterator) { - return iterable; - } - if ("function" == typeof iterable.__iterator__) { - return iterable.__iterator__(!1); - } - if (goog.isArrayLike(iterable)) { - var i = 0, - newIter = new goog.iter.Iterator(); - newIter.next = function () { - for (;;) { - if (i >= iterable.length) { - return goog.iter.ES6_ITERATOR_DONE; - } - if (i in iterable) { - return goog.iter.createEs6IteratorYield(iterable[i++]); + if (iterable instanceof goog.iter.Iterator) { + return iterable + } + if ('function' == typeof iterable.__iterator__) { + return iterable.__iterator__(!1) + } + if (goog.isArrayLike(iterable)) { + var i = 0, + newIter = new goog.iter.Iterator() + newIter.next = function () { + for (;;) { + if (i >= iterable.length) { + return goog.iter.ES6_ITERATOR_DONE + } + if (i in iterable) { + return goog.iter.createEs6IteratorYield(iterable[i++]) + } + i++ + } } - i++; - } - }; - return newIter; - } - throw Error("Not implemented"); -}; + return newIter + } + throw Error('Not implemented') +} goog.iter.forEach = function (iterable, f, opt_obj) { - if (goog.isArrayLike(iterable)) { - module$contents$goog$array_forEach(iterable, f, opt_obj); - } else { - for (var iterator = goog.iter.toIterator(iterable); ; ) { - var $jscomp$destructuring$var12 = iterator.next(); - if ($jscomp$destructuring$var12.done) { - break; - } - f.call(opt_obj, $jscomp$destructuring$var12.value, void 0, iterator); + if (goog.isArrayLike(iterable)) { + module$contents$goog$array_forEach(iterable, f, opt_obj) + } else { + for (var iterator = goog.iter.toIterator(iterable); ; ) { + var $jscomp$destructuring$var12 = iterator.next() + if ($jscomp$destructuring$var12.done) { + break + } + f.call(opt_obj, $jscomp$destructuring$var12.value, void 0, iterator) + } } - } -}; +} goog.iter.filter = function (iterable, f, opt_obj) { - var iterator = goog.iter.toIterator(iterable), - newIter = new goog.iter.Iterator(); - newIter.next = function () { - for (;;) { - var $jscomp$destructuring$var13 = iterator.next(), - value = $jscomp$destructuring$var13.value; - if ($jscomp$destructuring$var13.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - if (f.call(opt_obj, value, void 0, iterator)) { - return goog.iter.createEs6IteratorYield(value); - } + var iterator = goog.iter.toIterator(iterable), + newIter = new goog.iter.Iterator() + newIter.next = function () { + for (;;) { + var $jscomp$destructuring$var13 = iterator.next(), + value = $jscomp$destructuring$var13.value + if ($jscomp$destructuring$var13.done) { + return goog.iter.ES6_ITERATOR_DONE + } + if (f.call(opt_obj, value, void 0, iterator)) { + return goog.iter.createEs6IteratorYield(value) + } + } } - }; - return newIter; -}; + return newIter +} goog.iter.filterFalse = function (iterable, f, opt_obj) { - return goog.iter.filter(iterable, goog.functions.not(f), opt_obj); -}; + return goog.iter.filter(iterable, goog.functions.not(f), opt_obj) +} goog.iter.range = function (startOrStop, opt_stop, opt_step) { - var start = 0, - stop = startOrStop, - step = opt_step || 1; - 1 < arguments.length && ((start = startOrStop), (stop = +opt_stop)); - if (0 == step) { - throw Error("Range step argument must not be zero"); - } - var newIter = new goog.iter.Iterator(); - newIter.next = function () { - if ((0 < step && start >= stop) || (0 > step && start <= stop)) { - return goog.iter.ES6_ITERATOR_DONE; - } - var rv = start; - start += step; - return goog.iter.createEs6IteratorYield(rv); - }; - return newIter; -}; + var start = 0, + stop = startOrStop, + step = opt_step || 1 + 1 < arguments.length && ((start = startOrStop), (stop = +opt_stop)) + if (0 == step) { + throw Error('Range step argument must not be zero') + } + var newIter = new goog.iter.Iterator() + newIter.next = function () { + if ((0 < step && start >= stop) || (0 > step && start <= stop)) { + return goog.iter.ES6_ITERATOR_DONE + } + var rv = start + start += step + return goog.iter.createEs6IteratorYield(rv) + } + return newIter +} goog.iter.join = function (iterable, deliminator) { - return goog.iter.toArray(iterable).join(deliminator); -}; + return goog.iter.toArray(iterable).join(deliminator) +} goog.iter.map = function (iterable, f, opt_obj) { - var iterator = goog.iter.toIterator(iterable), - newIter = new goog.iter.Iterator(); - newIter.next = function () { - var $jscomp$destructuring$var14 = iterator.next(); - if ($jscomp$destructuring$var14.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - var mappedVal = f.call( - opt_obj, - $jscomp$destructuring$var14.value, - void 0, - iterator - ); - return goog.iter.createEs6IteratorYield(mappedVal); - }; - return newIter; -}; + var iterator = goog.iter.toIterator(iterable), + newIter = new goog.iter.Iterator() + newIter.next = function () { + var $jscomp$destructuring$var14 = iterator.next() + if ($jscomp$destructuring$var14.done) { + return goog.iter.ES6_ITERATOR_DONE + } + var mappedVal = f.call( + opt_obj, + $jscomp$destructuring$var14.value, + void 0, + iterator + ) + return goog.iter.createEs6IteratorYield(mappedVal) + } + return newIter +} goog.iter.reduce = function (iterable, f, val, opt_obj) { - var rval = val; - goog.iter.forEach(iterable, function (val) { - rval = f.call(opt_obj, rval, val); - }); - return rval; -}; + var rval = val + goog.iter.forEach(iterable, function (val) { + rval = f.call(opt_obj, rval, val) + }) + return rval +} goog.iter.some = function (iterable, f, opt_obj) { - for (var iterator = goog.iter.toIterator(iterable); ; ) { - var $jscomp$destructuring$var15 = iterator.next(); - if ($jscomp$destructuring$var15.done) { - return !1; - } - if (f.call(opt_obj, $jscomp$destructuring$var15.value, void 0, iterator)) { - return !0; + for (var iterator = goog.iter.toIterator(iterable); ; ) { + var $jscomp$destructuring$var15 = iterator.next() + if ($jscomp$destructuring$var15.done) { + return !1 + } + if ( + f.call(opt_obj, $jscomp$destructuring$var15.value, void 0, iterator) + ) { + return !0 + } } - } -}; +} goog.iter.every = function (iterable, f, opt_obj) { - for (var iterator = goog.iter.toIterator(iterable); ; ) { - var $jscomp$destructuring$var16 = iterator.next(); - if ($jscomp$destructuring$var16.done) { - return !0; - } - if (!f.call(opt_obj, $jscomp$destructuring$var16.value, void 0, iterator)) { - return !1; + for (var iterator = goog.iter.toIterator(iterable); ; ) { + var $jscomp$destructuring$var16 = iterator.next() + if ($jscomp$destructuring$var16.done) { + return !0 + } + if ( + !f.call( + opt_obj, + $jscomp$destructuring$var16.value, + void 0, + iterator + ) + ) { + return !1 + } } - } -}; +} goog.iter.chain = function (var_args) { - return goog.iter.chainFromIterable(arguments); -}; + return goog.iter.chainFromIterable(arguments) +} goog.iter.chainFromIterable = function (iterable) { - var iteratorOfIterators = goog.iter.toIterator(iterable), - iter = new goog.iter.Iterator(), - current = null; - iter.next = function () { - for (;;) { - if (null == current) { - var it$jscomp$0 = iteratorOfIterators.next(); - if (it$jscomp$0.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - current = goog.iter.toIterator(it$jscomp$0.value); - } - var it = current.next(); - if (it.done) { - current = null; - } else { - return goog.iter.createEs6IteratorYield(it.value); - } + var iteratorOfIterators = goog.iter.toIterator(iterable), + iter = new goog.iter.Iterator(), + current = null + iter.next = function () { + for (;;) { + if (null == current) { + var it$jscomp$0 = iteratorOfIterators.next() + if (it$jscomp$0.done) { + return goog.iter.ES6_ITERATOR_DONE + } + current = goog.iter.toIterator(it$jscomp$0.value) + } + var it = current.next() + if (it.done) { + current = null + } else { + return goog.iter.createEs6IteratorYield(it.value) + } + } } - }; - return iter; -}; + return iter +} goog.iter.dropWhile = function (iterable, f, opt_obj) { - var iterator = goog.iter.toIterator(iterable), - newIter = new goog.iter.Iterator(), - dropping = !0; - newIter.next = function () { - for (;;) { - var $jscomp$destructuring$var17 = iterator.next(), - value = $jscomp$destructuring$var17.value; - if ($jscomp$destructuring$var17.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - if (!dropping || !f.call(opt_obj, value, void 0, iterator)) { - return (dropping = !1), goog.iter.createEs6IteratorYield(value); - } + var iterator = goog.iter.toIterator(iterable), + newIter = new goog.iter.Iterator(), + dropping = !0 + newIter.next = function () { + for (;;) { + var $jscomp$destructuring$var17 = iterator.next(), + value = $jscomp$destructuring$var17.value + if ($jscomp$destructuring$var17.done) { + return goog.iter.ES6_ITERATOR_DONE + } + if (!dropping || !f.call(opt_obj, value, void 0, iterator)) { + return (dropping = !1), goog.iter.createEs6IteratorYield(value) + } + } } - }; - return newIter; -}; + return newIter +} goog.iter.takeWhile = function (iterable, f, opt_obj) { - var iterator = goog.iter.toIterator(iterable), - iter = new goog.iter.Iterator(); - iter.next = function () { - var $jscomp$destructuring$var18 = iterator.next(), - value = $jscomp$destructuring$var18.value; - return $jscomp$destructuring$var18.done - ? goog.iter.ES6_ITERATOR_DONE - : f.call(opt_obj, value, void 0, iterator) - ? goog.iter.createEs6IteratorYield(value) - : goog.iter.ES6_ITERATOR_DONE; - }; - return iter; -}; + var iterator = goog.iter.toIterator(iterable), + iter = new goog.iter.Iterator() + iter.next = function () { + var $jscomp$destructuring$var18 = iterator.next(), + value = $jscomp$destructuring$var18.value + return $jscomp$destructuring$var18.done + ? goog.iter.ES6_ITERATOR_DONE + : f.call(opt_obj, value, void 0, iterator) + ? goog.iter.createEs6IteratorYield(value) + : goog.iter.ES6_ITERATOR_DONE + } + return iter +} goog.iter.toArray = function (iterable) { - if (goog.isArrayLike(iterable)) { - return module$contents$goog$array_toArray(iterable); - } - iterable = goog.iter.toIterator(iterable); - var array = []; - goog.iter.forEach(iterable, function (val) { - array.push(val); - }); - return array; -}; + if (goog.isArrayLike(iterable)) { + return module$contents$goog$array_toArray(iterable) + } + iterable = goog.iter.toIterator(iterable) + var array = [] + goog.iter.forEach(iterable, function (val) { + array.push(val) + }) + return array +} goog.iter.equals = function (iterable1, iterable2, opt_equalsFn) { - var pairs = goog.iter.zipLongest({}, iterable1, iterable2), - equalsFn = - opt_equalsFn || module$contents$goog$array_defaultCompareEquality; - return goog.iter.every(pairs, function (pair) { - return equalsFn(pair[0], pair[1]); - }); -}; + var pairs = goog.iter.zipLongest({}, iterable1, iterable2), + equalsFn = + opt_equalsFn || module$contents$goog$array_defaultCompareEquality + return goog.iter.every(pairs, function (pair) { + return equalsFn(pair[0], pair[1]) + }) +} goog.iter.nextOrValue = function (iterable, defaultValue) { - var $jscomp$destructuring$var19 = goog.iter.toIterator(iterable).next(); - return $jscomp$destructuring$var19.done - ? defaultValue - : $jscomp$destructuring$var19.value; -}; + var $jscomp$destructuring$var19 = goog.iter.toIterator(iterable).next() + return $jscomp$destructuring$var19.done + ? defaultValue + : $jscomp$destructuring$var19.value +} goog.iter.product = function (var_args) { - if ( - Array.prototype.some.call(arguments, function (arr) { - return !arr.length; - }) || - !arguments.length - ) { - return new goog.iter.Iterator(); - } - var iter = new goog.iter.Iterator(), - arrays = arguments, - indices = module$contents$goog$array_repeat(0, arrays.length); - iter.next = function () { - if (indices) { - for ( - var retVal = module$contents$goog$array_map( - indices, - function (valueIndex, arrayIndex) { - return arrays[arrayIndex][valueIndex]; + if ( + Array.prototype.some.call(arguments, function (arr) { + return !arr.length + }) || + !arguments.length + ) { + return new goog.iter.Iterator() + } + var iter = new goog.iter.Iterator(), + arrays = arguments, + indices = module$contents$goog$array_repeat(0, arrays.length) + iter.next = function () { + if (indices) { + for ( + var retVal = module$contents$goog$array_map( + indices, + function (valueIndex, arrayIndex) { + return arrays[arrayIndex][valueIndex] + } + ), + i = indices.length - 1; + 0 <= i; + i-- + ) { + goog.asserts.assert(indices) + if (indices[i] < arrays[i].length - 1) { + indices[i]++ + break + } + if (0 == i) { + indices = null + break + } + indices[i] = 0 } - ), - i = indices.length - 1; - 0 <= i; - i-- - ) { - goog.asserts.assert(indices); - if (indices[i] < arrays[i].length - 1) { - indices[i]++; - break; + return goog.iter.createEs6IteratorYield(retVal) } - if (0 == i) { - indices = null; - break; - } - indices[i] = 0; - } - return goog.iter.createEs6IteratorYield(retVal); + return goog.iter.ES6_ITERATOR_DONE } - return goog.iter.ES6_ITERATOR_DONE; - }; - return iter; -}; + return iter +} goog.iter.cycle = function (iterable) { - var baseIterator = goog.iter.toIterator(iterable), - cache = [], - cacheIndex = 0, - iter = new goog.iter.Iterator(), - useCache = !1; - iter.next = function () { - var returnElement = null; - if (!useCache) { - var it = baseIterator.next(); - if (it.done) { - if (module$contents$goog$array_isEmpty(cache)) { - return goog.iter.ES6_ITERATOR_DONE; - } - useCache = !0; - } else { - return cache.push(it.value), it; - } + var baseIterator = goog.iter.toIterator(iterable), + cache = [], + cacheIndex = 0, + iter = new goog.iter.Iterator(), + useCache = !1 + iter.next = function () { + var returnElement = null + if (!useCache) { + var it = baseIterator.next() + if (it.done) { + if (module$contents$goog$array_isEmpty(cache)) { + return goog.iter.ES6_ITERATOR_DONE + } + useCache = !0 + } else { + return cache.push(it.value), it + } + } + returnElement = cache[cacheIndex] + cacheIndex = (cacheIndex + 1) % cache.length + return goog.iter.createEs6IteratorYield(returnElement) } - returnElement = cache[cacheIndex]; - cacheIndex = (cacheIndex + 1) % cache.length; - return goog.iter.createEs6IteratorYield(returnElement); - }; - return iter; -}; + return iter +} goog.iter.count = function (opt_start, opt_step) { - var counter = opt_start || 0, - step = void 0 !== opt_step ? opt_step : 1, - iter = new goog.iter.Iterator(); - iter.next = function () { - var returnValue = counter; - counter += step; - return goog.iter.createEs6IteratorYield(returnValue); - }; - return iter; -}; + var counter = opt_start || 0, + step = void 0 !== opt_step ? opt_step : 1, + iter = new goog.iter.Iterator() + iter.next = function () { + var returnValue = counter + counter += step + return goog.iter.createEs6IteratorYield(returnValue) + } + return iter +} goog.iter.repeat = function (value) { - var iter = new goog.iter.Iterator(); - iter.next = function () { - return goog.iter.createEs6IteratorYield(value); - }; - return iter; -}; + var iter = new goog.iter.Iterator() + iter.next = function () { + return goog.iter.createEs6IteratorYield(value) + } + return iter +} goog.iter.accumulate = function (iterable) { - var iterator = goog.iter.toIterator(iterable), - total = 0, - iter = new goog.iter.Iterator(); - iter.next = function () { - var $jscomp$destructuring$var20 = iterator.next(); - if ($jscomp$destructuring$var20.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - total += $jscomp$destructuring$var20.value; - return goog.iter.createEs6IteratorYield(total); - }; - return iter; -}; -goog.iter.zip = function (var_args) { - var args = arguments, - iter = new goog.iter.Iterator(); - if (0 < args.length) { - var iterators = module$contents$goog$array_map(args, goog.iter.toIterator), - allDone = !1; + var iterator = goog.iter.toIterator(iterable), + total = 0, + iter = new goog.iter.Iterator() iter.next = function () { - if (allDone) { - return goog.iter.ES6_ITERATOR_DONE; - } - for ( - var arr = [], i = 0, iterator = void 0; - (iterator = iterators[i++]); - - ) { - var it = iterator.next(); - if (it.done) { - return (allDone = !0), goog.iter.ES6_ITERATOR_DONE; + var $jscomp$destructuring$var20 = iterator.next() + if ($jscomp$destructuring$var20.done) { + return goog.iter.ES6_ITERATOR_DONE } - arr.push(it.value); - } - return goog.iter.createEs6IteratorYield(arr); - }; - } - return iter; -}; -goog.iter.zipLongest = function (fillValue, var_args) { - var args = Array.prototype.slice.call(arguments, 1), - iter = new goog.iter.Iterator(); - if (0 < args.length) { - var iterators = module$contents$goog$array_map(args, goog.iter.toIterator), - allDone = !1; - iter.next = function () { - if (allDone) { - return goog.iter.ES6_ITERATOR_DONE; - } - for ( - var iteratorsHaveValues = !1, arr = [], i = 0, iterator = void 0; - (iterator = iterators[i++]); + total += $jscomp$destructuring$var20.value + return goog.iter.createEs6IteratorYield(total) + } + return iter +} +goog.iter.zip = function (var_args) { + var args = arguments, + iter = new goog.iter.Iterator() + if (0 < args.length) { + var iterators = module$contents$goog$array_map( + args, + goog.iter.toIterator + ), + allDone = !1 + iter.next = function () { + if (allDone) { + return goog.iter.ES6_ITERATOR_DONE + } + for ( + var arr = [], i = 0, iterator = void 0; + (iterator = iterators[i++]); - ) { - var it = iterator.next(); - it.done - ? arr.push(fillValue) - : (arr.push(it.value), (iteratorsHaveValues = !0)); - } - return iteratorsHaveValues - ? goog.iter.createEs6IteratorYield(arr) - : ((allDone = !0), goog.iter.ES6_ITERATOR_DONE); - }; - } - return iter; -}; + ) { + var it = iterator.next() + if (it.done) { + return (allDone = !0), goog.iter.ES6_ITERATOR_DONE + } + arr.push(it.value) + } + return goog.iter.createEs6IteratorYield(arr) + } + } + return iter +} +goog.iter.zipLongest = function (fillValue, var_args) { + var args = Array.prototype.slice.call(arguments, 1), + iter = new goog.iter.Iterator() + if (0 < args.length) { + var iterators = module$contents$goog$array_map( + args, + goog.iter.toIterator + ), + allDone = !1 + iter.next = function () { + if (allDone) { + return goog.iter.ES6_ITERATOR_DONE + } + for ( + var iteratorsHaveValues = !1, + arr = [], + i = 0, + iterator = void 0; + (iterator = iterators[i++]); + + ) { + var it = iterator.next() + it.done + ? arr.push(fillValue) + : (arr.push(it.value), (iteratorsHaveValues = !0)) + } + return iteratorsHaveValues + ? goog.iter.createEs6IteratorYield(arr) + : ((allDone = !0), goog.iter.ES6_ITERATOR_DONE) + } + } + return iter +} goog.iter.compress = function (iterable, selectors) { - var valueIterator = goog.iter.toIterator(iterable), - selectorIterator = goog.iter.toIterator(selectors), - iter = new goog.iter.Iterator(), - allDone = !1; - iter.next = function () { - if (allDone) { - return goog.iter.ES6_ITERATOR_DONE; - } - for (;;) { - var valIt = valueIterator.next(); - if (valIt.done) { - return (allDone = !0), goog.iter.ES6_ITERATOR_DONE; - } - var selectorIt = selectorIterator.next(); - if (selectorIt.done) { - return (allDone = !0), goog.iter.ES6_ITERATOR_DONE; - } - var val = valIt.value; - if (selectorIt.value) { - return goog.iter.createEs6IteratorYield(val); - } + var valueIterator = goog.iter.toIterator(iterable), + selectorIterator = goog.iter.toIterator(selectors), + iter = new goog.iter.Iterator(), + allDone = !1 + iter.next = function () { + if (allDone) { + return goog.iter.ES6_ITERATOR_DONE + } + for (;;) { + var valIt = valueIterator.next() + if (valIt.done) { + return (allDone = !0), goog.iter.ES6_ITERATOR_DONE + } + var selectorIt = selectorIterator.next() + if (selectorIt.done) { + return (allDone = !0), goog.iter.ES6_ITERATOR_DONE + } + var val = valIt.value + if (selectorIt.value) { + return goog.iter.createEs6IteratorYield(val) + } + } } - }; - return iter; -}; + return iter +} goog.iter.GroupByIterator_ = function (iterable, opt_keyFunc) { - this.iterator = goog.iter.toIterator(iterable); - this.keyFunc = opt_keyFunc || goog.functions.identity; -}; -goog.inherits(goog.iter.GroupByIterator_, goog.iter.Iterator); + this.iterator = goog.iter.toIterator(iterable) + this.keyFunc = opt_keyFunc || goog.functions.identity +} +goog.inherits(goog.iter.GroupByIterator_, goog.iter.Iterator) goog.iter.GroupByIterator_.prototype.next = function () { - for (; this.currentKey == this.targetKey; ) { - var it = this.iterator.next(); - if (it.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - this.currentValue = it.value; - this.currentKey = this.keyFunc(this.currentValue); - } - this.targetKey = this.currentKey; - return goog.iter.createEs6IteratorYield([ - this.currentKey, - this.groupItems_(this.targetKey), - ]); -}; + for (; this.currentKey == this.targetKey; ) { + var it = this.iterator.next() + if (it.done) { + return goog.iter.ES6_ITERATOR_DONE + } + this.currentValue = it.value + this.currentKey = this.keyFunc(this.currentValue) + } + this.targetKey = this.currentKey + return goog.iter.createEs6IteratorYield([ + this.currentKey, + this.groupItems_(this.targetKey), + ]) +} goog.iter.GroupByIterator_.prototype.groupItems_ = function (targetKey) { - for (var arr = []; this.currentKey == targetKey; ) { - arr.push(this.currentValue); - var it = this.iterator.next(); - if (it.done) { - break; - } - this.currentValue = it.value; - this.currentKey = this.keyFunc(this.currentValue); - } - return arr; -}; + for (var arr = []; this.currentKey == targetKey; ) { + arr.push(this.currentValue) + var it = this.iterator.next() + if (it.done) { + break + } + this.currentValue = it.value + this.currentKey = this.keyFunc(this.currentValue) + } + return arr +} goog.iter.groupBy = function (iterable, opt_keyFunc) { - return new goog.iter.GroupByIterator_(iterable, opt_keyFunc); -}; + return new goog.iter.GroupByIterator_(iterable, opt_keyFunc) +} goog.iter.starMap = function (iterable, f, opt_obj) { - var iterator = goog.iter.toIterator(iterable), - iter = new goog.iter.Iterator(); - iter.next = function () { - var it = iterator.next(); - if (it.done) { - return goog.iter.ES6_ITERATOR_DONE; - } - var args = goog.iter.toArray(it.value), - value = f.apply(opt_obj, [].concat(args, void 0, iterator)); - return goog.iter.createEs6IteratorYield(value); - }; - return iter; -}; -goog.iter.tee = function (iterable, opt_num) { - function addNextIteratorValueToBuffers() { - var $jscomp$destructuring$var21 = iterator.next(), - value = $jscomp$destructuring$var21.value; - if ($jscomp$destructuring$var21.done) { - return !1; - } - for (var i = 0, buffer = void 0; (buffer = buffers[i++]); ) { - buffer.push(value); - } - return !0; - } - var iterator = goog.iter.toIterator(iterable), - buffers = module$contents$goog$array_map( - module$contents$goog$array_range( - "number" === typeof opt_num ? opt_num : 2 - ), - function () { - return []; - } - ); - return module$contents$goog$array_map(buffers, function (buffer) { - var iter = new goog.iter.Iterator(); + var iterator = goog.iter.toIterator(iterable), + iter = new goog.iter.Iterator() iter.next = function () { - if ( - module$contents$goog$array_isEmpty(buffer) && - !addNextIteratorValueToBuffers() - ) { - return goog.iter.ES6_ITERATOR_DONE; - } - goog.asserts.assert(!module$contents$goog$array_isEmpty(buffer)); - return goog.iter.createEs6IteratorYield(buffer.shift()); - }; - return iter; - }); -}; + var it = iterator.next() + if (it.done) { + return goog.iter.ES6_ITERATOR_DONE + } + var args = goog.iter.toArray(it.value), + value = f.apply(opt_obj, [].concat(args, void 0, iterator)) + return goog.iter.createEs6IteratorYield(value) + } + return iter +} +goog.iter.tee = function (iterable, opt_num) { + function addNextIteratorValueToBuffers() { + var $jscomp$destructuring$var21 = iterator.next(), + value = $jscomp$destructuring$var21.value + if ($jscomp$destructuring$var21.done) { + return !1 + } + for (var i = 0, buffer = void 0; (buffer = buffers[i++]); ) { + buffer.push(value) + } + return !0 + } + var iterator = goog.iter.toIterator(iterable), + buffers = module$contents$goog$array_map( + module$contents$goog$array_range( + 'number' === typeof opt_num ? opt_num : 2 + ), + function () { + return [] + } + ) + return module$contents$goog$array_map(buffers, function (buffer) { + var iter = new goog.iter.Iterator() + iter.next = function () { + if ( + module$contents$goog$array_isEmpty(buffer) && + !addNextIteratorValueToBuffers() + ) { + return goog.iter.ES6_ITERATOR_DONE + } + goog.asserts.assert(!module$contents$goog$array_isEmpty(buffer)) + return goog.iter.createEs6IteratorYield(buffer.shift()) + } + return iter + }) +} goog.iter.enumerate = function (iterable, opt_start) { - return goog.iter.zip(goog.iter.count(opt_start), iterable); -}; + return goog.iter.zip(goog.iter.count(opt_start), iterable) +} goog.iter.limit = function (iterable, limitSize) { - goog.asserts.assert(goog.math.isInt(limitSize) && 0 <= limitSize); - var iterator = goog.iter.toIterator(iterable), - iter = new goog.iter.Iterator(), - remaining = limitSize; - iter.next = function () { - return 0 < remaining-- ? iterator.next() : goog.iter.ES6_ITERATOR_DONE; - }; - return iter; -}; + goog.asserts.assert(goog.math.isInt(limitSize) && 0 <= limitSize) + var iterator = goog.iter.toIterator(iterable), + iter = new goog.iter.Iterator(), + remaining = limitSize + iter.next = function () { + return 0 < remaining-- ? iterator.next() : goog.iter.ES6_ITERATOR_DONE + } + return iter +} goog.iter.consume = function (iterable, count) { - goog.asserts.assert(goog.math.isInt(count) && 0 <= count); - for (var iterator = goog.iter.toIterator(iterable); 0 < count--; ) { - goog.iter.nextOrValue(iterator, null); - } - return iterator; -}; + goog.asserts.assert(goog.math.isInt(count) && 0 <= count) + for (var iterator = goog.iter.toIterator(iterable); 0 < count--; ) { + goog.iter.nextOrValue(iterator, null) + } + return iterator +} goog.iter.slice = function (iterable, start, opt_end) { - goog.asserts.assert(goog.math.isInt(start) && 0 <= start); - var iterator = goog.iter.consume(iterable, start); - "number" === typeof opt_end && - (goog.asserts.assert(goog.math.isInt(opt_end) && opt_end >= start), - (iterator = goog.iter.limit(iterator, opt_end - start))); - return iterator; -}; + goog.asserts.assert(goog.math.isInt(start) && 0 <= start) + var iterator = goog.iter.consume(iterable, start) + 'number' === typeof opt_end && + (goog.asserts.assert(goog.math.isInt(opt_end) && opt_end >= start), + (iterator = goog.iter.limit(iterator, opt_end - start))) + return iterator +} goog.iter.hasDuplicates_ = function (arr) { - var deduped = []; - module$contents$goog$array_removeDuplicates(arr, deduped); - return arr.length != deduped.length; -}; + var deduped = [] + module$contents$goog$array_removeDuplicates(arr, deduped) + return arr.length != deduped.length +} goog.iter.permutations = function (iterable, opt_length) { - var elements = goog.iter.toArray(iterable), - product = goog.iter.product.apply( - void 0, - module$contents$goog$array_repeat( - elements, - "number" === typeof opt_length ? opt_length : elements.length - ) - ); - return goog.iter.filter(product, function (arr) { - return !goog.iter.hasDuplicates_(arr); - }); -}; + var elements = goog.iter.toArray(iterable), + product = goog.iter.product.apply( + void 0, + module$contents$goog$array_repeat( + elements, + 'number' === typeof opt_length ? opt_length : elements.length + ) + ) + return goog.iter.filter(product, function (arr) { + return !goog.iter.hasDuplicates_(arr) + }) +} goog.iter.combinations = function (iterable, length) { - function getIndexFromElements(index) { - return elements[index]; - } - var elements = goog.iter.toArray(iterable), - indexes = goog.iter.range(elements.length), - indexIterator = goog.iter.permutations(indexes, length), - sortedIndexIterator = goog.iter.filter(indexIterator, function (arr) { - return module$contents$goog$array_isSorted(arr); - }), - iter = new goog.iter.Iterator(); - iter.next = function () { - var $jscomp$destructuring$var22 = sortedIndexIterator.next(); - return $jscomp$destructuring$var22.done - ? goog.iter.ES6_ITERATOR_DONE - : goog.iter.createEs6IteratorYield( - module$contents$goog$array_map( - $jscomp$destructuring$var22.value, - getIndexFromElements - ) - ); - }; - return iter; -}; + function getIndexFromElements(index) { + return elements[index] + } + var elements = goog.iter.toArray(iterable), + indexes = goog.iter.range(elements.length), + indexIterator = goog.iter.permutations(indexes, length), + sortedIndexIterator = goog.iter.filter(indexIterator, function (arr) { + return module$contents$goog$array_isSorted(arr) + }), + iter = new goog.iter.Iterator() + iter.next = function () { + var $jscomp$destructuring$var22 = sortedIndexIterator.next() + return $jscomp$destructuring$var22.done + ? goog.iter.ES6_ITERATOR_DONE + : goog.iter.createEs6IteratorYield( + module$contents$goog$array_map( + $jscomp$destructuring$var22.value, + getIndexFromElements + ) + ) + } + return iter +} goog.iter.combinationsWithReplacement = function (iterable, length) { - function getIndexFromElements(index) { - return elements[index]; - } - var elements = goog.iter.toArray(iterable), - indexes = module$contents$goog$array_range(elements.length), - indexIterator = goog.iter.product.apply( - void 0, - module$contents$goog$array_repeat(indexes, length) - ), - sortedIndexIterator = goog.iter.filter(indexIterator, function (arr) { - return module$contents$goog$array_isSorted(arr); - }), - iter = new goog.iter.Iterator(); - iter.next = function () { - var $jscomp$destructuring$var23 = sortedIndexIterator.next(); - return $jscomp$destructuring$var23.done - ? goog.iter.ES6_ITERATOR_DONE - : goog.iter.createEs6IteratorYield( - module$contents$goog$array_map( - $jscomp$destructuring$var23.value, - getIndexFromElements - ) - ); - }; - return iter; -}; -goog.iter.es6 = {}; -var module$contents$goog$iter$es6_ShimIterable = function () {}; + function getIndexFromElements(index) { + return elements[index] + } + var elements = goog.iter.toArray(iterable), + indexes = module$contents$goog$array_range(elements.length), + indexIterator = goog.iter.product.apply( + void 0, + module$contents$goog$array_repeat(indexes, length) + ), + sortedIndexIterator = goog.iter.filter(indexIterator, function (arr) { + return module$contents$goog$array_isSorted(arr) + }), + iter = new goog.iter.Iterator() + iter.next = function () { + var $jscomp$destructuring$var23 = sortedIndexIterator.next() + return $jscomp$destructuring$var23.done + ? goog.iter.ES6_ITERATOR_DONE + : goog.iter.createEs6IteratorYield( + module$contents$goog$array_map( + $jscomp$destructuring$var23.value, + getIndexFromElements + ) + ) + } + return iter +} +goog.iter.es6 = {} +var module$contents$goog$iter$es6_ShimIterable = function () {} module$contents$goog$iter$es6_ShimIterable.prototype.__iterator__ = - function () {}; -module$contents$goog$iter$es6_ShimIterable.prototype.toGoog = function () {}; -module$contents$goog$iter$es6_ShimIterable.prototype.toEs6 = function () {}; + function () {} +module$contents$goog$iter$es6_ShimIterable.prototype.toGoog = function () {} +module$contents$goog$iter$es6_ShimIterable.prototype.toEs6 = function () {} module$contents$goog$iter$es6_ShimIterable.of = function (iter) { - if ( - iter instanceof module$contents$goog$iter$es6_ShimIterableImpl || - iter instanceof module$contents$goog$iter$es6_ShimGoogIterator || - iter instanceof module$contents$goog$iter$es6_ShimEs6Iterator - ) { - return iter; - } - if ("function" == typeof iter.next) { - return new module$contents$goog$iter$es6_ShimIterableImpl(function () { - return iter; - }); - } - if ("function" == typeof iter[Symbol.iterator]) { - return new module$contents$goog$iter$es6_ShimIterableImpl(function () { - return iter[Symbol.iterator](); - }); - } - if ("function" == typeof iter.__iterator__) { - return new module$contents$goog$iter$es6_ShimIterableImpl(function () { - return iter.__iterator__(); - }); - } - throw Error("Not an iterator or iterable."); -}; + if ( + iter instanceof module$contents$goog$iter$es6_ShimIterableImpl || + iter instanceof module$contents$goog$iter$es6_ShimGoogIterator || + iter instanceof module$contents$goog$iter$es6_ShimEs6Iterator + ) { + return iter + } + if ('function' == typeof iter.next) { + return new module$contents$goog$iter$es6_ShimIterableImpl(function () { + return iter + }) + } + if ('function' == typeof iter[Symbol.iterator]) { + return new module$contents$goog$iter$es6_ShimIterableImpl(function () { + return iter[Symbol.iterator]() + }) + } + if ('function' == typeof iter.__iterator__) { + return new module$contents$goog$iter$es6_ShimIterableImpl(function () { + return iter.__iterator__() + }) + } + throw Error('Not an iterator or iterable.') +} var module$contents$goog$iter$es6_ShimIterableImpl = function (func) { - this.func_ = func; -}; + this.func_ = func +} module$contents$goog$iter$es6_ShimIterableImpl.prototype.__iterator__ = - function () { - return new module$contents$goog$iter$es6_ShimGoogIterator(this.func_()); - }; + function () { + return new module$contents$goog$iter$es6_ShimGoogIterator(this.func_()) + } module$contents$goog$iter$es6_ShimIterableImpl.prototype.toGoog = function () { - return new module$contents$goog$iter$es6_ShimGoogIterator(this.func_()); -}; + return new module$contents$goog$iter$es6_ShimGoogIterator(this.func_()) +} module$contents$goog$iter$es6_ShimIterableImpl.prototype[Symbol.iterator] = - function () { - return new module$contents$goog$iter$es6_ShimEs6Iterator(this.func_()); - }; + function () { + return new module$contents$goog$iter$es6_ShimEs6Iterator(this.func_()) + } module$contents$goog$iter$es6_ShimIterableImpl.prototype.toEs6 = function () { - return new module$contents$goog$iter$es6_ShimEs6Iterator(this.func_()); -}; + return new module$contents$goog$iter$es6_ShimEs6Iterator(this.func_()) +} var module$contents$goog$iter$es6_ShimGoogIterator = function (iter) { - goog.iter.Iterator.call(this); - this.iter_ = iter; -}; + goog.iter.Iterator.call(this) + this.iter_ = iter +} $jscomp.inherits( - module$contents$goog$iter$es6_ShimGoogIterator, - goog.iter.Iterator -); + module$contents$goog$iter$es6_ShimGoogIterator, + goog.iter.Iterator +) module$contents$goog$iter$es6_ShimGoogIterator.prototype.next = function () { - return this.iter_.next(); -}; + return this.iter_.next() +} module$contents$goog$iter$es6_ShimGoogIterator.prototype.toGoog = function () { - return this; -}; + return this +} module$contents$goog$iter$es6_ShimGoogIterator.prototype[Symbol.iterator] = - function () { - return new module$contents$goog$iter$es6_ShimEs6Iterator(this.iter_); - }; + function () { + return new module$contents$goog$iter$es6_ShimEs6Iterator(this.iter_) + } module$contents$goog$iter$es6_ShimGoogIterator.prototype.toEs6 = function () { - return new module$contents$goog$iter$es6_ShimEs6Iterator(this.iter_); -}; + return new module$contents$goog$iter$es6_ShimEs6Iterator(this.iter_) +} var module$contents$goog$iter$es6_ShimEs6Iterator = function (iter) { - module$contents$goog$iter$es6_ShimIterableImpl.call(this, function () { - return iter; - }); - this.iter_ = iter; -}; + module$contents$goog$iter$es6_ShimIterableImpl.call(this, function () { + return iter + }) + this.iter_ = iter +} $jscomp.inherits( - module$contents$goog$iter$es6_ShimEs6Iterator, - module$contents$goog$iter$es6_ShimIterableImpl -); + module$contents$goog$iter$es6_ShimEs6Iterator, + module$contents$goog$iter$es6_ShimIterableImpl +) module$contents$goog$iter$es6_ShimEs6Iterator.prototype.next = function () { - return this.iter_.next(); -}; -goog.iter.es6.ShimIterable = module$contents$goog$iter$es6_ShimIterable; -goog.iter.es6.ShimEs6Iterator = module$contents$goog$iter$es6_ShimEs6Iterator; -goog.iter.es6.ShimGoogIterator = module$contents$goog$iter$es6_ShimGoogIterator; + return this.iter_.next() +} +goog.iter.es6.ShimIterable = module$contents$goog$iter$es6_ShimIterable +goog.iter.es6.ShimEs6Iterator = module$contents$goog$iter$es6_ShimEs6Iterator +goog.iter.es6.ShimGoogIterator = module$contents$goog$iter$es6_ShimGoogIterator goog.structs.Map = function (opt_map, var_args) { - this.map_ = {}; - this.keys_ = []; - this.version_ = this.size = 0; - var argLength = arguments.length; - if (1 < argLength) { - if (argLength % 2) { - throw Error("Uneven number of arguments"); - } - for (var i = 0; i < argLength; i += 2) { - this.set(arguments[i], arguments[i + 1]); + this.map_ = {} + this.keys_ = [] + this.version_ = this.size = 0 + var argLength = arguments.length + if (1 < argLength) { + if (argLength % 2) { + throw Error('Uneven number of arguments') + } + for (var i = 0; i < argLength; i += 2) { + this.set(arguments[i], arguments[i + 1]) + } + } else { + opt_map && this.addAll(opt_map) } - } else { - opt_map && this.addAll(opt_map); - } -}; +} goog.structs.Map.prototype.getCount = function () { - return this.size; -}; + return this.size +} goog.structs.Map.prototype.getValues = function () { - this.cleanupKeysArray_(); - for (var rv = [], i = 0; i < this.keys_.length; i++) { - rv.push(this.map_[this.keys_[i]]); - } - return rv; -}; + this.cleanupKeysArray_() + for (var rv = [], i = 0; i < this.keys_.length; i++) { + rv.push(this.map_[this.keys_[i]]) + } + return rv +} goog.structs.Map.prototype.getKeys = function () { - this.cleanupKeysArray_(); - return this.keys_.concat(); -}; + this.cleanupKeysArray_() + return this.keys_.concat() +} goog.structs.Map.prototype.containsKey = function (key) { - return this.has(key); -}; + return this.has(key) +} goog.structs.Map.prototype.has = function (key) { - return goog.structs.Map.hasKey_(this.map_, key); -}; + return goog.structs.Map.hasKey_(this.map_, key) +} goog.structs.Map.prototype.containsValue = function (val) { - for (var i = 0; i < this.keys_.length; i++) { - var key = this.keys_[i]; - if (goog.structs.Map.hasKey_(this.map_, key) && this.map_[key] == val) { - return !0; - } - } - return !1; -}; + for (var i = 0; i < this.keys_.length; i++) { + var key = this.keys_[i] + if (goog.structs.Map.hasKey_(this.map_, key) && this.map_[key] == val) { + return !0 + } + } + return !1 +} goog.structs.Map.prototype.equals = function (otherMap, opt_equalityFn) { - if (this === otherMap) { - return !0; - } - if (this.size != otherMap.getCount()) { - return !1; - } - var equalityFn = opt_equalityFn || goog.structs.Map.defaultEquals; - this.cleanupKeysArray_(); - for (var key, i = 0; (key = this.keys_[i]); i++) { - if (!equalityFn(this.get(key), otherMap.get(key))) { - return !1; - } - } - return !0; -}; + if (this === otherMap) { + return !0 + } + if (this.size != otherMap.getCount()) { + return !1 + } + var equalityFn = opt_equalityFn || goog.structs.Map.defaultEquals + this.cleanupKeysArray_() + for (var key, i = 0; (key = this.keys_[i]); i++) { + if (!equalityFn(this.get(key), otherMap.get(key))) { + return !1 + } + } + return !0 +} goog.structs.Map.defaultEquals = function (a, b) { - return a === b; -}; + return a === b +} goog.structs.Map.prototype.isEmpty = function () { - return 0 == this.size; -}; + return 0 == this.size +} goog.structs.Map.prototype.clear = function () { - this.map_ = {}; - this.keys_.length = 0; - this.setSizeInternal_(0); - this.version_ = 0; -}; + this.map_ = {} + this.keys_.length = 0 + this.setSizeInternal_(0) + this.version_ = 0 +} goog.structs.Map.prototype.remove = function (key) { - return this.delete(key); -}; + return this.delete(key) +} goog.structs.Map.prototype.delete = function (key) { - return goog.structs.Map.hasKey_(this.map_, key) - ? (delete this.map_[key], - this.setSizeInternal_(this.size - 1), - this.version_++, - this.keys_.length > 2 * this.size && this.cleanupKeysArray_(), - !0) - : !1; -}; + return goog.structs.Map.hasKey_(this.map_, key) + ? (delete this.map_[key], + this.setSizeInternal_(this.size - 1), + this.version_++, + this.keys_.length > 2 * this.size && this.cleanupKeysArray_(), + !0) + : !1 +} goog.structs.Map.prototype.cleanupKeysArray_ = function () { - if (this.size != this.keys_.length) { - for (var srcIndex = 0, destIndex = 0; srcIndex < this.keys_.length; ) { - var key = this.keys_[srcIndex]; - goog.structs.Map.hasKey_(this.map_, key) && - (this.keys_[destIndex++] = key); - srcIndex++; - } - this.keys_.length = destIndex; - } - if (this.size != this.keys_.length) { - var seen = {}; - for (destIndex = srcIndex = 0; srcIndex < this.keys_.length; ) { - (key = this.keys_[srcIndex]), - goog.structs.Map.hasKey_(seen, key) || - ((this.keys_[destIndex++] = key), (seen[key] = 1)), - srcIndex++; - } - this.keys_.length = destIndex; - } -}; + if (this.size != this.keys_.length) { + for (var srcIndex = 0, destIndex = 0; srcIndex < this.keys_.length; ) { + var key = this.keys_[srcIndex] + goog.structs.Map.hasKey_(this.map_, key) && + (this.keys_[destIndex++] = key) + srcIndex++ + } + this.keys_.length = destIndex + } + if (this.size != this.keys_.length) { + var seen = {} + for (destIndex = srcIndex = 0; srcIndex < this.keys_.length; ) { + ;(key = this.keys_[srcIndex]), + goog.structs.Map.hasKey_(seen, key) || + ((this.keys_[destIndex++] = key), (seen[key] = 1)), + srcIndex++ + } + this.keys_.length = destIndex + } +} goog.structs.Map.prototype.get = function (key, opt_val) { - return goog.structs.Map.hasKey_(this.map_, key) ? this.map_[key] : opt_val; -}; + return goog.structs.Map.hasKey_(this.map_, key) ? this.map_[key] : opt_val +} goog.structs.Map.prototype.set = function (key, value) { - goog.structs.Map.hasKey_(this.map_, key) || - (this.setSizeInternal_(this.size + 1), - this.keys_.push(key), - this.version_++); - this.map_[key] = value; -}; + goog.structs.Map.hasKey_(this.map_, key) || + (this.setSizeInternal_(this.size + 1), + this.keys_.push(key), + this.version_++) + this.map_[key] = value +} goog.structs.Map.prototype.addAll = function (map) { - if (map instanceof goog.structs.Map) { - for (var keys = map.getKeys(), i = 0; i < keys.length; i++) { - this.set(keys[i], map.get(keys[i])); - } - } else { - for (var key in map) { - this.set(key, map[key]); + if (map instanceof goog.structs.Map) { + for (var keys = map.getKeys(), i = 0; i < keys.length; i++) { + this.set(keys[i], map.get(keys[i])) + } + } else { + for (var key in map) { + this.set(key, map[key]) + } } - } -}; +} goog.structs.Map.prototype.forEach = function (f, opt_obj) { - for (var keys = this.getKeys(), i = 0; i < keys.length; i++) { - var key = keys[i], - value = this.get(key); - f.call(opt_obj, value, key, this); - } -}; + for (var keys = this.getKeys(), i = 0; i < keys.length; i++) { + var key = keys[i], + value = this.get(key) + f.call(opt_obj, value, key, this) + } +} goog.structs.Map.prototype.clone = function () { - return new goog.structs.Map(this); -}; + return new goog.structs.Map(this) +} goog.structs.Map.prototype.transpose = function () { - for ( - var transposed = new goog.structs.Map(), i = 0; - i < this.keys_.length; - i++ - ) { - var key = this.keys_[i]; - transposed.set(this.map_[key], key); - } - return transposed; -}; + for ( + var transposed = new goog.structs.Map(), i = 0; + i < this.keys_.length; + i++ + ) { + var key = this.keys_[i] + transposed.set(this.map_[key], key) + } + return transposed +} goog.structs.Map.prototype.toObject = function () { - this.cleanupKeysArray_(); - for (var obj = {}, i = 0; i < this.keys_.length; i++) { - var key = this.keys_[i]; - obj[key] = this.map_[key]; - } - return obj; -}; + this.cleanupKeysArray_() + for (var obj = {}, i = 0; i < this.keys_.length; i++) { + var key = this.keys_[i] + obj[key] = this.map_[key] + } + return obj +} goog.structs.Map.prototype.getKeyIterator = function () { - return this.__iterator__(!0); -}; + return this.__iterator__(!0) +} goog.structs.Map.prototype.keys = function () { - return module$contents$goog$iter$es6_ShimIterable - .of(this.getKeyIterator()) - .toEs6(); -}; + return module$contents$goog$iter$es6_ShimIterable + .of(this.getKeyIterator()) + .toEs6() +} goog.structs.Map.prototype.getValueIterator = function () { - return this.__iterator__(!1); -}; + return this.__iterator__(!1) +} goog.structs.Map.prototype.values = function () { - return module$contents$goog$iter$es6_ShimIterable - .of(this.getValueIterator()) - .toEs6(); -}; + return module$contents$goog$iter$es6_ShimIterable + .of(this.getValueIterator()) + .toEs6() +} goog.structs.Map.prototype.entries = function () { - var self = this; - return goog.collections.iters.map(this.keys(), function (key) { - return [key, self.get(key)]; - }); -}; + var self = this + return goog.collections.iters.map(this.keys(), function (key) { + return [key, self.get(key)] + }) +} goog.structs.Map.prototype.__iterator__ = function (opt_keys) { - this.cleanupKeysArray_(); - var i = 0, - version = this.version_, - selfObj = this, - newIter = new goog.iter.Iterator(); - newIter.next = function () { - if (version != selfObj.version_) { - throw Error("The map has changed since the iterator was created"); - } - if (i >= selfObj.keys_.length) { - return goog.iter.ES6_ITERATOR_DONE; - } - var key = selfObj.keys_[i++]; - return goog.iter.createEs6IteratorYield(opt_keys ? key : selfObj.map_[key]); - }; - return newIter; -}; + this.cleanupKeysArray_() + var i = 0, + version = this.version_, + selfObj = this, + newIter = new goog.iter.Iterator() + newIter.next = function () { + if (version != selfObj.version_) { + throw Error('The map has changed since the iterator was created') + } + if (i >= selfObj.keys_.length) { + return goog.iter.ES6_ITERATOR_DONE + } + var key = selfObj.keys_[i++] + return goog.iter.createEs6IteratorYield( + opt_keys ? key : selfObj.map_[key] + ) + } + return newIter +} goog.structs.Map.prototype.setSizeInternal_ = function (newSize) { - this.size = newSize; -}; + this.size = newSize +} goog.structs.Map.hasKey_ = function (obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -}; + return Object.prototype.hasOwnProperty.call(obj, key) +} goog.structs.getCount = function (col) { - return col.getCount && "function" == typeof col.getCount - ? col.getCount() - : goog.isArrayLike(col) || "string" === typeof col - ? col.length - : module$contents$goog$object_getCount(col); -}; + return col.getCount && 'function' == typeof col.getCount + ? col.getCount() + : goog.isArrayLike(col) || 'string' === typeof col + ? col.length + : module$contents$goog$object_getCount(col) +} goog.structs.getValues = function (col) { - if (col.getValues && "function" == typeof col.getValues) { - return col.getValues(); - } - if ( - ("undefined" !== typeof Map && col instanceof Map) || - ("undefined" !== typeof Set && col instanceof Set) - ) { - return Array.from(col.values()); - } - if ("string" === typeof col) { - return col.split(""); - } - if (goog.isArrayLike(col)) { - for (var rv = [], l = col.length, i = 0; i < l; i++) { - rv.push(col[i]); - } - return rv; - } - return module$contents$goog$object_getValues(col); -}; -goog.structs.getKeys = function (col) { - if (col.getKeys && "function" == typeof col.getKeys) { - return col.getKeys(); - } - if (!col.getValues || "function" != typeof col.getValues) { - if ("undefined" !== typeof Map && col instanceof Map) { - return Array.from(col.keys()); - } - if (!("undefined" !== typeof Set && col instanceof Set)) { - if (goog.isArrayLike(col) || "string" === typeof col) { + if (col.getValues && 'function' == typeof col.getValues) { + return col.getValues() + } + if ( + ('undefined' !== typeof Map && col instanceof Map) || + ('undefined' !== typeof Set && col instanceof Set) + ) { + return Array.from(col.values()) + } + if ('string' === typeof col) { + return col.split('') + } + if (goog.isArrayLike(col)) { for (var rv = [], l = col.length, i = 0; i < l; i++) { - rv.push(i); + rv.push(col[i]) + } + return rv + } + return module$contents$goog$object_getValues(col) +} +goog.structs.getKeys = function (col) { + if (col.getKeys && 'function' == typeof col.getKeys) { + return col.getKeys() + } + if (!col.getValues || 'function' != typeof col.getValues) { + if ('undefined' !== typeof Map && col instanceof Map) { + return Array.from(col.keys()) + } + if (!('undefined' !== typeof Set && col instanceof Set)) { + if (goog.isArrayLike(col) || 'string' === typeof col) { + for (var rv = [], l = col.length, i = 0; i < l; i++) { + rv.push(i) + } + return rv + } + return module$contents$goog$object_getKeys(col) } - return rv; - } - return module$contents$goog$object_getKeys(col); } - } -}; +} goog.structs.contains = function (col, val) { - return col.contains && "function" == typeof col.contains - ? col.contains(val) - : col.containsValue && "function" == typeof col.containsValue - ? col.containsValue(val) - : goog.isArrayLike(col) || "string" === typeof col - ? module$contents$goog$array_contains(col, val) - : module$contents$goog$object_containsValue(col, val); -}; + return col.contains && 'function' == typeof col.contains + ? col.contains(val) + : col.containsValue && 'function' == typeof col.containsValue + ? col.containsValue(val) + : goog.isArrayLike(col) || 'string' === typeof col + ? module$contents$goog$array_contains(col, val) + : module$contents$goog$object_containsValue(col, val) +} goog.structs.isEmpty = function (col) { - return col.isEmpty && "function" == typeof col.isEmpty - ? col.isEmpty() - : goog.isArrayLike(col) || "string" === typeof col - ? 0 === col.length - : module$contents$goog$object_isEmpty(col); -}; + return col.isEmpty && 'function' == typeof col.isEmpty + ? col.isEmpty() + : goog.isArrayLike(col) || 'string' === typeof col + ? 0 === col.length + : module$contents$goog$object_isEmpty(col) +} goog.structs.clear = function (col) { - col.clear && "function" == typeof col.clear - ? col.clear() - : goog.isArrayLike(col) - ? module$contents$goog$array_clear(col) - : module$contents$goog$object_clear(col); -}; + col.clear && 'function' == typeof col.clear + ? col.clear() + : goog.isArrayLike(col) + ? module$contents$goog$array_clear(col) + : module$contents$goog$object_clear(col) +} goog.structs.forEach = function (col, f, opt_obj) { - if (col.forEach && "function" == typeof col.forEach) { - col.forEach(f, opt_obj); - } else if (goog.isArrayLike(col) || "string" === typeof col) { - Array.prototype.forEach.call(col, f, opt_obj); - } else { - for ( - var keys = goog.structs.getKeys(col), - values = goog.structs.getValues(col), - l = values.length, - i = 0; - i < l; - i++ - ) { - f.call(opt_obj, values[i], keys && keys[i], col); + if (col.forEach && 'function' == typeof col.forEach) { + col.forEach(f, opt_obj) + } else if (goog.isArrayLike(col) || 'string' === typeof col) { + Array.prototype.forEach.call(col, f, opt_obj) + } else { + for ( + var keys = goog.structs.getKeys(col), + values = goog.structs.getValues(col), + l = values.length, + i = 0; + i < l; + i++ + ) { + f.call(opt_obj, values[i], keys && keys[i], col) + } } - } -}; +} goog.structs.filter = function (col, f, opt_obj) { - if ("function" == typeof col.filter) { - return col.filter(f, opt_obj); - } - if (goog.isArrayLike(col) || "string" === typeof col) { - return Array.prototype.filter.call(col, f, opt_obj); - } - var keys = goog.structs.getKeys(col), - values = goog.structs.getValues(col), - l = values.length; - if (keys) { - var rv = {}; - for (var i = 0; i < l; i++) { - f.call(opt_obj, values[i], keys[i], col) && (rv[keys[i]] = values[i]); - } - } else { - for (rv = [], i = 0; i < l; i++) { - f.call(opt_obj, values[i], void 0, col) && rv.push(values[i]); - } - } - return rv; -}; + if ('function' == typeof col.filter) { + return col.filter(f, opt_obj) + } + if (goog.isArrayLike(col) || 'string' === typeof col) { + return Array.prototype.filter.call(col, f, opt_obj) + } + var keys = goog.structs.getKeys(col), + values = goog.structs.getValues(col), + l = values.length + if (keys) { + var rv = {} + for (var i = 0; i < l; i++) { + f.call(opt_obj, values[i], keys[i], col) && + (rv[keys[i]] = values[i]) + } + } else { + for (rv = [], i = 0; i < l; i++) { + f.call(opt_obj, values[i], void 0, col) && rv.push(values[i]) + } + } + return rv +} goog.structs.map = function (col, f, opt_obj) { - if ("function" == typeof col.map) { - return col.map(f, opt_obj); - } - if (goog.isArrayLike(col) || "string" === typeof col) { - return Array.prototype.map.call(col, f, opt_obj); - } - var keys = goog.structs.getKeys(col), - values = goog.structs.getValues(col), - l = values.length; - if (keys) { - var rv = {}; - for (var i = 0; i < l; i++) { - rv[keys[i]] = f.call(opt_obj, values[i], keys[i], col); - } - } else { - for (rv = [], i = 0; i < l; i++) { - rv[i] = f.call(opt_obj, values[i], void 0, col); - } - } - return rv; -}; -goog.structs.some = function (col, f, opt_obj) { - if ("function" == typeof col.some) { - return col.some(f, opt_obj); - } - if (goog.isArrayLike(col) || "string" === typeof col) { - return Array.prototype.some.call(col, f, opt_obj); - } - for ( + if ('function' == typeof col.map) { + return col.map(f, opt_obj) + } + if (goog.isArrayLike(col) || 'string' === typeof col) { + return Array.prototype.map.call(col, f, opt_obj) + } var keys = goog.structs.getKeys(col), - values = goog.structs.getValues(col), - l = values.length, - i = 0; - i < l; - i++ - ) { - if (f.call(opt_obj, values[i], keys && keys[i], col)) { - return !0; - } - } - return !1; -}; + values = goog.structs.getValues(col), + l = values.length + if (keys) { + var rv = {} + for (var i = 0; i < l; i++) { + rv[keys[i]] = f.call(opt_obj, values[i], keys[i], col) + } + } else { + for (rv = [], i = 0; i < l; i++) { + rv[i] = f.call(opt_obj, values[i], void 0, col) + } + } + return rv +} +goog.structs.some = function (col, f, opt_obj) { + if ('function' == typeof col.some) { + return col.some(f, opt_obj) + } + if (goog.isArrayLike(col) || 'string' === typeof col) { + return Array.prototype.some.call(col, f, opt_obj) + } + for ( + var keys = goog.structs.getKeys(col), + values = goog.structs.getValues(col), + l = values.length, + i = 0; + i < l; + i++ + ) { + if (f.call(opt_obj, values[i], keys && keys[i], col)) { + return !0 + } + } + return !1 +} goog.structs.every = function (col, f, opt_obj) { - if ("function" == typeof col.every) { - return col.every(f, opt_obj); - } - if (goog.isArrayLike(col) || "string" === typeof col) { - return Array.prototype.every.call(col, f, opt_obj); - } - for ( - var keys = goog.structs.getKeys(col), - values = goog.structs.getValues(col), - l = values.length, - i = 0; - i < l; - i++ - ) { - if (!f.call(opt_obj, values[i], keys && keys[i], col)) { - return !1; - } - } - return !0; -}; + if ('function' == typeof col.every) { + return col.every(f, opt_obj) + } + if (goog.isArrayLike(col) || 'string' === typeof col) { + return Array.prototype.every.call(col, f, opt_obj) + } + for ( + var keys = goog.structs.getKeys(col), + values = goog.structs.getValues(col), + l = values.length, + i = 0; + i < l; + i++ + ) { + if (!f.call(opt_obj, values[i], keys && keys[i], col)) { + return !1 + } + } + return !0 +} goog.structs.Set = function (opt_values) { - this.map_ = new goog.structs.Map(); - this.size = 0; - opt_values && this.addAll(opt_values); -}; -goog.structs.Set.getUid_ = goog.getUid; + this.map_ = new goog.structs.Map() + this.size = 0 + opt_values && this.addAll(opt_values) +} +goog.structs.Set.getUid_ = goog.getUid goog.structs.Set.getKey_ = function (val) { - var type = typeof val; - return ("object" == type && val) || "function" == type - ? "o" + goog.getUid(val) - : type.slice(0, 1) + val; -}; + var type = typeof val + return ('object' == type && val) || 'function' == type + ? 'o' + goog.getUid(val) + : type.slice(0, 1) + val +} goog.structs.Set.prototype.getCount = function () { - return this.map_.size; -}; + return this.map_.size +} goog.structs.Set.prototype.add = function (element) { - this.map_.set(goog.structs.Set.getKey_(element), element); - this.setSizeInternal_(this.map_.size); -}; + this.map_.set(goog.structs.Set.getKey_(element), element) + this.setSizeInternal_(this.map_.size) +} goog.structs.Set.prototype.addAll = function (col) { - for ( - var values = goog.structs.getValues(col), l = values.length, i = 0; - i < l; - i++ - ) { - this.add(values[i]); - } - this.setSizeInternal_(this.map_.size); -}; -goog.structs.Set.prototype.removeAll = function (col) { - for ( - var values = goog.structs.getValues(col), l = values.length, i = 0; - i < l; - i++ - ) { - this.remove(values[i]); - } - this.setSizeInternal_(this.map_.size); -}; -goog.structs.Set.prototype.delete = function (element) { - var rv = this.map_.remove(goog.structs.Set.getKey_(element)); - this.setSizeInternal_(this.map_.size); - return rv; -}; -goog.structs.Set.prototype.remove = function (element) { - return this.delete(element); -}; -goog.structs.Set.prototype.clear = function () { - this.map_.clear(); - this.setSizeInternal_(0); -}; + for ( + var values = goog.structs.getValues(col), l = values.length, i = 0; + i < l; + i++ + ) { + this.add(values[i]) + } + this.setSizeInternal_(this.map_.size) +} +goog.structs.Set.prototype.removeAll = function (col) { + for ( + var values = goog.structs.getValues(col), l = values.length, i = 0; + i < l; + i++ + ) { + this.remove(values[i]) + } + this.setSizeInternal_(this.map_.size) +} +goog.structs.Set.prototype.delete = function (element) { + var rv = this.map_.remove(goog.structs.Set.getKey_(element)) + this.setSizeInternal_(this.map_.size) + return rv +} +goog.structs.Set.prototype.remove = function (element) { + return this.delete(element) +} +goog.structs.Set.prototype.clear = function () { + this.map_.clear() + this.setSizeInternal_(0) +} goog.structs.Set.prototype.isEmpty = function () { - return 0 === this.map_.size; -}; + return 0 === this.map_.size +} goog.structs.Set.prototype.has = function (element) { - return this.map_.containsKey(goog.structs.Set.getKey_(element)); -}; + return this.map_.containsKey(goog.structs.Set.getKey_(element)) +} goog.structs.Set.prototype.contains = function (element) { - return this.map_.containsKey(goog.structs.Set.getKey_(element)); -}; + return this.map_.containsKey(goog.structs.Set.getKey_(element)) +} goog.structs.Set.prototype.containsAll = function (col) { - return goog.structs.every(col, this.contains, this); -}; + return goog.structs.every(col, this.contains, this) +} goog.structs.Set.prototype.intersection = function (col) { - for ( - var result = new goog.structs.Set(), - values = goog.structs.getValues(col), - i = 0; - i < values.length; - i++ - ) { - var value = values[i]; - this.contains(value) && result.add(value); - } - return result; -}; + for ( + var result = new goog.structs.Set(), + values = goog.structs.getValues(col), + i = 0; + i < values.length; + i++ + ) { + var value = values[i] + this.contains(value) && result.add(value) + } + return result +} goog.structs.Set.prototype.difference = function (col) { - var result = this.clone(); - result.removeAll(col); - return result; -}; + var result = this.clone() + result.removeAll(col) + return result +} goog.structs.Set.prototype.getValues = function () { - return this.map_.getValues(); -}; + return this.map_.getValues() +} goog.structs.Set.prototype.values = function () { - return this.map_.values(); -}; + return this.map_.values() +} goog.structs.Set.prototype.clone = function () { - return new goog.structs.Set(this); -}; + return new goog.structs.Set(this) +} goog.structs.Set.prototype.equals = function (col) { - return this.getCount() == goog.structs.getCount(col) && this.isSubsetOf(col); -}; + return this.getCount() == goog.structs.getCount(col) && this.isSubsetOf(col) +} goog.structs.Set.prototype.isSubsetOf = function (col) { - var colCount = goog.structs.getCount(col); - if (this.getCount() > colCount) { - return !1; - } - !(col instanceof goog.structs.Set) && - 5 < colCount && - (col = new goog.structs.Set(col)); - return goog.structs.every(this, function (value) { - return goog.structs.contains(col, value); - }); -}; + var colCount = goog.structs.getCount(col) + if (this.getCount() > colCount) { + return !1 + } + !(col instanceof goog.structs.Set) && + 5 < colCount && + (col = new goog.structs.Set(col)) + return goog.structs.every(this, function (value) { + return goog.structs.contains(col, value) + }) +} goog.structs.Set.prototype.__iterator__ = function (opt_keys) { - return this.map_.__iterator__(!1); -}; + return this.map_.__iterator__(!1) +} goog.structs.Set.prototype[Symbol.iterator] = function () { - return this.values(); -}; + return this.values() +} goog.structs.Set.prototype.setSizeInternal_ = function (newSize) { - this.size = newSize; -}; + this.size = newSize +} var ee = { - AbstractOverlay: function (url, mapId, token, opt_init, opt_profiler) { - goog.events.EventTarget.call(this); - this.mapId = mapId; - this.token = token; - this.tilesLoading = []; - this.tilesFailed = new goog.structs.Set(); - this.tileCounter = 0; - this.url = url; - }, -}; -goog.inherits(ee.AbstractOverlay, goog.events.EventTarget); -goog.exportSymbol("ee.AbstractOverlay", ee.AbstractOverlay); -ee.AbstractOverlay.EventType = { TILE_LOADED: "tileevent" }; + AbstractOverlay: function (url, mapId, token, opt_init, opt_profiler) { + goog.events.EventTarget.call(this) + this.mapId = mapId + this.token = token + this.tilesLoading = [] + this.tilesFailed = new goog.structs.Set() + this.tileCounter = 0 + this.url = url + }, +} +goog.inherits(ee.AbstractOverlay, goog.events.EventTarget) +goog.exportSymbol('ee.AbstractOverlay', ee.AbstractOverlay) +ee.AbstractOverlay.EventType = { TILE_LOADED: 'tileevent' } ee.AbstractOverlay.prototype.getTileId = function (coord, zoom) { - var maxCoord = 1 << zoom, - x = coord.x % maxCoord; - 0 > x && (x += maxCoord); - return [this.mapId, zoom, x, coord.y].join("/"); -}; + var maxCoord = 1 << zoom, + x = coord.x % maxCoord + 0 > x && (x += maxCoord) + return [this.mapId, zoom, x, coord.y].join('/') +} ee.AbstractOverlay.prototype.getLoadingTilesCount = function () { - return this.tilesLoading.length; -}; + return this.tilesLoading.length +} ee.AbstractOverlay.prototype.getFailedTilesCount = function () { - return this.tilesFailed.getCount(); -}; + return this.tilesFailed.getCount() +} ee.TileEvent = function (count) { - goog.events.Event.call(this, ee.AbstractOverlay.EventType.TILE_LOADED); - this.count = count; -}; -goog.inherits(ee.TileEvent, goog.events.Event); + goog.events.Event.call(this, ee.AbstractOverlay.EventType.TILE_LOADED) + this.count = count +} +goog.inherits(ee.TileEvent, goog.events.Event) var module$exports$eeapiclient$domain_object = {}, - module$contents$eeapiclient$domain_object_module = - module$contents$eeapiclient$domain_object_module || { - id: "javascript/typescript/contrib/apiclient/core/domain_object.closure.js", - }; -module$exports$eeapiclient$domain_object.ObjectMapMetadata = function () {}; -var module$contents$eeapiclient$domain_object_Primitive; -module$exports$eeapiclient$domain_object.ClassMetadata = function () {}; -var module$contents$eeapiclient$domain_object_NullClass = function () {}; + module$contents$eeapiclient$domain_object_module = + module$contents$eeapiclient$domain_object_module || { + id: 'javascript/typescript/contrib/apiclient/core/domain_object.closure.js', + } +module$exports$eeapiclient$domain_object.ObjectMapMetadata = function () {} +var module$contents$eeapiclient$domain_object_Primitive +module$exports$eeapiclient$domain_object.ClassMetadata = function () {} +var module$contents$eeapiclient$domain_object_NullClass = function () {} module$exports$eeapiclient$domain_object.NULL_VALUE = - new module$contents$eeapiclient$domain_object_NullClass(); -module$exports$eeapiclient$domain_object.ISerializable = function () {}; + new module$contents$eeapiclient$domain_object_NullClass() +module$exports$eeapiclient$domain_object.ISerializable = function () {} function module$contents$eeapiclient$domain_object_buildClassMetadataFromPartial( - partialClassMetadata -) { - return Object.assign( - {}, - { - arrays: {}, - descriptions: {}, - keys: [], - objectMaps: {}, - objects: {}, - enums: {}, - emptyArrayIsUnset: !1, - }, partialClassMetadata - ); +) { + return Object.assign( + {}, + { + arrays: {}, + descriptions: {}, + keys: [], + objectMaps: {}, + objects: {}, + enums: {}, + emptyArrayIsUnset: !1, + }, + partialClassMetadata + ) } module$exports$eeapiclient$domain_object.buildClassMetadataFromPartial = - module$contents$eeapiclient$domain_object_buildClassMetadataFromPartial; + module$contents$eeapiclient$domain_object_buildClassMetadataFromPartial module$exports$eeapiclient$domain_object.Serializable = function () { - this.Serializable$values = {}; -}; + this.Serializable$values = {} +} module$exports$eeapiclient$domain_object.Serializable.prototype.getClassMetadata = - function () { - return module$contents$eeapiclient$domain_object_buildClassMetadataFromPartial( - this.getPartialClassMetadata() - ); - }; + function () { + return module$contents$eeapiclient$domain_object_buildClassMetadataFromPartial( + this.getPartialClassMetadata() + ) + } module$exports$eeapiclient$domain_object.Serializable.prototype.Serializable$get = - function (key) { - return this.Serializable$values.hasOwnProperty(key) - ? this.Serializable$values[key] - : null; - }; + function (key) { + return this.Serializable$values.hasOwnProperty(key) + ? this.Serializable$values[key] + : null + } module$exports$eeapiclient$domain_object.Serializable.prototype.Serializable$set = - function (key, value) { - this.Serializable$values[key] = value; - }; + function (key, value) { + this.Serializable$values[key] = value + } module$exports$eeapiclient$domain_object.Serializable.prototype.Serializable$has = - function (key) { - return null != this.Serializable$values[key]; - }; -module$exports$eeapiclient$domain_object.SerializableCtor = function () {}; + function (key) { + return null != this.Serializable$values[key] + } +module$exports$eeapiclient$domain_object.SerializableCtor = function () {} module$exports$eeapiclient$domain_object.clone = function (serializable) { - return module$contents$eeapiclient$domain_object_deserialize( - serializable.getConstructor(), - module$contents$eeapiclient$domain_object_serialize(serializable) - ); -}; + return module$contents$eeapiclient$domain_object_deserialize( + serializable.getConstructor(), + module$contents$eeapiclient$domain_object_serialize(serializable) + ) +} module$exports$eeapiclient$domain_object.isEmpty = function (serializable) { - return !Object.keys( - module$contents$eeapiclient$domain_object_serialize(serializable) - ).length; -}; + return !Object.keys( + module$contents$eeapiclient$domain_object_serialize(serializable) + ).length +} function module$contents$eeapiclient$domain_object_serialize(serializable) { - return module$contents$eeapiclient$domain_object_deepCopy( - serializable, - module$contents$eeapiclient$domain_object_serializeGetter, - module$contents$eeapiclient$domain_object_serializeSetter, - module$contents$eeapiclient$domain_object_serializeInstanciator - ); + return module$contents$eeapiclient$domain_object_deepCopy( + serializable, + module$contents$eeapiclient$domain_object_serializeGetter, + module$contents$eeapiclient$domain_object_serializeSetter, + module$contents$eeapiclient$domain_object_serializeInstanciator + ) } module$exports$eeapiclient$domain_object.serialize = - module$contents$eeapiclient$domain_object_serialize; + module$contents$eeapiclient$domain_object_serialize function module$contents$eeapiclient$domain_object_serializeGetter(key, obj) { - return obj.Serializable$get(key); + return obj.Serializable$get(key) } function module$contents$eeapiclient$domain_object_serializeSetter( - key, - obj, - value + key, + obj, + value ) { - obj[key] = value; + obj[key] = value } function module$contents$eeapiclient$domain_object_serializeInstanciator(ctor) { - return {}; + return {} } function module$contents$eeapiclient$domain_object_deserialize(type, raw) { - var result = new type(); - return null == raw - ? result - : module$contents$eeapiclient$domain_object_deepCopy( - raw, - module$contents$eeapiclient$domain_object_deserializeGetter, - module$contents$eeapiclient$domain_object_deserializeSetter, - module$contents$eeapiclient$domain_object_deserializeInstanciator, - type - ); + var result = new type() + return null == raw + ? result + : module$contents$eeapiclient$domain_object_deepCopy( + raw, + module$contents$eeapiclient$domain_object_deserializeGetter, + module$contents$eeapiclient$domain_object_deserializeSetter, + module$contents$eeapiclient$domain_object_deserializeInstanciator, + type + ) } module$exports$eeapiclient$domain_object.deserialize = - module$contents$eeapiclient$domain_object_deserialize; + module$contents$eeapiclient$domain_object_deserialize function module$contents$eeapiclient$domain_object_deserializeGetter(key, obj) { - return obj[key]; + return obj[key] } function module$contents$eeapiclient$domain_object_deserializeSetter( - key, - obj, - value + key, + obj, + value ) { - obj.Serializable$set(key, value); + obj.Serializable$set(key, value) } function module$contents$eeapiclient$domain_object_deserializeInstanciator( - ctor + ctor ) { - if (null == ctor) { - throw Error("Cannot deserialize, target constructor was null."); - } - return new ctor(); + if (null == ctor) { + throw Error('Cannot deserialize, target constructor was null.') + } + return new ctor() } module$exports$eeapiclient$domain_object.strictDeserialize = function ( - type, - raw + type, + raw ) { - return module$contents$eeapiclient$domain_object_deserialize(type, raw); -}; + return module$contents$eeapiclient$domain_object_deserialize(type, raw) +} var module$contents$eeapiclient$domain_object_CopyValueGetter, - module$contents$eeapiclient$domain_object_CopyValueSetter, - module$contents$eeapiclient$domain_object_CopyConstructor, - module$contents$eeapiclient$domain_object_CopyInstanciator; + module$contents$eeapiclient$domain_object_CopyValueSetter, + module$contents$eeapiclient$domain_object_CopyConstructor, + module$contents$eeapiclient$domain_object_CopyInstanciator function module$contents$eeapiclient$domain_object_deepCopy( - source, - valueGetter, - valueSetter, - copyInstanciator, - targetConstructor -) { - for ( - var target = copyInstanciator(targetConstructor), - metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata( - source, - target - ), - arrays = metadata.arrays || {}, - objects = metadata.objects || {}, - objectMaps = metadata.objectMaps || {}, - $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), - $jscomp$key$key = $jscomp$iter$19.next(), - $jscomp$loop$m192531680$0 = {}; - !$jscomp$key$key.done; - $jscomp$loop$m192531680$0 = { - mapMetadata: $jscomp$loop$m192531680$0.mapMetadata, - }, - $jscomp$key$key = $jscomp$iter$19.next() - ) { - var key = $jscomp$key$key.value, - value = valueGetter(key, source); - if (null != value) { - var copy = void 0; - if (arrays.hasOwnProperty(key)) { - if (metadata.emptyArrayIsUnset && 0 === value.length) { - continue; - } - copy = module$contents$eeapiclient$domain_object_deepCopyValue( - value, - valueGetter, - valueSetter, - copyInstanciator, - !0, - !0, - arrays[key] - ); - } else if (objects.hasOwnProperty(key)) { - copy = module$contents$eeapiclient$domain_object_deepCopyValue( - value, - valueGetter, - valueSetter, - copyInstanciator, - !1, - !0, - objects[key] - ); - } else if (objectMaps.hasOwnProperty(key)) { - ($jscomp$loop$m192531680$0.mapMetadata = objectMaps[key]), - (copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray - ? value.map( - (function ($jscomp$loop$m192531680$0) { - return function (v) { - return module$contents$eeapiclient$domain_object_deepCopyObjectMap( - v, - $jscomp$loop$m192531680$0.mapMetadata, - valueGetter, - valueSetter, - copyInstanciator - ); - }; - })($jscomp$loop$m192531680$0) - ) - : module$contents$eeapiclient$domain_object_deepCopyObjectMap( - value, - $jscomp$loop$m192531680$0.mapMetadata, - valueGetter, - valueSetter, - copyInstanciator - )); - } else if (Array.isArray(value)) { - if (metadata.emptyArrayIsUnset && 0 === value.length) { - continue; - } - copy = module$contents$eeapiclient$domain_object_deepCopyValue( - value, - valueGetter, - valueSetter, - copyInstanciator, - !0, - !1 - ); - } else { - copy = - value instanceof module$contents$eeapiclient$domain_object_NullClass - ? null - : value; - } - valueSetter(key, target, copy); + source, + valueGetter, + valueSetter, + copyInstanciator, + targetConstructor +) { + for ( + var target = copyInstanciator(targetConstructor), + metadata = + module$contents$eeapiclient$domain_object_deepCopyMetadata( + source, + target + ), + arrays = metadata.arrays || {}, + objects = metadata.objects || {}, + objectMaps = metadata.objectMaps || {}, + $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), + $jscomp$key$key = $jscomp$iter$19.next(), + $jscomp$loop$m192531680$0 = {}; + !$jscomp$key$key.done; + $jscomp$loop$m192531680$0 = { + mapMetadata: $jscomp$loop$m192531680$0.mapMetadata, + }, + $jscomp$key$key = $jscomp$iter$19.next() + ) { + var key = $jscomp$key$key.value, + value = valueGetter(key, source) + if (null != value) { + var copy = void 0 + if (arrays.hasOwnProperty(key)) { + if (metadata.emptyArrayIsUnset && 0 === value.length) { + continue + } + copy = module$contents$eeapiclient$domain_object_deepCopyValue( + value, + valueGetter, + valueSetter, + copyInstanciator, + !0, + !0, + arrays[key] + ) + } else if (objects.hasOwnProperty(key)) { + copy = module$contents$eeapiclient$domain_object_deepCopyValue( + value, + valueGetter, + valueSetter, + copyInstanciator, + !1, + !0, + objects[key] + ) + } else if (objectMaps.hasOwnProperty(key)) { + ;($jscomp$loop$m192531680$0.mapMetadata = objectMaps[key]), + (copy = $jscomp$loop$m192531680$0.mapMetadata + .isPropertyArray + ? value.map( + (function ($jscomp$loop$m192531680$0) { + return function (v) { + return module$contents$eeapiclient$domain_object_deepCopyObjectMap( + v, + $jscomp$loop$m192531680$0.mapMetadata, + valueGetter, + valueSetter, + copyInstanciator + ) + } + })($jscomp$loop$m192531680$0) + ) + : module$contents$eeapiclient$domain_object_deepCopyObjectMap( + value, + $jscomp$loop$m192531680$0.mapMetadata, + valueGetter, + valueSetter, + copyInstanciator + )) + } else if (Array.isArray(value)) { + if (metadata.emptyArrayIsUnset && 0 === value.length) { + continue + } + copy = module$contents$eeapiclient$domain_object_deepCopyValue( + value, + valueGetter, + valueSetter, + copyInstanciator, + !0, + !1 + ) + } else { + copy = + value instanceof + module$contents$eeapiclient$domain_object_NullClass + ? null + : value + } + valueSetter(key, target, copy) + } } - } - return target; + return target } function module$contents$eeapiclient$domain_object_deepCopyObjectMap( - value, - mapMetadata, - valueGetter, - valueSetter, - copyInstanciator -) { - for ( - var objMap = {}, - $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), - $jscomp$key$mapKey = $jscomp$iter$20.next(); - !$jscomp$key$mapKey.done; - $jscomp$key$mapKey = $jscomp$iter$20.next() - ) { - var mapKey = $jscomp$key$mapKey.value, - mapValue = value[mapKey]; - null != mapValue && - (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue( - mapValue, - valueGetter, - valueSetter, - copyInstanciator, - mapMetadata.isValueArray, - mapMetadata.isSerializable, - mapMetadata.ctor - )); - } - return objMap; + value, + mapMetadata, + valueGetter, + valueSetter, + copyInstanciator +) { + for ( + var objMap = {}, + $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), + $jscomp$key$mapKey = $jscomp$iter$20.next(); + !$jscomp$key$mapKey.done; + $jscomp$key$mapKey = $jscomp$iter$20.next() + ) { + var mapKey = $jscomp$key$mapKey.value, + mapValue = value[mapKey] + null != mapValue && + (objMap[mapKey] = + module$contents$eeapiclient$domain_object_deepCopyValue( + mapValue, + valueGetter, + valueSetter, + copyInstanciator, + mapMetadata.isValueArray, + mapMetadata.isSerializable, + mapMetadata.ctor + )) + } + return objMap } function module$contents$eeapiclient$domain_object_deepCopyValue( - value, - valueGetter, - valueSetter, - copyInstanciator, - isArray, - isRef, - ctor -) { - if (isRef && null == ctor) { - throw Error("Cannot deserialize a reference object without a constructor."); - } - return null == value - ? value - : isArray && isRef - ? value.map(function (v) { - return module$contents$eeapiclient$domain_object_deepCopy( - v, - valueGetter, - valueSetter, - copyInstanciator, - ctor - ); - }) - : isArray && !isRef - ? value.map(function (v) { - return v; - }) - : !isArray && isRef - ? module$contents$eeapiclient$domain_object_deepCopy( - value, - valueGetter, - valueSetter, - copyInstanciator, - ctor - ) - : value instanceof module$contents$eeapiclient$domain_object_NullClass - ? null - : "object" === typeof value - ? JSON.parse(JSON.stringify(value)) - : value; + value, + valueGetter, + valueSetter, + copyInstanciator, + isArray, + isRef, + ctor +) { + if (isRef && null == ctor) { + throw Error( + 'Cannot deserialize a reference object without a constructor.' + ) + } + return null == value + ? value + : isArray && isRef + ? value.map(function (v) { + return module$contents$eeapiclient$domain_object_deepCopy( + v, + valueGetter, + valueSetter, + copyInstanciator, + ctor + ) + }) + : isArray && !isRef + ? value.map(function (v) { + return v + }) + : !isArray && isRef + ? module$contents$eeapiclient$domain_object_deepCopy( + value, + valueGetter, + valueSetter, + copyInstanciator, + ctor + ) + : value instanceof module$contents$eeapiclient$domain_object_NullClass + ? null + : 'object' === typeof value + ? JSON.parse(JSON.stringify(value)) + : value } function module$contents$eeapiclient$domain_object_deepCopyMetadata( - source, - target -) { - if (target instanceof module$exports$eeapiclient$domain_object.Serializable) { - var metadata = target.getClassMetadata(); - } else if ( - source instanceof module$exports$eeapiclient$domain_object.Serializable - ) { - metadata = source.getClassMetadata(); - } else { - throw Error("Cannot find ClassMetadata."); - } - return metadata; + source, + target +) { + if ( + target instanceof module$exports$eeapiclient$domain_object.Serializable + ) { + var metadata = target.getClassMetadata() + } else if ( + source instanceof module$exports$eeapiclient$domain_object.Serializable + ) { + metadata = source.getClassMetadata() + } else { + throw Error('Cannot find ClassMetadata.') + } + return metadata } function module$contents$eeapiclient$domain_object_deepEquals( - serializable1, - serializable2 -) { - var metadata1 = serializable1.getClassMetadata(), - keys1 = metadata1.keys || [], - arrays1 = metadata1.arrays || {}, - objects1 = metadata1.objects || {}, - objectMaps1 = metadata1.objectMaps || {}, - metadata2 = serializable2.getClassMetadata(), - arrays2 = metadata2.arrays || {}, - objects2 = metadata2.objects || {}, - objectMaps2 = metadata2.objectMaps || {}; - if ( - !( - module$contents$eeapiclient$domain_object_sameKeys( - keys1, - metadata2.keys || [] - ) && - module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && - module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && - module$contents$eeapiclient$domain_object_sameKeys( - objectMaps1, - objectMaps2 - ) - ) - ) { - return !1; - } - for ( - var $jscomp$iter$21 = $jscomp.makeIterator(keys1), - $jscomp$key$key = $jscomp$iter$21.next(), - $jscomp$loop$m192531680$1 = {}; - !$jscomp$key$key.done; - $jscomp$loop$m192531680$1 = { - value2$jscomp$7: $jscomp$loop$m192531680$1.value2$jscomp$7, - mapMetadata$jscomp$2: $jscomp$loop$m192531680$1.mapMetadata$jscomp$2, - }, - $jscomp$key$key = $jscomp$iter$21.next() - ) { - var key = $jscomp$key$key.value, - has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray( - serializable1, - key, - metadata1 - ), - has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray( - serializable2, - key, - metadata2 - ); - if (has1 !== has2) { - return !1; - } - if (has1) { - var value1 = serializable1.Serializable$get(key); - $jscomp$loop$m192531680$1.value2$jscomp$7 = - serializable2.Serializable$get(key); - if (arrays1.hasOwnProperty(key)) { - if ( - !module$contents$eeapiclient$domain_object_deepEqualsValue( - value1, - $jscomp$loop$m192531680$1.value2$jscomp$7, - !0, - !0 - ) - ) { - return !1; + serializable1, + serializable2 +) { + var metadata1 = serializable1.getClassMetadata(), + keys1 = metadata1.keys || [], + arrays1 = metadata1.arrays || {}, + objects1 = metadata1.objects || {}, + objectMaps1 = metadata1.objectMaps || {}, + metadata2 = serializable2.getClassMetadata(), + arrays2 = metadata2.arrays || {}, + objects2 = metadata2.objects || {}, + objectMaps2 = metadata2.objectMaps || {} + if ( + !( + module$contents$eeapiclient$domain_object_sameKeys( + keys1, + metadata2.keys || [] + ) && + module$contents$eeapiclient$domain_object_sameKeys( + arrays1, + arrays2 + ) && + module$contents$eeapiclient$domain_object_sameKeys( + objects1, + objects2 + ) && + module$contents$eeapiclient$domain_object_sameKeys( + objectMaps1, + objectMaps2 + ) + ) + ) { + return !1 + } + for ( + var $jscomp$iter$21 = $jscomp.makeIterator(keys1), + $jscomp$key$key = $jscomp$iter$21.next(), + $jscomp$loop$m192531680$1 = {}; + !$jscomp$key$key.done; + $jscomp$loop$m192531680$1 = { + value2$jscomp$7: $jscomp$loop$m192531680$1.value2$jscomp$7, + mapMetadata$jscomp$2: + $jscomp$loop$m192531680$1.mapMetadata$jscomp$2, + }, + $jscomp$key$key = $jscomp$iter$21.next() + ) { + var key = $jscomp$key$key.value, + has1 = + module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray( + serializable1, + key, + metadata1 + ), + has2 = + module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray( + serializable2, + key, + metadata2 + ) + if (has1 !== has2) { + return !1 } - } else if (objects1.hasOwnProperty(key)) { + if (has1) { + var value1 = serializable1.Serializable$get(key) + $jscomp$loop$m192531680$1.value2$jscomp$7 = + serializable2.Serializable$get(key) + if (arrays1.hasOwnProperty(key)) { + if ( + !module$contents$eeapiclient$domain_object_deepEqualsValue( + value1, + $jscomp$loop$m192531680$1.value2$jscomp$7, + !0, + !0 + ) + ) { + return !1 + } + } else if (objects1.hasOwnProperty(key)) { + if ( + !module$contents$eeapiclient$domain_object_deepEqualsValue( + value1, + $jscomp$loop$m192531680$1.value2$jscomp$7, + !1, + !0 + ) + ) { + return !1 + } + } else if (objectMaps1.hasOwnProperty(key)) { + if ( + (($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = + objectMaps1[key]), + $jscomp$loop$m192531680$1.mapMetadata$jscomp$2 + .isPropertyArray) + ) { + if ( + !module$contents$eeapiclient$domain_object_sameKeys( + value1, + $jscomp$loop$m192531680$1.value2$jscomp$7 + ) || + value1.some( + (function ($jscomp$loop$m192531680$1) { + return function (v1, i) { + return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap( + v1, + $jscomp$loop$m192531680$1 + .value2$jscomp$7[i], + $jscomp$loop$m192531680$1.mapMetadata$jscomp$2 + ) + } + })($jscomp$loop$m192531680$1) + ) + ) { + return !1 + } + } else if ( + !module$contents$eeapiclient$domain_object_deepEqualsObjectMap( + value1, + $jscomp$loop$m192531680$1.value2$jscomp$7, + $jscomp$loop$m192531680$1.mapMetadata$jscomp$2 + ) + ) { + return !1 + } + } else if (Array.isArray(value1)) { + if ( + !module$contents$eeapiclient$domain_object_deepEqualsValue( + value1, + $jscomp$loop$m192531680$1.value2$jscomp$7, + !0, + !1 + ) + ) { + return !1 + } + } else if ( + !module$contents$eeapiclient$domain_object_deepEqualsValue( + value1, + $jscomp$loop$m192531680$1.value2$jscomp$7, + !1, + !1 + ) + ) { + return !1 + } + } + } + return !0 +} +module$exports$eeapiclient$domain_object.deepEquals = + module$contents$eeapiclient$domain_object_deepEquals +function module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray( + serializable, + key, + metadata +) { + if (!serializable.Serializable$has(key)) { + return !1 + } + if (!metadata.emptyArrayIsUnset) { + return !0 + } + var value = serializable.Serializable$get(key) + return Array.isArray(value) ? 0 !== value.length : !0 +} +function module$contents$eeapiclient$domain_object_deepEqualsObjectMap( + value1, + value2, + mapMetadata +) { + if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) { + return !1 + } + for ( + var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), + $jscomp$key$mapKey = $jscomp$iter$22.next(); + !$jscomp$key$mapKey.done; + $jscomp$key$mapKey = $jscomp$iter$22.next() + ) { + var mapKey = $jscomp$key$mapKey.value if ( - !module$contents$eeapiclient$domain_object_deepEqualsValue( - value1, - $jscomp$loop$m192531680$1.value2$jscomp$7, - !1, - !0 - ) + !module$contents$eeapiclient$domain_object_deepEqualsValue( + value1[mapKey], + value2[mapKey], + mapMetadata.isValueArray, + mapMetadata.isSerializable + ) ) { - return !1; + return !1 } - } else if (objectMaps1.hasOwnProperty(key)) { + } + return !0 +} +function module$contents$eeapiclient$domain_object_deepEqualsValue( + value1, + value2, + isArray, + isSerializable +) { + if (null == value1 && null == value2) { + return !0 + } + if (isArray && isSerializable) { if ( - (($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key]), - $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) - ) { - if ( !module$contents$eeapiclient$domain_object_sameKeys( - value1, - $jscomp$loop$m192531680$1.value2$jscomp$7 + value1, + value2 ) || - value1.some( - (function ($jscomp$loop$m192531680$1) { - return function (v1, i) { - return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap( + value1.some(function (v1, i) { + return !module$contents$eeapiclient$domain_object_deepEquals( v1, - $jscomp$loop$m192531680$1.value2$jscomp$7[i], - $jscomp$loop$m192531680$1.mapMetadata$jscomp$2 - ); - }; - })($jscomp$loop$m192531680$1) - ) - ) { - return !1; - } - } else if ( - !module$contents$eeapiclient$domain_object_deepEqualsObjectMap( - value1, - $jscomp$loop$m192531680$1.value2$jscomp$7, - $jscomp$loop$m192531680$1.mapMetadata$jscomp$2 - ) + value2[i] + ) + }) ) { - return !1; + return !1 } - } else if (Array.isArray(value1)) { + } else if (isArray && !isSerializable) { if ( - !module$contents$eeapiclient$domain_object_deepEqualsValue( - value1, - $jscomp$loop$m192531680$1.value2$jscomp$7, - !0, - !1 - ) + !module$contents$eeapiclient$domain_object_sameKeys( + value1, + value2 + ) || + value1.some(function (v, i) { + return v !== value2[i] + }) ) { - return !1; + return !1 + } + } else { + if (isSerializable) { + return module$contents$eeapiclient$domain_object_deepEquals( + value1, + value2 + ) + } + if ('object' === typeof value1) { + if (JSON.stringify(value1) !== JSON.stringify(value2)) { + return !1 + } + } else if (value1 !== value2) { + return !1 } - } else if ( - !module$contents$eeapiclient$domain_object_deepEqualsValue( - value1, - $jscomp$loop$m192531680$1.value2$jscomp$7, - !1, - !1 - ) - ) { - return !1; - } } - } - return !0; -} -module$exports$eeapiclient$domain_object.deepEquals = - module$contents$eeapiclient$domain_object_deepEquals; -function module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray( - serializable, - key, - metadata -) { - if (!serializable.Serializable$has(key)) { - return !1; - } - if (!metadata.emptyArrayIsUnset) { - return !0; - } - var value = serializable.Serializable$get(key); - return Array.isArray(value) ? 0 !== value.length : !0; + return !0 } -function module$contents$eeapiclient$domain_object_deepEqualsObjectMap( - value1, - value2, - mapMetadata -) { - if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) { - return !1; - } - for ( - var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), - $jscomp$key$mapKey = $jscomp$iter$22.next(); - !$jscomp$key$mapKey.done; - $jscomp$key$mapKey = $jscomp$iter$22.next() - ) { - var mapKey = $jscomp$key$mapKey.value; - if ( - !module$contents$eeapiclient$domain_object_deepEqualsValue( - value1[mapKey], - value2[mapKey], - mapMetadata.isValueArray, - mapMetadata.isSerializable - ) - ) { - return !1; +function module$contents$eeapiclient$domain_object_sameKeys(a, b) { + if (typeof a !== typeof b || Array.isArray(a) !== Array.isArray(b)) { + throw Error('Types are not comparable.') + } + var aKeys = Object.keys(a), + bKeys = Object.keys(b) + if (aKeys.length !== bKeys.length) { + return !1 + } + Array.isArray(a) || (aKeys.sort(), bKeys.sort()) + for (var i = 0; i < aKeys.length; i++) { + if (aKeys[i] !== bKeys[i]) { + return !1 + } } - } - return !0; + return !0 } -function module$contents$eeapiclient$domain_object_deepEqualsValue( - value1, - value2, - isArray, - isSerializable -) { - if (null == value1 && null == value2) { - return !0; - } - if (isArray && isSerializable) { - if ( - !module$contents$eeapiclient$domain_object_sameKeys(value1, value2) || - value1.some(function (v1, i) { - return !module$contents$eeapiclient$domain_object_deepEquals( - v1, - value2[i] - ); - }) - ) { - return !1; - } - } else if (isArray && !isSerializable) { +module$exports$eeapiclient$domain_object.serializableEqualityTester = function ( + left, + right +) { if ( - !module$contents$eeapiclient$domain_object_sameKeys(value1, value2) || - value1.some(function (v, i) { - return v !== value2[i]; - }) + left instanceof module$exports$eeapiclient$domain_object.Serializable && + right instanceof module$exports$eeapiclient$domain_object.Serializable ) { - return !1; - } - } else { - if (isSerializable) { - return module$contents$eeapiclient$domain_object_deepEquals( - value1, - value2 - ); - } - if ("object" === typeof value1) { - if (JSON.stringify(value1) !== JSON.stringify(value2)) { - return !1; - } - } else if (value1 !== value2) { - return !1; + return module$contents$eeapiclient$domain_object_deepEquals(left, right) } - } - return !0; -} -function module$contents$eeapiclient$domain_object_sameKeys(a, b) { - if (typeof a !== typeof b || Array.isArray(a) !== Array.isArray(b)) { - throw Error("Types are not comparable."); - } - var aKeys = Object.keys(a), - bKeys = Object.keys(b); - if (aKeys.length !== bKeys.length) { - return !1; - } - Array.isArray(a) || (aKeys.sort(), bKeys.sort()); - for (var i = 0; i < aKeys.length; i++) { - if (aKeys[i] !== bKeys[i]) { - return !1; - } - } - return !0; } -module$exports$eeapiclient$domain_object.serializableEqualityTester = function ( - left, - right -) { - if ( - left instanceof module$exports$eeapiclient$domain_object.Serializable && - right instanceof module$exports$eeapiclient$domain_object.Serializable - ) { - return module$contents$eeapiclient$domain_object_deepEquals(left, right); - } -}; -goog.dom.HtmlElement = function () {}; -goog.dom.TagName = function () {}; +goog.dom.HtmlElement = function () {} +goog.dom.TagName = function () {} goog.dom.TagName.cast = function (name, type) { - return name; -}; -goog.dom.TagName.prototype.toString = function () {}; -goog.dom.TagName.A = "A"; -goog.dom.TagName.ABBR = "ABBR"; -goog.dom.TagName.ACRONYM = "ACRONYM"; -goog.dom.TagName.ADDRESS = "ADDRESS"; -goog.dom.TagName.APPLET = "APPLET"; -goog.dom.TagName.AREA = "AREA"; -goog.dom.TagName.ARTICLE = "ARTICLE"; -goog.dom.TagName.ASIDE = "ASIDE"; -goog.dom.TagName.AUDIO = "AUDIO"; -goog.dom.TagName.B = "B"; -goog.dom.TagName.BASE = "BASE"; -goog.dom.TagName.BASEFONT = "BASEFONT"; -goog.dom.TagName.BDI = "BDI"; -goog.dom.TagName.BDO = "BDO"; -goog.dom.TagName.BIG = "BIG"; -goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE"; -goog.dom.TagName.BODY = "BODY"; -goog.dom.TagName.BR = "BR"; -goog.dom.TagName.BUTTON = "BUTTON"; -goog.dom.TagName.CANVAS = "CANVAS"; -goog.dom.TagName.CAPTION = "CAPTION"; -goog.dom.TagName.CENTER = "CENTER"; -goog.dom.TagName.CITE = "CITE"; -goog.dom.TagName.CODE = "CODE"; -goog.dom.TagName.COL = "COL"; -goog.dom.TagName.COLGROUP = "COLGROUP"; -goog.dom.TagName.COMMAND = "COMMAND"; -goog.dom.TagName.DATA = "DATA"; -goog.dom.TagName.DATALIST = "DATALIST"; -goog.dom.TagName.DD = "DD"; -goog.dom.TagName.DEL = "DEL"; -goog.dom.TagName.DETAILS = "DETAILS"; -goog.dom.TagName.DFN = "DFN"; -goog.dom.TagName.DIALOG = "DIALOG"; -goog.dom.TagName.DIR = "DIR"; -goog.dom.TagName.DIV = "DIV"; -goog.dom.TagName.DL = "DL"; -goog.dom.TagName.DT = "DT"; -goog.dom.TagName.EM = "EM"; -goog.dom.TagName.EMBED = "EMBED"; -goog.dom.TagName.FIELDSET = "FIELDSET"; -goog.dom.TagName.FIGCAPTION = "FIGCAPTION"; -goog.dom.TagName.FIGURE = "FIGURE"; -goog.dom.TagName.FONT = "FONT"; -goog.dom.TagName.FOOTER = "FOOTER"; -goog.dom.TagName.FORM = "FORM"; -goog.dom.TagName.FRAME = "FRAME"; -goog.dom.TagName.FRAMESET = "FRAMESET"; -goog.dom.TagName.H1 = "H1"; -goog.dom.TagName.H2 = "H2"; -goog.dom.TagName.H3 = "H3"; -goog.dom.TagName.H4 = "H4"; -goog.dom.TagName.H5 = "H5"; -goog.dom.TagName.H6 = "H6"; -goog.dom.TagName.HEAD = "HEAD"; -goog.dom.TagName.HEADER = "HEADER"; -goog.dom.TagName.HGROUP = "HGROUP"; -goog.dom.TagName.HR = "HR"; -goog.dom.TagName.HTML = "HTML"; -goog.dom.TagName.I = "I"; -goog.dom.TagName.IFRAME = "IFRAME"; -goog.dom.TagName.IMG = "IMG"; -goog.dom.TagName.INPUT = "INPUT"; -goog.dom.TagName.INS = "INS"; -goog.dom.TagName.ISINDEX = "ISINDEX"; -goog.dom.TagName.KBD = "KBD"; -goog.dom.TagName.KEYGEN = "KEYGEN"; -goog.dom.TagName.LABEL = "LABEL"; -goog.dom.TagName.LEGEND = "LEGEND"; -goog.dom.TagName.LI = "LI"; -goog.dom.TagName.LINK = "LINK"; -goog.dom.TagName.MAIN = "MAIN"; -goog.dom.TagName.MAP = "MAP"; -goog.dom.TagName.MARK = "MARK"; -goog.dom.TagName.MATH = "MATH"; -goog.dom.TagName.MENU = "MENU"; -goog.dom.TagName.MENUITEM = "MENUITEM"; -goog.dom.TagName.META = "META"; -goog.dom.TagName.METER = "METER"; -goog.dom.TagName.NAV = "NAV"; -goog.dom.TagName.NOFRAMES = "NOFRAMES"; -goog.dom.TagName.NOSCRIPT = "NOSCRIPT"; -goog.dom.TagName.OBJECT = "OBJECT"; -goog.dom.TagName.OL = "OL"; -goog.dom.TagName.OPTGROUP = "OPTGROUP"; -goog.dom.TagName.OPTION = "OPTION"; -goog.dom.TagName.OUTPUT = "OUTPUT"; -goog.dom.TagName.P = "P"; -goog.dom.TagName.PARAM = "PARAM"; -goog.dom.TagName.PICTURE = "PICTURE"; -goog.dom.TagName.PRE = "PRE"; -goog.dom.TagName.PROGRESS = "PROGRESS"; -goog.dom.TagName.Q = "Q"; -goog.dom.TagName.RP = "RP"; -goog.dom.TagName.RT = "RT"; -goog.dom.TagName.RTC = "RTC"; -goog.dom.TagName.RUBY = "RUBY"; -goog.dom.TagName.S = "S"; -goog.dom.TagName.SAMP = "SAMP"; -goog.dom.TagName.SCRIPT = "SCRIPT"; -goog.dom.TagName.SECTION = "SECTION"; -goog.dom.TagName.SELECT = "SELECT"; -goog.dom.TagName.SMALL = "SMALL"; -goog.dom.TagName.SOURCE = "SOURCE"; -goog.dom.TagName.SPAN = "SPAN"; -goog.dom.TagName.STRIKE = "STRIKE"; -goog.dom.TagName.STRONG = "STRONG"; -goog.dom.TagName.STYLE = "STYLE"; -goog.dom.TagName.SUB = "SUB"; -goog.dom.TagName.SUMMARY = "SUMMARY"; -goog.dom.TagName.SUP = "SUP"; -goog.dom.TagName.SVG = "SVG"; -goog.dom.TagName.TABLE = "TABLE"; -goog.dom.TagName.TBODY = "TBODY"; -goog.dom.TagName.TD = "TD"; -goog.dom.TagName.TEMPLATE = "TEMPLATE"; -goog.dom.TagName.TEXTAREA = "TEXTAREA"; -goog.dom.TagName.TFOOT = "TFOOT"; -goog.dom.TagName.TH = "TH"; -goog.dom.TagName.THEAD = "THEAD"; -goog.dom.TagName.TIME = "TIME"; -goog.dom.TagName.TITLE = "TITLE"; -goog.dom.TagName.TR = "TR"; -goog.dom.TagName.TRACK = "TRACK"; -goog.dom.TagName.TT = "TT"; -goog.dom.TagName.U = "U"; -goog.dom.TagName.UL = "UL"; -goog.dom.TagName.VAR = "VAR"; -goog.dom.TagName.VIDEO = "VIDEO"; -goog.dom.TagName.WBR = "WBR"; -goog.dom.element = {}; + return name +} +goog.dom.TagName.prototype.toString = function () {} +goog.dom.TagName.A = 'A' +goog.dom.TagName.ABBR = 'ABBR' +goog.dom.TagName.ACRONYM = 'ACRONYM' +goog.dom.TagName.ADDRESS = 'ADDRESS' +goog.dom.TagName.APPLET = 'APPLET' +goog.dom.TagName.AREA = 'AREA' +goog.dom.TagName.ARTICLE = 'ARTICLE' +goog.dom.TagName.ASIDE = 'ASIDE' +goog.dom.TagName.AUDIO = 'AUDIO' +goog.dom.TagName.B = 'B' +goog.dom.TagName.BASE = 'BASE' +goog.dom.TagName.BASEFONT = 'BASEFONT' +goog.dom.TagName.BDI = 'BDI' +goog.dom.TagName.BDO = 'BDO' +goog.dom.TagName.BIG = 'BIG' +goog.dom.TagName.BLOCKQUOTE = 'BLOCKQUOTE' +goog.dom.TagName.BODY = 'BODY' +goog.dom.TagName.BR = 'BR' +goog.dom.TagName.BUTTON = 'BUTTON' +goog.dom.TagName.CANVAS = 'CANVAS' +goog.dom.TagName.CAPTION = 'CAPTION' +goog.dom.TagName.CENTER = 'CENTER' +goog.dom.TagName.CITE = 'CITE' +goog.dom.TagName.CODE = 'CODE' +goog.dom.TagName.COL = 'COL' +goog.dom.TagName.COLGROUP = 'COLGROUP' +goog.dom.TagName.COMMAND = 'COMMAND' +goog.dom.TagName.DATA = 'DATA' +goog.dom.TagName.DATALIST = 'DATALIST' +goog.dom.TagName.DD = 'DD' +goog.dom.TagName.DEL = 'DEL' +goog.dom.TagName.DETAILS = 'DETAILS' +goog.dom.TagName.DFN = 'DFN' +goog.dom.TagName.DIALOG = 'DIALOG' +goog.dom.TagName.DIR = 'DIR' +goog.dom.TagName.DIV = 'DIV' +goog.dom.TagName.DL = 'DL' +goog.dom.TagName.DT = 'DT' +goog.dom.TagName.EM = 'EM' +goog.dom.TagName.EMBED = 'EMBED' +goog.dom.TagName.FIELDSET = 'FIELDSET' +goog.dom.TagName.FIGCAPTION = 'FIGCAPTION' +goog.dom.TagName.FIGURE = 'FIGURE' +goog.dom.TagName.FONT = 'FONT' +goog.dom.TagName.FOOTER = 'FOOTER' +goog.dom.TagName.FORM = 'FORM' +goog.dom.TagName.FRAME = 'FRAME' +goog.dom.TagName.FRAMESET = 'FRAMESET' +goog.dom.TagName.H1 = 'H1' +goog.dom.TagName.H2 = 'H2' +goog.dom.TagName.H3 = 'H3' +goog.dom.TagName.H4 = 'H4' +goog.dom.TagName.H5 = 'H5' +goog.dom.TagName.H6 = 'H6' +goog.dom.TagName.HEAD = 'HEAD' +goog.dom.TagName.HEADER = 'HEADER' +goog.dom.TagName.HGROUP = 'HGROUP' +goog.dom.TagName.HR = 'HR' +goog.dom.TagName.HTML = 'HTML' +goog.dom.TagName.I = 'I' +goog.dom.TagName.IFRAME = 'IFRAME' +goog.dom.TagName.IMG = 'IMG' +goog.dom.TagName.INPUT = 'INPUT' +goog.dom.TagName.INS = 'INS' +goog.dom.TagName.ISINDEX = 'ISINDEX' +goog.dom.TagName.KBD = 'KBD' +goog.dom.TagName.KEYGEN = 'KEYGEN' +goog.dom.TagName.LABEL = 'LABEL' +goog.dom.TagName.LEGEND = 'LEGEND' +goog.dom.TagName.LI = 'LI' +goog.dom.TagName.LINK = 'LINK' +goog.dom.TagName.MAIN = 'MAIN' +goog.dom.TagName.MAP = 'MAP' +goog.dom.TagName.MARK = 'MARK' +goog.dom.TagName.MATH = 'MATH' +goog.dom.TagName.MENU = 'MENU' +goog.dom.TagName.MENUITEM = 'MENUITEM' +goog.dom.TagName.META = 'META' +goog.dom.TagName.METER = 'METER' +goog.dom.TagName.NAV = 'NAV' +goog.dom.TagName.NOFRAMES = 'NOFRAMES' +goog.dom.TagName.NOSCRIPT = 'NOSCRIPT' +goog.dom.TagName.OBJECT = 'OBJECT' +goog.dom.TagName.OL = 'OL' +goog.dom.TagName.OPTGROUP = 'OPTGROUP' +goog.dom.TagName.OPTION = 'OPTION' +goog.dom.TagName.OUTPUT = 'OUTPUT' +goog.dom.TagName.P = 'P' +goog.dom.TagName.PARAM = 'PARAM' +goog.dom.TagName.PICTURE = 'PICTURE' +goog.dom.TagName.PRE = 'PRE' +goog.dom.TagName.PROGRESS = 'PROGRESS' +goog.dom.TagName.Q = 'Q' +goog.dom.TagName.RP = 'RP' +goog.dom.TagName.RT = 'RT' +goog.dom.TagName.RTC = 'RTC' +goog.dom.TagName.RUBY = 'RUBY' +goog.dom.TagName.S = 'S' +goog.dom.TagName.SAMP = 'SAMP' +goog.dom.TagName.SCRIPT = 'SCRIPT' +goog.dom.TagName.SECTION = 'SECTION' +goog.dom.TagName.SELECT = 'SELECT' +goog.dom.TagName.SMALL = 'SMALL' +goog.dom.TagName.SOURCE = 'SOURCE' +goog.dom.TagName.SPAN = 'SPAN' +goog.dom.TagName.STRIKE = 'STRIKE' +goog.dom.TagName.STRONG = 'STRONG' +goog.dom.TagName.STYLE = 'STYLE' +goog.dom.TagName.SUB = 'SUB' +goog.dom.TagName.SUMMARY = 'SUMMARY' +goog.dom.TagName.SUP = 'SUP' +goog.dom.TagName.SVG = 'SVG' +goog.dom.TagName.TABLE = 'TABLE' +goog.dom.TagName.TBODY = 'TBODY' +goog.dom.TagName.TD = 'TD' +goog.dom.TagName.TEMPLATE = 'TEMPLATE' +goog.dom.TagName.TEXTAREA = 'TEXTAREA' +goog.dom.TagName.TFOOT = 'TFOOT' +goog.dom.TagName.TH = 'TH' +goog.dom.TagName.THEAD = 'THEAD' +goog.dom.TagName.TIME = 'TIME' +goog.dom.TagName.TITLE = 'TITLE' +goog.dom.TagName.TR = 'TR' +goog.dom.TagName.TRACK = 'TRACK' +goog.dom.TagName.TT = 'TT' +goog.dom.TagName.U = 'U' +goog.dom.TagName.UL = 'UL' +goog.dom.TagName.VAR = 'VAR' +goog.dom.TagName.VIDEO = 'VIDEO' +goog.dom.TagName.WBR = 'WBR' +goog.dom.element = {} var module$contents$goog$dom$element_isElement = function (value) { - return goog.isObject(value) && value.nodeType === goog.dom.NodeType.ELEMENT; - }, - module$contents$goog$dom$element_isHtmlElement = function (value) { - return ( - goog.isObject(value) && - module$contents$goog$dom$element_isElement(value) && - (!value.namespaceURI || - "http://www.w3.org/1999/xhtml" === value.namespaceURI) - ); - }, - module$contents$goog$dom$element_isHtmlElementOfType = function ( - value, - tagName - ) { - return ( - goog.isObject(value) && - module$contents$goog$dom$element_isHtmlElement(value) && - value.tagName.toUpperCase() === tagName.toString() - ); - }; -goog.dom.element.isElement = module$contents$goog$dom$element_isElement; -goog.dom.element.isHtmlElement = module$contents$goog$dom$element_isHtmlElement; + return ( + goog.isObject(value) && value.nodeType === goog.dom.NodeType.ELEMENT + ) + }, + module$contents$goog$dom$element_isHtmlElement = function (value) { + return ( + goog.isObject(value) && + module$contents$goog$dom$element_isElement(value) && + (!value.namespaceURI || + 'http://www.w3.org/1999/xhtml' === value.namespaceURI) + ) + }, + module$contents$goog$dom$element_isHtmlElementOfType = function ( + value, + tagName + ) { + return ( + goog.isObject(value) && + module$contents$goog$dom$element_isHtmlElement(value) && + value.tagName.toUpperCase() === tagName.toString() + ) + } +goog.dom.element.isElement = module$contents$goog$dom$element_isElement +goog.dom.element.isHtmlElement = module$contents$goog$dom$element_isHtmlElement goog.dom.element.isHtmlElementOfType = - module$contents$goog$dom$element_isHtmlElementOfType; + module$contents$goog$dom$element_isHtmlElementOfType goog.dom.element.isHtmlAnchorElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.A - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.A + ) +} goog.dom.element.isHtmlButtonElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.BUTTON - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.BUTTON + ) +} goog.dom.element.isHtmlLinkElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.LINK - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.LINK + ) +} goog.dom.element.isHtmlImageElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.IMG - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.IMG + ) +} goog.dom.element.isHtmlAudioElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.AUDIO - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.AUDIO + ) +} goog.dom.element.isHtmlVideoElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.VIDEO - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.VIDEO + ) +} goog.dom.element.isHtmlInputElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.INPUT - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.INPUT + ) +} goog.dom.element.isHtmlTextAreaElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.TEXTAREA - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.TEXTAREA + ) +} goog.dom.element.isHtmlCanvasElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.CANVAS - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.CANVAS + ) +} goog.dom.element.isHtmlEmbedElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.EMBED - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.EMBED + ) +} goog.dom.element.isHtmlFormElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.FORM - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.FORM + ) +} goog.dom.element.isHtmlFrameElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.FRAME - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.FRAME + ) +} goog.dom.element.isHtmlIFrameElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.IFRAME - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.IFRAME + ) +} goog.dom.element.isHtmlObjectElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.OBJECT - ); -}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.OBJECT + ) +} goog.dom.element.isHtmlScriptElement = function (value) { - return module$contents$goog$dom$element_isHtmlElementOfType( - value, - goog.dom.TagName.SCRIPT - ); -}; -goog.asserts.dom = {}; + return module$contents$goog$dom$element_isHtmlElementOfType( + value, + goog.dom.TagName.SCRIPT + ) +} +goog.asserts.dom = {} var module$contents$goog$asserts$dom_assertIsHtmlElement = function (value) { - goog.asserts.ENABLE_ASSERTS && - !module$contents$goog$dom$element_isHtmlElement(value) && - goog.asserts.fail( - "Argument is not an HTML Element; got: " + - module$contents$goog$asserts$dom_debugStringForType(value) - ); - return value; - }, - module$contents$goog$asserts$dom_assertIsHtmlElementOfType = function ( - value, - tagName - ) { - goog.asserts.ENABLE_ASSERTS && - !module$contents$goog$dom$element_isHtmlElementOfType(value, tagName) && - goog.asserts.fail( - "Argument is not an HTML Element with tag name " + - (tagName.toString() + - "; got: " + - module$contents$goog$asserts$dom_debugStringForType(value)) - ); - return value; - }, - module$contents$goog$asserts$dom_assertIsHtmlAnchorElement = function ( - value - ) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.A - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlButtonElement = function ( - value - ) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.BUTTON - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlLinkElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.LINK - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlAudioElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.AUDIO - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlVideoElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.VIDEO - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlInputElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.INPUT - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlEmbedElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.EMBED - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlFormElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.FORM - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlFrameElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.FRAME - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function ( - value - ) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.IFRAME - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlObjectElement = function ( - value - ) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.OBJECT - ); - }, - module$contents$goog$asserts$dom_assertIsHtmlScriptElement = function ( - value - ) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.SCRIPT - ); - }, - module$contents$goog$asserts$dom_debugStringForType = function (value) { - if (goog.isObject(value)) { - try { - return ( - value.constructor.displayName || - value.constructor.name || - Object.prototype.toString.call(value) - ); - } catch (e) { - return ""; - } - } else { - return void 0 === value - ? "undefined" - : null === value - ? "null" - : typeof value; + goog.asserts.ENABLE_ASSERTS && + !module$contents$goog$dom$element_isHtmlElement(value) && + goog.asserts.fail( + 'Argument is not an HTML Element; got: ' + + module$contents$goog$asserts$dom_debugStringForType(value) + ) + return value + }, + module$contents$goog$asserts$dom_assertIsHtmlElementOfType = function ( + value, + tagName + ) { + goog.asserts.ENABLE_ASSERTS && + !module$contents$goog$dom$element_isHtmlElementOfType( + value, + tagName + ) && + goog.asserts.fail( + 'Argument is not an HTML Element with tag name ' + + (tagName.toString() + + '; got: ' + + module$contents$goog$asserts$dom_debugStringForType( + value + )) + ) + return value + }, + module$contents$goog$asserts$dom_assertIsHtmlAnchorElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.A + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlButtonElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.BUTTON + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlLinkElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.LINK + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlAudioElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.AUDIO + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlVideoElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.VIDEO + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlInputElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.INPUT + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlEmbedElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.EMBED + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlFormElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.FORM + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlFrameElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.FRAME + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.IFRAME + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlObjectElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.OBJECT + ) + }, + module$contents$goog$asserts$dom_assertIsHtmlScriptElement = function ( + value + ) { + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.SCRIPT + ) + }, + module$contents$goog$asserts$dom_debugStringForType = function (value) { + if (goog.isObject(value)) { + try { + return ( + value.constructor.displayName || + value.constructor.name || + Object.prototype.toString.call(value) + ) + } catch (e) { + return '' + } + } else { + return void 0 === value + ? 'undefined' + : null === value + ? 'null' + : typeof value + } } - }; goog.asserts.dom.assertIsElement = function (value) { - goog.asserts.ENABLE_ASSERTS && - !module$contents$goog$dom$element_isElement(value) && - goog.asserts.fail( - "Argument is not an Element; got: " + - module$contents$goog$asserts$dom_debugStringForType(value) - ); - return value; -}; + goog.asserts.ENABLE_ASSERTS && + !module$contents$goog$dom$element_isElement(value) && + goog.asserts.fail( + 'Argument is not an Element; got: ' + + module$contents$goog$asserts$dom_debugStringForType(value) + ) + return value +} goog.asserts.dom.assertIsHtmlElement = - module$contents$goog$asserts$dom_assertIsHtmlElement; + module$contents$goog$asserts$dom_assertIsHtmlElement goog.asserts.dom.assertIsHtmlElementOfType = - module$contents$goog$asserts$dom_assertIsHtmlElementOfType; + module$contents$goog$asserts$dom_assertIsHtmlElementOfType goog.asserts.dom.assertIsHtmlAnchorElement = - module$contents$goog$asserts$dom_assertIsHtmlAnchorElement; + module$contents$goog$asserts$dom_assertIsHtmlAnchorElement goog.asserts.dom.assertIsHtmlButtonElement = - module$contents$goog$asserts$dom_assertIsHtmlButtonElement; + module$contents$goog$asserts$dom_assertIsHtmlButtonElement goog.asserts.dom.assertIsHtmlLinkElement = - module$contents$goog$asserts$dom_assertIsHtmlLinkElement; + module$contents$goog$asserts$dom_assertIsHtmlLinkElement goog.asserts.dom.assertIsHtmlImageElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.IMG - ); -}; + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.IMG + ) +} goog.asserts.dom.assertIsHtmlAudioElement = - module$contents$goog$asserts$dom_assertIsHtmlAudioElement; + module$contents$goog$asserts$dom_assertIsHtmlAudioElement goog.asserts.dom.assertIsHtmlVideoElement = - module$contents$goog$asserts$dom_assertIsHtmlVideoElement; + module$contents$goog$asserts$dom_assertIsHtmlVideoElement goog.asserts.dom.assertIsHtmlInputElement = - module$contents$goog$asserts$dom_assertIsHtmlInputElement; + module$contents$goog$asserts$dom_assertIsHtmlInputElement goog.asserts.dom.assertIsHtmlTextAreaElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.TEXTAREA - ); -}; + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.TEXTAREA + ) +} goog.asserts.dom.assertIsHtmlCanvasElement = function (value) { - return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( - value, - goog.dom.TagName.CANVAS - ); -}; + return module$contents$goog$asserts$dom_assertIsHtmlElementOfType( + value, + goog.dom.TagName.CANVAS + ) +} goog.asserts.dom.assertIsHtmlEmbedElement = - module$contents$goog$asserts$dom_assertIsHtmlEmbedElement; + module$contents$goog$asserts$dom_assertIsHtmlEmbedElement goog.asserts.dom.assertIsHtmlFormElement = - module$contents$goog$asserts$dom_assertIsHtmlFormElement; + module$contents$goog$asserts$dom_assertIsHtmlFormElement goog.asserts.dom.assertIsHtmlFrameElement = - module$contents$goog$asserts$dom_assertIsHtmlFrameElement; + module$contents$goog$asserts$dom_assertIsHtmlFrameElement goog.asserts.dom.assertIsHtmlIFrameElement = - module$contents$goog$asserts$dom_assertIsHtmlIFrameElement; + module$contents$goog$asserts$dom_assertIsHtmlIFrameElement goog.asserts.dom.assertIsHtmlObjectElement = - module$contents$goog$asserts$dom_assertIsHtmlObjectElement; + module$contents$goog$asserts$dom_assertIsHtmlObjectElement goog.asserts.dom.assertIsHtmlScriptElement = - module$contents$goog$asserts$dom_assertIsHtmlScriptElement; -goog.dom.asserts = {}; + module$contents$goog$asserts$dom_assertIsHtmlScriptElement +goog.dom.asserts = {} goog.dom.asserts.assertIsLocation = function (o) { - if (goog.asserts.ENABLE_ASSERTS) { - var win = goog.dom.asserts.getWindow_(o); - win && - (!o || (!(o instanceof win.Location) && o instanceof win.Element)) && - goog.asserts.fail( - "Argument is not a Location (or a non-Element mock); got: %s", - goog.dom.asserts.debugStringForType_(o) - ); - } - return o; -}; + if (goog.asserts.ENABLE_ASSERTS) { + var win = goog.dom.asserts.getWindow_(o) + win && + (!o || + (!(o instanceof win.Location) && o instanceof win.Element)) && + goog.asserts.fail( + 'Argument is not a Location (or a non-Element mock); got: %s', + goog.dom.asserts.debugStringForType_(o) + ) + } + return o +} goog.dom.asserts.debugStringForType_ = function (value) { - if (goog.isObject(value)) { - try { - return ( - value.constructor.displayName || - value.constructor.name || - Object.prototype.toString.call(value) - ); - } catch (e) { - return ""; - } - } else { - return void 0 === value - ? "undefined" - : null === value - ? "null" - : typeof value; - } -}; + if (goog.isObject(value)) { + try { + return ( + value.constructor.displayName || + value.constructor.name || + Object.prototype.toString.call(value) + ) + } catch (e) { + return '' + } + } else { + return void 0 === value + ? 'undefined' + : null === value + ? 'null' + : typeof value + } +} goog.dom.asserts.getWindow_ = function (o) { - try { - var doc = o && o.ownerDocument, - win = doc && (doc.defaultView || doc.parentWindow); - win = win || goog.global; - if (win.Element && win.Location) { - return win; - } - } catch (ex) {} - return null; -}; -goog.dom.tags = {}; + try { + var doc = o && o.ownerDocument, + win = doc && (doc.defaultView || doc.parentWindow) + win = win || goog.global + if (win.Element && win.Location) { + return win + } + } catch (ex) {} + return null +} +goog.dom.tags = {} goog.dom.tags.VOID_TAGS_ = { - area: !0, - base: !0, - br: !0, - col: !0, - command: !0, - embed: !0, - hr: !0, - img: !0, - input: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0, -}; + area: !0, + base: !0, + br: !0, + col: !0, + command: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0, +} goog.dom.tags.isVoidTag = function (tagName) { - return !0 === goog.dom.tags.VOID_TAGS_[tagName]; -}; -goog.html = {}; -goog.html.trustedtypes = {}; + return !0 === goog.dom.tags.VOID_TAGS_[tagName] +} +goog.html = {} +goog.html.trustedtypes = {} goog.html.trustedtypes.POLICY_NAME = goog.TRUSTED_TYPES_POLICY_NAME - ? goog.TRUSTED_TYPES_POLICY_NAME + "#html" - : ""; + ? goog.TRUSTED_TYPES_POLICY_NAME + '#html' + : '' goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse = function () { - if (!goog.html.trustedtypes.POLICY_NAME) { - return null; - } - void 0 === goog.html.trustedtypes.cachedPolicy_ && - (goog.html.trustedtypes.cachedPolicy_ = goog.createTrustedTypesPolicy( - goog.html.trustedtypes.POLICY_NAME - )); - return goog.html.trustedtypes.cachedPolicy_; -}; -goog.string.TypedString = function () {}; + if (!goog.html.trustedtypes.POLICY_NAME) { + return null + } + void 0 === goog.html.trustedtypes.cachedPolicy_ && + (goog.html.trustedtypes.cachedPolicy_ = goog.createTrustedTypesPolicy( + goog.html.trustedtypes.POLICY_NAME + )) + return goog.html.trustedtypes.cachedPolicy_ +} +goog.string.TypedString = function () {} goog.string.Const = function (opt_token, opt_content) { - this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = - (opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && - opt_content) || - ""; - this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = - goog.string.Const.TYPE_MARKER_; -}; -goog.string.Const.prototype.implementsGoogStringTypedString = !0; + this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = + (opt_token === + goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && + opt_content) || + '' + this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = + goog.string.Const.TYPE_MARKER_ +} +goog.string.Const.prototype.implementsGoogStringTypedString = !0 goog.string.Const.prototype.getTypedStringValue = function () { - return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_; -}; + return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ +} goog.string.Const.prototype.toString = function () { - return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_; -}; + return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ +} goog.string.Const.unwrap = function (stringConst) { - if ( - stringConst instanceof goog.string.Const && - stringConst.constructor === goog.string.Const && - stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === - goog.string.Const.TYPE_MARKER_ - ) { - return stringConst.stringConstValueWithSecurityContract__googStringSecurityPrivate_; - } - goog.asserts.fail("expected object of type Const, got '" + stringConst + "'"); - return "type_error:Const"; -}; -goog.string.Const.from = function (s) { - return new goog.string.Const( - goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_, - s - ); -}; -goog.string.Const.TYPE_MARKER_ = {}; -goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {}; -goog.string.Const.EMPTY = goog.string.Const.from(""); -var module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE = {}, - module$contents$goog$html$SafeScript_SafeScript = function (value, token) { if ( - goog.DEBUG && - token !== module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE + stringConst instanceof goog.string.Const && + stringConst.constructor === goog.string.Const && + stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === + goog.string.Const.TYPE_MARKER_ ) { - throw Error("SafeScript is not meant to be built directly"); + return stringConst.stringConstValueWithSecurityContract__googStringSecurityPrivate_ + } + goog.asserts.fail( + "expected object of type Const, got '" + stringConst + "'" + ) + return 'type_error:Const' +} +goog.string.Const.from = function (s) { + return new goog.string.Const( + goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_, + s + ) +} +goog.string.Const.TYPE_MARKER_ = {} +goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {} +goog.string.Const.EMPTY = goog.string.Const.from('') +var module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE = {}, + module$contents$goog$html$SafeScript_SafeScript = function (value, token) { + if ( + goog.DEBUG && + token !== + module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE + ) { + throw Error('SafeScript is not meant to be built directly') + } + this.privateDoNotAccessOrElseSafeScriptWrappedValue_ = value + this.implementsGoogStringTypedString = !0 } - this.privateDoNotAccessOrElseSafeScriptWrappedValue_ = value; - this.implementsGoogStringTypedString = !0; - }; module$contents$goog$html$SafeScript_SafeScript.prototype.toString = - function () { - return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString(); - }; + function () { + return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString() + } module$contents$goog$html$SafeScript_SafeScript.fromConstant = function ( - script -) { - var scriptString = goog.string.Const.unwrap(script); - return 0 === scriptString.length - ? module$contents$goog$html$SafeScript_SafeScript.EMPTY - : module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse( - scriptString - ); -}; + script +) { + var scriptString = goog.string.Const.unwrap(script) + return 0 === scriptString.length + ? module$contents$goog$html$SafeScript_SafeScript.EMPTY + : module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse( + scriptString + ) +} module$contents$goog$html$SafeScript_SafeScript.fromJson = function (val) { - return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse( - module$contents$goog$html$SafeScript_SafeScript.stringify_(val) - ); -}; + return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse( + module$contents$goog$html$SafeScript_SafeScript.stringify_(val) + ) +} module$contents$goog$html$SafeScript_SafeScript.prototype.getTypedStringValue = - function () { - return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString(); - }; + function () { + return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString() + } module$contents$goog$html$SafeScript_SafeScript.unwrap = function (safeScript) { - return module$contents$goog$html$SafeScript_SafeScript - .unwrapTrustedScript(safeScript) - .toString(); -}; + return module$contents$goog$html$SafeScript_SafeScript + .unwrapTrustedScript(safeScript) + .toString() +} module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript = function ( - safeScript -) { - if ( - safeScript instanceof module$contents$goog$html$SafeScript_SafeScript && - safeScript.constructor === module$contents$goog$html$SafeScript_SafeScript - ) { - return safeScript.privateDoNotAccessOrElseSafeScriptWrappedValue_; - } - (0, goog.asserts.fail)( - "expected object of type SafeScript, got '" + - safeScript + - "' of type " + - goog.typeOf(safeScript) - ); - return "type_error:SafeScript"; -}; + safeScript +) { + if ( + safeScript instanceof module$contents$goog$html$SafeScript_SafeScript && + safeScript.constructor === + module$contents$goog$html$SafeScript_SafeScript + ) { + return safeScript.privateDoNotAccessOrElseSafeScriptWrappedValue_ + } + ;(0, goog.asserts.fail)( + "expected object of type SafeScript, got '" + + safeScript + + "' of type " + + goog.typeOf(safeScript) + ) + return 'type_error:SafeScript' +} module$contents$goog$html$SafeScript_SafeScript.stringify_ = function (val) { - return JSON.stringify(val).replace(/ prefix.length ? "&" : "") + - encodeURIComponent(key) + - "=" + - encodeURIComponent(String(outputValue)))); - } + prefix, + currentString, + params +) { + if (null == params) { + return currentString } - } - return currentString; -}; -goog.html.SafeUrl = function (value, token) { - if (goog.DEBUG && token !== goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_) { - throw Error("SafeUrl is not meant to be built directly"); - } - this.privateDoNotAccessOrElseSafeUrlWrappedValue_ = value; -}; -goog.html.SafeUrl.prototype.toString = function () { - return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString(); -}; -goog.html.SafeUrl.INNOCUOUS_STRING = "about:invalid#zClosurez"; -goog.html.SafeUrl.prototype.implementsGoogStringTypedString = !0; + if ('string' === typeof params) { + return params ? prefix + encodeURIComponent(params) : '' + } + for (var key in params) { + if (Object.prototype.hasOwnProperty.call(params, key)) { + for ( + var value = params[key], + outputValues = Array.isArray(value) ? value : [value], + i = 0; + i < outputValues.length; + i++ + ) { + var outputValue = outputValues[i] + null != outputValue && + (currentString || (currentString = prefix), + (currentString += + (currentString.length > prefix.length ? '&' : '') + + encodeURIComponent(key) + + '=' + + encodeURIComponent(String(outputValue)))) + } + } + } + return currentString +} +goog.html.SafeUrl = function (value, token) { + if (goog.DEBUG && token !== goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_) { + throw Error('SafeUrl is not meant to be built directly') + } + this.privateDoNotAccessOrElseSafeUrlWrappedValue_ = value +} +goog.html.SafeUrl.prototype.toString = function () { + return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString() +} +goog.html.SafeUrl.INNOCUOUS_STRING = 'about:invalid#zClosurez' +goog.html.SafeUrl.prototype.implementsGoogStringTypedString = !0 goog.html.SafeUrl.prototype.getTypedStringValue = function () { - return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString(); -}; + return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString() +} goog.html.SafeUrl.unwrap = function (safeUrl) { - if ( - safeUrl instanceof goog.html.SafeUrl && - safeUrl.constructor === goog.html.SafeUrl - ) { - return safeUrl.privateDoNotAccessOrElseSafeUrlWrappedValue_; - } - goog.asserts.fail( - "expected object of type SafeUrl, got '" + - safeUrl + - "' of type " + - goog.typeOf(safeUrl) - ); - return "type_error:SafeUrl"; -}; + if ( + safeUrl instanceof goog.html.SafeUrl && + safeUrl.constructor === goog.html.SafeUrl + ) { + return safeUrl.privateDoNotAccessOrElseSafeUrlWrappedValue_ + } + goog.asserts.fail( + "expected object of type SafeUrl, got '" + + safeUrl + + "' of type " + + goog.typeOf(safeUrl) + ) + return 'type_error:SafeUrl' +} goog.html.SafeUrl.fromConstant = function (url) { - var str = goog.string.Const.unwrap(url); - if (goog.DEBUG && "javascript:" === goog.html.SafeUrl.extractScheme(str)) { - throw Error("Building a SafeUrl with a javascript scheme is not supported"); - } - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(str); -}; + var str = goog.string.Const.unwrap(url) + if (goog.DEBUG && 'javascript:' === goog.html.SafeUrl.extractScheme(str)) { + throw Error( + 'Building a SafeUrl with a javascript scheme is not supported' + ) + } + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(str) +} goog.html.SAFE_MIME_TYPE_PATTERN_ = RegExp( - '^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$', - "i" -); + '^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$', + 'i' +) goog.html.SafeUrl.isSafeMimeType = function (mimeType) { - return goog.html.SAFE_MIME_TYPE_PATTERN_.test(mimeType); -}; + return goog.html.SAFE_MIME_TYPE_PATTERN_.test(mimeType) +} goog.html.SafeUrl.fromBlob = function (blob) { - var url = goog.html.SafeUrl.isSafeMimeType(blob.type) - ? goog.fs.url.createObjectUrl(blob) - : goog.html.SafeUrl.INNOCUOUS_STRING; - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url); -}; + var url = goog.html.SafeUrl.isSafeMimeType(blob.type) + ? goog.fs.url.createObjectUrl(blob) + : goog.html.SafeUrl.INNOCUOUS_STRING + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) +} goog.html.SafeUrl.revokeObjectUrl = function (safeUrl) { - var url = safeUrl.getTypedStringValue(); - url !== goog.html.SafeUrl.INNOCUOUS_STRING && - goog.fs.url.revokeObjectUrl(url); -}; + var url = safeUrl.getTypedStringValue() + url !== goog.html.SafeUrl.INNOCUOUS_STRING && + goog.fs.url.revokeObjectUrl(url) +} goog.html.SafeUrl.fromMediaSource = function (mediaSource) { - goog.asserts.assert( - "MediaSource" in goog.global, - "No support for MediaSource" - ); - var url = - mediaSource instanceof MediaSource - ? goog.fs.url.createObjectUrl(mediaSource) - : goog.html.SafeUrl.INNOCUOUS_STRING; - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url); -}; -goog.html.DATA_URL_PATTERN_ = /^data:(.*);base64,[a-z0-9+\/]+=*$/i; + goog.asserts.assert( + 'MediaSource' in goog.global, + 'No support for MediaSource' + ) + var url = + mediaSource instanceof MediaSource + ? goog.fs.url.createObjectUrl(mediaSource) + : goog.html.SafeUrl.INNOCUOUS_STRING + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) +} +goog.html.DATA_URL_PATTERN_ = /^data:(.*);base64,[a-z0-9+\/]+=*$/i goog.html.SafeUrl.tryFromDataUrl = function (dataUrl) { - dataUrl = String(dataUrl); - var filteredDataUrl = dataUrl.replace(/(%0A|%0D)/g, ""); - return filteredDataUrl.match(goog.html.DATA_URL_PATTERN_) - ? goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - filteredDataUrl - ) - : null; -}; + dataUrl = String(dataUrl) + var filteredDataUrl = dataUrl.replace(/(%0A|%0D)/g, '') + return filteredDataUrl.match(goog.html.DATA_URL_PATTERN_) + ? goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + filteredDataUrl + ) + : null +} goog.html.SafeUrl.fromDataUrl = function (dataUrl) { - return ( - goog.html.SafeUrl.tryFromDataUrl(dataUrl) || goog.html.SafeUrl.INNOCUOUS_URL - ); -}; + return ( + goog.html.SafeUrl.tryFromDataUrl(dataUrl) || + goog.html.SafeUrl.INNOCUOUS_URL + ) +} goog.html.SafeUrl.fromTelUrl = function (telUrl) { - goog.string.internal.caseInsensitiveStartsWith(telUrl, "tel:") || - (telUrl = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - telUrl - ); -}; + goog.string.internal.caseInsensitiveStartsWith(telUrl, 'tel:') || + (telUrl = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + telUrl + ) +} goog.html.SIP_URL_PATTERN_ = RegExp( - "^sip[s]?:[+a-z0-9_.!$%&'*\\/=^`{|}~-]+@([a-z0-9-]+\\.)+[a-z0-9]{2,63}$", - "i" -); + "^sip[s]?:[+a-z0-9_.!$%&'*\\/=^`{|}~-]+@([a-z0-9-]+\\.)+[a-z0-9]{2,63}$", + 'i' +) goog.html.SafeUrl.fromSipUrl = function (sipUrl) { - goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(sipUrl)) || - (sipUrl = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - sipUrl - ); -}; + goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(sipUrl)) || + (sipUrl = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + sipUrl + ) +} goog.html.SafeUrl.fromFacebookMessengerUrl = function (facebookMessengerUrl) { - goog.string.internal.caseInsensitiveStartsWith( - facebookMessengerUrl, - "fb-messenger://share" - ) || (facebookMessengerUrl = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - facebookMessengerUrl - ); -}; + goog.string.internal.caseInsensitiveStartsWith( + facebookMessengerUrl, + 'fb-messenger://share' + ) || (facebookMessengerUrl = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + facebookMessengerUrl + ) +} goog.html.SafeUrl.fromWhatsAppUrl = function (whatsAppUrl) { - goog.string.internal.caseInsensitiveStartsWith( - whatsAppUrl, - "whatsapp://send" - ) || (whatsAppUrl = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - whatsAppUrl - ); -}; + goog.string.internal.caseInsensitiveStartsWith( + whatsAppUrl, + 'whatsapp://send' + ) || (whatsAppUrl = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + whatsAppUrl + ) +} goog.html.SafeUrl.fromSmsUrl = function (smsUrl) { - (goog.string.internal.caseInsensitiveStartsWith(smsUrl, "sms:") && - goog.html.SafeUrl.isSmsUrlBodyValid_(smsUrl)) || - (smsUrl = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - smsUrl - ); -}; + ;(goog.string.internal.caseInsensitiveStartsWith(smsUrl, 'sms:') && + goog.html.SafeUrl.isSmsUrlBodyValid_(smsUrl)) || + (smsUrl = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + smsUrl + ) +} goog.html.SafeUrl.isSmsUrlBodyValid_ = function (smsUrl) { - var hash = smsUrl.indexOf("#"); - 0 < hash && (smsUrl = smsUrl.substring(0, hash)); - var bodyParams = smsUrl.match(/[?&]body=/gi); - if (!bodyParams) { - return !0; - } - if (1 < bodyParams.length) { - return !1; - } - var bodyValue = smsUrl.match(/[?&]body=([^&]*)/)[1]; - if (!bodyValue) { - return !0; - } - try { - decodeURIComponent(bodyValue); - } catch (error) { - return !1; - } - return /^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(bodyValue); -}; + var hash = smsUrl.indexOf('#') + 0 < hash && (smsUrl = smsUrl.substring(0, hash)) + var bodyParams = smsUrl.match(/[?&]body=/gi) + if (!bodyParams) { + return !0 + } + if (1 < bodyParams.length) { + return !1 + } + var bodyValue = smsUrl.match(/[?&]body=([^&]*)/)[1] + if (!bodyValue) { + return !0 + } + try { + decodeURIComponent(bodyValue) + } catch (error) { + return !1 + } + return /^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(bodyValue) +} goog.html.SafeUrl.fromSshUrl = function (sshUrl) { - goog.string.internal.caseInsensitiveStartsWith(sshUrl, "ssh://") || - (sshUrl = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - sshUrl - ); -}; + goog.string.internal.caseInsensitiveStartsWith(sshUrl, 'ssh://') || + (sshUrl = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + sshUrl + ) +} goog.html.SafeUrl.sanitizeChromeExtensionUrl = function (url, extensionId) { - return goog.html.SafeUrl.sanitizeExtensionUrl_( - /^chrome-extension:\/\/([^\/]+)\//, - url, - extensionId - ); -}; + return goog.html.SafeUrl.sanitizeExtensionUrl_( + /^chrome-extension:\/\/([^\/]+)\//, + url, + extensionId + ) +} goog.html.SafeUrl.sanitizeFirefoxExtensionUrl = function (url, extensionId) { - return goog.html.SafeUrl.sanitizeExtensionUrl_( - /^moz-extension:\/\/([^\/]+)\//, - url, - extensionId - ); -}; + return goog.html.SafeUrl.sanitizeExtensionUrl_( + /^moz-extension:\/\/([^\/]+)\//, + url, + extensionId + ) +} goog.html.SafeUrl.sanitizeEdgeExtensionUrl = function (url, extensionId) { - return goog.html.SafeUrl.sanitizeExtensionUrl_( - /^ms-browser-extension:\/\/([^\/]+)\//, - url, - extensionId - ); -}; + return goog.html.SafeUrl.sanitizeExtensionUrl_( + /^ms-browser-extension:\/\/([^\/]+)\//, + url, + extensionId + ) +} goog.html.SafeUrl.sanitizeExtensionUrl_ = function (scheme, url, extensionId) { - var matches = scheme.exec(url); - if (matches) { - var extractedExtensionId = matches[1]; - -1 == - (extensionId instanceof goog.string.Const - ? [goog.string.Const.unwrap(extensionId)] - : extensionId.map(function unwrap(x) { - return goog.string.Const.unwrap(x); - }) - ).indexOf(extractedExtensionId) && - (url = goog.html.SafeUrl.INNOCUOUS_STRING); - } else { - url = goog.html.SafeUrl.INNOCUOUS_STRING; - } - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url); -}; + var matches = scheme.exec(url) + if (matches) { + var extractedExtensionId = matches[1] + ;-1 == + (extensionId instanceof goog.string.Const + ? [goog.string.Const.unwrap(extensionId)] + : extensionId.map(function unwrap(x) { + return goog.string.Const.unwrap(x) + }) + ).indexOf(extractedExtensionId) && + (url = goog.html.SafeUrl.INNOCUOUS_STRING) + } else { + url = goog.html.SafeUrl.INNOCUOUS_STRING + } + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) +} goog.html.SafeUrl.fromTrustedResourceUrl = function (trustedResourceUrl) { - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - goog.html.TrustedResourceUrl.unwrap(trustedResourceUrl) - ); -}; -goog.html.SAFE_URL_PATTERN_ = - /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i; + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + goog.html.TrustedResourceUrl.unwrap(trustedResourceUrl) + ) +} +goog.html.SAFE_URL_PATTERN_ = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i goog.html.SafeUrl.trySanitize = function (url) { - if (url instanceof goog.html.SafeUrl) { - return url; - } - url = - "object" == typeof url && url.implementsGoogStringTypedString - ? url.getTypedStringValue() - : String(url); - return goog.html.SAFE_URL_PATTERN_.test(url) - ? goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) - : goog.html.SafeUrl.tryFromDataUrl(url); -}; + if (url instanceof goog.html.SafeUrl) { + return url + } + url = + 'object' == typeof url && url.implementsGoogStringTypedString + ? url.getTypedStringValue() + : String(url) + return goog.html.SAFE_URL_PATTERN_.test(url) + ? goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) + : goog.html.SafeUrl.tryFromDataUrl(url) +} goog.html.SafeUrl.sanitize = function (url) { - return goog.html.SafeUrl.trySanitize(url) || goog.html.SafeUrl.INNOCUOUS_URL; -}; + return goog.html.SafeUrl.trySanitize(url) || goog.html.SafeUrl.INNOCUOUS_URL +} goog.html.SafeUrl.sanitizeAssertUnchanged = function (url, opt_allowDataUrl) { - if (url instanceof goog.html.SafeUrl) { - return url; - } - url = - "object" == typeof url && url.implementsGoogStringTypedString - ? url.getTypedStringValue() - : String(url); - if (opt_allowDataUrl && /^data:/i.test(url)) { - var safeUrl = goog.html.SafeUrl.fromDataUrl(url); - if (safeUrl.getTypedStringValue() == url) { - return safeUrl; - } - } - goog.asserts.assert( - goog.html.SAFE_URL_PATTERN_.test(url), - "%s does not match the safe URL pattern", - url - ) || (url = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url); -}; -goog.html.SafeUrl.ASSUME_IMPLEMENTS_URL_API_GOOG = 2020 <= goog.FEATURESET_YEAR; + if (url instanceof goog.html.SafeUrl) { + return url + } + url = + 'object' == typeof url && url.implementsGoogStringTypedString + ? url.getTypedStringValue() + : String(url) + if (opt_allowDataUrl && /^data:/i.test(url)) { + var safeUrl = goog.html.SafeUrl.fromDataUrl(url) + if (safeUrl.getTypedStringValue() == url) { + return safeUrl + } + } + goog.asserts.assert( + goog.html.SAFE_URL_PATTERN_.test(url), + '%s does not match the safe URL pattern', + url + ) || (url = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) +} +goog.html.SafeUrl.ASSUME_IMPLEMENTS_URL_API_GOOG = 2020 <= goog.FEATURESET_YEAR goog.html.SafeUrl.supportsURLAPI = (function () { - if (goog.html.SafeUrl.ASSUME_IMPLEMENTS_URL_API_GOOG) { - return !0; - } - try { - return new URL("s://g"), !0; - } catch (e) { - return !1; - } -})(); + if (goog.html.SafeUrl.ASSUME_IMPLEMENTS_URL_API_GOOG) { + return !0 + } + try { + return new URL('s://g'), !0 + } catch (e) { + return !1 + } +})() goog.html.SafeUrl.legacyExtractScheme = function (url) { - var aTag = document.createElement("a"); - try { - aTag.href = url; - } catch (e) { - return; - } - var protocol = aTag.protocol; - return ":" === protocol || "" === protocol ? "https:" : protocol; -}; + var aTag = document.createElement('a') + try { + aTag.href = url + } catch (e) { + return + } + var protocol = aTag.protocol + return ':' === protocol || '' === protocol ? 'https:' : protocol +} goog.html.SafeUrl.extractScheme = function (url) { - if (!goog.html.SafeUrl.supportsURLAPI) { - return goog.html.SafeUrl.legacyExtractScheme(url); - } - try { - var parsedUrl = new URL(url); - } catch (e) { - return "https:"; - } - return parsedUrl.protocol; -}; + if (!goog.html.SafeUrl.supportsURLAPI) { + return goog.html.SafeUrl.legacyExtractScheme(url) + } + try { + var parsedUrl = new URL(url) + } catch (e) { + return 'https:' + } + return parsedUrl.protocol +} goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged = function (url) { - if (url instanceof goog.html.SafeUrl) { - return url; - } - url = - "object" == typeof url && url.implementsGoogStringTypedString - ? url.getTypedStringValue() - : String(url); - var parsedScheme = goog.html.SafeUrl.extractScheme(url); - goog.asserts.assert( - "javascript:" !== parsedScheme, - "%s is a javascript: URL", - url - ) || (url = goog.html.SafeUrl.INNOCUOUS_STRING); - return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url); -}; -goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_ = {}; + if (url instanceof goog.html.SafeUrl) { + return url + } + url = + 'object' == typeof url && url.implementsGoogStringTypedString + ? url.getTypedStringValue() + : String(url) + var parsedScheme = goog.html.SafeUrl.extractScheme(url) + goog.asserts.assert( + 'javascript:' !== parsedScheme, + '%s is a javascript: URL', + url + ) || (url = goog.html.SafeUrl.INNOCUOUS_STRING) + return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url) +} +goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_ = {} goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse = function ( - url + url ) { - return new goog.html.SafeUrl( - url, - goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_ - ); -}; + return new goog.html.SafeUrl( + url, + goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_ + ) +} goog.html.SafeUrl.INNOCUOUS_URL = - goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - goog.html.SafeUrl.INNOCUOUS_STRING - ); + goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + goog.html.SafeUrl.INNOCUOUS_STRING + ) goog.html.SafeUrl.ABOUT_BLANK = - goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( - "about:blank" - ); + goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse( + 'about:blank' + ) var module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE = {}, - module$contents$goog$html$SafeStyle_SafeStyle = function (value, token) { - if ( - goog.DEBUG && - token !== module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE - ) { - throw Error("SafeStyle is not meant to be built directly"); + module$contents$goog$html$SafeStyle_SafeStyle = function (value, token) { + if ( + goog.DEBUG && + token !== + module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE + ) { + throw Error('SafeStyle is not meant to be built directly') + } + this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = value + this.implementsGoogStringTypedString = !0 } - this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = value; - this.implementsGoogStringTypedString = !0; - }; module$contents$goog$html$SafeStyle_SafeStyle.fromConstant = function (style) { - var styleString = goog.string.Const.unwrap(style); - if (0 === styleString.length) { - return module$contents$goog$html$SafeStyle_SafeStyle.EMPTY; - } - (0, goog.asserts.assert)( - (0, goog.string.internal.endsWith)(styleString, ";"), - "Last character of style string is not ';': " + styleString - ); - (0, goog.asserts.assert)( - (0, goog.string.internal.contains)(styleString, ":"), - "Style string must contain at least one ':', to specify a \"name: value\" pair: " + - styleString - ); - return module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( - styleString - ); -}; + var styleString = goog.string.Const.unwrap(style) + if (0 === styleString.length) { + return module$contents$goog$html$SafeStyle_SafeStyle.EMPTY + } + ;(0, goog.asserts.assert)( + (0, goog.string.internal.endsWith)(styleString, ';'), + "Last character of style string is not ';': " + styleString + ) + ;(0, goog.asserts.assert)( + (0, goog.string.internal.contains)(styleString, ':'), + 'Style string must contain at least one \':\', to specify a "name: value" pair: ' + + styleString + ) + return module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( + styleString + ) +} module$contents$goog$html$SafeStyle_SafeStyle.prototype.getTypedStringValue = - function () { - return this.privateDoNotAccessOrElseSafeStyleWrappedValue_; - }; + function () { + return this.privateDoNotAccessOrElseSafeStyleWrappedValue_ + } module$contents$goog$html$SafeStyle_SafeStyle.prototype.toString = function () { - return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString(); -}; + return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString() +} module$contents$goog$html$SafeStyle_SafeStyle.unwrap = function (safeStyle) { - if ( - safeStyle instanceof module$contents$goog$html$SafeStyle_SafeStyle && - safeStyle.constructor === module$contents$goog$html$SafeStyle_SafeStyle - ) { - return safeStyle.privateDoNotAccessOrElseSafeStyleWrappedValue_; - } - (0, goog.asserts.fail)( - "expected object of type SafeStyle, got '" + - safeStyle + - "' of type " + - goog.typeOf(safeStyle) - ); - return "type_error:SafeStyle"; -}; + if ( + safeStyle instanceof module$contents$goog$html$SafeStyle_SafeStyle && + safeStyle.constructor === module$contents$goog$html$SafeStyle_SafeStyle + ) { + return safeStyle.privateDoNotAccessOrElseSafeStyleWrappedValue_ + } + ;(0, goog.asserts.fail)( + "expected object of type SafeStyle, got '" + + safeStyle + + "' of type " + + goog.typeOf(safeStyle) + ) + return 'type_error:SafeStyle' +} module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse = - function (style) { - return new module$contents$goog$html$SafeStyle_SafeStyle( - style, - module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE - ); - }; + function (style) { + return new module$contents$goog$html$SafeStyle_SafeStyle( + style, + module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE + ) + } module$contents$goog$html$SafeStyle_SafeStyle.create = function (map) { - var style = "", - name; - for (name in map) { - if (Object.prototype.hasOwnProperty.call(map, name)) { - if (!/^[-_a-zA-Z0-9]+$/.test(name)) { - throw Error("Name allows only [-_a-zA-Z0-9], got: " + name); - } - var value = map[name]; - null != value && - ((value = Array.isArray(value) - ? value - .map(module$contents$goog$html$SafeStyle_sanitizePropertyValue) - .join(" ") - : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value)), - (style += name + ":" + value + ";")); - } - } - return style - ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( - style - ) - : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY; -}; + var style = '', + name + for (name in map) { + if (Object.prototype.hasOwnProperty.call(map, name)) { + if (!/^[-_a-zA-Z0-9]+$/.test(name)) { + throw Error('Name allows only [-_a-zA-Z0-9], got: ' + name) + } + var value = map[name] + null != value && + ((value = Array.isArray(value) + ? value + .map( + module$contents$goog$html$SafeStyle_sanitizePropertyValue + ) + .join(' ') + : module$contents$goog$html$SafeStyle_sanitizePropertyValue( + value + )), + (style += name + ':' + value + ';')) + } + } + return style + ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( + style + ) + : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY +} module$contents$goog$html$SafeStyle_SafeStyle.concat = function (var_args) { - var style = "", - addArgument = function (argument) { - Array.isArray(argument) - ? argument.forEach(addArgument) - : (style += - module$contents$goog$html$SafeStyle_SafeStyle.unwrap(argument)); - }; - Array.prototype.forEach.call(arguments, addArgument); - return style - ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( - style - ) - : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY; -}; + var style = '', + addArgument = function (argument) { + Array.isArray(argument) + ? argument.forEach(addArgument) + : (style += + module$contents$goog$html$SafeStyle_SafeStyle.unwrap( + argument + )) + } + Array.prototype.forEach.call(arguments, addArgument) + return style + ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( + style + ) + : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY +} module$contents$goog$html$SafeStyle_SafeStyle.EMPTY = - module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( - "" - ); -module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING = "zClosurez"; + module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse( + '' + ) +module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING = 'zClosurez' function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) { - if (value instanceof goog.html.SafeUrl) { - return ( - 'url("' + - goog.html.SafeUrl.unwrap(value) - .replace(/+~[\]()=\\^$|]+$/.test(selectorToCheck)) { - throw Error( - "Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + - selector - ); - } - if ( - !module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_( - selectorToCheck - ) - ) { - throw Error("() and [] in selector must be balanced, got: " + selector); - } - style instanceof module$contents$goog$html$SafeStyle_SafeStyle || - (style = module$contents$goog$html$SafeStyle_SafeStyle.create(style)); - var styleSheet = - selector + - "{" + - module$contents$goog$html$SafeStyle_SafeStyle - .unwrap(style) - .replace(/+~[\]()=\\^$|]+$/.test(selectorToCheck)) { + throw Error( + 'Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: ' + + selector + ) + } + if ( + !module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_( + selectorToCheck + ) ) { - var ch = s[i]; - if (brackets[ch]) { - expectedBrackets.push(brackets[ch]); - } else if ( - module$contents$goog$object_contains(brackets, ch) && - expectedBrackets.pop() != ch - ) { - return !1; - } + throw Error('() and [] in selector must be balanced, got: ' + selector) + } + style instanceof module$contents$goog$html$SafeStyle_SafeStyle || + (style = module$contents$goog$html$SafeStyle_SafeStyle.create(style)) + var styleSheet = + selector + + '{' + + module$contents$goog$html$SafeStyle_SafeStyle + .unwrap(style) + .replace(/." - : "" - ); - } - if ( - tagName.toUpperCase() in - module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES - ) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? "Tag name <" + tagName + "> is not allowed for SafeHtml." - : "" - ); - } -}; + if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Invalid tag name <' + tagName + '>.' + : '' + ) + } + if ( + tagName.toUpperCase() in + module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES + ) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Tag name <' + tagName + '> is not allowed for SafeHtml.' + : '' + ) + } +} module$contents$goog$html$SafeHtml_SafeHtml.createIframe = function ( - src, - srcdoc, - attributes, - content -) { - src && goog.html.TrustedResourceUrl.unwrap(src); - var fixedAttributes = {}; - fixedAttributes.src = src || null; - fixedAttributes.srcdoc = - srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc); - var combinedAttrs = - module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( - fixedAttributes, - { sandbox: "" }, - attributes - ); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( - "iframe", - combinedAttrs, + src, + srcdoc, + attributes, content - ); -}; -module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function ( - src, - srcdoc, - attributes, - content ) { - if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? "The browser does not support sandboxed iframes." - : "" - ); - } - var fixedAttributes = {}; - fixedAttributes.src = src - ? goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(src)) - : null; - fixedAttributes.srcdoc = srcdoc || null; - fixedAttributes.sandbox = ""; - var combinedAttrs = - module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( - fixedAttributes, - {}, - attributes - ); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( - "iframe", - combinedAttrs, + src && goog.html.TrustedResourceUrl.unwrap(src) + var fixedAttributes = {} + fixedAttributes.src = src || null + fixedAttributes.srcdoc = + srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc) + var combinedAttrs = + module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( + fixedAttributes, + { sandbox: '' }, + attributes + ) + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( + 'iframe', + combinedAttrs, + content + ) +} +module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function ( + src, + srcdoc, + attributes, content - ); -}; +) { + if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'The browser does not support sandboxed iframes.' + : '' + ) + } + var fixedAttributes = {} + fixedAttributes.src = src + ? goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(src)) + : null + fixedAttributes.srcdoc = srcdoc || null + fixedAttributes.sandbox = '' + var combinedAttrs = + module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( + fixedAttributes, + {}, + attributes + ) + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( + 'iframe', + combinedAttrs, + content + ) +} module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe = function () { - return ( - goog.global.HTMLIFrameElement && - "sandbox" in goog.global.HTMLIFrameElement.prototype - ); -}; + return ( + goog.global.HTMLIFrameElement && + 'sandbox' in goog.global.HTMLIFrameElement.prototype + ) +} module$contents$goog$html$SafeHtml_SafeHtml.createScriptSrc = function ( - src, - attributes -) { - goog.html.TrustedResourceUrl.unwrap(src); - var combinedAttrs = - module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( - { src: src }, - {}, - attributes - ); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( - "script", - combinedAttrs - ); -}; + src, + attributes +) { + goog.html.TrustedResourceUrl.unwrap(src) + var combinedAttrs = + module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( + { src: src }, + {}, + attributes + ) + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( + 'script', + combinedAttrs + ) +} module$contents$goog$html$SafeHtml_SafeHtml.createScript = function ( - script, - attributes -) { - for (var attr in attributes) { - if (Object.prototype.hasOwnProperty.call(attributes, attr)) { - var attrLower = attr.toLowerCase(); - if ( - "language" == attrLower || - "src" == attrLower || - "text" == attrLower - ) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'Cannot set "' + attrLower + '" attribute' - : "" - ); - } + script, + attributes +) { + for (var attr in attributes) { + if (Object.prototype.hasOwnProperty.call(attributes, attr)) { + var attrLower = attr.toLowerCase() + if ( + 'language' == attrLower || + 'src' == attrLower || + 'text' == attrLower + ) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Cannot set "' + attrLower + '" attribute' + : '' + ) + } + } } - } - var content = ""; - script = module$contents$goog$array_concat(script); - for (var i = 0; i < script.length; i++) { - content += module$contents$goog$html$SafeScript_SafeScript.unwrap( - script[i] - ); - } - var htmlContent = - module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( - content - ); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( - "script", - attributes, - htmlContent - ); -}; + var content = '' + script = module$contents$goog$array_concat(script) + for (var i = 0; i < script.length; i++) { + content += module$contents$goog$html$SafeScript_SafeScript.unwrap( + script[i] + ) + } + var htmlContent = + module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( + content + ) + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( + 'script', + attributes, + htmlContent + ) +} module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function ( - styleSheet, - attributes -) { - var combinedAttrs = - module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( - { type: "text/css" }, - {}, - attributes - ), - content = ""; - styleSheet = module$contents$goog$array_concat(styleSheet); - for (var i = 0; i < styleSheet.length; i++) { - content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap( - styleSheet[i] - ); - } - var htmlContent = - module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( - content - ); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( - "style", - combinedAttrs, - htmlContent - ); -}; + styleSheet, + attributes +) { + var combinedAttrs = + module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes( + { type: 'text/css' }, + {}, + attributes + ), + content = '' + styleSheet = module$contents$goog$array_concat(styleSheet) + for (var i = 0; i < styleSheet.length; i++) { + content += + module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap( + styleSheet[i] + ) + } + var htmlContent = + module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( + content + ) + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( + 'style', + combinedAttrs, + htmlContent + ) +} module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh = function ( - url, - secs -) { - var unwrappedUrl = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(url)); - (module$contents$goog$labs$userAgent$browser_matchIE() || - module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && - goog.string.internal.contains(unwrappedUrl, ";") && - (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, "%27") + "'"); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( - "meta", - { "http-equiv": "refresh", content: (secs || 0) + "; url=" + unwrappedUrl } - ); -}; + url, + secs +) { + var unwrappedUrl = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(url)) + ;(module$contents$goog$labs$userAgent$browser_matchIE() || + module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && + goog.string.internal.contains(unwrappedUrl, ';') && + (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, '%27') + "'") + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse( + 'meta', + { + 'http-equiv': 'refresh', + content: (secs || 0) + '; url=' + unwrappedUrl, + } + ) +} module$contents$goog$html$SafeHtml_SafeHtml.join = function (separator, parts) { - var separatorHtml = - module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(separator), - content = [], - addArgument = function (argument) { - if (Array.isArray(argument)) { - argument.forEach(addArgument); - } else { - var html = - module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument); - content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)); - } - }; - parts.forEach(addArgument); - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( - content.join( - module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml) - ) - ); -}; + var separatorHtml = + module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(separator), + content = [], + addArgument = function (argument) { + if (Array.isArray(argument)) { + argument.forEach(addArgument) + } else { + var html = + module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape( + argument + ) + content.push( + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + ) + } + } + parts.forEach(addArgument) + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( + content.join( + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml) + ) + ) +} module$contents$goog$html$SafeHtml_SafeHtml.concat = function (var_args) { - return module$contents$goog$html$SafeHtml_SafeHtml.join( - module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, - Array.prototype.slice.call(arguments) - ); -}; + return module$contents$goog$html$SafeHtml_SafeHtml.join( + module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, + Array.prototype.slice.call(arguments) + ) +} module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse = - function (html) { - var noinlineHtml = html, - policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), - trustedHtml = policy ? policy.createHTML(noinlineHtml) : noinlineHtml; - return new module$contents$goog$html$SafeHtml_SafeHtml( - trustedHtml, - module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE - ); - }; + function (html) { + var noinlineHtml = html, + policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), + trustedHtml = policy + ? policy.createHTML(noinlineHtml) + : noinlineHtml + return new module$contents$goog$html$SafeHtml_SafeHtml( + trustedHtml, + module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE + ) + } module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = - function (tagName, attributes, content) { - var result = - "<" + - tagName + - module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes( - tagName, - attributes - ); - null == content - ? (content = []) - : Array.isArray(content) || (content = [content]); - if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) { - goog.asserts.assert( - !content.length, - "Void tag <" + tagName + "> does not allow content." - ), - (result += ">"); - } else { - var html = module$contents$goog$html$SafeHtml_SafeHtml.concat(content); - result += - ">" + - module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + - ""; + function (tagName, attributes, content) { + var result = + '<' + + tagName + + module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes( + tagName, + attributes + ) + null == content + ? (content = []) + : Array.isArray(content) || (content = [content]) + if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) { + goog.asserts.assert( + !content.length, + 'Void tag <' + tagName + '> does not allow content.' + ), + (result += '>') + } else { + var html = + module$contents$goog$html$SafeHtml_SafeHtml.concat(content) + result += + '>' + + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + + '' + } + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( + result + ) } - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( - result - ); - }; module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes = function ( - tagName, - attributes -) { - var result = ""; - if (attributes) { - for (var name in attributes) { - if (Object.prototype.hasOwnProperty.call(attributes, name)) { - if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'Invalid attribute name "' + name + '".' - : "" - ); + tagName, + attributes +) { + var result = '' + if (attributes) { + for (var name in attributes) { + if (Object.prototype.hasOwnProperty.call(attributes, name)) { + if ( + !module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test( + name + ) + ) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Invalid attribute name "' + name + '".' + : '' + ) + } + var value = attributes[name] + null != value && + (result += + ' ' + + module$contents$goog$html$SafeHtml_getAttrNameAndValue( + tagName, + name, + value + )) + } } - var value = attributes[name]; - null != value && - (result += - " " + - module$contents$goog$html$SafeHtml_getAttrNameAndValue( - tagName, - name, - value - )); - } } - } - return result; -}; + return result +} module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes = function ( - fixedAttributes, - defaultAttributes, - attributes -) { - var combinedAttributes = {}, - name; - for (name in fixedAttributes) { - Object.prototype.hasOwnProperty.call(fixedAttributes, name) && - (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), - (combinedAttributes[name] = fixedAttributes[name])); - } - for (var name$jscomp$0 in defaultAttributes) { - Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && - (goog.asserts.assert( - name$jscomp$0.toLowerCase() == name$jscomp$0, - "Must be lower case" - ), - (combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0])); - } - if (attributes) { - for (var name$jscomp$1 in attributes) { - if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) { - var nameLower = name$jscomp$1.toLowerCase(); - if (nameLower in fixedAttributes) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'Cannot override "' + - nameLower + - '" attribute, got "' + - name$jscomp$1 + - '" with value "' + - attributes[name$jscomp$1] + - '"' - : "" - ); - } - nameLower in defaultAttributes && delete combinedAttributes[nameLower]; - combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1]; - } + fixedAttributes, + defaultAttributes, + attributes +) { + var combinedAttributes = {}, + name + for (name in fixedAttributes) { + Object.prototype.hasOwnProperty.call(fixedAttributes, name) && + (goog.asserts.assert( + name.toLowerCase() == name, + 'Must be lower case' + ), + (combinedAttributes[name] = fixedAttributes[name])) + } + for (var name$jscomp$0 in defaultAttributes) { + Object.prototype.hasOwnProperty.call( + defaultAttributes, + name$jscomp$0 + ) && + (goog.asserts.assert( + name$jscomp$0.toLowerCase() == name$jscomp$0, + 'Must be lower case' + ), + (combinedAttributes[name$jscomp$0] = + defaultAttributes[name$jscomp$0])) + } + if (attributes) { + for (var name$jscomp$1 in attributes) { + if ( + Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1) + ) { + var nameLower = name$jscomp$1.toLowerCase() + if (nameLower in fixedAttributes) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Cannot override "' + + nameLower + + '" attribute, got "' + + name$jscomp$1 + + '" with value "' + + attributes[name$jscomp$1] + + '"' + : '' + ) + } + nameLower in defaultAttributes && + delete combinedAttributes[nameLower] + combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1] + } + } } - } - return combinedAttributes; -}; -module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG; -module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0; + return combinedAttributes +} +module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG +module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0 module$contents$goog$html$SafeHtml_SafeHtml.from = - module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape; + module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, - module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = { - action: !0, - cite: !0, - data: !0, - formaction: !0, - href: !0, - manifest: !0, - poster: !0, - src: !0, - }, - module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = - module$contents$goog$object_createSet( - goog.dom.TagName.APPLET, - goog.dom.TagName.BASE, - goog.dom.TagName.EMBED, - goog.dom.TagName.IFRAME, - goog.dom.TagName.LINK, - goog.dom.TagName.MATH, - goog.dom.TagName.META, - goog.dom.TagName.OBJECT, - goog.dom.TagName.SCRIPT, - goog.dom.TagName.STYLE, - goog.dom.TagName.SVG, - goog.dom.TagName.TEMPLATE - ); + module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = { + action: !0, + cite: !0, + data: !0, + formaction: !0, + href: !0, + manifest: !0, + poster: !0, + src: !0, + }, + module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = + module$contents$goog$object_createSet( + goog.dom.TagName.APPLET, + goog.dom.TagName.BASE, + goog.dom.TagName.EMBED, + goog.dom.TagName.IFRAME, + goog.dom.TagName.LINK, + goog.dom.TagName.MATH, + goog.dom.TagName.META, + goog.dom.TagName.OBJECT, + goog.dom.TagName.SCRIPT, + goog.dom.TagName.STYLE, + goog.dom.TagName.SVG, + goog.dom.TagName.TEMPLATE + ) function module$contents$goog$html$SafeHtml_getAttrNameAndValue( - tagName, - name, - value -) { - if (value instanceof goog.string.Const) { - value = goog.string.Const.unwrap(value); - } else if ("style" == name.toLowerCase()) { - if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) { - value = module$contents$goog$html$SafeHtml_getStyleValue(value); + tagName, + name, + value +) { + if (value instanceof goog.string.Const) { + value = goog.string.Const.unwrap(value) + } else if ('style' == name.toLowerCase()) { + if ( + module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE + ) { + value = module$contents$goog$html$SafeHtml_getStyleValue(value) + } else { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Attribute "style" not supported.' + : '' + ) + } } else { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'Attribute "style" not supported.' - : "" - ); - } - } else { - if (/^on/i.test(name)) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'Attribute "' + - name + - '" requires goog.string.Const value, "' + - value + - '" given.' - : "" - ); - } - if ( - name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES - ) { - if (value instanceof goog.html.TrustedResourceUrl) { - value = goog.html.TrustedResourceUrl.unwrap(value); - } else if (value instanceof goog.html.SafeUrl) { - value = goog.html.SafeUrl.unwrap(value); - } else if ("string" === typeof value) { - value = goog.html.SafeUrl.sanitize(value).getTypedStringValue(); - } else { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'Attribute "' + - name + - '" on tag "' + - tagName + - '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + - value + - '" given.' - : "" - ); - } + if (/^on/i.test(name)) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Attribute "' + + name + + '" requires goog.string.Const value, "' + + value + + '" given.' + : '' + ) + } + if ( + name.toLowerCase() in + module$contents$goog$html$SafeHtml_URL_ATTRIBUTES + ) { + if (value instanceof goog.html.TrustedResourceUrl) { + value = goog.html.TrustedResourceUrl.unwrap(value) + } else if (value instanceof goog.html.SafeUrl) { + value = goog.html.SafeUrl.unwrap(value) + } else if ('string' === typeof value) { + value = goog.html.SafeUrl.sanitize(value).getTypedStringValue() + } else { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'Attribute "' + + name + + '" on tag "' + + tagName + + '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + + value + + '" given.' + : '' + ) + } + } } - } - value.implementsGoogStringTypedString && - (value = value.getTypedStringValue()); - goog.asserts.assert( - "string" === typeof value || "number" === typeof value, - "String or number value expected, got " + - typeof value + - " with value: " + - value - ); - return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"'; -} -function module$contents$goog$html$SafeHtml_getStyleValue(value) { - if (!goog.isObject(value)) { - throw Error( - module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES - ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + + value.implementsGoogStringTypedString && + (value = value.getTypedStringValue()) + goog.asserts.assert( + 'string' === typeof value || 'number' === typeof value, + 'String or number value expected, got ' + typeof value + - " given: " + + ' with value: ' + value - : "" - ); - } - value instanceof module$contents$goog$html$SafeStyle_SafeStyle || - (value = module$contents$goog$html$SafeStyle_SafeStyle.create(value)); - return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value); + ) + return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"' +} +function module$contents$goog$html$SafeHtml_getStyleValue(value) { + if (!goog.isObject(value)) { + throw Error( + module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES + ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + + typeof value + + ' given: ' + + value + : '' + ) + } + value instanceof module$contents$goog$html$SafeStyle_SafeStyle || + (value = module$contents$goog$html$SafeStyle_SafeStyle.create(value)) + return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value) } module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = (function () { - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( - "" - ); -})(); + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( + '' + ) +})() module$contents$goog$html$SafeHtml_SafeHtml.EMPTY = - new module$contents$goog$html$SafeHtml_SafeHtml( - (goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML) || "", - module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE - ); + new module$contents$goog$html$SafeHtml_SafeHtml( + (goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML) || '', + module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE + ) module$contents$goog$html$SafeHtml_SafeHtml.BR = (function () { - return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( - "
" - ); -})(); -goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml; + return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse( + '
' + ) +})() +goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml /* SPDX-License-Identifier: Apache-2.0 */ var module$contents$safevalues$environment$dev_module = - module$contents$safevalues$environment$dev_module || { - id: "third_party/javascript/safevalues/environment/dev.closure.js", - }; -var module$exports$goog$html$internals = {}; + module$contents$safevalues$environment$dev_module || { + id: 'third_party/javascript/safevalues/environment/dev.closure.js', + } +var module$exports$goog$html$internals = {} module$exports$goog$html$internals.createSafeHtml = - module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse; + module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse module$exports$goog$html$internals.createSafeScript = - module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse; + module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse module$exports$goog$html$internals.createSafeStyle = - module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse; + module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse module$exports$goog$html$internals.createSafeStyleSheet = - module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse; + module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse module$exports$goog$html$internals.createSafeUrl = - goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse; + goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse module$exports$goog$html$internals.createTrustedResourceUrl = - goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse; + goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse var module$exports$safevalues$internals$html_impl = {}, - module$contents$safevalues$internals$html_impl_module = - module$contents$safevalues$internals$html_impl_module || { - id: "third_party/javascript/safevalues/internals/html_impl.closure.js", - }; + module$contents$safevalues$internals$html_impl_module = + module$contents$safevalues$internals$html_impl_module || { + id: 'third_party/javascript/safevalues/internals/html_impl.closure.js', + } module$exports$safevalues$internals$html_impl.SafeHtml = - module$contents$goog$html$SafeHtml_SafeHtml; + module$contents$goog$html$SafeHtml_SafeHtml function module$contents$safevalues$internals$html_impl_createHtmlInternal( - html + html ) { - return (0, module$exports$goog$html$internals.createSafeHtml)(html); + return (0, module$exports$goog$html$internals.createSafeHtml)(html) } module$exports$safevalues$internals$html_impl.createHtmlInternal = - module$contents$safevalues$internals$html_impl_createHtmlInternal; + module$contents$safevalues$internals$html_impl_createHtmlInternal module$exports$safevalues$internals$html_impl.EMPTY_HTML = - module$contents$goog$html$SafeHtml_SafeHtml.EMPTY; + module$contents$goog$html$SafeHtml_SafeHtml.EMPTY function module$contents$safevalues$internals$html_impl_isHtml(value) { - return value instanceof module$contents$goog$html$SafeHtml_SafeHtml; + return value instanceof module$contents$goog$html$SafeHtml_SafeHtml } module$exports$safevalues$internals$html_impl.isHtml = - module$contents$safevalues$internals$html_impl_isHtml; + module$contents$safevalues$internals$html_impl_isHtml function module$contents$safevalues$internals$html_impl_unwrapHtml(value) { - return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value); + return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value) } module$exports$safevalues$internals$html_impl.unwrapHtml = - module$contents$safevalues$internals$html_impl_unwrapHtml; + module$contents$safevalues$internals$html_impl_unwrapHtml var module$exports$safevalues$internals$resource_url_impl = {}, - module$contents$safevalues$internals$resource_url_impl_module = - module$contents$safevalues$internals$resource_url_impl_module || { - id: "third_party/javascript/safevalues/internals/resource_url_impl.closure.js", - }; + module$contents$safevalues$internals$resource_url_impl_module = + module$contents$safevalues$internals$resource_url_impl_module || { + id: 'third_party/javascript/safevalues/internals/resource_url_impl.closure.js', + } module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = - goog.html.TrustedResourceUrl; + goog.html.TrustedResourceUrl function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal( - url + url ) { - return (0, - goog.html.TrustedResourceUrl - .createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url); + return (0, + goog.html.TrustedResourceUrl + .createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url) } module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = - module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal; + module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal function module$contents$safevalues$internals$resource_url_impl_isResourceUrl( - value + value ) { - return value instanceof goog.html.TrustedResourceUrl; + return value instanceof goog.html.TrustedResourceUrl } module$exports$safevalues$internals$resource_url_impl.isResourceUrl = - module$contents$safevalues$internals$resource_url_impl_isResourceUrl; + module$contents$safevalues$internals$resource_url_impl_isResourceUrl function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl( - value + value ) { - return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value); + return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value) } module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = - module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl; + module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl var module$exports$safevalues$internals$script_impl = {}, - module$contents$safevalues$internals$script_impl_module = - module$contents$safevalues$internals$script_impl_module || { - id: "third_party/javascript/safevalues/internals/script_impl.closure.js", - }; + module$contents$safevalues$internals$script_impl_module = + module$contents$safevalues$internals$script_impl_module || { + id: 'third_party/javascript/safevalues/internals/script_impl.closure.js', + } module$exports$safevalues$internals$script_impl.SafeScript = - module$contents$goog$html$SafeScript_SafeScript; + module$contents$goog$html$SafeScript_SafeScript function module$contents$safevalues$internals$script_impl_createScriptInternal( - script + script ) { - return (0, module$exports$goog$html$internals.createSafeScript)(script); + return (0, module$exports$goog$html$internals.createSafeScript)(script) } module$exports$safevalues$internals$script_impl.createScriptInternal = - module$contents$safevalues$internals$script_impl_createScriptInternal; + module$contents$safevalues$internals$script_impl_createScriptInternal module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = - module$contents$goog$html$SafeScript_SafeScript.EMPTY; + module$contents$goog$html$SafeScript_SafeScript.EMPTY function module$contents$safevalues$internals$script_impl_isScript(value) { - return value instanceof module$contents$goog$html$SafeScript_SafeScript; + return value instanceof module$contents$goog$html$SafeScript_SafeScript } module$exports$safevalues$internals$script_impl.isScript = - module$contents$safevalues$internals$script_impl_isScript; + module$contents$safevalues$internals$script_impl_isScript function module$contents$safevalues$internals$script_impl_unwrapScript(value) { - return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript( - value - ); + return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript( + value + ) } module$exports$safevalues$internals$script_impl.unwrapScript = - module$contents$safevalues$internals$script_impl_unwrapScript; + module$contents$safevalues$internals$script_impl_unwrapScript var module$exports$safevalues$internals$style_impl = {}, - module$contents$safevalues$internals$style_impl_module = - module$contents$safevalues$internals$style_impl_module || { - id: "third_party/javascript/safevalues/internals/style_impl.closure.js", - }; + module$contents$safevalues$internals$style_impl_module = + module$contents$safevalues$internals$style_impl_module || { + id: 'third_party/javascript/safevalues/internals/style_impl.closure.js', + } module$exports$safevalues$internals$style_impl.SafeStyle = - module$contents$goog$html$SafeStyle_SafeStyle; + module$contents$goog$html$SafeStyle_SafeStyle function module$contents$safevalues$internals$style_impl_createStyleInternal( - style + style ) { - return (0, module$exports$goog$html$internals.createSafeStyle)(style); + return (0, module$exports$goog$html$internals.createSafeStyle)(style) } module$exports$safevalues$internals$style_impl.createStyleInternal = - module$contents$safevalues$internals$style_impl_createStyleInternal; + module$contents$safevalues$internals$style_impl_createStyleInternal function module$contents$safevalues$internals$style_impl_isStyle(value) { - return value instanceof module$contents$goog$html$SafeStyle_SafeStyle; + return value instanceof module$contents$goog$html$SafeStyle_SafeStyle } module$exports$safevalues$internals$style_impl.isStyle = - module$contents$safevalues$internals$style_impl_isStyle; + module$contents$safevalues$internals$style_impl_isStyle function module$contents$safevalues$internals$style_impl_unwrapStyle(value) { - return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value); + return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value) } module$exports$safevalues$internals$style_impl.unwrapStyle = - module$contents$safevalues$internals$style_impl_unwrapStyle; + module$contents$safevalues$internals$style_impl_unwrapStyle var module$exports$safevalues$internals$style_sheet_impl = {}, - module$contents$safevalues$internals$style_sheet_impl_module = - module$contents$safevalues$internals$style_sheet_impl_module || { - id: "third_party/javascript/safevalues/internals/style_sheet_impl.closure.js", - }; + module$contents$safevalues$internals$style_sheet_impl_module = + module$contents$safevalues$internals$style_sheet_impl_module || { + id: 'third_party/javascript/safevalues/internals/style_sheet_impl.closure.js', + } module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = - module$contents$goog$html$SafeStyleSheet_SafeStyleSheet; + module$contents$goog$html$SafeStyleSheet_SafeStyleSheet function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal( - styleSheet -) { - return (0, module$exports$goog$html$internals.createSafeStyleSheet)( styleSheet - ); +) { + return (0, module$exports$goog$html$internals.createSafeStyleSheet)( + styleSheet + ) } module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = - module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal; + module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet( - value + value ) { - return ( - value instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet - ); + return ( + value instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet + ) } module$exports$safevalues$internals$style_sheet_impl.isStyleSheet = - module$contents$safevalues$internals$style_sheet_impl_isStyleSheet; + module$contents$safevalues$internals$style_sheet_impl_isStyleSheet function module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet( - value + value ) { - return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(value); + return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(value) } module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = - module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet; + module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet var module$exports$safevalues$internals$url_impl = {}, - module$contents$safevalues$internals$url_impl_module = - module$contents$safevalues$internals$url_impl_module || { - id: "third_party/javascript/safevalues/internals/url_impl.closure.js", - }; -module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl; + module$contents$safevalues$internals$url_impl_module = + module$contents$safevalues$internals$url_impl_module || { + id: 'third_party/javascript/safevalues/internals/url_impl.closure.js', + } +module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl function module$contents$safevalues$internals$url_impl_createUrlInternal(url) { - return (0, goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)( - url - ); + return (0, goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)( + url + ) } module$exports$safevalues$internals$url_impl.createUrlInternal = - module$contents$safevalues$internals$url_impl_createUrlInternal; + module$contents$safevalues$internals$url_impl_createUrlInternal module$exports$safevalues$internals$url_impl.ABOUT_BLANK = - goog.html.SafeUrl.ABOUT_BLANK; + goog.html.SafeUrl.ABOUT_BLANK module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = - goog.html.SafeUrl.INNOCUOUS_URL; + goog.html.SafeUrl.INNOCUOUS_URL function module$contents$safevalues$internals$url_impl_isUrl(value) { - return value instanceof goog.html.SafeUrl; + return value instanceof goog.html.SafeUrl } module$exports$safevalues$internals$url_impl.isUrl = - module$contents$safevalues$internals$url_impl_isUrl; + module$contents$safevalues$internals$url_impl_isUrl function module$contents$safevalues$internals$url_impl_unwrapUrl(value) { - return goog.html.SafeUrl.unwrap(value); + return goog.html.SafeUrl.unwrap(value) } module$exports$safevalues$internals$url_impl.unwrapUrl = - module$contents$safevalues$internals$url_impl_unwrapUrl; + module$contents$safevalues$internals$url_impl_unwrapUrl var module$exports$safevalues$restricted$reviewed = {}, - module$contents$safevalues$restricted$reviewed_module = - module$contents$safevalues$restricted$reviewed_module || { - id: "third_party/javascript/safevalues/restricted/reviewed.closure.js", - }; + module$contents$safevalues$restricted$reviewed_module = + module$contents$safevalues$restricted$reviewed_module || { + id: 'third_party/javascript/safevalues/restricted/reviewed.closure.js', + } function module$contents$safevalues$restricted$reviewed_assertValidJustification( - justification + justification ) { - if ("string" !== typeof justification || "" === justification.trim()) { - var errMsg; - throw Error( - "Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions" - ); - } + if ('string' !== typeof justification || '' === justification.trim()) { + var errMsg + throw Error( + 'Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions' + ) + } } function module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options + options ) { - return "string" === typeof options ? options : options.justification; + return 'string' === typeof options ? options : options.justification } function module$contents$safevalues$restricted$reviewed_htmlSafeByReview( - html, - options + html, + options ) { - goog.DEBUG && - module$contents$safevalues$restricted$reviewed_assertValidJustification( - module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options - ) - ); - return module$contents$safevalues$internals$html_impl_createHtmlInternal( - html - ); + goog.DEBUG && + module$contents$safevalues$restricted$reviewed_assertValidJustification( + module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( + options + ) + ) + return module$contents$safevalues$internals$html_impl_createHtmlInternal( + html + ) } module$exports$safevalues$restricted$reviewed.htmlSafeByReview = - module$contents$safevalues$restricted$reviewed_htmlSafeByReview; + module$contents$safevalues$restricted$reviewed_htmlSafeByReview function module$contents$safevalues$restricted$reviewed_scriptSafeByReview( - script, - options + script, + options ) { - goog.DEBUG && - module$contents$safevalues$restricted$reviewed_assertValidJustification( - module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options - ) - ); - return module$contents$safevalues$internals$script_impl_createScriptInternal( - script - ); + goog.DEBUG && + module$contents$safevalues$restricted$reviewed_assertValidJustification( + module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( + options + ) + ) + return module$contents$safevalues$internals$script_impl_createScriptInternal( + script + ) } module$exports$safevalues$restricted$reviewed.scriptSafeByReview = - module$contents$safevalues$restricted$reviewed_scriptSafeByReview; + module$contents$safevalues$restricted$reviewed_scriptSafeByReview function module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview( - url, - options + url, + options ) { - goog.DEBUG && - module$contents$safevalues$restricted$reviewed_assertValidJustification( - module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options - ) - ); - return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal( - url - ); + goog.DEBUG && + module$contents$safevalues$restricted$reviewed_assertValidJustification( + module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( + options + ) + ) + return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal( + url + ) } module$exports$safevalues$restricted$reviewed.resourceUrlSafeByReview = - module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview; + module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview function module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview( - stylesheet, - options -) { - goog.DEBUG && - module$contents$safevalues$restricted$reviewed_assertValidJustification( - module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options - ) - ); - return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal( - stylesheet - ); -} -module$exports$safevalues$restricted$reviewed.styleSheetSafeByReview = - module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview; -function module$contents$safevalues$restricted$reviewed_urlSafeByReview( - url, - options + stylesheet, + options ) { - goog.DEBUG && - module$contents$safevalues$restricted$reviewed_assertValidJustification( - module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options - ) - ); - return module$contents$safevalues$internals$url_impl_createUrlInternal(url); + goog.DEBUG && + module$contents$safevalues$restricted$reviewed_assertValidJustification( + module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( + options + ) + ) + return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal( + stylesheet + ) +} +module$exports$safevalues$restricted$reviewed.styleSheetSafeByReview = + module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview +function module$contents$safevalues$restricted$reviewed_urlSafeByReview( + url, + options +) { + goog.DEBUG && + module$contents$safevalues$restricted$reviewed_assertValidJustification( + module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( + options + ) + ) + return module$contents$safevalues$internals$url_impl_createUrlInternal(url) } module$exports$safevalues$restricted$reviewed.urlSafeByReview = - module$contents$safevalues$restricted$reviewed_urlSafeByReview; + module$contents$safevalues$restricted$reviewed_urlSafeByReview function module$contents$safevalues$restricted$reviewed_styleSafeByReview( - style, - options + style, + options ) { - goog.DEBUG && - module$contents$safevalues$restricted$reviewed_assertValidJustification( - module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( - options - ) - ); - return module$contents$safevalues$internals$style_impl_createStyleInternal( - style - ); + goog.DEBUG && + module$contents$safevalues$restricted$reviewed_assertValidJustification( + module$contents$safevalues$restricted$reviewed_getJustificationDuringMigration( + options + ) + ) + return module$contents$safevalues$internals$style_impl_createStyleInternal( + style + ) } module$exports$safevalues$restricted$reviewed.styleSafeByReview = - module$contents$safevalues$restricted$reviewed_styleSafeByReview; -var safevalues = { restricted: {} }; -safevalues.restricted.reviewed = {}; + module$contents$safevalues$restricted$reviewed_styleSafeByReview +var safevalues = { restricted: {} } +safevalues.restricted.reviewed = {} safevalues.restricted.reviewed.htmlSafeByReview = - module$contents$safevalues$restricted$reviewed_htmlSafeByReview; + module$contents$safevalues$restricted$reviewed_htmlSafeByReview safevalues.restricted.reviewed.scriptSafeByReview = - module$contents$safevalues$restricted$reviewed_scriptSafeByReview; + module$contents$safevalues$restricted$reviewed_scriptSafeByReview safevalues.restricted.reviewed.resourceUrlSafeByReview = - module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview; + module$contents$safevalues$restricted$reviewed_resourceUrlSafeByReview safevalues.restricted.reviewed.styleSheetSafeByReview = - module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview; + module$contents$safevalues$restricted$reviewed_styleSheetSafeByReview safevalues.restricted.reviewed.urlSafeByReview = - module$contents$safevalues$restricted$reviewed_urlSafeByReview; + module$contents$safevalues$restricted$reviewed_urlSafeByReview safevalues.restricted.reviewed.styleSafeByReview = - module$contents$safevalues$restricted$reviewed_styleSafeByReview; -goog.dom.safe = {}; + module$contents$safevalues$restricted$reviewed_styleSafeByReview +goog.dom.safe = {} goog.dom.safe.InsertAdjacentHtmlPosition = { - AFTERBEGIN: "afterbegin", - AFTEREND: "afterend", - BEFOREBEGIN: "beforebegin", - BEFOREEND: "beforeend", -}; + AFTERBEGIN: 'afterbegin', + AFTEREND: 'afterend', + BEFOREBEGIN: 'beforebegin', + BEFOREEND: 'beforeend', +} goog.dom.safe.insertAdjacentHtml = function (node, position, html) { - node.insertAdjacentHTML( - position, - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) - ); -}; + node.insertAdjacentHTML( + position, + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) + ) +} goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = { - MATH: !0, - SCRIPT: !0, - STYLE: !0, - SVG: !0, - TEMPLATE: !0, -}; + MATH: !0, + SCRIPT: !0, + STYLE: !0, + SVG: !0, + TEMPLATE: !0, +} goog.dom.safe.isInnerHtmlCleanupRecursive_ = goog.functions.cacheReturnValue( - function () { - if (goog.DEBUG && "undefined" === typeof document) { - return !1; - } - var div = document.createElement("div"), - childDiv = document.createElement("div"); - childDiv.appendChild(document.createElement("div")); - div.appendChild(childDiv); - if (goog.DEBUG && !div.firstChild) { - return !1; - } - var innerChild = div.firstChild.firstChild; - div.innerHTML = - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML( - module$contents$goog$html$SafeHtml_SafeHtml.EMPTY - ); - return !innerChild.parentElement; - } -); + function () { + if (goog.DEBUG && 'undefined' === typeof document) { + return !1 + } + var div = document.createElement('div'), + childDiv = document.createElement('div') + childDiv.appendChild(document.createElement('div')) + div.appendChild(childDiv) + if (goog.DEBUG && !div.firstChild) { + return !1 + } + var innerChild = div.firstChild.firstChild + div.innerHTML = + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML( + module$contents$goog$html$SafeHtml_SafeHtml.EMPTY + ) + return !innerChild.parentElement + } +) goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse = function (elem, html) { - if (goog.dom.safe.isInnerHtmlCleanupRecursive_()) { - for (; elem.lastChild; ) { - elem.removeChild(elem.lastChild); - } - } - elem.innerHTML = - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html); -}; + if (goog.dom.safe.isInnerHtmlCleanupRecursive_()) { + for (; elem.lastChild; ) { + elem.removeChild(elem.lastChild) + } + } + elem.innerHTML = + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) +} goog.dom.safe.setInnerHtml = function (elem, html) { - if ( - goog.asserts.ENABLE_ASSERTS && - elem.tagName && - goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[elem.tagName.toUpperCase()] - ) { - throw Error( - "goog.dom.safe.setInnerHtml cannot be used to set content of " + - elem.tagName + - "." - ); - } - goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(elem, html); -}; + if ( + goog.asserts.ENABLE_ASSERTS && + elem.tagName && + goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[ + elem.tagName.toUpperCase() + ] + ) { + throw Error( + 'goog.dom.safe.setInnerHtml cannot be used to set content of ' + + elem.tagName + + '.' + ) + } + goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(elem, html) +} goog.dom.safe.setInnerHtmlFromConstant = function (element, constHtml) { - goog.dom.safe.setInnerHtml( - element, - module$contents$safevalues$restricted$reviewed_htmlSafeByReview( - goog.string.Const.unwrap(constHtml), - "Constant HTML to be immediatelly used." + goog.dom.safe.setInnerHtml( + element, + module$contents$safevalues$restricted$reviewed_htmlSafeByReview( + goog.string.Const.unwrap(constHtml), + 'Constant HTML to be immediatelly used.' + ) ) - ); -}; +} goog.dom.safe.setOuterHtml = function (elem, html) { - elem.outerHTML = - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html); -}; + elem.outerHTML = + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) +} goog.dom.safe.setFormElementAction = function (form, url) { - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = - goog.html.SafeUrl.unwrap(safeUrl); -}; + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = + goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.setButtonFormAction = function (button, url) { - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - module$contents$goog$asserts$dom_assertIsHtmlButtonElement( - button - ).formAction = goog.html.SafeUrl.unwrap(safeUrl); -}; + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + module$contents$goog$asserts$dom_assertIsHtmlButtonElement( + button + ).formAction = goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.setInputFormAction = function (input, url) { - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - module$contents$goog$asserts$dom_assertIsHtmlInputElement(input).formAction = - goog.html.SafeUrl.unwrap(safeUrl); -}; + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + module$contents$goog$asserts$dom_assertIsHtmlInputElement( + input + ).formAction = goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.setStyle = function (elem, style) { - elem.style.cssText = - module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style); -}; + elem.style.cssText = + module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style) +} goog.dom.safe.documentWrite = function (doc, html) { - doc.write( - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) - ); -}; + doc.write( + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) + ) +} goog.dom.safe.setAnchorHref = function (anchor, url) { - module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor); - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - anchor.href = goog.html.SafeUrl.unwrap(safeUrl); -}; + module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor) + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + anchor.href = goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.setAudioSrc = function (audioElement, url) { - module$contents$goog$asserts$dom_assertIsHtmlAudioElement(audioElement); - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - audioElement.src = goog.html.SafeUrl.unwrap(safeUrl); -}; + module$contents$goog$asserts$dom_assertIsHtmlAudioElement(audioElement) + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + audioElement.src = goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.setVideoSrc = function (videoElement, url) { - module$contents$goog$asserts$dom_assertIsHtmlVideoElement(videoElement); - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - videoElement.src = goog.html.SafeUrl.unwrap(safeUrl); -}; + module$contents$goog$asserts$dom_assertIsHtmlVideoElement(videoElement) + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + videoElement.src = goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.setEmbedSrc = function (embed, url) { - module$contents$goog$asserts$dom_assertIsHtmlEmbedElement(embed); - embed.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url); -}; + module$contents$goog$asserts$dom_assertIsHtmlEmbedElement(embed) + embed.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url) +} goog.dom.safe.setFrameSrc = function (frame, url) { - module$contents$goog$asserts$dom_assertIsHtmlFrameElement(frame); - frame.src = goog.html.TrustedResourceUrl.unwrap(url); -}; + module$contents$goog$asserts$dom_assertIsHtmlFrameElement(frame) + frame.src = goog.html.TrustedResourceUrl.unwrap(url) +} goog.dom.safe.setIframeSrc = function (iframe, url) { - module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe); - iframe.src = goog.html.TrustedResourceUrl.unwrap(url); -}; + module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe) + iframe.src = goog.html.TrustedResourceUrl.unwrap(url) +} goog.dom.safe.setIframeSrcdoc = function (iframe, html) { - module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe); - iframe.srcdoc = - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html); -}; + module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe) + iframe.srcdoc = + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) +} goog.dom.safe.setLinkHrefAndRel = function (link, url, rel) { - module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link); - link.rel = rel; - if (goog.string.internal.caseInsensitiveContains(rel, "stylesheet")) { - goog.asserts.assert( - url instanceof goog.html.TrustedResourceUrl, - 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"' - ); - link.href = goog.html.TrustedResourceUrl.unwrap(url); - var nonce = goog.dom.safe.getStyleNonce( - link.ownerDocument && link.ownerDocument.defaultView - ); - nonce && link.setAttribute("nonce", nonce); - } else { - link.href = - url instanceof goog.html.TrustedResourceUrl - ? goog.html.TrustedResourceUrl.unwrap(url) - : url instanceof goog.html.SafeUrl - ? goog.html.SafeUrl.unwrap(url) - : goog.html.SafeUrl.unwrap( - goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) - ); - } -}; + module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link) + link.rel = rel + if (goog.string.internal.caseInsensitiveContains(rel, 'stylesheet')) { + goog.asserts.assert( + url instanceof goog.html.TrustedResourceUrl, + 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"' + ) + link.href = goog.html.TrustedResourceUrl.unwrap(url) + var nonce = goog.dom.safe.getStyleNonce( + link.ownerDocument && link.ownerDocument.defaultView + ) + nonce && link.setAttribute('nonce', nonce) + } else { + link.href = + url instanceof goog.html.TrustedResourceUrl + ? goog.html.TrustedResourceUrl.unwrap(url) + : url instanceof goog.html.SafeUrl + ? goog.html.SafeUrl.unwrap(url) + : goog.html.SafeUrl.unwrap( + goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged( + url + ) + ) + } +} goog.dom.safe.setObjectData = function (object, url) { - module$contents$goog$asserts$dom_assertIsHtmlObjectElement(object); - object.data = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url); -}; + module$contents$goog$asserts$dom_assertIsHtmlObjectElement(object) + object.data = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url) +} goog.dom.safe.setScriptSrc = function (script, url) { - module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script); - goog.dom.safe.setNonceForScriptElement_(script); - script.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url); -}; + module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script) + goog.dom.safe.setNonceForScriptElement_(script) + script.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url) +} goog.dom.safe.setScriptContent = function (script, content) { - module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script); - goog.dom.safe.setNonceForScriptElement_(script); - script.textContent = - module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript( - content - ); -}; + module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script) + goog.dom.safe.setNonceForScriptElement_(script) + script.textContent = + module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript( + content + ) +} goog.dom.safe.setNonceForScriptElement_ = function (script) { - var nonce = goog.dom.safe.getScriptNonce( - script.ownerDocument && script.ownerDocument.defaultView - ); - nonce && script.setAttribute("nonce", nonce); -}; + var nonce = goog.dom.safe.getScriptNonce( + script.ownerDocument && script.ownerDocument.defaultView + ) + nonce && script.setAttribute('nonce', nonce) +} goog.dom.safe.setLocationHref = function (loc, url) { - goog.dom.asserts.assertIsLocation(loc); - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - loc.href = goog.html.SafeUrl.unwrap(safeUrl); -}; + goog.dom.asserts.assertIsLocation(loc) + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + loc.href = goog.html.SafeUrl.unwrap(safeUrl) +} goog.dom.safe.assignLocation = function (loc, url) { - goog.dom.asserts.assertIsLocation(loc); - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - loc.assign(goog.html.SafeUrl.unwrap(safeUrl)); -}; + goog.dom.asserts.assertIsLocation(loc) + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + loc.assign(goog.html.SafeUrl.unwrap(safeUrl)) +} goog.dom.safe.replaceLocation = function (loc, url) { - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - loc.replace(goog.html.SafeUrl.unwrap(safeUrl)); -}; + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + loc.replace(goog.html.SafeUrl.unwrap(safeUrl)) +} goog.dom.safe.openInWindow = function ( - url, - opt_openerWin, - opt_name, - opt_specs -) { - var safeUrl = - url instanceof goog.html.SafeUrl - ? url - : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url); - var win = opt_openerWin || goog.global, - name = - opt_name instanceof goog.string.Const - ? goog.string.Const.unwrap(opt_name) - : opt_name || ""; - return void 0 !== opt_specs - ? win.open(goog.html.SafeUrl.unwrap(safeUrl), name, opt_specs) - : win.open(goog.html.SafeUrl.unwrap(safeUrl), name); -}; + url, + opt_openerWin, + opt_name, + opt_specs +) { + var safeUrl = + url instanceof goog.html.SafeUrl + ? url + : goog.html.SafeUrl.sanitizeJavascriptUrlAssertUnchanged(url) + var win = opt_openerWin || goog.global, + name = + opt_name instanceof goog.string.Const + ? goog.string.Const.unwrap(opt_name) + : opt_name || '' + return void 0 !== opt_specs + ? win.open(goog.html.SafeUrl.unwrap(safeUrl), name, opt_specs) + : win.open(goog.html.SafeUrl.unwrap(safeUrl), name) +} goog.dom.safe.parseFromStringHtml = function (parser, html) { - return goog.dom.safe.parseFromString(parser, html, "text/html"); -}; + return goog.dom.safe.parseFromString(parser, html, 'text/html') +} goog.dom.safe.parseFromString = function (parser, content, type) { - return parser.parseFromString( - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(content), - type - ); -}; + return parser.parseFromString( + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(content), + type + ) +} goog.dom.safe.createImageFromBlob = function (blob) { - if (!/^image\/.*/g.test(blob.type)) { - throw Error( - "goog.dom.safe.createImageFromBlob only accepts MIME type image/.*." - ); - } - var objectUrl = goog.global.URL.createObjectURL(blob), - image = new goog.global.Image(); - image.onload = function () { - goog.global.URL.revokeObjectURL(objectUrl); - }; - image.src = objectUrl; - return image; -}; + if (!/^image\/.*/g.test(blob.type)) { + throw Error( + 'goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.' + ) + } + var objectUrl = goog.global.URL.createObjectURL(blob), + image = new goog.global.Image() + image.onload = function () { + goog.global.URL.revokeObjectURL(objectUrl) + } + image.src = objectUrl + return image +} goog.dom.safe.createContextualFragment = function (range, html) { - return range.createContextualFragment( - module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) - ); -}; + return range.createContextualFragment( + module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html) + ) +} goog.dom.safe.getScriptNonce = function (opt_window) { - return goog.dom.safe.getNonce_("script[nonce]", opt_window); -}; + return goog.dom.safe.getNonce_('script[nonce]', opt_window) +} goog.dom.safe.getStyleNonce = function (opt_window) { - return goog.dom.safe.getNonce_( - 'style[nonce],link[rel="stylesheet"][nonce]', - opt_window - ); -}; -goog.dom.safe.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/; + return goog.dom.safe.getNonce_( + 'style[nonce],link[rel="stylesheet"][nonce]', + opt_window + ) +} +goog.dom.safe.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/ goog.dom.safe.getNonce_ = function (selector, win) { - var doc = (win || goog.global).document; - if (!doc.querySelector) { - return ""; - } - var el = doc.querySelector(selector); - if (el) { - var nonce = el.nonce || el.getAttribute("nonce"); - if (nonce && goog.dom.safe.NONCE_PATTERN_.test(nonce)) { - return nonce; - } - } - return ""; -}; -goog.string.DETECT_DOUBLE_ESCAPING = !1; -goog.string.FORCE_NON_DOM_HTML_UNESCAPING = !1; -goog.string.Unicode = { NBSP: "\u00a0", ZERO_WIDTH_SPACE: "\u200b" }; -goog.string.startsWith = goog.string.internal.startsWith; -goog.string.endsWith = goog.string.internal.endsWith; + var doc = (win || goog.global).document + if (!doc.querySelector) { + return '' + } + var el = doc.querySelector(selector) + if (el) { + var nonce = el.nonce || el.getAttribute('nonce') + if (nonce && goog.dom.safe.NONCE_PATTERN_.test(nonce)) { + return nonce + } + } + return '' +} +goog.string.DETECT_DOUBLE_ESCAPING = !1 +goog.string.FORCE_NON_DOM_HTML_UNESCAPING = !1 +goog.string.Unicode = { NBSP: '\u00a0', ZERO_WIDTH_SPACE: '\u200b' } +goog.string.startsWith = goog.string.internal.startsWith +goog.string.endsWith = goog.string.internal.endsWith goog.string.caseInsensitiveStartsWith = - goog.string.internal.caseInsensitiveStartsWith; + goog.string.internal.caseInsensitiveStartsWith goog.string.caseInsensitiveEndsWith = - goog.string.internal.caseInsensitiveEndsWith; -goog.string.caseInsensitiveEquals = goog.string.internal.caseInsensitiveEquals; + goog.string.internal.caseInsensitiveEndsWith +goog.string.caseInsensitiveEquals = goog.string.internal.caseInsensitiveEquals goog.string.subs = function (str, var_args) { - for ( - var splitParts = str.split("%s"), - returnString = "", - subsArguments = Array.prototype.slice.call(arguments, 1); - subsArguments.length && 1 < splitParts.length; + for ( + var splitParts = str.split('%s'), + returnString = '', + subsArguments = Array.prototype.slice.call(arguments, 1); + subsArguments.length && 1 < splitParts.length; - ) { - returnString += splitParts.shift() + subsArguments.shift(); - } - return returnString + splitParts.join("%s"); -}; + ) { + returnString += splitParts.shift() + subsArguments.shift() + } + return returnString + splitParts.join('%s') +} goog.string.collapseWhitespace = function (str) { - return str.replace(/[\s\xa0]+/g, " ").replace(/^\s+|\s+$/g, ""); -}; -goog.string.isEmptyOrWhitespace = goog.string.internal.isEmptyOrWhitespace; + return str.replace(/[\s\xa0]+/g, ' ').replace(/^\s+|\s+$/g, '') +} +goog.string.isEmptyOrWhitespace = goog.string.internal.isEmptyOrWhitespace goog.string.isEmptyString = function (str) { - return 0 == str.length; -}; -goog.string.isEmpty = goog.string.isEmptyOrWhitespace; + return 0 == str.length +} +goog.string.isEmpty = goog.string.isEmptyOrWhitespace goog.string.isEmptyOrWhitespaceSafe = function (str) { - return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(str)); -}; -goog.string.isEmptySafe = goog.string.isEmptyOrWhitespaceSafe; + return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(str)) +} +goog.string.isEmptySafe = goog.string.isEmptyOrWhitespaceSafe goog.string.isBreakingWhitespace = function (str) { - return !/[^\t\n\r ]/.test(str); -}; + return !/[^\t\n\r ]/.test(str) +} goog.string.isAlpha = function (str) { - return !/[^a-zA-Z]/.test(str); -}; + return !/[^a-zA-Z]/.test(str) +} goog.string.isNumeric = function (str) { - return !/[^0-9]/.test(str); -}; + return !/[^0-9]/.test(str) +} goog.string.isAlphaNumeric = function (str) { - return !/[^a-zA-Z0-9]/.test(str); -}; + return !/[^a-zA-Z0-9]/.test(str) +} goog.string.isSpace = function (ch) { - return " " == ch; -}; + return ' ' == ch +} goog.string.isUnicodeChar = function (ch) { - return ( - (1 == ch.length && " " <= ch && "~" >= ch) || - ("\u0080" <= ch && "\ufffd" >= ch) - ); -}; + return ( + (1 == ch.length && ' ' <= ch && '~' >= ch) || + ('\u0080' <= ch && '\ufffd' >= ch) + ) +} goog.string.stripNewlines = function (str) { - return str.replace(/(\r\n|\r|\n)+/g, " "); -}; + return str.replace(/(\r\n|\r|\n)+/g, ' ') +} goog.string.canonicalizeNewlines = function (str) { - return str.replace(/(\r\n|\r|\n)/g, "\n"); -}; + return str.replace(/(\r\n|\r|\n)/g, '\n') +} goog.string.normalizeWhitespace = function (str) { - return str.replace(/\xa0|\s/g, " "); -}; + return str.replace(/\xa0|\s/g, ' ') +} goog.string.normalizeSpaces = function (str) { - return str.replace(/\xa0|[ \t]+/g, " "); -}; + return str.replace(/\xa0|[ \t]+/g, ' ') +} goog.string.collapseBreakingSpaces = function (str) { - return str - .replace(/[\t\r\n ]+/g, " ") - .replace(/^[\t\r\n ]+|[\t\r\n ]+$/g, ""); -}; -goog.string.trim = goog.string.internal.trim; + return str + .replace(/[\t\r\n ]+/g, ' ') + .replace(/^[\t\r\n ]+|[\t\r\n ]+$/g, '') +} +goog.string.trim = goog.string.internal.trim goog.string.trimLeft = function (str) { - return str.replace(/^[\s\xa0]+/, ""); -}; + return str.replace(/^[\s\xa0]+/, '') +} goog.string.trimRight = function (str) { - return str.replace(/[\s\xa0]+$/, ""); -}; -goog.string.caseInsensitiveCompare = - goog.string.internal.caseInsensitiveCompare; + return str.replace(/[\s\xa0]+$/, '') +} +goog.string.caseInsensitiveCompare = goog.string.internal.caseInsensitiveCompare goog.string.numberAwareCompare_ = function (str1, str2, tokenizerRegExp) { - if (str1 == str2) { - return 0; - } - if (!str1) { - return -1; - } - if (!str2) { - return 1; - } - for ( - var tokens1 = str1.toLowerCase().match(tokenizerRegExp), - tokens2 = str2.toLowerCase().match(tokenizerRegExp), - count = Math.min(tokens1.length, tokens2.length), - i = 0; - i < count; - i++ - ) { - var a = tokens1[i], - b = tokens2[i]; - if (a != b) { - var num1 = parseInt(a, 10); - if (!isNaN(num1)) { - var num2 = parseInt(b, 10); - if (!isNaN(num2) && num1 - num2) { - return num1 - num2; + if (str1 == str2) { + return 0 + } + if (!str1) { + return -1 + } + if (!str2) { + return 1 + } + for ( + var tokens1 = str1.toLowerCase().match(tokenizerRegExp), + tokens2 = str2.toLowerCase().match(tokenizerRegExp), + count = Math.min(tokens1.length, tokens2.length), + i = 0; + i < count; + i++ + ) { + var a = tokens1[i], + b = tokens2[i] + if (a != b) { + var num1 = parseInt(a, 10) + if (!isNaN(num1)) { + var num2 = parseInt(b, 10) + if (!isNaN(num2) && num1 - num2) { + return num1 - num2 + } + } + return a < b ? -1 : 1 } - } - return a < b ? -1 : 1; - } - } - return tokens1.length != tokens2.length - ? tokens1.length - tokens2.length - : str1 < str2 - ? -1 - : 1; -}; + } + return tokens1.length != tokens2.length + ? tokens1.length - tokens2.length + : str1 < str2 + ? -1 + : 1 +} goog.string.intAwareCompare = function (str1, str2) { - return goog.string.numberAwareCompare_(str1, str2, /\d+|\D+/g); -}; + return goog.string.numberAwareCompare_(str1, str2, /\d+|\D+/g) +} goog.string.floatAwareCompare = function (str1, str2) { - return goog.string.numberAwareCompare_(str1, str2, /\d+|\.\d+|\D+/g); -}; -goog.string.numerateCompare = goog.string.floatAwareCompare; + return goog.string.numberAwareCompare_(str1, str2, /\d+|\.\d+|\D+/g) +} +goog.string.numerateCompare = goog.string.floatAwareCompare goog.string.urlEncode = function (str) { - return encodeURIComponent(String(str)); -}; + return encodeURIComponent(String(str)) +} goog.string.urlDecode = function (str) { - return decodeURIComponent(str.replace(/\+/g, " ")); -}; -goog.string.newLineToBr = goog.string.internal.newLineToBr; + return decodeURIComponent(str.replace(/\+/g, ' ')) +} +goog.string.newLineToBr = goog.string.internal.newLineToBr goog.string.htmlEscape = function (str, opt_isLikelyToContainHtmlChars) { - str = goog.string.internal.htmlEscape(str, opt_isLikelyToContainHtmlChars); - goog.string.DETECT_DOUBLE_ESCAPING && - (str = str.replace(goog.string.E_RE_, "e")); - return str; -}; -goog.string.E_RE_ = /e/g; + str = goog.string.internal.htmlEscape(str, opt_isLikelyToContainHtmlChars) + goog.string.DETECT_DOUBLE_ESCAPING && + (str = str.replace(goog.string.E_RE_, 'e')) + return str +} +goog.string.E_RE_ = /e/g goog.string.unescapeEntities = function (str) { - return goog.string.contains(str, "&") - ? !goog.string.FORCE_NON_DOM_HTML_UNESCAPING && "document" in goog.global - ? goog.string.unescapeEntitiesUsingDom_(str) - : goog.string.unescapePureXmlEntities_(str) - : str; -}; + return goog.string.contains(str, '&') + ? !goog.string.FORCE_NON_DOM_HTML_UNESCAPING && + 'document' in goog.global + ? goog.string.unescapeEntitiesUsingDom_(str) + : goog.string.unescapePureXmlEntities_(str) + : str +} goog.string.unescapeEntitiesWithDocument = function (str, document) { - return goog.string.contains(str, "&") - ? goog.string.unescapeEntitiesUsingDom_(str, document) - : str; -}; + return goog.string.contains(str, '&') + ? goog.string.unescapeEntitiesUsingDom_(str, document) + : str +} goog.string.unescapeEntitiesUsingDom_ = function (str, opt_document) { - var seen = { "&": "&", "<": "<", ">": ">", """: '"' }; - var div = opt_document - ? opt_document.createElement("div") - : goog.global.document.createElement("div"); - return str.replace(goog.string.HTML_ENTITY_PATTERN_, function (s, entity) { - var value = seen[s]; - if (value) { - return value; - } - if ("#" == entity.charAt(0)) { - var n = Number("0" + entity.slice(1)); - isNaN(n) || (value = String.fromCharCode(n)); - } - value || - (goog.dom.safe.setInnerHtml( - div, - module$contents$safevalues$restricted$reviewed_htmlSafeByReview( - s + " ", - "Single HTML entity." - ) - ), - (value = div.firstChild.nodeValue.slice(0, -1))); - return (seen[s] = value); - }); -}; + var seen = { '&': '&', '<': '<', '>': '>', '"': '"' } + var div = opt_document + ? opt_document.createElement('div') + : goog.global.document.createElement('div') + return str.replace(goog.string.HTML_ENTITY_PATTERN_, function (s, entity) { + var value = seen[s] + if (value) { + return value + } + if ('#' == entity.charAt(0)) { + var n = Number('0' + entity.slice(1)) + isNaN(n) || (value = String.fromCharCode(n)) + } + value || + (goog.dom.safe.setInnerHtml( + div, + module$contents$safevalues$restricted$reviewed_htmlSafeByReview( + s + ' ', + 'Single HTML entity.' + ) + ), + (value = div.firstChild.nodeValue.slice(0, -1))) + return (seen[s] = value) + }) +} goog.string.unescapePureXmlEntities_ = function (str) { - return str.replace(/&([^;]+);/g, function (s, entity) { - switch (entity) { - case "amp": - return "&"; - case "lt": - return "<"; - case "gt": - return ">"; - case "quot": - return '"'; - default: - if ("#" == entity.charAt(0)) { - var n = Number("0" + entity.slice(1)); - if (!isNaN(n)) { - return String.fromCharCode(n); - } + return str.replace(/&([^;]+);/g, function (s, entity) { + switch (entity) { + case 'amp': + return '&' + case 'lt': + return '<' + case 'gt': + return '>' + case 'quot': + return '"' + default: + if ('#' == entity.charAt(0)) { + var n = Number('0' + entity.slice(1)) + if (!isNaN(n)) { + return String.fromCharCode(n) + } + } + return s } - return s; - } - }); -}; -goog.string.HTML_ENTITY_PATTERN_ = /&([^;\s<&]+);?/g; + }) +} +goog.string.HTML_ENTITY_PATTERN_ = /&([^;\s<&]+);?/g goog.string.whitespaceEscape = function (str, opt_xml) { - return goog.string.newLineToBr(str.replace(/ /g, "  "), opt_xml); -}; + return goog.string.newLineToBr(str.replace(/ /g, '  '), opt_xml) +} goog.string.preserveSpaces = function (str) { - return str.replace(/(^|[\n ]) /g, "$1" + goog.string.Unicode.NBSP); -}; + return str.replace(/(^|[\n ]) /g, '$1' + goog.string.Unicode.NBSP) +} goog.string.stripQuotes = function (str, quoteChars) { - for (var length = quoteChars.length, i = 0; i < length; i++) { - var quoteChar = 1 == length ? quoteChars : quoteChars.charAt(i); - if (str.charAt(0) == quoteChar && str.charAt(str.length - 1) == quoteChar) { - return str.substring(1, str.length - 1); - } - } - return str; -}; + for (var length = quoteChars.length, i = 0; i < length; i++) { + var quoteChar = 1 == length ? quoteChars : quoteChars.charAt(i) + if ( + str.charAt(0) == quoteChar && + str.charAt(str.length - 1) == quoteChar + ) { + return str.substring(1, str.length - 1) + } + } + return str +} goog.string.truncate = function (str, chars, opt_protectEscapedCharacters) { - opt_protectEscapedCharacters && (str = goog.string.unescapeEntities(str)); - str.length > chars && (str = str.substring(0, chars - 3) + "..."); - opt_protectEscapedCharacters && (str = goog.string.htmlEscape(str)); - return str; -}; + opt_protectEscapedCharacters && (str = goog.string.unescapeEntities(str)) + str.length > chars && (str = str.substring(0, chars - 3) + '...') + opt_protectEscapedCharacters && (str = goog.string.htmlEscape(str)) + return str +} goog.string.truncateMiddle = function ( - str, - chars, - opt_protectEscapedCharacters, - opt_trailingChars -) { - opt_protectEscapedCharacters && (str = goog.string.unescapeEntities(str)); - if (opt_trailingChars && str.length > chars) { - opt_trailingChars > chars && (opt_trailingChars = chars), - (str = - str.substring(0, chars - opt_trailingChars) + - "..." + - str.substring(str.length - opt_trailingChars)); - } else if (str.length > chars) { - var half = Math.floor(chars / 2); - str = - str.substring(0, half + (chars % 2)) + - "..." + - str.substring(str.length - half); - } - opt_protectEscapedCharacters && (str = goog.string.htmlEscape(str)); - return str; -}; + str, + chars, + opt_protectEscapedCharacters, + opt_trailingChars +) { + opt_protectEscapedCharacters && (str = goog.string.unescapeEntities(str)) + if (opt_trailingChars && str.length > chars) { + opt_trailingChars > chars && (opt_trailingChars = chars), + (str = + str.substring(0, chars - opt_trailingChars) + + '...' + + str.substring(str.length - opt_trailingChars)) + } else if (str.length > chars) { + var half = Math.floor(chars / 2) + str = + str.substring(0, half + (chars % 2)) + + '...' + + str.substring(str.length - half) + } + opt_protectEscapedCharacters && (str = goog.string.htmlEscape(str)) + return str +} goog.string.specialEscapeChars_ = { - "\x00": "\\0", - "\b": "\\b", - "\f": "\\f", - "\n": "\\n", - "\r": "\\r", - "\t": "\\t", - "\v": "\\x0B", - '"': '\\"', - "\\": "\\\\", - "<": "\\u003C", -}; -goog.string.jsEscapeCache_ = { "'": "\\'" }; + '\x00': '\\0', + '\b': '\\b', + '\f': '\\f', + '\n': '\\n', + '\r': '\\r', + '\t': '\\t', + '\v': '\\x0B', + '"': '\\"', + '\\': '\\\\', + '<': '\\u003C', +} +goog.string.jsEscapeCache_ = { "'": "\\'" } goog.string.quote = function (s) { - s = String(s); - for (var sb = ['"'], i = 0; i < s.length; i++) { - var ch = s.charAt(i), - cc = ch.charCodeAt(0); - sb[i + 1] = - goog.string.specialEscapeChars_[ch] || - (31 < cc && 127 > cc ? ch : goog.string.escapeChar(ch)); - } - sb.push('"'); - return sb.join(""); -}; + s = String(s) + for (var sb = ['"'], i = 0; i < s.length; i++) { + var ch = s.charAt(i), + cc = ch.charCodeAt(0) + sb[i + 1] = + goog.string.specialEscapeChars_[ch] || + (31 < cc && 127 > cc ? ch : goog.string.escapeChar(ch)) + } + sb.push('"') + return sb.join('') +} goog.string.escapeString = function (str) { - for (var sb = [], i = 0; i < str.length; i++) { - sb[i] = goog.string.escapeChar(str.charAt(i)); - } - return sb.join(""); -}; + for (var sb = [], i = 0; i < str.length; i++) { + sb[i] = goog.string.escapeChar(str.charAt(i)) + } + return sb.join('') +} goog.string.escapeChar = function (c) { - if (c in goog.string.jsEscapeCache_) { - return goog.string.jsEscapeCache_[c]; - } - if (c in goog.string.specialEscapeChars_) { - return (goog.string.jsEscapeCache_[c] = goog.string.specialEscapeChars_[c]); - } - var rv = c, - cc = c.charCodeAt(0); - if (31 < cc && 127 > cc) { - rv = c; - } else { - if (256 > cc) { - if (((rv = "\\x"), 16 > cc || 256 < cc)) { - rv += "0"; - } + if (c in goog.string.jsEscapeCache_) { + return goog.string.jsEscapeCache_[c] + } + if (c in goog.string.specialEscapeChars_) { + return (goog.string.jsEscapeCache_[c] = + goog.string.specialEscapeChars_[c]) + } + var rv = c, + cc = c.charCodeAt(0) + if (31 < cc && 127 > cc) { + rv = c } else { - (rv = "\\u"), 4096 > cc && (rv += "0"); + if (256 > cc) { + if (((rv = '\\x'), 16 > cc || 256 < cc)) { + rv += '0' + } + } else { + ;(rv = '\\u'), 4096 > cc && (rv += '0') + } + rv += cc.toString(16).toUpperCase() } - rv += cc.toString(16).toUpperCase(); - } - return (goog.string.jsEscapeCache_[c] = rv); -}; -goog.string.contains = goog.string.internal.contains; + return (goog.string.jsEscapeCache_[c] = rv) +} +goog.string.contains = goog.string.internal.contains goog.string.caseInsensitiveContains = - goog.string.internal.caseInsensitiveContains; + goog.string.internal.caseInsensitiveContains goog.string.countOf = function (s, ss) { - return s && ss ? s.split(ss).length - 1 : 0; -}; + return s && ss ? s.split(ss).length - 1 : 0 +} goog.string.removeAt = function (s, index, stringLength) { - var resultStr = s; - 0 <= index && - index < s.length && - 0 < stringLength && - (resultStr = s.slice(0, index) + s.slice(index + stringLength)); - return resultStr; -}; + var resultStr = s + 0 <= index && + index < s.length && + 0 < stringLength && + (resultStr = s.slice(0, index) + s.slice(index + stringLength)) + return resultStr +} goog.string.remove = function (str, substr) { - return str.replace(substr, ""); -}; + return str.replace(substr, '') +} goog.string.removeAll = function (s, ss) { - var re = new RegExp(goog.string.regExpEscape(ss), "g"); - return s.replace(re, ""); -}; + var re = new RegExp(goog.string.regExpEscape(ss), 'g') + return s.replace(re, '') +} goog.string.replaceAll = function (s, ss, replacement) { - var re = new RegExp(goog.string.regExpEscape(ss), "g"); - return s.replace(re, replacement.replace(/\$/g, "$$$$")); -}; + var re = new RegExp(goog.string.regExpEscape(ss), 'g') + return s.replace(re, replacement.replace(/\$/g, '$$$$')) +} goog.string.regExpEscape = function (s) { - return String(s) - .replace(/([-()\[\]{}+?*.$\^|,:#>> 0; - } - return result; -}; -goog.string.uniqueStringCounter_ = (2147483648 * Math.random()) | 0; + for (var result = 0, i = 0; i < str.length; ++i) { + result = (31 * result + str.charCodeAt(i)) >>> 0 + } + return result +} +goog.string.uniqueStringCounter_ = (2147483648 * Math.random()) | 0 goog.string.createUniqueString = function () { - return "goog_" + goog.string.uniqueStringCounter_++; -}; + return 'goog_' + goog.string.uniqueStringCounter_++ +} goog.string.toNumber = function (str) { - var num = Number(str); - return 0 == num && goog.string.isEmptyOrWhitespace(str) ? NaN : num; -}; + var num = Number(str) + return 0 == num && goog.string.isEmptyOrWhitespace(str) ? NaN : num +} goog.string.isLowerCamelCase = function (str) { - return /^[a-z]+([A-Z][a-z]*)*$/.test(str); -}; + return /^[a-z]+([A-Z][a-z]*)*$/.test(str) +} goog.string.isUpperCamelCase = function (str) { - return /^([A-Z][a-z]*)+$/.test(str); -}; + return /^([A-Z][a-z]*)+$/.test(str) +} goog.string.toCamelCase = function (str) { - return String(str).replace(/\-([a-z])/g, function (all, match) { - return match.toUpperCase(); - }); -}; + return String(str).replace(/\-([a-z])/g, function (all, match) { + return match.toUpperCase() + }) +} goog.string.toSelectorCase = function (str) { - return String(str) - .replace(/([A-Z])/g, "-$1") - .toLowerCase(); -}; + return String(str) + .replace(/([A-Z])/g, '-$1') + .toLowerCase() +} goog.string.toTitleCase = function (str, opt_delimiters) { - var delimiters = - "string" === typeof opt_delimiters - ? goog.string.regExpEscape(opt_delimiters) - : "\\s"; - return str.replace( - new RegExp( - "(^" + (delimiters ? "|[" + delimiters + "]+" : "") + ")([a-z])", - "g" - ), - function (all, p1, p2) { - return p1 + p2.toUpperCase(); - } - ); -}; + var delimiters = + 'string' === typeof opt_delimiters + ? goog.string.regExpEscape(opt_delimiters) + : '\\s' + return str.replace( + new RegExp( + '(^' + (delimiters ? '|[' + delimiters + ']+' : '') + ')([a-z])', + 'g' + ), + function (all, p1, p2) { + return p1 + p2.toUpperCase() + } + ) +} goog.string.capitalize = function (str) { - return ( - String(str.charAt(0)).toUpperCase() + String(str.slice(1)).toLowerCase() - ); -}; + return ( + String(str.charAt(0)).toUpperCase() + String(str.slice(1)).toLowerCase() + ) +} goog.string.parseInt = function (value) { - isFinite(value) && (value = String(value)); - return "string" === typeof value - ? /^\s*-?0x/i.test(value) - ? parseInt(value, 16) - : parseInt(value, 10) - : NaN; -}; + isFinite(value) && (value = String(value)) + return 'string' === typeof value + ? /^\s*-?0x/i.test(value) + ? parseInt(value, 16) + : parseInt(value, 10) + : NaN +} goog.string.splitLimit = function (str, separator, limit) { - for ( - var parts = str.split(separator), returnVal = []; - 0 < limit && parts.length; + for ( + var parts = str.split(separator), returnVal = []; + 0 < limit && parts.length; - ) { - returnVal.push(parts.shift()), limit--; - } - parts.length && returnVal.push(parts.join(separator)); - return returnVal; -}; + ) { + returnVal.push(parts.shift()), limit-- + } + parts.length && returnVal.push(parts.join(separator)) + return returnVal +} goog.string.lastComponent = function (str, separators) { - if (separators) { - "string" == typeof separators && (separators = [separators]); - } else { - return str; - } - for (var lastSeparatorIndex = -1, i = 0; i < separators.length; i++) { - if ("" != separators[i]) { - var currentSeparatorIndex = str.lastIndexOf(separators[i]); - currentSeparatorIndex > lastSeparatorIndex && - (lastSeparatorIndex = currentSeparatorIndex); - } - } - return -1 == lastSeparatorIndex ? str : str.slice(lastSeparatorIndex + 1); -}; + if (separators) { + 'string' == typeof separators && (separators = [separators]) + } else { + return str + } + for (var lastSeparatorIndex = -1, i = 0; i < separators.length; i++) { + if ('' != separators[i]) { + var currentSeparatorIndex = str.lastIndexOf(separators[i]) + currentSeparatorIndex > lastSeparatorIndex && + (lastSeparatorIndex = currentSeparatorIndex) + } + } + return -1 == lastSeparatorIndex ? str : str.slice(lastSeparatorIndex + 1) +} goog.string.editDistance = function (a, b) { - var v0 = [], - v1 = []; - if (a == b) { - return 0; - } - if (!a.length || !b.length) { - return Math.max(a.length, b.length); - } - for (var i = 0; i < b.length + 1; i++) { - v0[i] = i; - } - for (var i$jscomp$0 = 0; i$jscomp$0 < a.length; i$jscomp$0++) { - v1[0] = i$jscomp$0 + 1; - for (var j = 0; j < b.length; j++) { - v1[j + 1] = Math.min( - v1[j] + 1, - v0[j + 1] + 1, - v0[j] + Number(a[i$jscomp$0] != b[j]) - ); - } - for (var j$jscomp$0 = 0; j$jscomp$0 < v0.length; j$jscomp$0++) { - v0[j$jscomp$0] = v1[j$jscomp$0]; - } - } - return v1[b.length]; -}; -goog.collections.maps = {}; -var module$contents$goog$collections$maps_MapLike = function () {}; + var v0 = [], + v1 = [] + if (a == b) { + return 0 + } + if (!a.length || !b.length) { + return Math.max(a.length, b.length) + } + for (var i = 0; i < b.length + 1; i++) { + v0[i] = i + } + for (var i$jscomp$0 = 0; i$jscomp$0 < a.length; i$jscomp$0++) { + v1[0] = i$jscomp$0 + 1 + for (var j = 0; j < b.length; j++) { + v1[j + 1] = Math.min( + v1[j] + 1, + v0[j + 1] + 1, + v0[j] + Number(a[i$jscomp$0] != b[j]) + ) + } + for (var j$jscomp$0 = 0; j$jscomp$0 < v0.length; j$jscomp$0++) { + v0[j$jscomp$0] = v1[j$jscomp$0] + } + } + return v1[b.length] +} +goog.collections.maps = {} +var module$contents$goog$collections$maps_MapLike = function () {} module$contents$goog$collections$maps_MapLike.prototype.set = function ( - key, - val -) {}; -module$contents$goog$collections$maps_MapLike.prototype.get = function (key) {}; -module$contents$goog$collections$maps_MapLike.prototype.keys = function () {}; -module$contents$goog$collections$maps_MapLike.prototype.values = function () {}; -module$contents$goog$collections$maps_MapLike.prototype.has = function (key) {}; -goog.collections.maps.MapLike = module$contents$goog$collections$maps_MapLike; + key, + val +) {} +module$contents$goog$collections$maps_MapLike.prototype.get = function (key) {} +module$contents$goog$collections$maps_MapLike.prototype.keys = function () {} +module$contents$goog$collections$maps_MapLike.prototype.values = function () {} +module$contents$goog$collections$maps_MapLike.prototype.has = function (key) {} +goog.collections.maps.MapLike = module$contents$goog$collections$maps_MapLike goog.collections.maps.setAll = function (map, entries) { - if (entries) { + if (entries) { + for ( + var $jscomp$iter$23 = $jscomp.makeIterator(entries), + $jscomp$key$ = $jscomp$iter$23.next(); + !$jscomp$key$.done; + $jscomp$key$ = $jscomp$iter$23.next() + ) { + var $jscomp$destructuring$var25 = $jscomp.makeIterator( + $jscomp$key$.value + ), + k = $jscomp$destructuring$var25.next().value, + v = $jscomp$destructuring$var25.next().value + map.set(k, v) + } + } +} +goog.collections.maps.hasValue = function (map, val, valueEqualityFn) { + valueEqualityFn = + void 0 === valueEqualityFn + ? module$contents$goog$collections$maps_defaultEqualityFn + : valueEqualityFn for ( - var $jscomp$iter$23 = $jscomp.makeIterator(entries), - $jscomp$key$ = $jscomp$iter$23.next(); - !$jscomp$key$.done; - $jscomp$key$ = $jscomp$iter$23.next() + var $jscomp$iter$24 = $jscomp.makeIterator(map.values()), + $jscomp$key$v = $jscomp$iter$24.next(); + !$jscomp$key$v.done; + $jscomp$key$v = $jscomp$iter$24.next() ) { - var $jscomp$destructuring$var25 = $jscomp.makeIterator( - $jscomp$key$.value - ), - k = $jscomp$destructuring$var25.next().value, - v = $jscomp$destructuring$var25.next().value; - map.set(k, v); + if (valueEqualityFn($jscomp$key$v.value, val)) { + return !0 + } } - } -}; -goog.collections.maps.hasValue = function (map, val, valueEqualityFn) { - valueEqualityFn = - void 0 === valueEqualityFn - ? module$contents$goog$collections$maps_defaultEqualityFn - : valueEqualityFn; - for ( - var $jscomp$iter$24 = $jscomp.makeIterator(map.values()), - $jscomp$key$v = $jscomp$iter$24.next(); - !$jscomp$key$v.done; - $jscomp$key$v = $jscomp$iter$24.next() - ) { - if (valueEqualityFn($jscomp$key$v.value, val)) { - return !0; - } - } - return !1; -}; + return !1 +} var module$contents$goog$collections$maps_defaultEqualityFn = function (a, b) { - return a === b; -}; + return a === b +} goog.collections.maps.equals = function (map, otherMap, valueEqualityFn) { - valueEqualityFn = - void 0 === valueEqualityFn - ? module$contents$goog$collections$maps_defaultEqualityFn - : valueEqualityFn; - if (map === otherMap) { - return !0; - } - if (map.size !== otherMap.size) { - return !1; - } - for ( - var $jscomp$iter$25 = $jscomp.makeIterator(map.keys()), - $jscomp$key$key = $jscomp$iter$25.next(); - !$jscomp$key$key.done; - $jscomp$key$key = $jscomp$iter$25.next() - ) { - var key = $jscomp$key$key.value; - if ( - !otherMap.has(key) || - !valueEqualityFn(map.get(key), otherMap.get(key)) + valueEqualityFn = + void 0 === valueEqualityFn + ? module$contents$goog$collections$maps_defaultEqualityFn + : valueEqualityFn + if (map === otherMap) { + return !0 + } + if (map.size !== otherMap.size) { + return !1 + } + for ( + var $jscomp$iter$25 = $jscomp.makeIterator(map.keys()), + $jscomp$key$key = $jscomp$iter$25.next(); + !$jscomp$key$key.done; + $jscomp$key$key = $jscomp$iter$25.next() ) { - return !1; + var key = $jscomp$key$key.value + if ( + !otherMap.has(key) || + !valueEqualityFn(map.get(key), otherMap.get(key)) + ) { + return !1 + } } - } - return !0; -}; + return !0 +} goog.collections.maps.transpose = function (map) { - for ( - var transposed = new Map(), - $jscomp$iter$26 = $jscomp.makeIterator(map.keys()), - $jscomp$key$key = $jscomp$iter$26.next(); - !$jscomp$key$key.done; - $jscomp$key$key = $jscomp$iter$26.next() - ) { - var key = $jscomp$key$key.value, - val = map.get(key); - transposed.set(val, key); - } - return transposed; -}; + for ( + var transposed = new Map(), + $jscomp$iter$26 = $jscomp.makeIterator(map.keys()), + $jscomp$key$key = $jscomp$iter$26.next(); + !$jscomp$key$key.done; + $jscomp$key$key = $jscomp$iter$26.next() + ) { + var key = $jscomp$key$key.value, + val = map.get(key) + transposed.set(val, key) + } + return transposed +} goog.collections.maps.toObject = function (map) { - for ( - var obj = {}, - $jscomp$iter$27 = $jscomp.makeIterator(map.keys()), - $jscomp$key$key = $jscomp$iter$27.next(); - !$jscomp$key$key.done; - $jscomp$key$key = $jscomp$iter$27.next() - ) { - var key = $jscomp$key$key.value; - obj[key] = map.get(key); - } - return obj; -}; -goog.uri = {}; -goog.uri.utils = {}; -goog.uri.utils.QueryArray = {}; -goog.uri.utils.QueryValue = {}; -goog.uri.utils.CharCode_ = { AMPERSAND: 38, EQUAL: 61, HASH: 35, QUESTION: 63 }; + for ( + var obj = {}, + $jscomp$iter$27 = $jscomp.makeIterator(map.keys()), + $jscomp$key$key = $jscomp$iter$27.next(); + !$jscomp$key$key.done; + $jscomp$key$key = $jscomp$iter$27.next() + ) { + var key = $jscomp$key$key.value + obj[key] = map.get(key) + } + return obj +} +goog.uri = {} +goog.uri.utils = {} +goog.uri.utils.QueryArray = {} +goog.uri.utils.QueryValue = {} +goog.uri.utils.CharCode_ = { AMPERSAND: 38, EQUAL: 61, HASH: 35, QUESTION: 63 } goog.uri.utils.buildFromEncodedParts = function ( - opt_scheme, - opt_userInfo, - opt_domain, - opt_port, - opt_path, - opt_queryData, - opt_fragment -) { - var out = ""; - opt_scheme && (out += opt_scheme + ":"); - opt_domain && - ((out += "//"), - opt_userInfo && (out += opt_userInfo + "@"), - (out += opt_domain), - opt_port && (out += ":" + opt_port)); - opt_path && (out += opt_path); - opt_queryData && (out += "?" + opt_queryData); - opt_fragment && (out += "#" + opt_fragment); - return out; -}; + opt_scheme, + opt_userInfo, + opt_domain, + opt_port, + opt_path, + opt_queryData, + opt_fragment +) { + var out = '' + opt_scheme && (out += opt_scheme + ':') + opt_domain && + ((out += '//'), + opt_userInfo && (out += opt_userInfo + '@'), + (out += opt_domain), + opt_port && (out += ':' + opt_port)) + opt_path && (out += opt_path) + opt_queryData && (out += '?' + opt_queryData) + opt_fragment && (out += '#' + opt_fragment) + return out +} goog.uri.utils.splitRe_ = RegExp( - "^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$" -); + '^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$' +) goog.uri.utils.ComponentIndex = { - SCHEME: 1, - USER_INFO: 2, - DOMAIN: 3, - PORT: 4, - PATH: 5, - QUERY_DATA: 6, - FRAGMENT: 7, -}; -goog.uri.utils.urlPackageSupportLoggingHandler_ = null; + SCHEME: 1, + USER_INFO: 2, + DOMAIN: 3, + PORT: 4, + PATH: 5, + QUERY_DATA: 6, + FRAGMENT: 7, +} +goog.uri.utils.urlPackageSupportLoggingHandler_ = null goog.uri.utils.setUrlPackageSupportLoggingHandler = function (handler) { - goog.uri.utils.urlPackageSupportLoggingHandler_ = handler; -}; + goog.uri.utils.urlPackageSupportLoggingHandler_ = handler +} goog.uri.utils.split = function (uri) { - var result = uri.match(goog.uri.utils.splitRe_); - goog.uri.utils.urlPackageSupportLoggingHandler_ && - 0 <= - ["http", "https", "ws", "wss", "ftp"].indexOf( - result[goog.uri.utils.ComponentIndex.SCHEME] - ) && - goog.uri.utils.urlPackageSupportLoggingHandler_(uri); - return result; -}; + var result = uri.match(goog.uri.utils.splitRe_) + goog.uri.utils.urlPackageSupportLoggingHandler_ && + 0 <= + ['http', 'https', 'ws', 'wss', 'ftp'].indexOf( + result[goog.uri.utils.ComponentIndex.SCHEME] + ) && + goog.uri.utils.urlPackageSupportLoggingHandler_(uri) + return result +} goog.uri.utils.decodeIfPossible_ = function (uri, opt_preserveReserved) { - return uri - ? opt_preserveReserved - ? decodeURI(uri) - : decodeURIComponent(uri) - : uri; -}; + return uri + ? opt_preserveReserved + ? decodeURI(uri) + : decodeURIComponent(uri) + : uri +} goog.uri.utils.getComponentByIndex_ = function (componentIndex, uri) { - return goog.uri.utils.split(uri)[componentIndex] || null; -}; + return goog.uri.utils.split(uri)[componentIndex] || null +} goog.uri.utils.getScheme = function (uri) { - return goog.uri.utils.getComponentByIndex_( - goog.uri.utils.ComponentIndex.SCHEME, - uri - ); -}; + return goog.uri.utils.getComponentByIndex_( + goog.uri.utils.ComponentIndex.SCHEME, + uri + ) +} goog.uri.utils.getEffectiveScheme = function (uri) { - var scheme = goog.uri.utils.getScheme(uri); - !scheme && - goog.global.self && - goog.global.self.location && - (scheme = goog.global.self.location.protocol.slice(0, -1)); - return scheme ? scheme.toLowerCase() : ""; -}; + var scheme = goog.uri.utils.getScheme(uri) + !scheme && + goog.global.self && + goog.global.self.location && + (scheme = goog.global.self.location.protocol.slice(0, -1)) + return scheme ? scheme.toLowerCase() : '' +} goog.uri.utils.getUserInfoEncoded = function (uri) { - return goog.uri.utils.getComponentByIndex_( - goog.uri.utils.ComponentIndex.USER_INFO, - uri - ); -}; + return goog.uri.utils.getComponentByIndex_( + goog.uri.utils.ComponentIndex.USER_INFO, + uri + ) +} goog.uri.utils.getUserInfo = function (uri) { - return goog.uri.utils.decodeIfPossible_( - goog.uri.utils.getUserInfoEncoded(uri) - ); -}; + return goog.uri.utils.decodeIfPossible_( + goog.uri.utils.getUserInfoEncoded(uri) + ) +} goog.uri.utils.getDomainEncoded = function (uri) { - return goog.uri.utils.getComponentByIndex_( - goog.uri.utils.ComponentIndex.DOMAIN, - uri - ); -}; + return goog.uri.utils.getComponentByIndex_( + goog.uri.utils.ComponentIndex.DOMAIN, + uri + ) +} goog.uri.utils.getDomain = function (uri) { - return goog.uri.utils.decodeIfPossible_( - goog.uri.utils.getDomainEncoded(uri), - !0 - ); -}; + return goog.uri.utils.decodeIfPossible_( + goog.uri.utils.getDomainEncoded(uri), + !0 + ) +} goog.uri.utils.getPort = function (uri) { - return ( - Number( - goog.uri.utils.getComponentByIndex_( - goog.uri.utils.ComponentIndex.PORT, - uri - ) - ) || null - ); -}; + return ( + Number( + goog.uri.utils.getComponentByIndex_( + goog.uri.utils.ComponentIndex.PORT, + uri + ) + ) || null + ) +} goog.uri.utils.getPathEncoded = function (uri) { - return goog.uri.utils.getComponentByIndex_( - goog.uri.utils.ComponentIndex.PATH, - uri - ); -}; + return goog.uri.utils.getComponentByIndex_( + goog.uri.utils.ComponentIndex.PATH, + uri + ) +} goog.uri.utils.getPath = function (uri) { - return goog.uri.utils.decodeIfPossible_( - goog.uri.utils.getPathEncoded(uri), - !0 - ); -}; + return goog.uri.utils.decodeIfPossible_( + goog.uri.utils.getPathEncoded(uri), + !0 + ) +} goog.uri.utils.getQueryData = function (uri) { - return goog.uri.utils.getComponentByIndex_( - goog.uri.utils.ComponentIndex.QUERY_DATA, - uri - ); -}; + return goog.uri.utils.getComponentByIndex_( + goog.uri.utils.ComponentIndex.QUERY_DATA, + uri + ) +} goog.uri.utils.getFragmentEncoded = function (uri) { - var hashIndex = uri.indexOf("#"); - return 0 > hashIndex ? null : uri.slice(hashIndex + 1); -}; + var hashIndex = uri.indexOf('#') + return 0 > hashIndex ? null : uri.slice(hashIndex + 1) +} goog.uri.utils.setFragmentEncoded = function (uri, fragment) { - return goog.uri.utils.removeFragment(uri) + (fragment ? "#" + fragment : ""); -}; + return goog.uri.utils.removeFragment(uri) + (fragment ? '#' + fragment : '') +} goog.uri.utils.getFragment = function (uri) { - return goog.uri.utils.decodeIfPossible_( - goog.uri.utils.getFragmentEncoded(uri) - ); -}; + return goog.uri.utils.decodeIfPossible_( + goog.uri.utils.getFragmentEncoded(uri) + ) +} goog.uri.utils.getHost = function (uri) { - var pieces = goog.uri.utils.split(uri); - return goog.uri.utils.buildFromEncodedParts( - pieces[goog.uri.utils.ComponentIndex.SCHEME], - pieces[goog.uri.utils.ComponentIndex.USER_INFO], - pieces[goog.uri.utils.ComponentIndex.DOMAIN], - pieces[goog.uri.utils.ComponentIndex.PORT] - ); -}; + var pieces = goog.uri.utils.split(uri) + return goog.uri.utils.buildFromEncodedParts( + pieces[goog.uri.utils.ComponentIndex.SCHEME], + pieces[goog.uri.utils.ComponentIndex.USER_INFO], + pieces[goog.uri.utils.ComponentIndex.DOMAIN], + pieces[goog.uri.utils.ComponentIndex.PORT] + ) +} goog.uri.utils.getOrigin = function (uri) { - var pieces = goog.uri.utils.split(uri); - return goog.uri.utils.buildFromEncodedParts( - pieces[goog.uri.utils.ComponentIndex.SCHEME], - null, - pieces[goog.uri.utils.ComponentIndex.DOMAIN], - pieces[goog.uri.utils.ComponentIndex.PORT] - ); -}; + var pieces = goog.uri.utils.split(uri) + return goog.uri.utils.buildFromEncodedParts( + pieces[goog.uri.utils.ComponentIndex.SCHEME], + null, + pieces[goog.uri.utils.ComponentIndex.DOMAIN], + pieces[goog.uri.utils.ComponentIndex.PORT] + ) +} goog.uri.utils.getPathAndAfter = function (uri) { - var pieces = goog.uri.utils.split(uri); - return goog.uri.utils.buildFromEncodedParts( - null, - null, - null, - null, - pieces[goog.uri.utils.ComponentIndex.PATH], - pieces[goog.uri.utils.ComponentIndex.QUERY_DATA], - pieces[goog.uri.utils.ComponentIndex.FRAGMENT] - ); -}; + var pieces = goog.uri.utils.split(uri) + return goog.uri.utils.buildFromEncodedParts( + null, + null, + null, + null, + pieces[goog.uri.utils.ComponentIndex.PATH], + pieces[goog.uri.utils.ComponentIndex.QUERY_DATA], + pieces[goog.uri.utils.ComponentIndex.FRAGMENT] + ) +} goog.uri.utils.removeFragment = function (uri) { - var hashIndex = uri.indexOf("#"); - return 0 > hashIndex ? uri : uri.slice(0, hashIndex); -}; + var hashIndex = uri.indexOf('#') + return 0 > hashIndex ? uri : uri.slice(0, hashIndex) +} goog.uri.utils.haveSameDomain = function (uri1, uri2) { - var pieces1 = goog.uri.utils.split(uri1), - pieces2 = goog.uri.utils.split(uri2); - return ( - pieces1[goog.uri.utils.ComponentIndex.DOMAIN] == - pieces2[goog.uri.utils.ComponentIndex.DOMAIN] && - pieces1[goog.uri.utils.ComponentIndex.SCHEME] == - pieces2[goog.uri.utils.ComponentIndex.SCHEME] && - pieces1[goog.uri.utils.ComponentIndex.PORT] == - pieces2[goog.uri.utils.ComponentIndex.PORT] - ); -}; + var pieces1 = goog.uri.utils.split(uri1), + pieces2 = goog.uri.utils.split(uri2) + return ( + pieces1[goog.uri.utils.ComponentIndex.DOMAIN] == + pieces2[goog.uri.utils.ComponentIndex.DOMAIN] && + pieces1[goog.uri.utils.ComponentIndex.SCHEME] == + pieces2[goog.uri.utils.ComponentIndex.SCHEME] && + pieces1[goog.uri.utils.ComponentIndex.PORT] == + pieces2[goog.uri.utils.ComponentIndex.PORT] + ) +} goog.uri.utils.assertNoFragmentsOrQueries_ = function (uri) { - goog.asserts.assert( - 0 > uri.indexOf("#") && 0 > uri.indexOf("?"), - "goog.uri.utils: Fragment or query identifiers are not supported: [%s]", - uri - ); -}; + goog.asserts.assert( + 0 > uri.indexOf('#') && 0 > uri.indexOf('?'), + 'goog.uri.utils: Fragment or query identifiers are not supported: [%s]', + uri + ) +} goog.uri.utils.parseQueryData = function (encodedQuery, callback) { - if (encodedQuery) { - for (var pairs = encodedQuery.split("&"), i = 0; i < pairs.length; i++) { - var indexOfEquals = pairs[i].indexOf("="), - name = null, - value = null; - 0 <= indexOfEquals - ? ((name = pairs[i].substring(0, indexOfEquals)), - (value = pairs[i].substring(indexOfEquals + 1))) - : (name = pairs[i]); - callback(name, value ? goog.string.urlDecode(value) : ""); - } - } -}; + if (encodedQuery) { + for ( + var pairs = encodedQuery.split('&'), i = 0; + i < pairs.length; + i++ + ) { + var indexOfEquals = pairs[i].indexOf('='), + name = null, + value = null + 0 <= indexOfEquals + ? ((name = pairs[i].substring(0, indexOfEquals)), + (value = pairs[i].substring(indexOfEquals + 1))) + : (name = pairs[i]) + callback(name, value ? goog.string.urlDecode(value) : '') + } + } +} goog.uri.utils.splitQueryData_ = function (uri) { - var hashIndex = uri.indexOf("#"); - 0 > hashIndex && (hashIndex = uri.length); - var questionIndex = uri.indexOf("?"); - if (0 > questionIndex || questionIndex > hashIndex) { - questionIndex = hashIndex; - var queryData = ""; - } else { - queryData = uri.substring(questionIndex + 1, hashIndex); - } - return [uri.slice(0, questionIndex), queryData, uri.slice(hashIndex)]; -}; + var hashIndex = uri.indexOf('#') + 0 > hashIndex && (hashIndex = uri.length) + var questionIndex = uri.indexOf('?') + if (0 > questionIndex || questionIndex > hashIndex) { + questionIndex = hashIndex + var queryData = '' + } else { + queryData = uri.substring(questionIndex + 1, hashIndex) + } + return [uri.slice(0, questionIndex), queryData, uri.slice(hashIndex)] +} goog.uri.utils.joinQueryData_ = function (parts) { - return parts[0] + (parts[1] ? "?" + parts[1] : "") + parts[2]; -}; + return parts[0] + (parts[1] ? '?' + parts[1] : '') + parts[2] +} goog.uri.utils.appendQueryData_ = function (queryData, newData) { - return newData - ? queryData - ? queryData + "&" + newData - : newData - : queryData; -}; + return newData + ? queryData + ? queryData + '&' + newData + : newData + : queryData +} goog.uri.utils.appendQueryDataToUri_ = function (uri, queryData) { - if (!queryData) { - return uri; - } - var parts = goog.uri.utils.splitQueryData_(uri); - parts[1] = goog.uri.utils.appendQueryData_(parts[1], queryData); - return goog.uri.utils.joinQueryData_(parts); -}; + if (!queryData) { + return uri + } + var parts = goog.uri.utils.splitQueryData_(uri) + parts[1] = goog.uri.utils.appendQueryData_(parts[1], queryData) + return goog.uri.utils.joinQueryData_(parts) +} goog.uri.utils.appendKeyValuePairs_ = function (key, value, pairs) { - goog.asserts.assertString(key); - if (Array.isArray(value)) { - goog.asserts.assertArray(value); - for (var j = 0; j < value.length; j++) { - goog.uri.utils.appendKeyValuePairs_(key, String(value[j]), pairs); - } - } else { - null != value && - pairs.push( - key + ("" === value ? "" : "=" + goog.string.urlEncode(value)) - ); - } -}; + goog.asserts.assertString(key) + if (Array.isArray(value)) { + goog.asserts.assertArray(value) + for (var j = 0; j < value.length; j++) { + goog.uri.utils.appendKeyValuePairs_(key, String(value[j]), pairs) + } + } else { + null != value && + pairs.push( + key + ('' === value ? '' : '=' + goog.string.urlEncode(value)) + ) + } +} goog.uri.utils.buildQueryData = function (keysAndValues, opt_startIndex) { - goog.asserts.assert( - 0 == Math.max(keysAndValues.length - (opt_startIndex || 0), 0) % 2, - "goog.uri.utils: Key/value lists must be even in length." - ); - for ( - var params = [], i = opt_startIndex || 0; - i < keysAndValues.length; - i += 2 - ) { - goog.uri.utils.appendKeyValuePairs_( - keysAndValues[i], - keysAndValues[i + 1], - params - ); - } - return params.join("&"); -}; + goog.asserts.assert( + 0 == Math.max(keysAndValues.length - (opt_startIndex || 0), 0) % 2, + 'goog.uri.utils: Key/value lists must be even in length.' + ) + for ( + var params = [], i = opt_startIndex || 0; + i < keysAndValues.length; + i += 2 + ) { + goog.uri.utils.appendKeyValuePairs_( + keysAndValues[i], + keysAndValues[i + 1], + params + ) + } + return params.join('&') +} goog.uri.utils.buildQueryDataFromMap = function (map) { - var params = [], - key; - for (key in map) { - goog.uri.utils.appendKeyValuePairs_(key, map[key], params); - } - return params.join("&"); -}; + var params = [], + key + for (key in map) { + goog.uri.utils.appendKeyValuePairs_(key, map[key], params) + } + return params.join('&') +} goog.uri.utils.appendParams = function (uri, var_args) { - var queryData = - 2 == arguments.length - ? goog.uri.utils.buildQueryData(arguments[1], 0) - : goog.uri.utils.buildQueryData(arguments, 1); - return goog.uri.utils.appendQueryDataToUri_(uri, queryData); -}; + var queryData = + 2 == arguments.length + ? goog.uri.utils.buildQueryData(arguments[1], 0) + : goog.uri.utils.buildQueryData(arguments, 1) + return goog.uri.utils.appendQueryDataToUri_(uri, queryData) +} goog.uri.utils.appendParamsFromMap = function (uri, map) { - var queryData = goog.uri.utils.buildQueryDataFromMap(map); - return goog.uri.utils.appendQueryDataToUri_(uri, queryData); -}; + var queryData = goog.uri.utils.buildQueryDataFromMap(map) + return goog.uri.utils.appendQueryDataToUri_(uri, queryData) +} goog.uri.utils.appendParam = function (uri, key, opt_value) { - var value = null != opt_value ? "=" + goog.string.urlEncode(opt_value) : ""; - return goog.uri.utils.appendQueryDataToUri_(uri, key + value); -}; + var value = null != opt_value ? '=' + goog.string.urlEncode(opt_value) : '' + return goog.uri.utils.appendQueryDataToUri_(uri, key + value) +} goog.uri.utils.findParam_ = function ( - uri, - startIndex, - keyEncoded, - hashOrEndIndex -) { - for ( - var index = startIndex, keyLength = keyEncoded.length; - 0 <= (index = uri.indexOf(keyEncoded, index)) && index < hashOrEndIndex; + uri, + startIndex, + keyEncoded, + hashOrEndIndex +) { + for ( + var index = startIndex, keyLength = keyEncoded.length; + 0 <= (index = uri.indexOf(keyEncoded, index)) && index < hashOrEndIndex; - ) { - var precedingChar = uri.charCodeAt(index - 1); - if ( - precedingChar == goog.uri.utils.CharCode_.AMPERSAND || - precedingChar == goog.uri.utils.CharCode_.QUESTION ) { - var followingChar = uri.charCodeAt(index + keyLength); - if ( - !followingChar || - followingChar == goog.uri.utils.CharCode_.EQUAL || - followingChar == goog.uri.utils.CharCode_.AMPERSAND || - followingChar == goog.uri.utils.CharCode_.HASH - ) { - return index; - } + var precedingChar = uri.charCodeAt(index - 1) + if ( + precedingChar == goog.uri.utils.CharCode_.AMPERSAND || + precedingChar == goog.uri.utils.CharCode_.QUESTION + ) { + var followingChar = uri.charCodeAt(index + keyLength) + if ( + !followingChar || + followingChar == goog.uri.utils.CharCode_.EQUAL || + followingChar == goog.uri.utils.CharCode_.AMPERSAND || + followingChar == goog.uri.utils.CharCode_.HASH + ) { + return index + } + } + index += keyLength + 1 } - index += keyLength + 1; - } - return -1; -}; -goog.uri.utils.hashOrEndRe_ = /#|$/; + return -1 +} +goog.uri.utils.hashOrEndRe_ = /#|$/ goog.uri.utils.hasParam = function (uri, keyEncoded) { - return ( - 0 <= - goog.uri.utils.findParam_( - uri, - 0, - keyEncoded, - uri.search(goog.uri.utils.hashOrEndRe_) - ) - ); -}; + return ( + 0 <= + goog.uri.utils.findParam_( + uri, + 0, + keyEncoded, + uri.search(goog.uri.utils.hashOrEndRe_) + ) + ) +} goog.uri.utils.getParamValue = function (uri, keyEncoded) { - var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_), - foundIndex = goog.uri.utils.findParam_(uri, 0, keyEncoded, hashOrEndIndex); - if (0 > foundIndex) { - return null; - } - var endPosition = uri.indexOf("&", foundIndex); - if (0 > endPosition || endPosition > hashOrEndIndex) { - endPosition = hashOrEndIndex; - } - foundIndex += keyEncoded.length + 1; - return goog.string.urlDecode( - uri.slice(foundIndex, -1 !== endPosition ? endPosition : 0) - ); -}; -goog.uri.utils.getParamValues = function (uri, keyEncoded) { - for ( var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_), - position = 0, - foundIndex, - result = []; - 0 <= - (foundIndex = goog.uri.utils.findParam_( - uri, - position, - keyEncoded, - hashOrEndIndex - )); + foundIndex = goog.uri.utils.findParam_( + uri, + 0, + keyEncoded, + hashOrEndIndex + ) + if (0 > foundIndex) { + return null + } + var endPosition = uri.indexOf('&', foundIndex) + if (0 > endPosition || endPosition > hashOrEndIndex) { + endPosition = hashOrEndIndex + } + foundIndex += keyEncoded.length + 1 + return goog.string.urlDecode( + uri.slice(foundIndex, -1 !== endPosition ? endPosition : 0) + ) +} +goog.uri.utils.getParamValues = function (uri, keyEncoded) { + for ( + var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_), + position = 0, + foundIndex, + result = []; + 0 <= + (foundIndex = goog.uri.utils.findParam_( + uri, + position, + keyEncoded, + hashOrEndIndex + )); - ) { - position = uri.indexOf("&", foundIndex); - if (0 > position || position > hashOrEndIndex) { - position = hashOrEndIndex; - } - foundIndex += keyEncoded.length + 1; - result.push( - goog.string.urlDecode(uri.slice(foundIndex, Math.max(position, 0))) - ); - } - return result; -}; -goog.uri.utils.trailingQueryPunctuationRe_ = /[?&]($|#)/; + ) { + position = uri.indexOf('&', foundIndex) + if (0 > position || position > hashOrEndIndex) { + position = hashOrEndIndex + } + foundIndex += keyEncoded.length + 1 + result.push( + goog.string.urlDecode(uri.slice(foundIndex, Math.max(position, 0))) + ) + } + return result +} +goog.uri.utils.trailingQueryPunctuationRe_ = /[?&]($|#)/ goog.uri.utils.removeParam = function (uri, keyEncoded) { - for ( - var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_), - position = 0, - foundIndex, - buffer = []; - 0 <= - (foundIndex = goog.uri.utils.findParam_( - uri, - position, - keyEncoded, - hashOrEndIndex - )); + for ( + var hashOrEndIndex = uri.search(goog.uri.utils.hashOrEndRe_), + position = 0, + foundIndex, + buffer = []; + 0 <= + (foundIndex = goog.uri.utils.findParam_( + uri, + position, + keyEncoded, + hashOrEndIndex + )); - ) { - buffer.push(uri.substring(position, foundIndex)), - (position = Math.min( - uri.indexOf("&", foundIndex) + 1 || hashOrEndIndex, - hashOrEndIndex - )); - } - buffer.push(uri.slice(position)); - return buffer - .join("") - .replace(goog.uri.utils.trailingQueryPunctuationRe_, "$1"); -}; + ) { + buffer.push(uri.substring(position, foundIndex)), + (position = Math.min( + uri.indexOf('&', foundIndex) + 1 || hashOrEndIndex, + hashOrEndIndex + )) + } + buffer.push(uri.slice(position)) + return buffer + .join('') + .replace(goog.uri.utils.trailingQueryPunctuationRe_, '$1') +} goog.uri.utils.setParam = function (uri, keyEncoded, value) { - return goog.uri.utils.appendParam( - goog.uri.utils.removeParam(uri, keyEncoded), - keyEncoded, - value - ); -}; + return goog.uri.utils.appendParam( + goog.uri.utils.removeParam(uri, keyEncoded), + keyEncoded, + value + ) +} goog.uri.utils.setParamsFromMap = function (uri, params) { - var parts = goog.uri.utils.splitQueryData_(uri), - queryData = parts[1], - buffer = []; - queryData && - queryData.split("&").forEach(function (pair) { - var indexOfEquals = pair.indexOf("="), - name = 0 <= indexOfEquals ? pair.slice(0, indexOfEquals) : pair; - params.hasOwnProperty(name) || buffer.push(pair); - }); - parts[1] = goog.uri.utils.appendQueryData_( - buffer.join("&"), - goog.uri.utils.buildQueryDataFromMap(params) - ); - return goog.uri.utils.joinQueryData_(parts); -}; + var parts = goog.uri.utils.splitQueryData_(uri), + queryData = parts[1], + buffer = [] + queryData && + queryData.split('&').forEach(function (pair) { + var indexOfEquals = pair.indexOf('='), + name = 0 <= indexOfEquals ? pair.slice(0, indexOfEquals) : pair + params.hasOwnProperty(name) || buffer.push(pair) + }) + parts[1] = goog.uri.utils.appendQueryData_( + buffer.join('&'), + goog.uri.utils.buildQueryDataFromMap(params) + ) + return goog.uri.utils.joinQueryData_(parts) +} goog.uri.utils.appendPath = function (baseUri, path) { - goog.uri.utils.assertNoFragmentsOrQueries_(baseUri); - goog.string.endsWith(baseUri, "/") && (baseUri = baseUri.slice(0, -1)); - goog.string.startsWith(path, "/") && (path = path.slice(1)); - return "" + baseUri + "/" + path; -}; + goog.uri.utils.assertNoFragmentsOrQueries_(baseUri) + goog.string.endsWith(baseUri, '/') && (baseUri = baseUri.slice(0, -1)) + goog.string.startsWith(path, '/') && (path = path.slice(1)) + return '' + baseUri + '/' + path +} goog.uri.utils.setPath = function (uri, path) { - goog.string.startsWith(path, "/") || (path = "/" + path); - var parts = goog.uri.utils.split(uri); - return goog.uri.utils.buildFromEncodedParts( - parts[goog.uri.utils.ComponentIndex.SCHEME], - parts[goog.uri.utils.ComponentIndex.USER_INFO], - parts[goog.uri.utils.ComponentIndex.DOMAIN], - parts[goog.uri.utils.ComponentIndex.PORT], - path, - parts[goog.uri.utils.ComponentIndex.QUERY_DATA], - parts[goog.uri.utils.ComponentIndex.FRAGMENT] - ); -}; -goog.uri.utils.StandardQueryParam = { RANDOM: "zx" }; + goog.string.startsWith(path, '/') || (path = '/' + path) + var parts = goog.uri.utils.split(uri) + return goog.uri.utils.buildFromEncodedParts( + parts[goog.uri.utils.ComponentIndex.SCHEME], + parts[goog.uri.utils.ComponentIndex.USER_INFO], + parts[goog.uri.utils.ComponentIndex.DOMAIN], + parts[goog.uri.utils.ComponentIndex.PORT], + path, + parts[goog.uri.utils.ComponentIndex.QUERY_DATA], + parts[goog.uri.utils.ComponentIndex.FRAGMENT] + ) +} +goog.uri.utils.StandardQueryParam = { RANDOM: 'zx' } goog.uri.utils.makeUnique = function (uri) { - return goog.uri.utils.setParam( - uri, - goog.uri.utils.StandardQueryParam.RANDOM, - goog.string.getRandomString() - ); -}; + return goog.uri.utils.setParam( + uri, + goog.uri.utils.StandardQueryParam.RANDOM, + goog.string.getRandomString() + ) +} goog.Uri = function (opt_uri, opt_ignoreCase) { - this.domain_ = this.userInfo_ = this.scheme_ = ""; - this.port_ = null; - this.fragment_ = this.path_ = ""; - this.ignoreCase_ = this.isReadOnly_ = !1; - var m; - opt_uri instanceof goog.Uri - ? ((this.ignoreCase_ = - void 0 !== opt_ignoreCase ? opt_ignoreCase : opt_uri.getIgnoreCase()), - this.setScheme(opt_uri.getScheme()), - this.setUserInfo(opt_uri.getUserInfo()), - this.setDomain(opt_uri.getDomain()), - this.setPort(opt_uri.getPort()), - this.setPath(opt_uri.getPath()), - this.setQueryData(opt_uri.getQueryData().clone()), - this.setFragment(opt_uri.getFragment())) - : opt_uri && (m = goog.uri.utils.split(String(opt_uri))) - ? ((this.ignoreCase_ = !!opt_ignoreCase), - this.setScheme(m[goog.uri.utils.ComponentIndex.SCHEME] || "", !0), - this.setUserInfo(m[goog.uri.utils.ComponentIndex.USER_INFO] || "", !0), - this.setDomain(m[goog.uri.utils.ComponentIndex.DOMAIN] || "", !0), - this.setPort(m[goog.uri.utils.ComponentIndex.PORT]), - this.setPath(m[goog.uri.utils.ComponentIndex.PATH] || "", !0), - this.setQueryData(m[goog.uri.utils.ComponentIndex.QUERY_DATA] || "", !0), - this.setFragment(m[goog.uri.utils.ComponentIndex.FRAGMENT] || "", !0)) - : ((this.ignoreCase_ = !!opt_ignoreCase), - (this.queryData_ = new goog.Uri.QueryData(null, this.ignoreCase_))); -}; -goog.Uri.RANDOM_PARAM = goog.uri.utils.StandardQueryParam.RANDOM; + this.domain_ = this.userInfo_ = this.scheme_ = '' + this.port_ = null + this.fragment_ = this.path_ = '' + this.ignoreCase_ = this.isReadOnly_ = !1 + var m + opt_uri instanceof goog.Uri + ? ((this.ignoreCase_ = + void 0 !== opt_ignoreCase + ? opt_ignoreCase + : opt_uri.getIgnoreCase()), + this.setScheme(opt_uri.getScheme()), + this.setUserInfo(opt_uri.getUserInfo()), + this.setDomain(opt_uri.getDomain()), + this.setPort(opt_uri.getPort()), + this.setPath(opt_uri.getPath()), + this.setQueryData(opt_uri.getQueryData().clone()), + this.setFragment(opt_uri.getFragment())) + : opt_uri && (m = goog.uri.utils.split(String(opt_uri))) + ? ((this.ignoreCase_ = !!opt_ignoreCase), + this.setScheme(m[goog.uri.utils.ComponentIndex.SCHEME] || '', !0), + this.setUserInfo( + m[goog.uri.utils.ComponentIndex.USER_INFO] || '', + !0 + ), + this.setDomain(m[goog.uri.utils.ComponentIndex.DOMAIN] || '', !0), + this.setPort(m[goog.uri.utils.ComponentIndex.PORT]), + this.setPath(m[goog.uri.utils.ComponentIndex.PATH] || '', !0), + this.setQueryData( + m[goog.uri.utils.ComponentIndex.QUERY_DATA] || '', + !0 + ), + this.setFragment(m[goog.uri.utils.ComponentIndex.FRAGMENT] || '', !0)) + : ((this.ignoreCase_ = !!opt_ignoreCase), + (this.queryData_ = new goog.Uri.QueryData(null, this.ignoreCase_))) +} +goog.Uri.RANDOM_PARAM = goog.uri.utils.StandardQueryParam.RANDOM goog.Uri.prototype.toString = function () { - var out = [], - scheme = this.getScheme(); - scheme && - out.push( - goog.Uri.encodeSpecialChars_( - scheme, - goog.Uri.reDisallowedInSchemeOrUserInfo_, - !0 - ), - ":" - ); - var domain = this.getDomain(); - if (domain || "file" == scheme) { - out.push("//"); - var userInfo = this.getUserInfo(); - userInfo && - out.push( - goog.Uri.encodeSpecialChars_( - userInfo, - goog.Uri.reDisallowedInSchemeOrUserInfo_, - !0 - ), - "@" - ); - out.push(goog.Uri.removeDoubleEncoding_(goog.string.urlEncode(domain))); - var port = this.getPort(); - null != port && out.push(":", String(port)); - } - var path = this.getPath(); - path && - (this.hasDomain() && "/" != path.charAt(0) && out.push("/"), - out.push( - goog.Uri.encodeSpecialChars_( - path, - "/" == path.charAt(0) - ? goog.Uri.reDisallowedInAbsolutePath_ - : goog.Uri.reDisallowedInRelativePath_, - !0 - ) - )); - var query = this.getEncodedQuery(); - query && out.push("?", query); - var fragment = this.getFragment(); - fragment && - out.push( - "#", - goog.Uri.encodeSpecialChars_(fragment, goog.Uri.reDisallowedInFragment_) - ); - return out.join(""); -}; + var out = [], + scheme = this.getScheme() + scheme && + out.push( + goog.Uri.encodeSpecialChars_( + scheme, + goog.Uri.reDisallowedInSchemeOrUserInfo_, + !0 + ), + ':' + ) + var domain = this.getDomain() + if (domain || 'file' == scheme) { + out.push('//') + var userInfo = this.getUserInfo() + userInfo && + out.push( + goog.Uri.encodeSpecialChars_( + userInfo, + goog.Uri.reDisallowedInSchemeOrUserInfo_, + !0 + ), + '@' + ) + out.push(goog.Uri.removeDoubleEncoding_(goog.string.urlEncode(domain))) + var port = this.getPort() + null != port && out.push(':', String(port)) + } + var path = this.getPath() + path && + (this.hasDomain() && '/' != path.charAt(0) && out.push('/'), + out.push( + goog.Uri.encodeSpecialChars_( + path, + '/' == path.charAt(0) + ? goog.Uri.reDisallowedInAbsolutePath_ + : goog.Uri.reDisallowedInRelativePath_, + !0 + ) + )) + var query = this.getEncodedQuery() + query && out.push('?', query) + var fragment = this.getFragment() + fragment && + out.push( + '#', + goog.Uri.encodeSpecialChars_( + fragment, + goog.Uri.reDisallowedInFragment_ + ) + ) + return out.join('') +} goog.Uri.prototype.resolve = function (relativeUri) { - var absoluteUri = this.clone(), - overridden = relativeUri.hasScheme(); - overridden - ? absoluteUri.setScheme(relativeUri.getScheme()) - : (overridden = relativeUri.hasUserInfo()); - overridden - ? absoluteUri.setUserInfo(relativeUri.getUserInfo()) - : (overridden = relativeUri.hasDomain()); - overridden - ? absoluteUri.setDomain(relativeUri.getDomain()) - : (overridden = relativeUri.hasPort()); - var path = relativeUri.getPath(); - if (overridden) { - absoluteUri.setPort(relativeUri.getPort()); - } else { - if ((overridden = relativeUri.hasPath())) { - if ("/" != path.charAt(0)) { - if (this.hasDomain() && !this.hasPath()) { - path = "/" + path; - } else { - var lastSlashIndex = absoluteUri.getPath().lastIndexOf("/"); - -1 != lastSlashIndex && - (path = absoluteUri.getPath().slice(0, lastSlashIndex + 1) + path); + var absoluteUri = this.clone(), + overridden = relativeUri.hasScheme() + overridden + ? absoluteUri.setScheme(relativeUri.getScheme()) + : (overridden = relativeUri.hasUserInfo()) + overridden + ? absoluteUri.setUserInfo(relativeUri.getUserInfo()) + : (overridden = relativeUri.hasDomain()) + overridden + ? absoluteUri.setDomain(relativeUri.getDomain()) + : (overridden = relativeUri.hasPort()) + var path = relativeUri.getPath() + if (overridden) { + absoluteUri.setPort(relativeUri.getPort()) + } else { + if ((overridden = relativeUri.hasPath())) { + if ('/' != path.charAt(0)) { + if (this.hasDomain() && !this.hasPath()) { + path = '/' + path + } else { + var lastSlashIndex = absoluteUri.getPath().lastIndexOf('/') + ;-1 != lastSlashIndex && + (path = + absoluteUri.getPath().slice(0, lastSlashIndex + 1) + + path) + } + } + path = goog.Uri.removeDotSegments(path) } - } - path = goog.Uri.removeDotSegments(path); - } - } - overridden - ? absoluteUri.setPath(path) - : (overridden = relativeUri.hasQuery()); - overridden - ? absoluteUri.setQueryData(relativeUri.getQueryData().clone()) - : (overridden = relativeUri.hasFragment()); - overridden && absoluteUri.setFragment(relativeUri.getFragment()); - return absoluteUri; -}; + } + overridden + ? absoluteUri.setPath(path) + : (overridden = relativeUri.hasQuery()) + overridden + ? absoluteUri.setQueryData(relativeUri.getQueryData().clone()) + : (overridden = relativeUri.hasFragment()) + overridden && absoluteUri.setFragment(relativeUri.getFragment()) + return absoluteUri +} goog.Uri.prototype.clone = function () { - return new goog.Uri(this); -}; + return new goog.Uri(this) +} goog.Uri.prototype.getScheme = function () { - return this.scheme_; -}; + return this.scheme_ +} goog.Uri.prototype.setScheme = function (newScheme, opt_decode) { - this.enforceReadOnly(); - if ( - (this.scheme_ = opt_decode - ? goog.Uri.decodeOrEmpty_(newScheme, !0) - : newScheme) - ) { - this.scheme_ = this.scheme_.replace(/:$/, ""); - } - return this; -}; + this.enforceReadOnly() + if ( + (this.scheme_ = opt_decode + ? goog.Uri.decodeOrEmpty_(newScheme, !0) + : newScheme) + ) { + this.scheme_ = this.scheme_.replace(/:$/, '') + } + return this +} goog.Uri.prototype.hasScheme = function () { - return !!this.scheme_; -}; + return !!this.scheme_ +} goog.Uri.prototype.getUserInfo = function () { - return this.userInfo_; -}; + return this.userInfo_ +} goog.Uri.prototype.setUserInfo = function (newUserInfo, opt_decode) { - this.enforceReadOnly(); - this.userInfo_ = opt_decode - ? goog.Uri.decodeOrEmpty_(newUserInfo) - : newUserInfo; - return this; -}; + this.enforceReadOnly() + this.userInfo_ = opt_decode + ? goog.Uri.decodeOrEmpty_(newUserInfo) + : newUserInfo + return this +} goog.Uri.prototype.hasUserInfo = function () { - return !!this.userInfo_; -}; + return !!this.userInfo_ +} goog.Uri.prototype.getDomain = function () { - return this.domain_; -}; + return this.domain_ +} goog.Uri.prototype.setDomain = function (newDomain, opt_decode) { - this.enforceReadOnly(); - this.domain_ = opt_decode - ? goog.Uri.decodeOrEmpty_(newDomain, !0) - : newDomain; - return this; -}; + this.enforceReadOnly() + this.domain_ = opt_decode + ? goog.Uri.decodeOrEmpty_(newDomain, !0) + : newDomain + return this +} goog.Uri.prototype.hasDomain = function () { - return !!this.domain_; -}; + return !!this.domain_ +} goog.Uri.prototype.getPort = function () { - return this.port_; -}; + return this.port_ +} goog.Uri.prototype.setPort = function (newPort) { - this.enforceReadOnly(); - if (newPort) { - newPort = Number(newPort); - if (isNaN(newPort) || 0 > newPort) { - throw Error("Bad port number " + newPort); - } - this.port_ = newPort; - } else { - this.port_ = null; - } - return this; -}; + this.enforceReadOnly() + if (newPort) { + newPort = Number(newPort) + if (isNaN(newPort) || 0 > newPort) { + throw Error('Bad port number ' + newPort) + } + this.port_ = newPort + } else { + this.port_ = null + } + return this +} goog.Uri.prototype.hasPort = function () { - return null != this.port_; -}; + return null != this.port_ +} goog.Uri.prototype.getPath = function () { - return this.path_; -}; + return this.path_ +} goog.Uri.prototype.setPath = function (newPath, opt_decode) { - this.enforceReadOnly(); - this.path_ = opt_decode ? goog.Uri.decodeOrEmpty_(newPath, !0) : newPath; - return this; -}; + this.enforceReadOnly() + this.path_ = opt_decode ? goog.Uri.decodeOrEmpty_(newPath, !0) : newPath + return this +} goog.Uri.prototype.hasPath = function () { - return !!this.path_; -}; + return !!this.path_ +} goog.Uri.prototype.hasQuery = function () { - return "" !== this.queryData_.toString(); -}; + return '' !== this.queryData_.toString() +} goog.Uri.prototype.setQueryData = function (queryData, opt_decode) { - this.enforceReadOnly(); - queryData instanceof goog.Uri.QueryData - ? ((this.queryData_ = queryData), - this.queryData_.setIgnoreCase(this.ignoreCase_)) - : (opt_decode || - (queryData = goog.Uri.encodeSpecialChars_( - queryData, - goog.Uri.reDisallowedInQuery_ - )), - (this.queryData_ = new goog.Uri.QueryData(queryData, this.ignoreCase_))); - return this; -}; + this.enforceReadOnly() + queryData instanceof goog.Uri.QueryData + ? ((this.queryData_ = queryData), + this.queryData_.setIgnoreCase(this.ignoreCase_)) + : (opt_decode || + (queryData = goog.Uri.encodeSpecialChars_( + queryData, + goog.Uri.reDisallowedInQuery_ + )), + (this.queryData_ = new goog.Uri.QueryData( + queryData, + this.ignoreCase_ + ))) + return this +} goog.Uri.prototype.setQuery = function (newQuery, opt_decode) { - return this.setQueryData(newQuery, opt_decode); -}; + return this.setQueryData(newQuery, opt_decode) +} goog.Uri.prototype.getEncodedQuery = function () { - return this.queryData_.toString(); -}; + return this.queryData_.toString() +} goog.Uri.prototype.getDecodedQuery = function () { - return this.queryData_.toDecodedString(); -}; + return this.queryData_.toDecodedString() +} goog.Uri.prototype.getQueryData = function () { - return this.queryData_; -}; + return this.queryData_ +} goog.Uri.prototype.getQuery = function () { - return this.getEncodedQuery(); -}; + return this.getEncodedQuery() +} goog.Uri.prototype.setParameterValue = function (key, value) { - this.enforceReadOnly(); - this.queryData_.set(key, value); - return this; -}; + this.enforceReadOnly() + this.queryData_.set(key, value) + return this +} goog.Uri.prototype.setParameterValues = function (key, values) { - this.enforceReadOnly(); - Array.isArray(values) || (values = [String(values)]); - this.queryData_.setValues(key, values); - return this; -}; + this.enforceReadOnly() + Array.isArray(values) || (values = [String(values)]) + this.queryData_.setValues(key, values) + return this +} goog.Uri.prototype.getParameterValues = function (name) { - return this.queryData_.getValues(name); -}; + return this.queryData_.getValues(name) +} goog.Uri.prototype.getParameterValue = function (paramName) { - return this.queryData_.get(paramName); -}; + return this.queryData_.get(paramName) +} goog.Uri.prototype.getFragment = function () { - return this.fragment_; -}; + return this.fragment_ +} goog.Uri.prototype.setFragment = function (newFragment, opt_decode) { - this.enforceReadOnly(); - this.fragment_ = opt_decode - ? goog.Uri.decodeOrEmpty_(newFragment) - : newFragment; - return this; -}; + this.enforceReadOnly() + this.fragment_ = opt_decode + ? goog.Uri.decodeOrEmpty_(newFragment) + : newFragment + return this +} goog.Uri.prototype.hasFragment = function () { - return !!this.fragment_; -}; + return !!this.fragment_ +} goog.Uri.prototype.hasSameDomainAs = function (uri2) { - return ( - ((!this.hasDomain() && !uri2.hasDomain()) || - this.getDomain() == uri2.getDomain()) && - ((!this.hasPort() && !uri2.hasPort()) || this.getPort() == uri2.getPort()) - ); -}; + return ( + ((!this.hasDomain() && !uri2.hasDomain()) || + this.getDomain() == uri2.getDomain()) && + ((!this.hasPort() && !uri2.hasPort()) || + this.getPort() == uri2.getPort()) + ) +} goog.Uri.prototype.makeUnique = function () { - this.enforceReadOnly(); - this.setParameterValue(goog.Uri.RANDOM_PARAM, goog.string.getRandomString()); - return this; -}; + this.enforceReadOnly() + this.setParameterValue(goog.Uri.RANDOM_PARAM, goog.string.getRandomString()) + return this +} goog.Uri.prototype.removeParameter = function (key) { - this.enforceReadOnly(); - this.queryData_.remove(key); - return this; -}; + this.enforceReadOnly() + this.queryData_.remove(key) + return this +} goog.Uri.prototype.setReadOnly = function (isReadOnly) { - this.isReadOnly_ = isReadOnly; - return this; -}; + this.isReadOnly_ = isReadOnly + return this +} goog.Uri.prototype.isReadOnly = function () { - return this.isReadOnly_; -}; + return this.isReadOnly_ +} goog.Uri.prototype.enforceReadOnly = function () { - if (this.isReadOnly_) { - throw Error("Tried to modify a read-only Uri"); - } -}; + if (this.isReadOnly_) { + throw Error('Tried to modify a read-only Uri') + } +} goog.Uri.prototype.setIgnoreCase = function (ignoreCase) { - this.ignoreCase_ = ignoreCase; - this.queryData_ && this.queryData_.setIgnoreCase(ignoreCase); - return this; -}; + this.ignoreCase_ = ignoreCase + this.queryData_ && this.queryData_.setIgnoreCase(ignoreCase) + return this +} goog.Uri.prototype.getIgnoreCase = function () { - return this.ignoreCase_; -}; + return this.ignoreCase_ +} goog.Uri.parse = function (uri, opt_ignoreCase) { - return uri instanceof goog.Uri - ? uri.clone() - : new goog.Uri(uri, opt_ignoreCase); -}; + return uri instanceof goog.Uri + ? uri.clone() + : new goog.Uri(uri, opt_ignoreCase) +} goog.Uri.create = function ( - opt_scheme, - opt_userInfo, - opt_domain, - opt_port, - opt_path, - opt_query, - opt_fragment, - opt_ignoreCase -) { - var uri = new goog.Uri(null, opt_ignoreCase); - opt_scheme && uri.setScheme(opt_scheme); - opt_userInfo && uri.setUserInfo(opt_userInfo); - opt_domain && uri.setDomain(opt_domain); - opt_port && uri.setPort(opt_port); - opt_path && uri.setPath(opt_path); - opt_query && uri.setQueryData(opt_query); - opt_fragment && uri.setFragment(opt_fragment); - return uri; -}; + opt_scheme, + opt_userInfo, + opt_domain, + opt_port, + opt_path, + opt_query, + opt_fragment, + opt_ignoreCase +) { + var uri = new goog.Uri(null, opt_ignoreCase) + opt_scheme && uri.setScheme(opt_scheme) + opt_userInfo && uri.setUserInfo(opt_userInfo) + opt_domain && uri.setDomain(opt_domain) + opt_port && uri.setPort(opt_port) + opt_path && uri.setPath(opt_path) + opt_query && uri.setQueryData(opt_query) + opt_fragment && uri.setFragment(opt_fragment) + return uri +} goog.Uri.resolve = function (base, rel) { - base instanceof goog.Uri || (base = goog.Uri.parse(base)); - rel instanceof goog.Uri || (rel = goog.Uri.parse(rel)); - return base.resolve(rel); -}; + base instanceof goog.Uri || (base = goog.Uri.parse(base)) + rel instanceof goog.Uri || (rel = goog.Uri.parse(rel)) + return base.resolve(rel) +} goog.Uri.removeDotSegments = function (path) { - if (".." == path || "." == path) { - return ""; - } - if (goog.string.contains(path, "./") || goog.string.contains(path, "/.")) { - for ( - var leadingSlash = goog.string.startsWith(path, "/"), - segments = path.split("/"), - out = [], - pos = 0; - pos < segments.length; + if ('..' == path || '.' == path) { + return '' + } + if (goog.string.contains(path, './') || goog.string.contains(path, '/.')) { + for ( + var leadingSlash = goog.string.startsWith(path, '/'), + segments = path.split('/'), + out = [], + pos = 0; + pos < segments.length; - ) { - var segment = segments[pos++]; - "." == segment - ? leadingSlash && pos == segments.length && out.push("") - : ".." == segment - ? ((1 < out.length || (1 == out.length && "" != out[0])) && out.pop(), - leadingSlash && pos == segments.length && out.push("")) - : (out.push(segment), (leadingSlash = !0)); - } - return out.join("/"); - } - return path; -}; + ) { + var segment = segments[pos++] + '.' == segment + ? leadingSlash && pos == segments.length && out.push('') + : '..' == segment + ? ((1 < out.length || (1 == out.length && '' != out[0])) && + out.pop(), + leadingSlash && pos == segments.length && out.push('')) + : (out.push(segment), (leadingSlash = !0)) + } + return out.join('/') + } + return path +} goog.Uri.decodeOrEmpty_ = function (val, opt_preserveReserved) { - return val - ? opt_preserveReserved - ? decodeURI(val.replace(/%25/g, "%2525")) - : decodeURIComponent(val) - : ""; -}; + return val + ? opt_preserveReserved + ? decodeURI(val.replace(/%25/g, '%2525')) + : decodeURIComponent(val) + : '' +} goog.Uri.encodeSpecialChars_ = function ( - unescapedPart, - extra, - opt_removeDoubleEncoding -) { - if ("string" === typeof unescapedPart) { - var encoded = encodeURI(unescapedPart).replace(extra, goog.Uri.encodeChar_); - opt_removeDoubleEncoding && - (encoded = goog.Uri.removeDoubleEncoding_(encoded)); - return encoded; - } - return null; -}; + unescapedPart, + extra, + opt_removeDoubleEncoding +) { + if ('string' === typeof unescapedPart) { + var encoded = encodeURI(unescapedPart).replace( + extra, + goog.Uri.encodeChar_ + ) + opt_removeDoubleEncoding && + (encoded = goog.Uri.removeDoubleEncoding_(encoded)) + return encoded + } + return null +} goog.Uri.encodeChar_ = function (ch) { - var n = ch.charCodeAt(0); - return "%" + ((n >> 4) & 15).toString(16) + (n & 15).toString(16); -}; + var n = ch.charCodeAt(0) + return '%' + ((n >> 4) & 15).toString(16) + (n & 15).toString(16) +} goog.Uri.removeDoubleEncoding_ = function (doubleEncodedString) { - return doubleEncodedString.replace(/%25([0-9a-fA-F]{2})/g, "%$1"); -}; -goog.Uri.reDisallowedInSchemeOrUserInfo_ = /[#\/\?@]/g; -goog.Uri.reDisallowedInRelativePath_ = /[#\?:]/g; -goog.Uri.reDisallowedInAbsolutePath_ = /[#\?]/g; -goog.Uri.reDisallowedInQuery_ = /[#\?@]/g; -goog.Uri.reDisallowedInFragment_ = /#/g; + return doubleEncodedString.replace(/%25([0-9a-fA-F]{2})/g, '%$1') +} +goog.Uri.reDisallowedInSchemeOrUserInfo_ = /[#\/\?@]/g +goog.Uri.reDisallowedInRelativePath_ = /[#\?:]/g +goog.Uri.reDisallowedInAbsolutePath_ = /[#\?]/g +goog.Uri.reDisallowedInQuery_ = /[#\?@]/g +goog.Uri.reDisallowedInFragment_ = /#/g goog.Uri.haveSameDomain = function (uri1String, uri2String) { - var pieces1 = goog.uri.utils.split(uri1String), - pieces2 = goog.uri.utils.split(uri2String); - return ( - pieces1[goog.uri.utils.ComponentIndex.DOMAIN] == - pieces2[goog.uri.utils.ComponentIndex.DOMAIN] && - pieces1[goog.uri.utils.ComponentIndex.PORT] == - pieces2[goog.uri.utils.ComponentIndex.PORT] - ); -}; + var pieces1 = goog.uri.utils.split(uri1String), + pieces2 = goog.uri.utils.split(uri2String) + return ( + pieces1[goog.uri.utils.ComponentIndex.DOMAIN] == + pieces2[goog.uri.utils.ComponentIndex.DOMAIN] && + pieces1[goog.uri.utils.ComponentIndex.PORT] == + pieces2[goog.uri.utils.ComponentIndex.PORT] + ) +} goog.Uri.QueryData = function (opt_query, opt_ignoreCase) { - this.count_ = this.keyMap_ = null; - this.encodedQuery_ = opt_query || null; - this.ignoreCase_ = !!opt_ignoreCase; -}; + this.count_ = this.keyMap_ = null + this.encodedQuery_ = opt_query || null + this.ignoreCase_ = !!opt_ignoreCase +} goog.Uri.QueryData.prototype.ensureKeyMapInitialized_ = function () { - if ( - !this.keyMap_ && - ((this.keyMap_ = new Map()), (this.count_ = 0), this.encodedQuery_) - ) { - var self = this; - goog.uri.utils.parseQueryData(this.encodedQuery_, function (name, value) { - self.add(goog.string.urlDecode(name), value); - }); - } -}; -goog.Uri.QueryData.createFromMap = function (map, opt_ignoreCase) { - var keys = goog.structs.getKeys(map); - if ("undefined" == typeof keys) { - throw Error("Keys are undefined"); - } - for ( - var queryData = new goog.Uri.QueryData(null, opt_ignoreCase), - values = goog.structs.getValues(map), - i = 0; - i < keys.length; - i++ - ) { - var key = keys[i], - value = values[i]; - Array.isArray(value) - ? queryData.setValues(key, value) - : queryData.add(key, value); - } - return queryData; -}; -goog.Uri.QueryData.createFromKeysValues = function ( - keys, - values, - opt_ignoreCase -) { - if (keys.length != values.length) { - throw Error("Mismatched lengths for keys/values"); - } - for ( - var queryData = new goog.Uri.QueryData(null, opt_ignoreCase), i = 0; - i < keys.length; - i++ - ) { - queryData.add(keys[i], values[i]); - } - return queryData; -}; -goog.Uri.QueryData.prototype.getCount = function () { - this.ensureKeyMapInitialized_(); - return this.count_; -}; -goog.Uri.QueryData.prototype.add = function (key, value) { - this.ensureKeyMapInitialized_(); - this.invalidateCache_(); - key = this.getKeyName_(key); - var values = this.keyMap_.get(key); - values || this.keyMap_.set(key, (values = [])); - values.push(value); - this.count_ = goog.asserts.assertNumber(this.count_) + 1; - return this; -}; -goog.Uri.QueryData.prototype.remove = function (key) { - this.ensureKeyMapInitialized_(); - key = this.getKeyName_(key); - return this.keyMap_.has(key) - ? (this.invalidateCache_(), - (this.count_ = - goog.asserts.assertNumber(this.count_) - this.keyMap_.get(key).length), - this.keyMap_.delete(key)) - : !1; -}; -goog.Uri.QueryData.prototype.clear = function () { - this.invalidateCache_(); - this.keyMap_ = null; - this.count_ = 0; -}; -goog.Uri.QueryData.prototype.isEmpty = function () { - this.ensureKeyMapInitialized_(); - return 0 == this.count_; -}; -goog.Uri.QueryData.prototype.containsKey = function (key) { - this.ensureKeyMapInitialized_(); - key = this.getKeyName_(key); - return this.keyMap_.has(key); -}; -goog.Uri.QueryData.prototype.containsValue = function (value) { - var vals = this.getValues(); - return module$contents$goog$array_contains(vals, value); -}; -goog.Uri.QueryData.prototype.forEach = function (f, opt_scope) { - this.ensureKeyMapInitialized_(); - this.keyMap_.forEach(function (values, key) { - values.forEach(function (value) { - f.call(opt_scope, value, key, this); - }, this); - }, this); -}; -goog.Uri.QueryData.prototype.getKeys = function () { - this.ensureKeyMapInitialized_(); - for ( - var vals = Array.from(this.keyMap_.values()), - keys = Array.from(this.keyMap_.keys()), - rv = [], - i = 0; - i < keys.length; - i++ - ) { - for (var val = vals[i], j = 0; j < val.length; j++) { - rv.push(keys[i]); - } - } - return rv; -}; -goog.Uri.QueryData.prototype.getValues = function (opt_key) { - this.ensureKeyMapInitialized_(); - var rv = []; - if ("string" === typeof opt_key) { - this.containsKey(opt_key) && - (rv = rv.concat(this.keyMap_.get(this.getKeyName_(opt_key)))); - } else { - for ( - var values = Array.from(this.keyMap_.values()), i = 0; - i < values.length; - i++ + if ( + !this.keyMap_ && + ((this.keyMap_ = new Map()), (this.count_ = 0), this.encodedQuery_) ) { - rv = rv.concat(values[i]); + var self = this + goog.uri.utils.parseQueryData( + this.encodedQuery_, + function (name, value) { + self.add(goog.string.urlDecode(name), value) + } + ) } - } - return rv; -}; -goog.Uri.QueryData.prototype.set = function (key, value) { - this.ensureKeyMapInitialized_(); - this.invalidateCache_(); - key = this.getKeyName_(key); - this.containsKey(key) && - (this.count_ = - goog.asserts.assertNumber(this.count_) - this.keyMap_.get(key).length); - this.keyMap_.set(key, [value]); - this.count_ = goog.asserts.assertNumber(this.count_) + 1; - return this; -}; -goog.Uri.QueryData.prototype.get = function (key, opt_default) { - if (!key) { - return opt_default; - } - var values = this.getValues(key); - return 0 < values.length ? String(values[0]) : opt_default; -}; +} +goog.Uri.QueryData.createFromMap = function (map, opt_ignoreCase) { + var keys = goog.structs.getKeys(map) + if ('undefined' == typeof keys) { + throw Error('Keys are undefined') + } + for ( + var queryData = new goog.Uri.QueryData(null, opt_ignoreCase), + values = goog.structs.getValues(map), + i = 0; + i < keys.length; + i++ + ) { + var key = keys[i], + value = values[i] + Array.isArray(value) + ? queryData.setValues(key, value) + : queryData.add(key, value) + } + return queryData +} +goog.Uri.QueryData.createFromKeysValues = function ( + keys, + values, + opt_ignoreCase +) { + if (keys.length != values.length) { + throw Error('Mismatched lengths for keys/values') + } + for ( + var queryData = new goog.Uri.QueryData(null, opt_ignoreCase), i = 0; + i < keys.length; + i++ + ) { + queryData.add(keys[i], values[i]) + } + return queryData +} +goog.Uri.QueryData.prototype.getCount = function () { + this.ensureKeyMapInitialized_() + return this.count_ +} +goog.Uri.QueryData.prototype.add = function (key, value) { + this.ensureKeyMapInitialized_() + this.invalidateCache_() + key = this.getKeyName_(key) + var values = this.keyMap_.get(key) + values || this.keyMap_.set(key, (values = [])) + values.push(value) + this.count_ = goog.asserts.assertNumber(this.count_) + 1 + return this +} +goog.Uri.QueryData.prototype.remove = function (key) { + this.ensureKeyMapInitialized_() + key = this.getKeyName_(key) + return this.keyMap_.has(key) + ? (this.invalidateCache_(), + (this.count_ = + goog.asserts.assertNumber(this.count_) - + this.keyMap_.get(key).length), + this.keyMap_.delete(key)) + : !1 +} +goog.Uri.QueryData.prototype.clear = function () { + this.invalidateCache_() + this.keyMap_ = null + this.count_ = 0 +} +goog.Uri.QueryData.prototype.isEmpty = function () { + this.ensureKeyMapInitialized_() + return 0 == this.count_ +} +goog.Uri.QueryData.prototype.containsKey = function (key) { + this.ensureKeyMapInitialized_() + key = this.getKeyName_(key) + return this.keyMap_.has(key) +} +goog.Uri.QueryData.prototype.containsValue = function (value) { + var vals = this.getValues() + return module$contents$goog$array_contains(vals, value) +} +goog.Uri.QueryData.prototype.forEach = function (f, opt_scope) { + this.ensureKeyMapInitialized_() + this.keyMap_.forEach(function (values, key) { + values.forEach(function (value) { + f.call(opt_scope, value, key, this) + }, this) + }, this) +} +goog.Uri.QueryData.prototype.getKeys = function () { + this.ensureKeyMapInitialized_() + for ( + var vals = Array.from(this.keyMap_.values()), + keys = Array.from(this.keyMap_.keys()), + rv = [], + i = 0; + i < keys.length; + i++ + ) { + for (var val = vals[i], j = 0; j < val.length; j++) { + rv.push(keys[i]) + } + } + return rv +} +goog.Uri.QueryData.prototype.getValues = function (opt_key) { + this.ensureKeyMapInitialized_() + var rv = [] + if ('string' === typeof opt_key) { + this.containsKey(opt_key) && + (rv = rv.concat(this.keyMap_.get(this.getKeyName_(opt_key)))) + } else { + for ( + var values = Array.from(this.keyMap_.values()), i = 0; + i < values.length; + i++ + ) { + rv = rv.concat(values[i]) + } + } + return rv +} +goog.Uri.QueryData.prototype.set = function (key, value) { + this.ensureKeyMapInitialized_() + this.invalidateCache_() + key = this.getKeyName_(key) + this.containsKey(key) && + (this.count_ = + goog.asserts.assertNumber(this.count_) - + this.keyMap_.get(key).length) + this.keyMap_.set(key, [value]) + this.count_ = goog.asserts.assertNumber(this.count_) + 1 + return this +} +goog.Uri.QueryData.prototype.get = function (key, opt_default) { + if (!key) { + return opt_default + } + var values = this.getValues(key) + return 0 < values.length ? String(values[0]) : opt_default +} goog.Uri.QueryData.prototype.setValues = function (key, values) { - this.remove(key); - 0 < values.length && - (this.invalidateCache_(), - this.keyMap_.set( - this.getKeyName_(key), - module$contents$goog$array_toArray(values) - ), - (this.count_ = goog.asserts.assertNumber(this.count_) + values.length)); -}; + this.remove(key) + 0 < values.length && + (this.invalidateCache_(), + this.keyMap_.set( + this.getKeyName_(key), + module$contents$goog$array_toArray(values) + ), + (this.count_ = goog.asserts.assertNumber(this.count_) + values.length)) +} goog.Uri.QueryData.prototype.toString = function () { - if (this.encodedQuery_) { - return this.encodedQuery_; - } - if (!this.keyMap_) { - return ""; - } - for ( - var sb = [], keys = Array.from(this.keyMap_.keys()), i = 0; - i < keys.length; - i++ - ) { + if (this.encodedQuery_) { + return this.encodedQuery_ + } + if (!this.keyMap_) { + return '' + } for ( - var key = keys[i], - encodedKey = goog.string.urlEncode(key), - val = this.getValues(key), - j = 0; - j < val.length; - j++ + var sb = [], keys = Array.from(this.keyMap_.keys()), i = 0; + i < keys.length; + i++ ) { - var param = encodedKey; - "" !== val[j] && (param += "=" + goog.string.urlEncode(val[j])); - sb.push(param); + for ( + var key = keys[i], + encodedKey = goog.string.urlEncode(key), + val = this.getValues(key), + j = 0; + j < val.length; + j++ + ) { + var param = encodedKey + '' !== val[j] && (param += '=' + goog.string.urlEncode(val[j])) + sb.push(param) + } } - } - return (this.encodedQuery_ = sb.join("&")); -}; + return (this.encodedQuery_ = sb.join('&')) +} goog.Uri.QueryData.prototype.toDecodedString = function () { - return goog.Uri.decodeOrEmpty_(this.toString()); -}; + return goog.Uri.decodeOrEmpty_(this.toString()) +} goog.Uri.QueryData.prototype.invalidateCache_ = function () { - this.encodedQuery_ = null; -}; + this.encodedQuery_ = null +} goog.Uri.QueryData.prototype.filterKeys = function (keys) { - this.ensureKeyMapInitialized_(); - this.keyMap_.forEach(function (value, key) { - module$contents$goog$array_contains(keys, key) || this.remove(key); - }, this); - return this; -}; + this.ensureKeyMapInitialized_() + this.keyMap_.forEach(function (value, key) { + module$contents$goog$array_contains(keys, key) || this.remove(key) + }, this) + return this +} goog.Uri.QueryData.prototype.clone = function () { - var rv = new goog.Uri.QueryData(); - rv.encodedQuery_ = this.encodedQuery_; - this.keyMap_ && - ((rv.keyMap_ = new Map(this.keyMap_)), (rv.count_ = this.count_)); - return rv; -}; + var rv = new goog.Uri.QueryData() + rv.encodedQuery_ = this.encodedQuery_ + this.keyMap_ && + ((rv.keyMap_ = new Map(this.keyMap_)), (rv.count_ = this.count_)) + return rv +} goog.Uri.QueryData.prototype.getKeyName_ = function (arg) { - var keyName = String(arg); - this.ignoreCase_ && (keyName = keyName.toLowerCase()); - return keyName; -}; + var keyName = String(arg) + this.ignoreCase_ && (keyName = keyName.toLowerCase()) + return keyName +} goog.Uri.QueryData.prototype.setIgnoreCase = function (ignoreCase) { - ignoreCase && - !this.ignoreCase_ && - (this.ensureKeyMapInitialized_(), - this.invalidateCache_(), - this.keyMap_.forEach(function (value, key) { - var lowerCase = key.toLowerCase(); - key != lowerCase && (this.remove(key), this.setValues(lowerCase, value)); - }, this)); - this.ignoreCase_ = ignoreCase; -}; + ignoreCase && + !this.ignoreCase_ && + (this.ensureKeyMapInitialized_(), + this.invalidateCache_(), + this.keyMap_.forEach(function (value, key) { + var lowerCase = key.toLowerCase() + key != lowerCase && + (this.remove(key), this.setValues(lowerCase, value)) + }, this)) + this.ignoreCase_ = ignoreCase +} goog.Uri.QueryData.prototype.extend = function (var_args) { - for (var i = 0; i < arguments.length; i++) { - goog.structs.forEach( - arguments[i], - function (value, key) { - this.add(key, value); - }, - this - ); - } -}; + for (var i = 0; i < arguments.length; i++) { + goog.structs.forEach( + arguments[i], + function (value, key) { + this.add(key, value) + }, + this + ) + } +} var module$exports$goog$net$rpc$HttpCors = { - HTTP_HEADERS_PARAM_NAME: "$httpHeaders", - HTTP_METHOD_PARAM_NAME: "$httpMethod", - generateHttpHeadersOverwriteParam: function (headers) { - var result = ""; - module$contents$goog$object_forEach(headers, function (value, key) { - result += key; - result += ":"; - result += value; - result += "\r\n"; - }); - return result; - }, - generateEncodedHttpHeadersOverwriteParam: function (headers) { - return goog.string.urlEncode( - module$exports$goog$net$rpc$HttpCors.generateHttpHeadersOverwriteParam( - headers - ) - ); - }, - setHttpHeadersWithOverwriteParam: function (url, urlParam, extraHeaders) { - if (module$contents$goog$object_isEmpty(extraHeaders)) { - return url; - } - var httpHeaders = - module$exports$goog$net$rpc$HttpCors.generateHttpHeadersOverwriteParam( - extraHeaders - ); - if ("string" === typeof url) { - return goog.uri.utils.appendParam( - url, - goog.string.urlEncode(urlParam), - httpHeaders - ); - } - url.setParameterValue(urlParam, httpHeaders); - return url; - }, -}; + HTTP_HEADERS_PARAM_NAME: '$httpHeaders', + HTTP_METHOD_PARAM_NAME: '$httpMethod', + generateHttpHeadersOverwriteParam: function (headers) { + var result = '' + module$contents$goog$object_forEach(headers, function (value, key) { + result += key + result += ':' + result += value + result += '\r\n' + }) + return result + }, + generateEncodedHttpHeadersOverwriteParam: function (headers) { + return goog.string.urlEncode( + module$exports$goog$net$rpc$HttpCors.generateHttpHeadersOverwriteParam( + headers + ) + ) + }, + setHttpHeadersWithOverwriteParam: function (url, urlParam, extraHeaders) { + if (module$contents$goog$object_isEmpty(extraHeaders)) { + return url + } + var httpHeaders = + module$exports$goog$net$rpc$HttpCors.generateHttpHeadersOverwriteParam( + extraHeaders + ) + if ('string' === typeof url) { + return goog.uri.utils.appendParam( + url, + goog.string.urlEncode(urlParam), + httpHeaders + ) + } + url.setParameterValue(urlParam, httpHeaders) + return url + }, +} var module$exports$eeapiclient$request_params = {}, - module$contents$eeapiclient$request_params_module = - module$contents$eeapiclient$request_params_module || { - id: "javascript/typescript/contrib/apiclient/core/request_params.closure.js", - }; + module$contents$eeapiclient$request_params_module = + module$contents$eeapiclient$request_params_module || { + id: 'javascript/typescript/contrib/apiclient/core/request_params.closure.js', + } module$exports$eeapiclient$request_params.HttpMethodEnum = { - GET: "GET", - POST: "POST", - PUT: "PUT", - PATCH: "PATCH", - DELETE: "DELETE", -}; + GET: 'GET', + POST: 'POST', + PUT: 'PUT', + PATCH: 'PATCH', + DELETE: 'DELETE', +} module$exports$eeapiclient$request_params.AuthType = { - AUTO: "auto", - NONE: "none", - OAUTH2: "oauth2", - FIRST_PARTY: "1p", -}; + AUTO: 'auto', + NONE: 'none', + OAUTH2: 'oauth2', + FIRST_PARTY: '1p', +} module$exports$eeapiclient$request_params.StreamingType = { - NONE: "NONE", - CLIENT_SIDE: "CLIENT_SIDE", - SERVER_SIDE: "SERVER_SIDE", - BIDIRECTONAL: "BIDIRECTONAL", -}; + NONE: 'NONE', + CLIENT_SIDE: 'CLIENT_SIDE', + SERVER_SIDE: 'SERVER_SIDE', + BIDIRECTONAL: 'BIDIRECTONAL', +} function module$contents$eeapiclient$request_params_MakeRequestParams() {} module$exports$eeapiclient$request_params.MakeRequestParams = - module$contents$eeapiclient$request_params_MakeRequestParams; + module$contents$eeapiclient$request_params_MakeRequestParams function module$contents$eeapiclient$request_params_processParams(params) { - if (null != params.queryParams) { - var filteredQueryParams = {}, - key; - for (key in params.queryParams) { - void 0 !== params.queryParams[key] && - (filteredQueryParams[key] = params.queryParams[key]); + if (null != params.queryParams) { + var filteredQueryParams = {}, + key + for (key in params.queryParams) { + void 0 !== params.queryParams[key] && + (filteredQueryParams[key] = params.queryParams[key]) + } + params.queryParams = filteredQueryParams } - params.queryParams = filteredQueryParams; - } } module$exports$eeapiclient$request_params.processParams = - module$contents$eeapiclient$request_params_processParams; + module$contents$eeapiclient$request_params_processParams function module$contents$eeapiclient$request_params_buildQueryParams( - params, - mapping, - passthroughParams -) { - for ( - var urlQueryParams = (passthroughParams = - void 0 === passthroughParams ? {} : passthroughParams), - $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), - $jscomp$key$ = $jscomp$iter$28.next(); - !$jscomp$key$.done; - $jscomp$key$ = $jscomp$iter$28.next() - ) { - var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$.value), - jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, - urlQueryParamName__tsickle_destructured_2 = - $jscomp$destructuring$var27.next().value, - jsName = jsName__tsickle_destructured_1, - urlQueryParamName = urlQueryParamName__tsickle_destructured_2; - jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]); - } - return urlQueryParams; + params, + mapping, + passthroughParams +) { + for ( + var urlQueryParams = (passthroughParams = + void 0 === passthroughParams ? {} : passthroughParams), + $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), + $jscomp$key$ = $jscomp$iter$28.next(); + !$jscomp$key$.done; + $jscomp$key$ = $jscomp$iter$28.next() + ) { + var $jscomp$destructuring$var27 = $jscomp.makeIterator( + $jscomp$key$.value + ), + jsName__tsickle_destructured_1 = + $jscomp$destructuring$var27.next().value, + urlQueryParamName__tsickle_destructured_2 = + $jscomp$destructuring$var27.next().value, + jsName = jsName__tsickle_destructured_1, + urlQueryParamName = urlQueryParamName__tsickle_destructured_2 + jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]) + } + return urlQueryParams } module$exports$eeapiclient$request_params.buildQueryParams = - module$contents$eeapiclient$request_params_buildQueryParams; + module$contents$eeapiclient$request_params_buildQueryParams var module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders = [ - "accept", - "accept-language", - "content-language", - ], - module$contents$eeapiclient$request_params_simpleCorsAllowedMethods = [ - "GET", - "HEAD", - "POST", - ]; + 'accept', + 'accept-language', + 'content-language', + ], + module$contents$eeapiclient$request_params_simpleCorsAllowedMethods = [ + 'GET', + 'HEAD', + 'POST', + ] module$exports$eeapiclient$request_params.bypassCorsPreflight = function ( - params -) { - var safeHeaders = {}, - unsafeHeaders = {}, - hasUnsafeHeaders = !1, - hasContentType = !1; - if (params.headers) { - hasContentType = null != params.headers["Content-Type"]; - for ( - var $jscomp$iter$29 = $jscomp.makeIterator( - Object.entries(params.headers) - ), - $jscomp$key$ = $jscomp$iter$29.next(); - !$jscomp$key$.done; - $jscomp$key$ = $jscomp$iter$29.next() + params +) { + var safeHeaders = {}, + unsafeHeaders = {}, + hasUnsafeHeaders = !1, + hasContentType = !1 + if (params.headers) { + hasContentType = null != params.headers['Content-Type'] + for ( + var $jscomp$iter$29 = $jscomp.makeIterator( + Object.entries(params.headers) + ), + $jscomp$key$ = $jscomp$iter$29.next(); + !$jscomp$key$.done; + $jscomp$key$ = $jscomp$iter$29.next() + ) { + var $jscomp$destructuring$var29 = $jscomp.makeIterator( + $jscomp$key$.value + ), + key__tsickle_destructured_3 = + $jscomp$destructuring$var29.next().value, + value__tsickle_destructured_4 = + $jscomp$destructuring$var29.next().value, + key = key__tsickle_destructured_3, + value = value__tsickle_destructured_4 + module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes( + key + ) + ? (safeHeaders[key] = value) + : ((unsafeHeaders[key] = value), (hasUnsafeHeaders = !0)) + } + } + if ( + null != params.body || + 'PUT' === params.httpMethod || + 'POST' === params.httpMethod ) { - var $jscomp$destructuring$var29 = $jscomp.makeIterator( - $jscomp$key$.value + hasContentType || + ((unsafeHeaders['Content-Type'] = 'application/json'), + (hasUnsafeHeaders = !0)), + (safeHeaders['Content-Type'] = 'text/plain') + } + if (hasUnsafeHeaders) { + var finalParam = (0, + module$exports$goog$net$rpc$HttpCors.generateEncodedHttpHeadersOverwriteParam)( + unsafeHeaders + ) + module$contents$eeapiclient$request_params_addQueryParameter( + params, + module$exports$goog$net$rpc$HttpCors.HTTP_HEADERS_PARAM_NAME, + finalParam + ) + } + params.headers = safeHeaders + module$contents$eeapiclient$request_params_simpleCorsAllowedMethods.includes( + params.httpMethod + ) || + (module$contents$eeapiclient$request_params_addQueryParameter( + params, + module$exports$goog$net$rpc$HttpCors.HTTP_METHOD_PARAM_NAME, + params.httpMethod ), - key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, - value__tsickle_destructured_4 = - $jscomp$destructuring$var29.next().value, - key = key__tsickle_destructured_3, - value = value__tsickle_destructured_4; - module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes( - key - ) - ? (safeHeaders[key] = value) - : ((unsafeHeaders[key] = value), (hasUnsafeHeaders = !0)); - } - } - if ( - null != params.body || - "PUT" === params.httpMethod || - "POST" === params.httpMethod - ) { - hasContentType || - ((unsafeHeaders["Content-Type"] = "application/json"), - (hasUnsafeHeaders = !0)), - (safeHeaders["Content-Type"] = "text/plain"); - } - if (hasUnsafeHeaders) { - var finalParam = (0, - module$exports$goog$net$rpc$HttpCors.generateEncodedHttpHeadersOverwriteParam)( - unsafeHeaders - ); - module$contents$eeapiclient$request_params_addQueryParameter( - params, - module$exports$goog$net$rpc$HttpCors.HTTP_HEADERS_PARAM_NAME, - finalParam - ); - } - params.headers = safeHeaders; - module$contents$eeapiclient$request_params_simpleCorsAllowedMethods.includes( - params.httpMethod - ) || - (module$contents$eeapiclient$request_params_addQueryParameter( - params, - module$exports$goog$net$rpc$HttpCors.HTTP_METHOD_PARAM_NAME, - params.httpMethod - ), - (params.httpMethod = "POST")); -}; + (params.httpMethod = 'POST')) +} function module$contents$eeapiclient$request_params_addQueryParameter( - params, - key, - value -) { - if (params.queryParams) { - params.queryParams[key] = value; - } else { - var $jscomp$compprop13 = {}; - params.queryParams = - (($jscomp$compprop13[key] = value), $jscomp$compprop13); - } + params, + key, + value +) { + if (params.queryParams) { + params.queryParams[key] = value + } else { + var $jscomp$compprop13 = {} + params.queryParams = + (($jscomp$compprop13[key] = value), $jscomp$compprop13) + } } var module$exports$eeapiclient$multipart_request = {}, - module$contents$eeapiclient$multipart_request_module = - module$contents$eeapiclient$multipart_request_module || { - id: "javascript/typescript/contrib/apiclient/core/multipart_request.closure.js", - }; + module$contents$eeapiclient$multipart_request_module = + module$contents$eeapiclient$multipart_request_module || { + id: 'javascript/typescript/contrib/apiclient/core/multipart_request.closure.js', + } module$exports$eeapiclient$multipart_request.MultipartRequest = function ( - files, - _metadata -) { - this.files = files; - this._metadata = _metadata; - this._metadataPayload = ""; - this._boundary = Date.now().toString(); - _metadata && this.addMetadata(_metadata); - this._payloadPromise = this.build(); -}; + files, + _metadata +) { + this.files = files + this._metadata = _metadata + this._metadataPayload = '' + this._boundary = Date.now().toString() + _metadata && this.addMetadata(_metadata) + this._payloadPromise = this.build() +} module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.boundary = - function () { - return this._boundary; - }; + function () { + return this._boundary + } module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.metadata = - function () { - return this._metadata; - }; + function () { + return this._metadata + } module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.payloadPromise = - function () { - return this._payloadPromise; - }; + function () { + return this._payloadPromise + } module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetadata = - function (metadata) { - var json = - metadata instanceof module$exports$eeapiclient$domain_object.Serializable - ? module$contents$eeapiclient$domain_object_serialize(metadata) - : metadata; - this._metadataPayload += - "Content-Type: application/json; charset=utf-8\r\n\r\n" + - JSON.stringify(json) + - ("\r\n--" + this._boundary + "\r\n"); - }; + function (metadata) { + var json = + metadata instanceof + module$exports$eeapiclient$domain_object.Serializable + ? module$contents$eeapiclient$domain_object_serialize(metadata) + : metadata + this._metadataPayload += + 'Content-Type: application/json; charset=utf-8\r\n\r\n' + + JSON.stringify(json) + + ('\r\n--' + this._boundary + '\r\n') + } module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = - function () { - var $jscomp$this = this, - payload = "--" + this._boundary + "\r\n"; - payload += this._metadataPayload; - return Promise.all( - this.files.map(function (f) { - return $jscomp$this.encodeFile(f); - }) - ).then(function (filePayloads) { - for ( - var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), - $jscomp$key$filePayload = $jscomp$iter$30.next(); - !$jscomp$key$filePayload.done; - $jscomp$key$filePayload = $jscomp$iter$30.next() - ) { - payload += $jscomp$key$filePayload.value; - } - return (payload += "\r\n--" + $jscomp$this._boundary + "--"); - }); - }; + function () { + var $jscomp$this = this, + payload = '--' + this._boundary + '\r\n' + payload += this._metadataPayload + return Promise.all( + this.files.map(function (f) { + return $jscomp$this.encodeFile(f) + }) + ).then(function (filePayloads) { + for ( + var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), + $jscomp$key$filePayload = $jscomp$iter$30.next(); + !$jscomp$key$filePayload.done; + $jscomp$key$filePayload = $jscomp$iter$30.next() + ) { + payload += $jscomp$key$filePayload.value + } + return (payload += '\r\n--' + $jscomp$this._boundary + '--') + }) + } module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = - function (file) { - return this.base64EncodeFile(file).then(function (base64Str) { - return ( - "Content-Type: " + - file.type + - '\r\nContent-Disposition: form-data; name="file"; filename="' + - (encodeURIComponent(file.name) + - '"\r\nContent-Transfer-Encoding: base64\r\n\r\n') + - base64Str - ); - }); - }; + function (file) { + return this.base64EncodeFile(file).then(function (base64Str) { + return ( + 'Content-Type: ' + + file.type + + '\r\nContent-Disposition: form-data; name="file"; filename="' + + (encodeURIComponent(file.name) + + '"\r\nContent-Transfer-Encoding: base64\r\n\r\n') + + base64Str + ) + }) + } module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.base64EncodeFile = - function (file) { - return new Promise(function (resolve, reject) { - var reader = new FileReader(); - reader.onload = function (ev) { - try { - var file = ev.target.result, - toResolve = file.substr(file.indexOf(",") + 1); - resolve(toResolve); - } catch (e) { - reject(e); - } - }; - reader.readAsDataURL(file); - }); - }; + function (file) { + return new Promise(function (resolve, reject) { + var reader = new FileReader() + reader.onload = function (ev) { + try { + var file = ev.target.result, + toResolve = file.substr(file.indexOf(',') + 1) + resolve(toResolve) + } catch (e) { + reject(e) + } + } + reader.readAsDataURL(file) + }) + } var module$exports$eeapiclient$api_client = {}, - module$contents$eeapiclient$api_client_module = - module$contents$eeapiclient$api_client_module || { - id: "javascript/typescript/contrib/apiclient/core/api_client.closure.js", - }; -module$exports$eeapiclient$api_client.ApiClient = function () {}; + module$contents$eeapiclient$api_client_module = + module$contents$eeapiclient$api_client_module || { + id: 'javascript/typescript/contrib/apiclient/core/api_client.closure.js', + } +module$exports$eeapiclient$api_client.ApiClient = function () {} module$exports$eeapiclient$api_client.ApiClient.prototype.$validateParameter = - function (param, pattern) { - var paramStr = String(param); - if (!pattern.test(paramStr)) { - throw Error( - "parameter [" + - paramStr + - "] does not match pattern [" + - pattern.toString() + - "]" - ); - } - }; + function (param, pattern) { + var paramStr = String(param) + if (!pattern.test(paramStr)) { + throw Error( + 'parameter [' + + paramStr + + '] does not match pattern [' + + pattern.toString() + + ']' + ) + } + } function module$contents$eeapiclient$api_client_toMakeRequestParams( - requestParams + requestParams ) { - var body = - requestParams.body instanceof - module$exports$eeapiclient$domain_object.Serializable - ? module$contents$eeapiclient$domain_object_serialize(requestParams.body) - : requestParams.body; - return { - path: requestParams.path, - httpMethod: requestParams.httpMethod, - methodId: requestParams.methodId, - body: body, - queryParams: requestParams.queryParams, - streamingType: requestParams.streamingType && requestParams.streamingType, - }; + var body = + requestParams.body instanceof + module$exports$eeapiclient$domain_object.Serializable + ? module$contents$eeapiclient$domain_object_serialize( + requestParams.body + ) + : requestParams.body + return { + path: requestParams.path, + httpMethod: requestParams.httpMethod, + methodId: requestParams.methodId, + body: body, + queryParams: requestParams.queryParams, + streamingType: + requestParams.streamingType && requestParams.streamingType, + } } module$exports$eeapiclient$api_client.toMakeRequestParams = - module$contents$eeapiclient$api_client_toMakeRequestParams; + module$contents$eeapiclient$api_client_toMakeRequestParams function module$contents$eeapiclient$api_client_toMultipartMakeRequestParams( - requestParams -) { - if ( - !( - requestParams.body instanceof - module$exports$eeapiclient$multipart_request.MultipartRequest - ) - ) { - throw Error(requestParams.path + " request must be a MultipartRequest"); - } - var multipartRequest = requestParams.body; - return multipartRequest.payloadPromise().then(function (body) { - var $jscomp$nullish$tmp0, - queryParams = - null != ($jscomp$nullish$tmp0 = requestParams.queryParams) - ? $jscomp$nullish$tmp0 - : {}; - return { - path: requestParams.path, - httpMethod: requestParams.httpMethod, - methodId: requestParams.methodId, - queryParams: Object.assign({}, queryParams, { uploadType: "multipart" }), - headers: { - "X-Goog-Upload-Protocol": "multipart", - "Content-Type": - "multipart/related; boundary=" + multipartRequest.boundary(), - }, - body: body, - }; - }); + requestParams +) { + if ( + !( + requestParams.body instanceof + module$exports$eeapiclient$multipart_request.MultipartRequest + ) + ) { + throw Error(requestParams.path + ' request must be a MultipartRequest') + } + var multipartRequest = requestParams.body + return multipartRequest.payloadPromise().then(function (body) { + var $jscomp$nullish$tmp0, + queryParams = + null != ($jscomp$nullish$tmp0 = requestParams.queryParams) + ? $jscomp$nullish$tmp0 + : {} + return { + path: requestParams.path, + httpMethod: requestParams.httpMethod, + methodId: requestParams.methodId, + queryParams: Object.assign({}, queryParams, { + uploadType: 'multipart', + }), + headers: { + 'X-Goog-Upload-Protocol': 'multipart', + 'Content-Type': + 'multipart/related; boundary=' + + multipartRequest.boundary(), + }, + body: body, + } + }) } module$exports$eeapiclient$api_client.toMultipartMakeRequestParams = - module$contents$eeapiclient$api_client_toMultipartMakeRequestParams; + module$contents$eeapiclient$api_client_toMultipartMakeRequestParams var module$exports$eeapiclient$api_request_hook = {}, - module$contents$eeapiclient$api_request_hook_module = - module$contents$eeapiclient$api_request_hook_module || { - id: "javascript/typescript/contrib/apiclient/core/api_request_hook.closure.js", - }; + module$contents$eeapiclient$api_request_hook_module = + module$contents$eeapiclient$api_request_hook_module || { + id: 'javascript/typescript/contrib/apiclient/core/api_request_hook.closure.js', + } module$exports$eeapiclient$api_request_hook.ApiClientRequestHook = - function () {}; + function () {} module$exports$eeapiclient$api_request_hook.ApiClientHookFactory = - function () {}; + function () {} module$exports$eeapiclient$api_request_hook.ApiClientHookFactoryCtor = - function () {}; + function () {} module$exports$eeapiclient$api_request_hook.DefaultApiClientHookFactory = - function () {}; + function () {} module$exports$eeapiclient$api_request_hook.DefaultApiClientHookFactory.prototype.getRequestHook = - function (requestParams) { - return { - onBeforeSend: function () {}, - onSuccess: function (response) {}, - onError: function (error) {}, - }; - }; + function (requestParams) { + return { + onBeforeSend: function () {}, + onSuccess: function (response) {}, + onError: function (error) {}, + } + } function module$contents$eeapiclient$api_request_hook_getRequestHook( - factory, - requestParams + factory, + requestParams ) { - if (null == factory) { - return null; - } - var hook = factory.getRequestHook(requestParams); - return null == hook ? null : hook; + if (null == factory) { + return null + } + var hook = factory.getRequestHook(requestParams) + return null == hook ? null : hook } module$exports$eeapiclient$api_request_hook.getRequestHook = - module$contents$eeapiclient$api_request_hook_getRequestHook; + module$contents$eeapiclient$api_request_hook_getRequestHook var module$exports$eeapiclient$promise_api_client = {}, - module$contents$eeapiclient$promise_api_client_module = - module$contents$eeapiclient$promise_api_client_module || { - id: "javascript/typescript/contrib/apiclient/request_service/promise_api_client.closure.js", - }; + module$contents$eeapiclient$promise_api_client_module = + module$contents$eeapiclient$promise_api_client_module || { + id: 'javascript/typescript/contrib/apiclient/request_service/promise_api_client.closure.js', + } module$exports$eeapiclient$promise_api_client.PromiseApiClient = function ( - requestService, - hookFactory + requestService, + hookFactory ) { - this.requestService = requestService; - this.hookFactory = void 0 === hookFactory ? null : hookFactory; -}; + this.requestService = requestService + this.hookFactory = void 0 === hookFactory ? null : hookFactory +} $jscomp.inherits( - module$exports$eeapiclient$promise_api_client.PromiseApiClient, - module$exports$eeapiclient$api_client.ApiClient -); + module$exports$eeapiclient$promise_api_client.PromiseApiClient, + module$exports$eeapiclient$api_client.ApiClient +) module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$addHooksToRequest = - function (requestParams, promise) { - return null == - module$contents$eeapiclient$api_request_hook_getRequestHook( - this.hookFactory, - requestParams - ) - ? promise - : promise.then( - function (response) { - return response; - }, - function (error) { - throw error; - } - ); - }; + function (requestParams, promise) { + return null == + module$contents$eeapiclient$api_request_hook_getRequestHook( + this.hookFactory, + requestParams + ) + ? promise + : promise.then( + function (response) { + return response + }, + function (error) { + throw error + } + ) + } module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$request = - function (requestParams) { - var responseCtor = requestParams.responseCtor || void 0; - return this.$addHooksToRequest( - requestParams, - this.requestService.send( - module$contents$eeapiclient$api_client_toMakeRequestParams( - requestParams - ), - responseCtor - ) - ); - }; + function (requestParams) { + var responseCtor = requestParams.responseCtor || void 0 + return this.$addHooksToRequest( + requestParams, + this.requestService.send( + module$contents$eeapiclient$api_client_toMakeRequestParams( + requestParams + ), + responseCtor + ) + ) + } module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = - function (requestParams) { - var $jscomp$this = this, - responseCtor = requestParams.responseCtor || void 0; - return this.$addHooksToRequest( - requestParams, - module$contents$eeapiclient$api_client_toMultipartMakeRequestParams( - requestParams - ).then(function (params) { - return $jscomp$this.requestService.send(params, responseCtor); - }) - ); - }; + function (requestParams) { + var $jscomp$this = this, + responseCtor = requestParams.responseCtor || void 0 + return this.$addHooksToRequest( + requestParams, + module$contents$eeapiclient$api_client_toMultipartMakeRequestParams( + requestParams + ).then(function (params) { + return $jscomp$this.requestService.send(params, responseCtor) + }) + ) + } var module$exports$eeapiclient$ee_api_client = {}, - module$contents$eeapiclient$ee_api_client_module = - module$contents$eeapiclient$ee_api_client_module || { - id: "geo/gestalt/client/javascript/v1/ee_api_client.closure.js", - }; + module$contents$eeapiclient$ee_api_client_module = + module$contents$eeapiclient$ee_api_client_module || { + id: 'geo/gestalt/client/javascript/v1/ee_api_client.closure.js', + } module$exports$eeapiclient$ee_api_client.IAuditLogConfigLogTypeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum = { - ADMIN_READ: "ADMIN_READ", - DATA_READ: "DATA_READ", - DATA_WRITE: "DATA_WRITE", - LOG_TYPE_UNSPECIFIED: "LOG_TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum - .LOG_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum - .ADMIN_READ, - module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum - .DATA_WRITE, - module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum - .DATA_READ, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IAuthorizationLoggingOptionsPermissionTypeEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsPermissionTypeEnum = - { - ADMIN_READ: "ADMIN_READ", - ADMIN_WRITE: "ADMIN_WRITE", - DATA_READ: "DATA_READ", - DATA_WRITE: "DATA_WRITE", - PERMISSION_TYPE_UNSPECIFIED: "PERMISSION_TYPE_UNSPECIFIED", + ADMIN_READ: 'ADMIN_READ', + DATA_READ: 'DATA_READ', + DATA_WRITE: 'DATA_WRITE', + LOG_TYPE_UNSPECIFIED: 'LOG_TYPE_UNSPECIFIED', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .AuthorizationLoggingOptionsPermissionTypeEnum - .PERMISSION_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .AuthorizationLoggingOptionsPermissionTypeEnum.ADMIN_READ, - module$exports$eeapiclient$ee_api_client - .AuthorizationLoggingOptionsPermissionTypeEnum.ADMIN_WRITE, - module$exports$eeapiclient$ee_api_client - .AuthorizationLoggingOptionsPermissionTypeEnum.DATA_READ, - module$exports$eeapiclient$ee_api_client - .AuthorizationLoggingOptionsPermissionTypeEnum.DATA_WRITE, - ]; + return [ + module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum + .LOG_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum + .ADMIN_READ, + module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum + .DATA_WRITE, + module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum + .DATA_READ, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IAuthorizationLoggingOptionsPermissionTypeEnum = + function () {} +module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsPermissionTypeEnum = + { + ADMIN_READ: 'ADMIN_READ', + ADMIN_WRITE: 'ADMIN_WRITE', + DATA_READ: 'DATA_READ', + DATA_WRITE: 'DATA_WRITE', + PERMISSION_TYPE_UNSPECIFIED: 'PERMISSION_TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .AuthorizationLoggingOptionsPermissionTypeEnum + .PERMISSION_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .AuthorizationLoggingOptionsPermissionTypeEnum.ADMIN_READ, + module$exports$eeapiclient$ee_api_client + .AuthorizationLoggingOptionsPermissionTypeEnum.ADMIN_WRITE, + module$exports$eeapiclient$ee_api_client + .AuthorizationLoggingOptionsPermissionTypeEnum.DATA_READ, + module$exports$eeapiclient$ee_api_client + .AuthorizationLoggingOptionsPermissionTypeEnum.DATA_WRITE, + ] + }, + } module$exports$eeapiclient$ee_api_client.ICapabilitiesCapabilitiesEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum = { - AUTO_APPEAL_ELIGIBLE: "AUTO_APPEAL_ELIGIBLE", - CAPABILITY_GROUP_UNSPECIFIED: "CAPABILITY_GROUP_UNSPECIFIED", - CLOUD_ALPHA: "CLOUD_ALPHA", - EXTERNAL: "EXTERNAL", - INTERNAL: "INTERNAL", - LIMITED: "LIMITED", - PREAUTHORIZED: "PREAUTHORIZED", - PREVIEW: "PREVIEW", - PUBLIC: "PUBLIC", - RESTRICTED: "RESTRICTED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .CAPABILITY_GROUP_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .PUBLIC, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .INTERNAL, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .EXTERNAL, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .LIMITED, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .PREAUTHORIZED, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .PREVIEW, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .CLOUD_ALPHA, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .RESTRICTED, - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum - .AUTO_APPEAL_ELIGIBLE, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IChangeSubscriptionTypeRequestChangeTimeEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestChangeTimeEnum = - { - CHANGE_TIME_TYPE_UNSPECIFIED: "CHANGE_TIME_TYPE_UNSPECIFIED", - EARLIEST_POSSIBLE: "EARLIEST_POSSIBLE", - END_OF_PERIOD: "END_OF_PERIOD", - END_OF_TERM: "END_OF_TERM", - SPECIFIC_DATE: "SPECIFIC_DATE", + AUTO_APPEAL_ELIGIBLE: 'AUTO_APPEAL_ELIGIBLE', + CAPABILITY_GROUP_UNSPECIFIED: 'CAPABILITY_GROUP_UNSPECIFIED', + CLOUD_ALPHA: 'CLOUD_ALPHA', + EXTERNAL: 'EXTERNAL', + INTERNAL: 'INTERNAL', + LIMITED: 'LIMITED', + PREAUTHORIZED: 'PREAUTHORIZED', + PREVIEW: 'PREVIEW', + PUBLIC: 'PUBLIC', + RESTRICTED: 'RESTRICTED', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestChangeTimeEnum - .CHANGE_TIME_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestChangeTimeEnum.END_OF_PERIOD, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestChangeTimeEnum.EARLIEST_POSSIBLE, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestChangeTimeEnum.SPECIFIC_DATE, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestChangeTimeEnum.END_OF_TERM, - ]; + return [ + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.CAPABILITY_GROUP_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.PUBLIC, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.INTERNAL, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.EXTERNAL, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.LIMITED, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.PREAUTHORIZED, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.PREVIEW, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.CLOUD_ALPHA, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.RESTRICTED, + module$exports$eeapiclient$ee_api_client + .CapabilitiesCapabilitiesEnum.AUTO_APPEAL_ELIGIBLE, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IChangeSubscriptionTypeRequestChangeTimeEnum = + function () {} +module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestChangeTimeEnum = + { + CHANGE_TIME_TYPE_UNSPECIFIED: 'CHANGE_TIME_TYPE_UNSPECIFIED', + EARLIEST_POSSIBLE: 'EARLIEST_POSSIBLE', + END_OF_PERIOD: 'END_OF_PERIOD', + END_OF_TERM: 'END_OF_TERM', + SPECIFIC_DATE: 'SPECIFIC_DATE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestChangeTimeEnum + .CHANGE_TIME_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestChangeTimeEnum.END_OF_PERIOD, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestChangeTimeEnum + .EARLIEST_POSSIBLE, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestChangeTimeEnum.SPECIFIC_DATE, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestChangeTimeEnum.END_OF_TERM, + ] + }, + } module$exports$eeapiclient$ee_api_client.IChangeSubscriptionTypeRequestTypeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestTypeEnum = - { - BASIC: "BASIC", - NO_SUBSCRIPTION: "NO_SUBSCRIPTION", - PREMIUM: "PREMIUM", - PROFESSIONAL: "PROFESSIONAL", - TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestTypeEnum.TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestTypeEnum.NO_SUBSCRIPTION, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestTypeEnum.BASIC, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestTypeEnum.PROFESSIONAL, - module$exports$eeapiclient$ee_api_client - .ChangeSubscriptionTypeRequestTypeEnum.PREMIUM, - ]; - }, - }; + { + BASIC: 'BASIC', + NO_SUBSCRIPTION: 'NO_SUBSCRIPTION', + PREMIUM: 'PREMIUM', + PROFESSIONAL: 'PROFESSIONAL', + TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestTypeEnum.TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestTypeEnum.NO_SUBSCRIPTION, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestTypeEnum.BASIC, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestTypeEnum.PROFESSIONAL, + module$exports$eeapiclient$ee_api_client + .ChangeSubscriptionTypeRequestTypeEnum.PREMIUM, + ] + }, + } module$exports$eeapiclient$ee_api_client.ICloudAuditOptionsLogNameEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum = { - ADMIN_ACTIVITY: "ADMIN_ACTIVITY", - DATA_ACCESS: "DATA_ACCESS", - UNSPECIFIED_LOG_NAME: "UNSPECIFIED_LOG_NAME", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum - .UNSPECIFIED_LOG_NAME, - module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum - .ADMIN_ACTIVITY, - module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum - .DATA_ACCESS, - ]; - }, -}; + ADMIN_ACTIVITY: 'ADMIN_ACTIVITY', + DATA_ACCESS: 'DATA_ACCESS', + UNSPECIFIED_LOG_NAME: 'UNSPECIFIED_LOG_NAME', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsLogNameEnum.UNSPECIFIED_LOG_NAME, + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsLogNameEnum.ADMIN_ACTIVITY, + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsLogNameEnum.DATA_ACCESS, + ] + }, +} module$exports$eeapiclient$ee_api_client.ICloudAuditOptionsPermissionTypeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CloudAuditOptionsPermissionTypeEnum = { - ADMIN_READ: "ADMIN_READ", - ADMIN_WRITE: "ADMIN_WRITE", - DATA_READ: "DATA_READ", - DATA_WRITE: "DATA_WRITE", - PERMISSION_TYPE_UNSPECIFIED: "PERMISSION_TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .CloudAuditOptionsPermissionTypeEnum.PERMISSION_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .CloudAuditOptionsPermissionTypeEnum.ADMIN_READ, - module$exports$eeapiclient$ee_api_client - .CloudAuditOptionsPermissionTypeEnum.ADMIN_WRITE, - module$exports$eeapiclient$ee_api_client - .CloudAuditOptionsPermissionTypeEnum.DATA_READ, - module$exports$eeapiclient$ee_api_client - .CloudAuditOptionsPermissionTypeEnum.DATA_WRITE, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.ICloudStorageDestinationPermissionsEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum = - { - DEFAULT_OBJECT_ACL: "DEFAULT_OBJECT_ACL", - PUBLIC: "PUBLIC", - TILE_PERMISSIONS_UNSPECIFIED: "TILE_PERMISSIONS_UNSPECIFIED", + ADMIN_READ: 'ADMIN_READ', + ADMIN_WRITE: 'ADMIN_WRITE', + DATA_READ: 'DATA_READ', + DATA_WRITE: 'DATA_WRITE', + PERMISSION_TYPE_UNSPECIFIED: 'PERMISSION_TYPE_UNSPECIFIED', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .CloudStorageDestinationPermissionsEnum.TILE_PERMISSIONS_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .CloudStorageDestinationPermissionsEnum.PUBLIC, - module$exports$eeapiclient$ee_api_client - .CloudStorageDestinationPermissionsEnum.DEFAULT_OBJECT_ACL, - ]; + return [ + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsPermissionTypeEnum + .PERMISSION_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsPermissionTypeEnum.ADMIN_READ, + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsPermissionTypeEnum.ADMIN_WRITE, + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsPermissionTypeEnum.DATA_READ, + module$exports$eeapiclient$ee_api_client + .CloudAuditOptionsPermissionTypeEnum.DATA_WRITE, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.ICloudStorageDestinationPermissionsEnum = + function () {} +module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum = + { + DEFAULT_OBJECT_ACL: 'DEFAULT_OBJECT_ACL', + PUBLIC: 'PUBLIC', + TILE_PERMISSIONS_UNSPECIFIED: 'TILE_PERMISSIONS_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .CloudStorageDestinationPermissionsEnum + .TILE_PERMISSIONS_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .CloudStorageDestinationPermissionsEnum.PUBLIC, + module$exports$eeapiclient$ee_api_client + .CloudStorageDestinationPermissionsEnum.DEFAULT_OBJECT_ACL, + ] + }, + } module$exports$eeapiclient$ee_api_client.IComputePixelsRequestFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputePixelsRequestFileFormatEnum = { - AUTO_JPEG_PNG: "AUTO_JPEG_PNG", - GEO_TIFF: "GEO_TIFF", - IMAGE_FILE_FORMAT_UNSPECIFIED: "IMAGE_FILE_FORMAT_UNSPECIFIED", - JPEG: "JPEG", - MULTI_BAND_IMAGE_TILE: "MULTI_BAND_IMAGE_TILE", - NPY: "NPY", - PNG: "PNG", - TF_RECORD_IMAGE: "TF_RECORD_IMAGE", - ZIPPED_GEO_TIFF: "ZIPPED_GEO_TIFF", - ZIPPED_GEO_TIFF_PER_BAND: "ZIPPED_GEO_TIFF_PER_BAND", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.IMAGE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.JPEG, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.PNG, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.AUTO_JPEG_PNG, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.NPY, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.GEO_TIFF, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.TF_RECORD_IMAGE, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.MULTI_BAND_IMAGE_TILE, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.ZIPPED_GEO_TIFF, - module$exports$eeapiclient$ee_api_client - .ComputePixelsRequestFileFormatEnum.ZIPPED_GEO_TIFF_PER_BAND, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IConditionIamEnum = function () {}; + AUTO_JPEG_PNG: 'AUTO_JPEG_PNG', + GEO_TIFF: 'GEO_TIFF', + IMAGE_FILE_FORMAT_UNSPECIFIED: 'IMAGE_FILE_FORMAT_UNSPECIFIED', + JPEG: 'JPEG', + MULTI_BAND_IMAGE_TILE: 'MULTI_BAND_IMAGE_TILE', + NPY: 'NPY', + PNG: 'PNG', + TF_RECORD_IMAGE: 'TF_RECORD_IMAGE', + ZIPPED_GEO_TIFF: 'ZIPPED_GEO_TIFF', + ZIPPED_GEO_TIFF_PER_BAND: 'ZIPPED_GEO_TIFF_PER_BAND', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum + .IMAGE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.JPEG, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.PNG, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.AUTO_JPEG_PNG, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.NPY, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.TF_RECORD_IMAGE, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.MULTI_BAND_IMAGE_TILE, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.ZIPPED_GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .ComputePixelsRequestFileFormatEnum.ZIPPED_GEO_TIFF_PER_BAND, + ] + }, +} +module$exports$eeapiclient$ee_api_client.IConditionIamEnum = function () {} module$exports$eeapiclient$ee_api_client.ConditionIamEnum = { - APPROVER: "APPROVER", - ATTRIBUTION: "ATTRIBUTION", - AUTHORITY: "AUTHORITY", - CREDENTIALS_TYPE: "CREDENTIALS_TYPE", - CREDS_ASSERTION: "CREDS_ASSERTION", - JUSTIFICATION_TYPE: "JUSTIFICATION_TYPE", - NO_ATTR: "NO_ATTR", - SECURITY_REALM: "SECURITY_REALM", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ConditionIamEnum.NO_ATTR, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum.AUTHORITY, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum.ATTRIBUTION, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum.SECURITY_REALM, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum.APPROVER, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum - .JUSTIFICATION_TYPE, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum - .CREDENTIALS_TYPE, - module$exports$eeapiclient$ee_api_client.ConditionIamEnum.CREDS_ASSERTION, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IConditionOpEnum = function () {}; + APPROVER: 'APPROVER', + ATTRIBUTION: 'ATTRIBUTION', + AUTHORITY: 'AUTHORITY', + CREDENTIALS_TYPE: 'CREDENTIALS_TYPE', + CREDS_ASSERTION: 'CREDS_ASSERTION', + JUSTIFICATION_TYPE: 'JUSTIFICATION_TYPE', + NO_ATTR: 'NO_ATTR', + SECURITY_REALM: 'SECURITY_REALM', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ConditionIamEnum.NO_ATTR, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum.AUTHORITY, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum + .ATTRIBUTION, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum + .SECURITY_REALM, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum.APPROVER, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum + .JUSTIFICATION_TYPE, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum + .CREDENTIALS_TYPE, + module$exports$eeapiclient$ee_api_client.ConditionIamEnum + .CREDS_ASSERTION, + ] + }, +} +module$exports$eeapiclient$ee_api_client.IConditionOpEnum = function () {} module$exports$eeapiclient$ee_api_client.ConditionOpEnum = { - DISCHARGED: "DISCHARGED", - EQUALS: "EQUALS", - IN: "IN", - NOT_EQUALS: "NOT_EQUALS", - NOT_IN: "NOT_IN", - NO_OP: "NO_OP", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ConditionOpEnum.NO_OP, - module$exports$eeapiclient$ee_api_client.ConditionOpEnum.EQUALS, - module$exports$eeapiclient$ee_api_client.ConditionOpEnum.NOT_EQUALS, - module$exports$eeapiclient$ee_api_client.ConditionOpEnum.IN, - module$exports$eeapiclient$ee_api_client.ConditionOpEnum.NOT_IN, - module$exports$eeapiclient$ee_api_client.ConditionOpEnum.DISCHARGED, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IConditionSysEnum = function () {}; + DISCHARGED: 'DISCHARGED', + EQUALS: 'EQUALS', + IN: 'IN', + NOT_EQUALS: 'NOT_EQUALS', + NOT_IN: 'NOT_IN', + NO_OP: 'NO_OP', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ConditionOpEnum.NO_OP, + module$exports$eeapiclient$ee_api_client.ConditionOpEnum.EQUALS, + module$exports$eeapiclient$ee_api_client.ConditionOpEnum.NOT_EQUALS, + module$exports$eeapiclient$ee_api_client.ConditionOpEnum.IN, + module$exports$eeapiclient$ee_api_client.ConditionOpEnum.NOT_IN, + module$exports$eeapiclient$ee_api_client.ConditionOpEnum.DISCHARGED, + ] + }, +} +module$exports$eeapiclient$ee_api_client.IConditionSysEnum = function () {} module$exports$eeapiclient$ee_api_client.ConditionSysEnum = { - IP: "IP", - NAME: "NAME", - NO_ATTR: "NO_ATTR", - REGION: "REGION", - SERVICE: "SERVICE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ConditionSysEnum.NO_ATTR, - module$exports$eeapiclient$ee_api_client.ConditionSysEnum.REGION, - module$exports$eeapiclient$ee_api_client.ConditionSysEnum.SERVICE, - module$exports$eeapiclient$ee_api_client.ConditionSysEnum.NAME, - module$exports$eeapiclient$ee_api_client.ConditionSysEnum.IP, - ]; - }, -}; + IP: 'IP', + NAME: 'NAME', + NO_ATTR: 'NO_ATTR', + REGION: 'REGION', + SERVICE: 'SERVICE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ConditionSysEnum.NO_ATTR, + module$exports$eeapiclient$ee_api_client.ConditionSysEnum.REGION, + module$exports$eeapiclient$ee_api_client.ConditionSysEnum.SERVICE, + module$exports$eeapiclient$ee_api_client.ConditionSysEnum.NAME, + module$exports$eeapiclient$ee_api_client.ConditionSysEnum.IP, + ] + }, +} module$exports$eeapiclient$ee_api_client.IDataAccessOptionsLogModeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum = { - LOG_FAIL_CLOSED: "LOG_FAIL_CLOSED", - LOG_MODE_UNSPECIFIED: "LOG_MODE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum - .LOG_MODE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum - .LOG_FAIL_CLOSED, - ]; - }, -}; + LOG_FAIL_CLOSED: 'LOG_FAIL_CLOSED', + LOG_MODE_UNSPECIFIED: 'LOG_MODE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .DataAccessOptionsLogModeEnum.LOG_MODE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .DataAccessOptionsLogModeEnum.LOG_FAIL_CLOSED, + ] + }, +} module$exports$eeapiclient$ee_api_client.IEarthEngineAssetTypeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum = { - CLASSIFIER: "CLASSIFIER", - FEATURE_VIEW: "FEATURE_VIEW", - FOLDER: "FOLDER", - IMAGE: "IMAGE", - IMAGE_COLLECTION: "IMAGE_COLLECTION", - TABLE: "TABLE", - TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum - .TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum.IMAGE, - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum - .IMAGE_COLLECTION, - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum.TABLE, - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum.FOLDER, - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum - .CLASSIFIER, - module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum - .FEATURE_VIEW, - ]; - }, -}; + CLASSIFIER: 'CLASSIFIER', + FEATURE_VIEW: 'FEATURE_VIEW', + FOLDER: 'FOLDER', + IMAGE: 'IMAGE', + IMAGE_COLLECTION: 'IMAGE_COLLECTION', + TABLE: 'TABLE', + TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .IMAGE, + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .IMAGE_COLLECTION, + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .TABLE, + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .FOLDER, + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .CLASSIFIER, + module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + .FEATURE_VIEW, + ] + }, +} module$exports$eeapiclient$ee_api_client.IEarthEngineMapFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum = { - AUTO_JPEG_PNG: "AUTO_JPEG_PNG", - GEO_TIFF: "GEO_TIFF", - IMAGE_FILE_FORMAT_UNSPECIFIED: "IMAGE_FILE_FORMAT_UNSPECIFIED", - JPEG: "JPEG", - MULTI_BAND_IMAGE_TILE: "MULTI_BAND_IMAGE_TILE", - NPY: "NPY", - PNG: "PNG", - TF_RECORD_IMAGE: "TF_RECORD_IMAGE", - ZIPPED_GEO_TIFF: "ZIPPED_GEO_TIFF", - ZIPPED_GEO_TIFF_PER_BAND: "ZIPPED_GEO_TIFF_PER_BAND", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .IMAGE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .JPEG, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum.PNG, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .AUTO_JPEG_PNG, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum.NPY, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .GEO_TIFF, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .TF_RECORD_IMAGE, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .MULTI_BAND_IMAGE_TILE, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .ZIPPED_GEO_TIFF, - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum - .ZIPPED_GEO_TIFF_PER_BAND, - ]; - }, -}; + AUTO_JPEG_PNG: 'AUTO_JPEG_PNG', + GEO_TIFF: 'GEO_TIFF', + IMAGE_FILE_FORMAT_UNSPECIFIED: 'IMAGE_FILE_FORMAT_UNSPECIFIED', + JPEG: 'JPEG', + MULTI_BAND_IMAGE_TILE: 'MULTI_BAND_IMAGE_TILE', + NPY: 'NPY', + PNG: 'PNG', + TF_RECORD_IMAGE: 'TF_RECORD_IMAGE', + ZIPPED_GEO_TIFF: 'ZIPPED_GEO_TIFF', + ZIPPED_GEO_TIFF_PER_BAND: 'ZIPPED_GEO_TIFF_PER_BAND', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.IMAGE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.JPEG, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.PNG, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.AUTO_JPEG_PNG, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.NPY, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.TF_RECORD_IMAGE, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.MULTI_BAND_IMAGE_TILE, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.ZIPPED_GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .EarthEngineMapFileFormatEnum.ZIPPED_GEO_TIFF_PER_BAND, + ] + }, +} module$exports$eeapiclient$ee_api_client.IExportVideoMapRequestVersionEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum = { - V1: "V1", - V2: "V2", - VERSION_UNSPECIFIED: "VERSION_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum - .VERSION_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum - .V1, - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum - .V2, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IFeatureViewAttributeTypeEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum = { - BOOLEAN: "BOOLEAN", - DATE_TIME: "DATE_TIME", - DOUBLE: "DOUBLE", - INTEGER: "INTEGER", - STRING: "STRING", - TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum - .TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum - .INTEGER, - module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum - .BOOLEAN, - module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum - .DOUBLE, - module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum - .STRING, - module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum - .DATE_TIME, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IFeatureViewDestinationPermissionsEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.FeatureViewDestinationPermissionsEnum = - { - FEATURE_VIEW_ASSET_PERMISSIONS_UNSPECIFIED: - "FEATURE_VIEW_ASSET_PERMISSIONS_UNSPECIFIED", - PUBLIC: "PUBLIC", + V1: 'V1', + V2: 'V2', + VERSION_UNSPECIFIED: 'VERSION_UNSPECIFIED', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .FeatureViewDestinationPermissionsEnum - .FEATURE_VIEW_ASSET_PERMISSIONS_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .FeatureViewDestinationPermissionsEnum.PUBLIC, - ]; + return [ + module$exports$eeapiclient$ee_api_client + .ExportVideoMapRequestVersionEnum.VERSION_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ExportVideoMapRequestVersionEnum.V1, + module$exports$eeapiclient$ee_api_client + .ExportVideoMapRequestVersionEnum.V2, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IFeatureViewAttributeTypeEnum = + function () {} +module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum = { + BOOLEAN: 'BOOLEAN', + DATE_TIME: 'DATE_TIME', + DOUBLE: 'DOUBLE', + INTEGER: 'INTEGER', + STRING: 'STRING', + TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .FeatureViewAttributeTypeEnum.TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .FeatureViewAttributeTypeEnum.INTEGER, + module$exports$eeapiclient$ee_api_client + .FeatureViewAttributeTypeEnum.BOOLEAN, + module$exports$eeapiclient$ee_api_client + .FeatureViewAttributeTypeEnum.DOUBLE, + module$exports$eeapiclient$ee_api_client + .FeatureViewAttributeTypeEnum.STRING, + module$exports$eeapiclient$ee_api_client + .FeatureViewAttributeTypeEnum.DATE_TIME, + ] + }, +} +module$exports$eeapiclient$ee_api_client.IFeatureViewDestinationPermissionsEnum = + function () {} +module$exports$eeapiclient$ee_api_client.FeatureViewDestinationPermissionsEnum = + { + FEATURE_VIEW_ASSET_PERMISSIONS_UNSPECIFIED: + 'FEATURE_VIEW_ASSET_PERMISSIONS_UNSPECIFIED', + PUBLIC: 'PUBLIC', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .FeatureViewDestinationPermissionsEnum + .FEATURE_VIEW_ASSET_PERMISSIONS_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .FeatureViewDestinationPermissionsEnum.PUBLIC, + ] + }, + } module$exports$eeapiclient$ee_api_client.IFilmstripThumbnailFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum = { - AUTO_JPEG_PNG: "AUTO_JPEG_PNG", - GEO_TIFF: "GEO_TIFF", - IMAGE_FILE_FORMAT_UNSPECIFIED: "IMAGE_FILE_FORMAT_UNSPECIFIED", - JPEG: "JPEG", - MULTI_BAND_IMAGE_TILE: "MULTI_BAND_IMAGE_TILE", - NPY: "NPY", - PNG: "PNG", - TF_RECORD_IMAGE: "TF_RECORD_IMAGE", - ZIPPED_GEO_TIFF: "ZIPPED_GEO_TIFF", - ZIPPED_GEO_TIFF_PER_BAND: "ZIPPED_GEO_TIFF_PER_BAND", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .IMAGE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .JPEG, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .PNG, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .AUTO_JPEG_PNG, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .NPY, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .GEO_TIFF, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .TF_RECORD_IMAGE, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .MULTI_BAND_IMAGE_TILE, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .ZIPPED_GEO_TIFF, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum - .ZIPPED_GEO_TIFF_PER_BAND, - ]; - }, -}; + AUTO_JPEG_PNG: 'AUTO_JPEG_PNG', + GEO_TIFF: 'GEO_TIFF', + IMAGE_FILE_FORMAT_UNSPECIFIED: 'IMAGE_FILE_FORMAT_UNSPECIFIED', + JPEG: 'JPEG', + MULTI_BAND_IMAGE_TILE: 'MULTI_BAND_IMAGE_TILE', + NPY: 'NPY', + PNG: 'PNG', + TF_RECORD_IMAGE: 'TF_RECORD_IMAGE', + ZIPPED_GEO_TIFF: 'ZIPPED_GEO_TIFF', + ZIPPED_GEO_TIFF_PER_BAND: 'ZIPPED_GEO_TIFF_PER_BAND', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.IMAGE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.JPEG, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.PNG, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.AUTO_JPEG_PNG, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.NPY, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.TF_RECORD_IMAGE, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.MULTI_BAND_IMAGE_TILE, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.ZIPPED_GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailFileFormatEnum.ZIPPED_GEO_TIFF_PER_BAND, + ] + }, +} module$exports$eeapiclient$ee_api_client.IFilmstripThumbnailOrientationEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum = { - HORIZONTAL: "HORIZONTAL", - ORIENTATION_UNSPECIFIED: "ORIENTATION_UNSPECIFIED", - VERTICAL: "VERTICAL", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum - .ORIENTATION_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum - .HORIZONTAL, - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum - .VERTICAL, - ]; - }, -}; + HORIZONTAL: 'HORIZONTAL', + ORIENTATION_UNSPECIFIED: 'ORIENTATION_UNSPECIFIED', + VERTICAL: 'VERTICAL', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailOrientationEnum.ORIENTATION_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailOrientationEnum.HORIZONTAL, + module$exports$eeapiclient$ee_api_client + .FilmstripThumbnailOrientationEnum.VERTICAL, + ] + }, +} module$exports$eeapiclient$ee_api_client.IGetPixelsRequestFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum = { - AUTO_JPEG_PNG: "AUTO_JPEG_PNG", - GEO_TIFF: "GEO_TIFF", - IMAGE_FILE_FORMAT_UNSPECIFIED: "IMAGE_FILE_FORMAT_UNSPECIFIED", - JPEG: "JPEG", - MULTI_BAND_IMAGE_TILE: "MULTI_BAND_IMAGE_TILE", - NPY: "NPY", - PNG: "PNG", - TF_RECORD_IMAGE: "TF_RECORD_IMAGE", - ZIPPED_GEO_TIFF: "ZIPPED_GEO_TIFF", - ZIPPED_GEO_TIFF_PER_BAND: "ZIPPED_GEO_TIFF_PER_BAND", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .IMAGE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .JPEG, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .PNG, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .AUTO_JPEG_PNG, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .NPY, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .GEO_TIFF, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .TF_RECORD_IMAGE, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .MULTI_BAND_IMAGE_TILE, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .ZIPPED_GEO_TIFF, - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum - .ZIPPED_GEO_TIFF_PER_BAND, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IImageAssetExportOptionsPyramidingPolicyEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyEnum = - { - MAX: "MAX", - MEAN: "MEAN", - MEDIAN: "MEDIAN", - MIN: "MIN", - MODE: "MODE", - PYRAMIDING_POLICY_UNSPECIFIED: "PYRAMIDING_POLICY_UNSPECIFIED", - SAMPLE: "SAMPLE", + AUTO_JPEG_PNG: 'AUTO_JPEG_PNG', + GEO_TIFF: 'GEO_TIFF', + IMAGE_FILE_FORMAT_UNSPECIFIED: 'IMAGE_FILE_FORMAT_UNSPECIFIED', + JPEG: 'JPEG', + MULTI_BAND_IMAGE_TILE: 'MULTI_BAND_IMAGE_TILE', + NPY: 'NPY', + PNG: 'PNG', + TF_RECORD_IMAGE: 'TF_RECORD_IMAGE', + ZIPPED_GEO_TIFF: 'ZIPPED_GEO_TIFF', + ZIPPED_GEO_TIFF_PER_BAND: 'ZIPPED_GEO_TIFF_PER_BAND', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum - .PYRAMIDING_POLICY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum.MEAN, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum.SAMPLE, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum.MIN, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum.MAX, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum.MODE, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyEnum.MEDIAN, - ]; + return [ + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.IMAGE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.JPEG, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.PNG, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.AUTO_JPEG_PNG, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.NPY, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.TF_RECORD_IMAGE, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.MULTI_BAND_IMAGE_TILE, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.ZIPPED_GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .GetPixelsRequestFileFormatEnum.ZIPPED_GEO_TIFF_PER_BAND, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IImageAssetExportOptionsPyramidingPolicyEnum = + function () {} +module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyEnum = + { + MAX: 'MAX', + MEAN: 'MEAN', + MEDIAN: 'MEDIAN', + MIN: 'MIN', + MODE: 'MODE', + PYRAMIDING_POLICY_UNSPECIFIED: 'PYRAMIDING_POLICY_UNSPECIFIED', + SAMPLE: 'SAMPLE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum + .PYRAMIDING_POLICY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum.MEAN, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum.SAMPLE, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum.MIN, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum.MAX, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum.MODE, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyEnum.MEDIAN, + ] + }, + } module$exports$eeapiclient$ee_api_client.IImageAssetExportOptionsPyramidingPolicyOverridesEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyOverridesEnum = - { - MAX: "MAX", - MEAN: "MEAN", - MEDIAN: "MEDIAN", - MIN: "MIN", - MODE: "MODE", - PYRAMIDING_POLICY_UNSPECIFIED: "PYRAMIDING_POLICY_UNSPECIFIED", - SAMPLE: "SAMPLE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum - .PYRAMIDING_POLICY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MEAN, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.SAMPLE, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MIN, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MAX, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MODE, - module$exports$eeapiclient$ee_api_client - .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MEDIAN, - ]; - }, - }; + { + MAX: 'MAX', + MEAN: 'MEAN', + MEDIAN: 'MEDIAN', + MIN: 'MIN', + MODE: 'MODE', + PYRAMIDING_POLICY_UNSPECIFIED: 'PYRAMIDING_POLICY_UNSPECIFIED', + SAMPLE: 'SAMPLE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum + .PYRAMIDING_POLICY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MEAN, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum + .SAMPLE, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MIN, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MAX, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum.MODE, + module$exports$eeapiclient$ee_api_client + .ImageAssetExportOptionsPyramidingPolicyOverridesEnum + .MEDIAN, + ] + }, + } module$exports$eeapiclient$ee_api_client.IImageBandPyramidingPolicyEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum = { - MAX: "MAX", - MEAN: "MEAN", - MEDIAN: "MEDIAN", - MIN: "MIN", - MODE: "MODE", - PYRAMIDING_POLICY_UNSPECIFIED: "PYRAMIDING_POLICY_UNSPECIFIED", - SAMPLE: "SAMPLE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .PYRAMIDING_POLICY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .MEAN, - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .SAMPLE, - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .MIN, - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .MAX, - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .MODE, - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum - .MEDIAN, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IImageFileExportOptionsFileFormatEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsFileFormatEnum = - { - AUTO_JPEG_PNG: "AUTO_JPEG_PNG", - GEO_TIFF: "GEO_TIFF", - IMAGE_FILE_FORMAT_UNSPECIFIED: "IMAGE_FILE_FORMAT_UNSPECIFIED", - JPEG: "JPEG", - MULTI_BAND_IMAGE_TILE: "MULTI_BAND_IMAGE_TILE", - NPY: "NPY", - PNG: "PNG", - TF_RECORD_IMAGE: "TF_RECORD_IMAGE", - ZIPPED_GEO_TIFF: "ZIPPED_GEO_TIFF", - ZIPPED_GEO_TIFF_PER_BAND: "ZIPPED_GEO_TIFF_PER_BAND", + MAX: 'MAX', + MEAN: 'MEAN', + MEDIAN: 'MEDIAN', + MIN: 'MIN', + MODE: 'MODE', + PYRAMIDING_POLICY_UNSPECIFIED: 'PYRAMIDING_POLICY_UNSPECIFIED', + SAMPLE: 'SAMPLE', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.IMAGE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.JPEG, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.PNG, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.AUTO_JPEG_PNG, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.NPY, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.GEO_TIFF, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.TF_RECORD_IMAGE, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.MULTI_BAND_IMAGE_TILE, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.ZIPPED_GEO_TIFF, - module$exports$eeapiclient$ee_api_client - .ImageFileExportOptionsFileFormatEnum.ZIPPED_GEO_TIFF_PER_BAND, - ]; + return [ + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.PYRAMIDING_POLICY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.MEAN, + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.SAMPLE, + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.MIN, + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.MAX, + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.MODE, + module$exports$eeapiclient$ee_api_client + .ImageBandPyramidingPolicyEnum.MEDIAN, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IImageFileExportOptionsFileFormatEnum = + function () {} +module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsFileFormatEnum = + { + AUTO_JPEG_PNG: 'AUTO_JPEG_PNG', + GEO_TIFF: 'GEO_TIFF', + IMAGE_FILE_FORMAT_UNSPECIFIED: 'IMAGE_FILE_FORMAT_UNSPECIFIED', + JPEG: 'JPEG', + MULTI_BAND_IMAGE_TILE: 'MULTI_BAND_IMAGE_TILE', + NPY: 'NPY', + PNG: 'PNG', + TF_RECORD_IMAGE: 'TF_RECORD_IMAGE', + ZIPPED_GEO_TIFF: 'ZIPPED_GEO_TIFF', + ZIPPED_GEO_TIFF_PER_BAND: 'ZIPPED_GEO_TIFF_PER_BAND', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum + .IMAGE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.JPEG, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.PNG, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.AUTO_JPEG_PNG, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.NPY, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.TF_RECORD_IMAGE, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.MULTI_BAND_IMAGE_TILE, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum.ZIPPED_GEO_TIFF, + module$exports$eeapiclient$ee_api_client + .ImageFileExportOptionsFileFormatEnum + .ZIPPED_GEO_TIFF_PER_BAND, + ] + }, + } module$exports$eeapiclient$ee_api_client.IImageManifestPyramidingPolicyEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum = { - MAX: "MAX", - MEAN: "MEAN", - MEDIAN: "MEDIAN", - MIN: "MIN", - MODE: "MODE", - PYRAMIDING_POLICY_UNSPECIFIED: "PYRAMIDING_POLICY_UNSPECIFIED", - SAMPLE: "SAMPLE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .PYRAMIDING_POLICY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .MEAN, - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .SAMPLE, - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .MIN, - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .MAX, - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .MODE, - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum - .MEDIAN, - ]; - }, -}; + MAX: 'MAX', + MEAN: 'MEAN', + MEDIAN: 'MEDIAN', + MIN: 'MIN', + MODE: 'MODE', + PYRAMIDING_POLICY_UNSPECIFIED: 'PYRAMIDING_POLICY_UNSPECIFIED', + SAMPLE: 'SAMPLE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum + .PYRAMIDING_POLICY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum.MEAN, + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum.SAMPLE, + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum.MIN, + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum.MAX, + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum.MODE, + module$exports$eeapiclient$ee_api_client + .ImageManifestPyramidingPolicyEnum.MEDIAN, + ] + }, +} module$exports$eeapiclient$ee_api_client.IImportImageRequestModeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum = { - IMPORT_MODE_UNSPECIFIED: "IMPORT_MODE_UNSPECIFIED", - INGEST: "INGEST", - VIRTUAL: "VIRTUAL", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum - .IMPORT_MODE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum - .INGEST, - module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum - .VIRTUAL, - ]; - }, -}; + IMPORT_MODE_UNSPECIFIED: 'IMPORT_MODE_UNSPECIFIED', + INGEST: 'INGEST', + VIRTUAL: 'VIRTUAL', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum + .IMPORT_MODE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum + .INGEST, + module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum + .VIRTUAL, + ] + }, +} module$exports$eeapiclient$ee_api_client.IOperationMetadataStateEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - FAILED: "FAILED", - PENDING: "PENDING", - RUNNING: "RUNNING", - STATE_UNSPECIFIED: "STATE_UNSPECIFIED", - SUCCEEDED: "SUCCEEDED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .STATE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .PENDING, - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .RUNNING, - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .CANCELLING, - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .SUCCEEDED, - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .CANCELLED, - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum - .FAILED, - ]; - }, -}; + CANCELLED: 'CANCELLED', + CANCELLING: 'CANCELLING', + FAILED: 'FAILED', + PENDING: 'PENDING', + RUNNING: 'RUNNING', + STATE_UNSPECIFIED: 'STATE_UNSPECIFIED', + SUCCEEDED: 'SUCCEEDED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .STATE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .PENDING, + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .RUNNING, + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .CANCELLING, + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .SUCCEEDED, + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .CANCELLED, + module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + .FAILED, + ] + }, +} module$exports$eeapiclient$ee_api_client.IOperationNotificationSeverityEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum = { - SEVERE: "SEVERE", - SEVERITY_UNSPECIFIED: "SEVERITY_UNSPECIFIED", - WARNING: "WARNING", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum - .SEVERITY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum - .WARNING, - module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum - .SEVERE, - ]; - }, -}; + SEVERE: 'SEVERE', + SEVERITY_UNSPECIFIED: 'SEVERITY_UNSPECIFIED', + WARNING: 'WARNING', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .OperationNotificationSeverityEnum.SEVERITY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .OperationNotificationSeverityEnum.WARNING, + module$exports$eeapiclient$ee_api_client + .OperationNotificationSeverityEnum.SEVERE, + ] + }, +} module$exports$eeapiclient$ee_api_client.IPixelDataTypePrecisionEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum = { - DOUBLE: "DOUBLE", - FLOAT: "FLOAT", - INT: "INT", - PRECISION_UNSPECIFIED: "PRECISION_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum - .PRECISION_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum.INT, - module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum.FLOAT, - module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum - .DOUBLE, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IProjectRegistrationBillingConsentEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum = - { - BILLING_CONSENT_FULL: "BILLING_CONSENT_FULL", - BILLING_CONSENT_NONE: "BILLING_CONSENT_NONE", - BILLING_CONSENT_UNSPECIFIED: "BILLING_CONSENT_UNSPECIFIED", + DOUBLE: 'DOUBLE', + FLOAT: 'FLOAT', + INT: 'INT', + PRECISION_UNSPECIFIED: 'PRECISION_UNSPECIFIED', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectRegistrationBillingConsentEnum.BILLING_CONSENT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ProjectRegistrationBillingConsentEnum.BILLING_CONSENT_NONE, - module$exports$eeapiclient$ee_api_client - .ProjectRegistrationBillingConsentEnum.BILLING_CONSENT_FULL, - ]; + return [ + module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum + .PRECISION_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum + .INT, + module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum + .FLOAT, + module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum + .DOUBLE, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IProjectRegistrationBillingConsentEnum = + function () {} +module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum = + { + BILLING_CONSENT_FULL: 'BILLING_CONSENT_FULL', + BILLING_CONSENT_NONE: 'BILLING_CONSENT_NONE', + BILLING_CONSENT_UNSPECIFIED: 'BILLING_CONSENT_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectRegistrationBillingConsentEnum + .BILLING_CONSENT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ProjectRegistrationBillingConsentEnum.BILLING_CONSENT_NONE, + module$exports$eeapiclient$ee_api_client + .ProjectRegistrationBillingConsentEnum.BILLING_CONSENT_FULL, + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectRegistrationFreeQuotaEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum = { - FREE_QUOTA_FULL: "FREE_QUOTA_FULL", - FREE_QUOTA_NONE: "FREE_QUOTA_NONE", - FREE_QUOTA_UNSPECIFIED: "FREE_QUOTA_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum - .FREE_QUOTA_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum - .FREE_QUOTA_NONE, - module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum - .FREE_QUOTA_FULL, - ]; - }, -}; + FREE_QUOTA_FULL: 'FREE_QUOTA_FULL', + FREE_QUOTA_NONE: 'FREE_QUOTA_NONE', + FREE_QUOTA_UNSPECIFIED: 'FREE_QUOTA_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectRegistrationFreeQuotaEnum.FREE_QUOTA_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ProjectRegistrationFreeQuotaEnum.FREE_QUOTA_NONE, + module$exports$eeapiclient$ee_api_client + .ProjectRegistrationFreeQuotaEnum.FREE_QUOTA_FULL, + ] + }, +} module$exports$eeapiclient$ee_api_client.IRankByOneThingRuleDirectionEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum = { - ASCENDING: "ASCENDING", - DESCENDING: "DESCENDING", - DIRECTION_UNSPECIFIED: "DIRECTION_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum - .DIRECTION_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum - .ASCENDING, - module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum - .DESCENDING, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IRuleActionEnum = function () {}; + ASCENDING: 'ASCENDING', + DESCENDING: 'DESCENDING', + DIRECTION_UNSPECIFIED: 'DIRECTION_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .RankByOneThingRuleDirectionEnum.DIRECTION_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .RankByOneThingRuleDirectionEnum.ASCENDING, + module$exports$eeapiclient$ee_api_client + .RankByOneThingRuleDirectionEnum.DESCENDING, + ] + }, +} +module$exports$eeapiclient$ee_api_client.IRuleActionEnum = function () {} module$exports$eeapiclient$ee_api_client.RuleActionEnum = { - ALLOW: "ALLOW", - ALLOW_WITH_LOG: "ALLOW_WITH_LOG", - DENY: "DENY", - DENY_WITH_LOG: "DENY_WITH_LOG", - LOG: "LOG", - NO_ACTION: "NO_ACTION", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.RuleActionEnum.NO_ACTION, - module$exports$eeapiclient$ee_api_client.RuleActionEnum.ALLOW, - module$exports$eeapiclient$ee_api_client.RuleActionEnum.ALLOW_WITH_LOG, - module$exports$eeapiclient$ee_api_client.RuleActionEnum.DENY, - module$exports$eeapiclient$ee_api_client.RuleActionEnum.DENY_WITH_LOG, - module$exports$eeapiclient$ee_api_client.RuleActionEnum.LOG, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IScheduledUpdateSubscriptionUpdateTypeEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.ScheduledUpdateSubscriptionUpdateTypeEnum = - { - BASIC: "BASIC", - NO_SUBSCRIPTION: "NO_SUBSCRIPTION", - PREMIUM: "PREMIUM", - PROFESSIONAL: "PROFESSIONAL", - TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED", + ALLOW: 'ALLOW', + ALLOW_WITH_LOG: 'ALLOW_WITH_LOG', + DENY: 'DENY', + DENY_WITH_LOG: 'DENY_WITH_LOG', + LOG: 'LOG', + NO_ACTION: 'NO_ACTION', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateSubscriptionUpdateTypeEnum.TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateSubscriptionUpdateTypeEnum.NO_SUBSCRIPTION, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateSubscriptionUpdateTypeEnum.BASIC, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateSubscriptionUpdateTypeEnum.PROFESSIONAL, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateSubscriptionUpdateTypeEnum.PREMIUM, - ]; + return [ + module$exports$eeapiclient$ee_api_client.RuleActionEnum.NO_ACTION, + module$exports$eeapiclient$ee_api_client.RuleActionEnum.ALLOW, + module$exports$eeapiclient$ee_api_client.RuleActionEnum + .ALLOW_WITH_LOG, + module$exports$eeapiclient$ee_api_client.RuleActionEnum.DENY, + module$exports$eeapiclient$ee_api_client.RuleActionEnum + .DENY_WITH_LOG, + module$exports$eeapiclient$ee_api_client.RuleActionEnum.LOG, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IScheduledUpdateSubscriptionUpdateTypeEnum = + function () {} +module$exports$eeapiclient$ee_api_client.ScheduledUpdateSubscriptionUpdateTypeEnum = + { + BASIC: 'BASIC', + NO_SUBSCRIPTION: 'NO_SUBSCRIPTION', + PREMIUM: 'PREMIUM', + PROFESSIONAL: 'PROFESSIONAL', + TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateSubscriptionUpdateTypeEnum.TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateSubscriptionUpdateTypeEnum.NO_SUBSCRIPTION, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateSubscriptionUpdateTypeEnum.BASIC, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateSubscriptionUpdateTypeEnum.PROFESSIONAL, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateSubscriptionUpdateTypeEnum.PREMIUM, + ] + }, + } module$exports$eeapiclient$ee_api_client.IScheduledUpdateUpdateChangeTypeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ScheduledUpdateUpdateChangeTypeEnum = { - CHANGE_TIME_TYPE_UNSPECIFIED: "CHANGE_TIME_TYPE_UNSPECIFIED", - EARLIEST_POSSIBLE: "EARLIEST_POSSIBLE", - END_OF_PERIOD: "END_OF_PERIOD", - END_OF_TERM: "END_OF_TERM", - SPECIFIC_DATE: "SPECIFIC_DATE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateUpdateChangeTypeEnum.CHANGE_TIME_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateUpdateChangeTypeEnum.END_OF_PERIOD, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateUpdateChangeTypeEnum.EARLIEST_POSSIBLE, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateUpdateChangeTypeEnum.SPECIFIC_DATE, - module$exports$eeapiclient$ee_api_client - .ScheduledUpdateUpdateChangeTypeEnum.END_OF_TERM, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.ISubscriptionStateEnum = - function () {}; + CHANGE_TIME_TYPE_UNSPECIFIED: 'CHANGE_TIME_TYPE_UNSPECIFIED', + EARLIEST_POSSIBLE: 'EARLIEST_POSSIBLE', + END_OF_PERIOD: 'END_OF_PERIOD', + END_OF_TERM: 'END_OF_TERM', + SPECIFIC_DATE: 'SPECIFIC_DATE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateUpdateChangeTypeEnum + .CHANGE_TIME_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateUpdateChangeTypeEnum.END_OF_PERIOD, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateUpdateChangeTypeEnum.EARLIEST_POSSIBLE, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateUpdateChangeTypeEnum.SPECIFIC_DATE, + module$exports$eeapiclient$ee_api_client + .ScheduledUpdateUpdateChangeTypeEnum.END_OF_TERM, + ] + }, +} +module$exports$eeapiclient$ee_api_client.ISubscriptionStateEnum = function () {} module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum = { - ACTIVE: "ACTIVE", - COMPLETED: "COMPLETED", - ERROR: "ERROR", - INACTIVE: "INACTIVE", - STATE_UNSPECIFIED: "STATE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum - .STATE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum.INACTIVE, - module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum.ACTIVE, - module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum.COMPLETED, - module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum.ERROR, - ]; - }, -}; + ACTIVE: 'ACTIVE', + COMPLETED: 'COMPLETED', + ERROR: 'ERROR', + INACTIVE: 'INACTIVE', + STATE_UNSPECIFIED: 'STATE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum + .STATE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum + .INACTIVE, + module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum + .ACTIVE, + module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum + .COMPLETED, + module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum + .ERROR, + ] + }, +} module$exports$eeapiclient$ee_api_client.ISubscriptionTrialStateEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum = { - ACTIVE: "ACTIVE", - EXPIRED: "EXPIRED", - STATE_UNSPECIFIED: "STATE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum - .STATE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum - .ACTIVE, - module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum - .EXPIRED, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.ISubscriptionTypeEnum = function () {}; + ACTIVE: 'ACTIVE', + EXPIRED: 'EXPIRED', + STATE_UNSPECIFIED: 'STATE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum + .STATE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum + .ACTIVE, + module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum + .EXPIRED, + ] + }, +} +module$exports$eeapiclient$ee_api_client.ISubscriptionTypeEnum = function () {} module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum = { - BASIC: "BASIC", - NO_SUBSCRIPTION: "NO_SUBSCRIPTION", - PREMIUM: "PREMIUM", - PROFESSIONAL: "PROFESSIONAL", - TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum - .TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum - .NO_SUBSCRIPTION, - module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum.BASIC, - module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum - .PROFESSIONAL, - module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum.PREMIUM, - ]; - }, -}; + BASIC: 'BASIC', + NO_SUBSCRIPTION: 'NO_SUBSCRIPTION', + PREMIUM: 'PREMIUM', + PROFESSIONAL: 'PROFESSIONAL', + TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum + .TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum + .NO_SUBSCRIPTION, + module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum.BASIC, + module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum + .PROFESSIONAL, + module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum + .PREMIUM, + ] + }, +} module$exports$eeapiclient$ee_api_client.ITableFileExportOptionsFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableFileExportOptionsFileFormatEnum = - { - CSV: "CSV", - GEO_JSON: "GEO_JSON", - KML: "KML", - KMZ: "KMZ", - SHP: "SHP", - TABLE_FILE_FORMAT_UNSPECIFIED: "TABLE_FILE_FORMAT_UNSPECIFIED", - TF_RECORD_TABLE: "TF_RECORD_TABLE", + { + CSV: 'CSV', + GEO_JSON: 'GEO_JSON', + KML: 'KML', + KMZ: 'KMZ', + SHP: 'SHP', + TABLE_FILE_FORMAT_UNSPECIFIED: 'TABLE_FILE_FORMAT_UNSPECIFIED', + TF_RECORD_TABLE: 'TF_RECORD_TABLE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum + .TABLE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum.CSV, + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum.GEO_JSON, + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum.KML, + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum.KMZ, + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum.SHP, + module$exports$eeapiclient$ee_api_client + .TableFileExportOptionsFileFormatEnum.TF_RECORD_TABLE, + ] + }, + } +module$exports$eeapiclient$ee_api_client.ITableFileFormatEnum = function () {} +module$exports$eeapiclient$ee_api_client.TableFileFormatEnum = { + CSV: 'CSV', + GEO_JSON: 'GEO_JSON', + KML: 'KML', + KMZ: 'KMZ', + SHP: 'SHP', + TABLE_FILE_FORMAT_UNSPECIFIED: 'TABLE_FILE_FORMAT_UNSPECIFIED', + TF_RECORD_TABLE: 'TF_RECORD_TABLE', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.TABLE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.CSV, - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.GEO_JSON, - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.KML, - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.KMZ, - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.SHP, - module$exports$eeapiclient$ee_api_client - .TableFileExportOptionsFileFormatEnum.TF_RECORD_TABLE, - ]; + return [ + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum + .TABLE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.CSV, + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum + .GEO_JSON, + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.KML, + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.KMZ, + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.SHP, + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum + .TF_RECORD_TABLE, + ] }, - }; -module$exports$eeapiclient$ee_api_client.ITableFileFormatEnum = function () {}; -module$exports$eeapiclient$ee_api_client.TableFileFormatEnum = { - CSV: "CSV", - GEO_JSON: "GEO_JSON", - KML: "KML", - KMZ: "KMZ", - SHP: "SHP", - TABLE_FILE_FORMAT_UNSPECIFIED: "TABLE_FILE_FORMAT_UNSPECIFIED", - TF_RECORD_TABLE: "TF_RECORD_TABLE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum - .TABLE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.CSV, - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.GEO_JSON, - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.KML, - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.KMZ, - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum.SHP, - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum - .TF_RECORD_TABLE, - ]; - }, -}; +} module$exports$eeapiclient$ee_api_client.ITableManifestColumnDataTypeOverridesEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableManifestColumnDataTypeOverridesEnum = - { - COLUMN_DATA_TYPE_LONG: "COLUMN_DATA_TYPE_LONG", - COLUMN_DATA_TYPE_NUMERIC: "COLUMN_DATA_TYPE_NUMERIC", - COLUMN_DATA_TYPE_STRING: "COLUMN_DATA_TYPE_STRING", - COLUMN_DATA_TYPE_UNSPECIFIED: "COLUMN_DATA_TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .TableManifestColumnDataTypeOverridesEnum - .COLUMN_DATA_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .TableManifestColumnDataTypeOverridesEnum.COLUMN_DATA_TYPE_STRING, - module$exports$eeapiclient$ee_api_client - .TableManifestColumnDataTypeOverridesEnum.COLUMN_DATA_TYPE_NUMERIC, - module$exports$eeapiclient$ee_api_client - .TableManifestColumnDataTypeOverridesEnum.COLUMN_DATA_TYPE_LONG, - ]; - }, - }; + { + COLUMN_DATA_TYPE_LONG: 'COLUMN_DATA_TYPE_LONG', + COLUMN_DATA_TYPE_NUMERIC: 'COLUMN_DATA_TYPE_NUMERIC', + COLUMN_DATA_TYPE_STRING: 'COLUMN_DATA_TYPE_STRING', + COLUMN_DATA_TYPE_UNSPECIFIED: 'COLUMN_DATA_TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .TableManifestColumnDataTypeOverridesEnum + .COLUMN_DATA_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .TableManifestColumnDataTypeOverridesEnum + .COLUMN_DATA_TYPE_STRING, + module$exports$eeapiclient$ee_api_client + .TableManifestColumnDataTypeOverridesEnum + .COLUMN_DATA_TYPE_NUMERIC, + module$exports$eeapiclient$ee_api_client + .TableManifestColumnDataTypeOverridesEnum + .COLUMN_DATA_TYPE_LONG, + ] + }, + } module$exports$eeapiclient$ee_api_client.ITableManifestCsvColumnDataTypeOverridesEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableManifestCsvColumnDataTypeOverridesEnum = - { - CSV_COLUMN_DATA_TYPE_LONG: "CSV_COLUMN_DATA_TYPE_LONG", - CSV_COLUMN_DATA_TYPE_NUMERIC: "CSV_COLUMN_DATA_TYPE_NUMERIC", - CSV_COLUMN_DATA_TYPE_STRING: "CSV_COLUMN_DATA_TYPE_STRING", - CSV_COLUMN_DATA_TYPE_UNSPECIFIED: "CSV_COLUMN_DATA_TYPE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .TableManifestCsvColumnDataTypeOverridesEnum - .CSV_COLUMN_DATA_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .TableManifestCsvColumnDataTypeOverridesEnum - .CSV_COLUMN_DATA_TYPE_STRING, - module$exports$eeapiclient$ee_api_client - .TableManifestCsvColumnDataTypeOverridesEnum - .CSV_COLUMN_DATA_TYPE_NUMERIC, - module$exports$eeapiclient$ee_api_client - .TableManifestCsvColumnDataTypeOverridesEnum - .CSV_COLUMN_DATA_TYPE_LONG, - ]; - }, - }; + { + CSV_COLUMN_DATA_TYPE_LONG: 'CSV_COLUMN_DATA_TYPE_LONG', + CSV_COLUMN_DATA_TYPE_NUMERIC: 'CSV_COLUMN_DATA_TYPE_NUMERIC', + CSV_COLUMN_DATA_TYPE_STRING: 'CSV_COLUMN_DATA_TYPE_STRING', + CSV_COLUMN_DATA_TYPE_UNSPECIFIED: 'CSV_COLUMN_DATA_TYPE_UNSPECIFIED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .TableManifestCsvColumnDataTypeOverridesEnum + .CSV_COLUMN_DATA_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .TableManifestCsvColumnDataTypeOverridesEnum + .CSV_COLUMN_DATA_TYPE_STRING, + module$exports$eeapiclient$ee_api_client + .TableManifestCsvColumnDataTypeOverridesEnum + .CSV_COLUMN_DATA_TYPE_NUMERIC, + module$exports$eeapiclient$ee_api_client + .TableManifestCsvColumnDataTypeOverridesEnum + .CSV_COLUMN_DATA_TYPE_LONG, + ] + }, + } module$exports$eeapiclient$ee_api_client.ITerminateSubscriptionRequestTerminationTypeEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequestTerminationTypeEnum = - { - CHANGE_TIME_TYPE_UNSPECIFIED: "CHANGE_TIME_TYPE_UNSPECIFIED", - EARLIEST_POSSIBLE: "EARLIEST_POSSIBLE", - END_OF_PERIOD: "END_OF_PERIOD", - END_OF_TERM: "END_OF_TERM", - SPECIFIC_DATE: "SPECIFIC_DATE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .TerminateSubscriptionRequestTerminationTypeEnum - .CHANGE_TIME_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .TerminateSubscriptionRequestTerminationTypeEnum.END_OF_PERIOD, - module$exports$eeapiclient$ee_api_client - .TerminateSubscriptionRequestTerminationTypeEnum.EARLIEST_POSSIBLE, - module$exports$eeapiclient$ee_api_client - .TerminateSubscriptionRequestTerminationTypeEnum.SPECIFIC_DATE, - module$exports$eeapiclient$ee_api_client - .TerminateSubscriptionRequestTerminationTypeEnum.END_OF_TERM, - ]; - }, - }; + { + CHANGE_TIME_TYPE_UNSPECIFIED: 'CHANGE_TIME_TYPE_UNSPECIFIED', + EARLIEST_POSSIBLE: 'EARLIEST_POSSIBLE', + END_OF_PERIOD: 'END_OF_PERIOD', + END_OF_TERM: 'END_OF_TERM', + SPECIFIC_DATE: 'SPECIFIC_DATE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .TerminateSubscriptionRequestTerminationTypeEnum + .CHANGE_TIME_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .TerminateSubscriptionRequestTerminationTypeEnum + .END_OF_PERIOD, + module$exports$eeapiclient$ee_api_client + .TerminateSubscriptionRequestTerminationTypeEnum + .EARLIEST_POSSIBLE, + module$exports$eeapiclient$ee_api_client + .TerminateSubscriptionRequestTerminationTypeEnum + .SPECIFIC_DATE, + module$exports$eeapiclient$ee_api_client + .TerminateSubscriptionRequestTerminationTypeEnum + .END_OF_TERM, + ] + }, + } module$exports$eeapiclient$ee_api_client.IThinningOptionsThinningStrategyEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ThinningOptionsThinningStrategyEnum = { - GLOBALLY_CONSISTENT: "GLOBALLY_CONSISTENT", - HIGHER_DENSITY: "HIGHER_DENSITY", - UNKNOWN_THINNING_STRATEGY: "UNKNOWN_THINNING_STRATEGY", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ThinningOptionsThinningStrategyEnum.UNKNOWN_THINNING_STRATEGY, - module$exports$eeapiclient$ee_api_client - .ThinningOptionsThinningStrategyEnum.GLOBALLY_CONSISTENT, - module$exports$eeapiclient$ee_api_client - .ThinningOptionsThinningStrategyEnum.HIGHER_DENSITY, - ]; - }, -}; + GLOBALLY_CONSISTENT: 'GLOBALLY_CONSISTENT', + HIGHER_DENSITY: 'HIGHER_DENSITY', + UNKNOWN_THINNING_STRATEGY: 'UNKNOWN_THINNING_STRATEGY', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ThinningOptionsThinningStrategyEnum.UNKNOWN_THINNING_STRATEGY, + module$exports$eeapiclient$ee_api_client + .ThinningOptionsThinningStrategyEnum.GLOBALLY_CONSISTENT, + module$exports$eeapiclient$ee_api_client + .ThinningOptionsThinningStrategyEnum.HIGHER_DENSITY, + ] + }, +} module$exports$eeapiclient$ee_api_client.IThumbnailFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum = { - AUTO_JPEG_PNG: "AUTO_JPEG_PNG", - GEO_TIFF: "GEO_TIFF", - IMAGE_FILE_FORMAT_UNSPECIFIED: "IMAGE_FILE_FORMAT_UNSPECIFIED", - JPEG: "JPEG", - MULTI_BAND_IMAGE_TILE: "MULTI_BAND_IMAGE_TILE", - NPY: "NPY", - PNG: "PNG", - TF_RECORD_IMAGE: "TF_RECORD_IMAGE", - ZIPPED_GEO_TIFF: "ZIPPED_GEO_TIFF", - ZIPPED_GEO_TIFF_PER_BAND: "ZIPPED_GEO_TIFF_PER_BAND", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum - .IMAGE_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum.JPEG, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum.PNG, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum - .AUTO_JPEG_PNG, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum.NPY, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum.GEO_TIFF, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum - .TF_RECORD_IMAGE, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum - .MULTI_BAND_IMAGE_TILE, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum - .ZIPPED_GEO_TIFF, - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum - .ZIPPED_GEO_TIFF_PER_BAND, - ]; - }, -}; + AUTO_JPEG_PNG: 'AUTO_JPEG_PNG', + GEO_TIFF: 'GEO_TIFF', + IMAGE_FILE_FORMAT_UNSPECIFIED: 'IMAGE_FILE_FORMAT_UNSPECIFIED', + JPEG: 'JPEG', + MULTI_BAND_IMAGE_TILE: 'MULTI_BAND_IMAGE_TILE', + NPY: 'NPY', + PNG: 'PNG', + TF_RECORD_IMAGE: 'TF_RECORD_IMAGE', + ZIPPED_GEO_TIFF: 'ZIPPED_GEO_TIFF', + ZIPPED_GEO_TIFF_PER_BAND: 'ZIPPED_GEO_TIFF_PER_BAND', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .IMAGE_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .JPEG, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .PNG, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .AUTO_JPEG_PNG, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .NPY, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .GEO_TIFF, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .TF_RECORD_IMAGE, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .MULTI_BAND_IMAGE_TILE, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .ZIPPED_GEO_TIFF, + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + .ZIPPED_GEO_TIFF_PER_BAND, + ] + }, +} module$exports$eeapiclient$ee_api_client.ITilesetBandPyramidingPolicyEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum = { - MAX: "MAX", - MEAN: "MEAN", - MEDIAN: "MEDIAN", - MIN: "MIN", - MODE: "MODE", - PYRAMIDING_POLICY_UNSPECIFIED: "PYRAMIDING_POLICY_UNSPECIFIED", - SAMPLE: "SAMPLE", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .PYRAMIDING_POLICY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .MEAN, - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .SAMPLE, - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .MIN, - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .MAX, - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .MODE, - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum - .MEDIAN, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.ITilesetDataTypeEnum = function () {}; + MAX: 'MAX', + MEAN: 'MEAN', + MEDIAN: 'MEDIAN', + MIN: 'MIN', + MODE: 'MODE', + PYRAMIDING_POLICY_UNSPECIFIED: 'PYRAMIDING_POLICY_UNSPECIFIED', + SAMPLE: 'SAMPLE', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.PYRAMIDING_POLICY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.MEAN, + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.SAMPLE, + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.MIN, + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.MAX, + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.MODE, + module$exports$eeapiclient$ee_api_client + .TilesetBandPyramidingPolicyEnum.MEDIAN, + ] + }, +} +module$exports$eeapiclient$ee_api_client.ITilesetDataTypeEnum = function () {} module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum = { - DATA_TYPE_UNSPECIFIED: "DATA_TYPE_UNSPECIFIED", - DOUBLE: "DOUBLE", - FLOAT: "FLOAT", - INT16: "INT16", - INT32: "INT32", - INT8: "INT8", - UINT16: "UINT16", - UINT32: "UINT32", - UINT8: "UINT8", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum - .DATA_TYPE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT8, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT8, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT16, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT16, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT32, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT32, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.FLOAT, - module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.DOUBLE, - ]; - }, -}; + DATA_TYPE_UNSPECIFIED: 'DATA_TYPE_UNSPECIFIED', + DOUBLE: 'DOUBLE', + FLOAT: 'FLOAT', + INT16: 'INT16', + INT32: 'INT32', + INT8: 'INT8', + UINT16: 'UINT16', + UINT32: 'UINT32', + UINT8: 'UINT8', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum + .DATA_TYPE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT8, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT8, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT16, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT16, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT32, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT32, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.FLOAT, + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.DOUBLE, + ] + }, +} module$exports$eeapiclient$ee_api_client.ITrialStatusEligibilityEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum = { - ACCOUNT_INELIGIBLE: "ACCOUNT_INELIGIBLE", - ALREADY_EVALUATED: "ALREADY_EVALUATED", - ELIGIBILITY_UNSPECIFIED: "ELIGIBILITY_UNSPECIFIED", - ELIGIBLE: "ELIGIBLE", - NO_BILLING_ACCOUNT: "NO_BILLING_ACCOUNT", - REDEEMED: "REDEEMED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum - .ELIGIBILITY_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum - .ELIGIBLE, - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum - .REDEEMED, - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum - .ALREADY_EVALUATED, - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum - .NO_BILLING_ACCOUNT, - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum - .ACCOUNT_INELIGIBLE, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.ITrialStatusStateEnum = function () {}; + ACCOUNT_INELIGIBLE: 'ACCOUNT_INELIGIBLE', + ALREADY_EVALUATED: 'ALREADY_EVALUATED', + ELIGIBILITY_UNSPECIFIED: 'ELIGIBILITY_UNSPECIFIED', + ELIGIBLE: 'ELIGIBLE', + NO_BILLING_ACCOUNT: 'NO_BILLING_ACCOUNT', + REDEEMED: 'REDEEMED', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + .ELIGIBILITY_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + .ELIGIBLE, + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + .REDEEMED, + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + .ALREADY_EVALUATED, + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + .NO_BILLING_ACCOUNT, + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + .ACCOUNT_INELIGIBLE, + ] + }, +} +module$exports$eeapiclient$ee_api_client.ITrialStatusStateEnum = function () {} module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum = { - ACTIVE: "ACTIVE", - EXPIRED: "EXPIRED", - STATE_UNSPECIFIED: "STATE_UNSPECIFIED", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum - .STATE_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum.ACTIVE, - module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum.EXPIRED, - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IVideoFileExportOptionsFileFormatEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum = - { - GIF: "GIF", - MP4: "MP4", - VIDEO_FILE_FORMAT_UNSPECIFIED: "VIDEO_FILE_FORMAT_UNSPECIFIED", - VP9: "VP9", + ACTIVE: 'ACTIVE', + EXPIRED: 'EXPIRED', + STATE_UNSPECIFIED: 'STATE_UNSPECIFIED', values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .VideoFileExportOptionsFileFormatEnum.VIDEO_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client - .VideoFileExportOptionsFileFormatEnum.MP4, - module$exports$eeapiclient$ee_api_client - .VideoFileExportOptionsFileFormatEnum.GIF, - module$exports$eeapiclient$ee_api_client - .VideoFileExportOptionsFileFormatEnum.VP9, - ]; + return [ + module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum + .STATE_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum + .ACTIVE, + module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum + .EXPIRED, + ] }, - }; +} +module$exports$eeapiclient$ee_api_client.IVideoFileExportOptionsFileFormatEnum = + function () {} +module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum = + { + GIF: 'GIF', + MP4: 'MP4', + VIDEO_FILE_FORMAT_UNSPECIFIED: 'VIDEO_FILE_FORMAT_UNSPECIFIED', + VP9: 'VP9', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .VideoFileExportOptionsFileFormatEnum + .VIDEO_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .VideoFileExportOptionsFileFormatEnum.MP4, + module$exports$eeapiclient$ee_api_client + .VideoFileExportOptionsFileFormatEnum.GIF, + module$exports$eeapiclient$ee_api_client + .VideoFileExportOptionsFileFormatEnum.VP9, + ] + }, + } module$exports$eeapiclient$ee_api_client.IVideoThumbnailFileFormatEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum = { - GIF: "GIF", - MP4: "MP4", - VIDEO_FILE_FORMAT_UNSPECIFIED: "VIDEO_FILE_FORMAT_UNSPECIFIED", - VP9: "VP9", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum - .VIDEO_FILE_FORMAT_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum.MP4, - module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum.GIF, - module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum.VP9, - ]; - }, -}; + GIF: 'GIF', + MP4: 'MP4', + VIDEO_FILE_FORMAT_UNSPECIFIED: 'VIDEO_FILE_FORMAT_UNSPECIFIED', + VP9: 'VP9', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .VideoThumbnailFileFormatEnum.VIDEO_FILE_FORMAT_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .VideoThumbnailFileFormatEnum.MP4, + module$exports$eeapiclient$ee_api_client + .VideoThumbnailFileFormatEnum.GIF, + module$exports$eeapiclient$ee_api_client + .VideoThumbnailFileFormatEnum.VP9, + ] + }, +} module$exports$eeapiclient$ee_api_client.AffineTransformParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.AffineTransform = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "scaleX", - null == parameters.scaleX ? null : parameters.scaleX - ); - this.Serializable$set( - "shearX", - null == parameters.shearX ? null : parameters.shearX - ); - this.Serializable$set( - "translateX", - null == parameters.translateX ? null : parameters.translateX - ); - this.Serializable$set( - "shearY", - null == parameters.shearY ? null : parameters.shearY - ); - this.Serializable$set( - "scaleY", - null == parameters.scaleY ? null : parameters.scaleY - ); - this.Serializable$set( - "translateY", - null == parameters.translateY ? null : parameters.translateY - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'scaleX', + null == parameters.scaleX ? null : parameters.scaleX + ) + this.Serializable$set( + 'shearX', + null == parameters.shearX ? null : parameters.shearX + ) + this.Serializable$set( + 'translateX', + null == parameters.translateX ? null : parameters.translateX + ) + this.Serializable$set( + 'shearY', + null == parameters.shearY ? null : parameters.shearY + ) + this.Serializable$set( + 'scaleY', + null == parameters.scaleY ? null : parameters.scaleY + ) + this.Serializable$set( + 'translateY', + null == parameters.translateY ? null : parameters.translateY + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.AffineTransform, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.AffineTransform, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.AffineTransform.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.AffineTransform; - }; + function () { + return module$exports$eeapiclient$ee_api_client.AffineTransform + } module$exports$eeapiclient$ee_api_client.AffineTransform.prototype.getPartialClassMetadata = - function () { - return { - keys: "scaleX scaleY shearX shearY translateX translateY".split(" "), - }; - }; + function () { + return { + keys: 'scaleX scaleY shearX shearY translateX translateY'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AffineTransform.prototype, - { - scaleX: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("scaleX") - ? this.Serializable$get("scaleX") - : null; - }, - set: function (value) { - this.Serializable$set("scaleX", value); - }, - }, - scaleY: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("scaleY") - ? this.Serializable$get("scaleY") - : null; - }, - set: function (value) { - this.Serializable$set("scaleY", value); - }, - }, - shearX: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("shearX") - ? this.Serializable$get("shearX") - : null; - }, - set: function (value) { - this.Serializable$set("shearX", value); - }, - }, - shearY: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("shearY") - ? this.Serializable$get("shearY") - : null; - }, - set: function (value) { - this.Serializable$set("shearY", value); - }, - }, - translateX: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("translateX") - ? this.Serializable$get("translateX") - : null; - }, - set: function (value) { - this.Serializable$set("translateX", value); - }, - }, - translateY: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("translateY") - ? this.Serializable$get("translateY") - : null; - }, - set: function (value) { - this.Serializable$set("translateY", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.AlgorithmParameters = function () {}; + module$exports$eeapiclient$ee_api_client.AffineTransform.prototype, + { + scaleX: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('scaleX') + ? this.Serializable$get('scaleX') + : null + }, + set: function (value) { + this.Serializable$set('scaleX', value) + }, + }, + scaleY: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('scaleY') + ? this.Serializable$get('scaleY') + : null + }, + set: function (value) { + this.Serializable$set('scaleY', value) + }, + }, + shearX: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('shearX') + ? this.Serializable$get('shearX') + : null + }, + set: function (value) { + this.Serializable$set('shearX', value) + }, + }, + shearY: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('shearY') + ? this.Serializable$get('shearY') + : null + }, + set: function (value) { + this.Serializable$set('shearY', value) + }, + }, + translateX: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('translateX') + ? this.Serializable$get('translateX') + : null + }, + set: function (value) { + this.Serializable$set('translateX', value) + }, + }, + translateY: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('translateY') + ? this.Serializable$get('translateY') + : null + }, + set: function (value) { + this.Serializable$set('translateY', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.AlgorithmParameters = function () {} module$exports$eeapiclient$ee_api_client.Algorithm = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "returnType", - null == parameters.returnType ? null : parameters.returnType - ); - this.Serializable$set( - "arguments", - null == parameters.arguments ? null : parameters.arguments - ); - this.Serializable$set( - "deprecated", - null == parameters.deprecated ? null : parameters.deprecated - ); - this.Serializable$set( - "deprecationReason", - null == parameters.deprecationReason ? null : parameters.deprecationReason - ); - this.Serializable$set( - "hidden", - null == parameters.hidden ? null : parameters.hidden - ); - this.Serializable$set( - "preview", - null == parameters.preview ? null : parameters.preview - ); - this.Serializable$set( - "sourceCodeUri", - null == parameters.sourceCodeUri ? null : parameters.sourceCodeUri - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'returnType', + null == parameters.returnType ? null : parameters.returnType + ) + this.Serializable$set( + 'arguments', + null == parameters.arguments ? null : parameters.arguments + ) + this.Serializable$set( + 'deprecated', + null == parameters.deprecated ? null : parameters.deprecated + ) + this.Serializable$set( + 'deprecationReason', + null == parameters.deprecationReason + ? null + : parameters.deprecationReason + ) + this.Serializable$set( + 'hidden', + null == parameters.hidden ? null : parameters.hidden + ) + this.Serializable$set( + 'preview', + null == parameters.preview ? null : parameters.preview + ) + this.Serializable$set( + 'sourceCodeUri', + null == parameters.sourceCodeUri ? null : parameters.sourceCodeUri + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Algorithm, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Algorithm, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Algorithm.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Algorithm; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Algorithm + } module$exports$eeapiclient$ee_api_client.Algorithm.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - arguments: module$exports$eeapiclient$ee_api_client.AlgorithmArgument, - }, - keys: "arguments deprecated deprecationReason description hidden name preview returnType sourceCodeUri".split( - " " - ), - }; - }; + function () { + return { + arrays: { + arguments: + module$exports$eeapiclient$ee_api_client.AlgorithmArgument, + }, + keys: 'arguments deprecated deprecationReason description hidden name preview returnType sourceCodeUri'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Algorithm.prototype, - { - arguments: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("arguments") - ? this.Serializable$get("arguments") - : null; - }, - set: function (value) { - this.Serializable$set("arguments", value); - }, - }, - deprecated: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("deprecated") - ? this.Serializable$get("deprecated") - : null; - }, - set: function (value) { - this.Serializable$set("deprecated", value); - }, - }, - deprecationReason: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("deprecationReason") - ? this.Serializable$get("deprecationReason") - : null; - }, - set: function (value) { - this.Serializable$set("deprecationReason", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - hidden: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("hidden") - ? this.Serializable$get("hidden") - : null; - }, - set: function (value) { - this.Serializable$set("hidden", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - preview: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("preview") - ? this.Serializable$get("preview") - : null; - }, - set: function (value) { - this.Serializable$set("preview", value); - }, - }, - returnType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("returnType") - ? this.Serializable$get("returnType") - : null; - }, - set: function (value) { - this.Serializable$set("returnType", value); - }, - }, - sourceCodeUri: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sourceCodeUri") - ? this.Serializable$get("sourceCodeUri") - : null; - }, - set: function (value) { - this.Serializable$set("sourceCodeUri", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Algorithm.prototype, + { + arguments: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('arguments') + ? this.Serializable$get('arguments') + : null + }, + set: function (value) { + this.Serializable$set('arguments', value) + }, + }, + deprecated: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('deprecated') + ? this.Serializable$get('deprecated') + : null + }, + set: function (value) { + this.Serializable$set('deprecated', value) + }, + }, + deprecationReason: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('deprecationReason') + ? this.Serializable$get('deprecationReason') + : null + }, + set: function (value) { + this.Serializable$set('deprecationReason', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + hidden: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('hidden') + ? this.Serializable$get('hidden') + : null + }, + set: function (value) { + this.Serializable$set('hidden', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + preview: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('preview') + ? this.Serializable$get('preview') + : null + }, + set: function (value) { + this.Serializable$set('preview', value) + }, + }, + returnType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('returnType') + ? this.Serializable$get('returnType') + : null + }, + set: function (value) { + this.Serializable$set('returnType', value) + }, + }, + sourceCodeUri: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sourceCodeUri') + ? this.Serializable$get('sourceCodeUri') + : null + }, + set: function (value) { + this.Serializable$set('sourceCodeUri', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.AlgorithmArgumentParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.AlgorithmArgument = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "argumentName", - null == parameters.argumentName ? null : parameters.argumentName - ); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "optional", - null == parameters.optional ? null : parameters.optional - ); - this.Serializable$set( - "defaultValue", - null == parameters.defaultValue ? null : parameters.defaultValue - ); -}; -$jscomp.inherits( - module$exports$eeapiclient$ee_api_client.AlgorithmArgument, - module$exports$eeapiclient$domain_object.Serializable -); -module$exports$eeapiclient$ee_api_client.AlgorithmArgument.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.AlgorithmArgument; - }; -module$exports$eeapiclient$ee_api_client.AlgorithmArgument.prototype.getPartialClassMetadata = - function () { - return { - keys: ["argumentName", "defaultValue", "description", "optional", "type"], - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AlgorithmArgument.prototype, - { - argumentName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("argumentName") - ? this.Serializable$get("argumentName") - : null; - }, - set: function (value) { - this.Serializable$set("argumentName", value); - }, - }, - defaultValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("defaultValue") - ? this.Serializable$get("defaultValue") - : null; - }, - set: function (value) { - this.Serializable$set("defaultValue", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - optional: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("optional") - ? this.Serializable$get("optional") - : null; - }, - set: function (value) { - this.Serializable$set("optional", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'argumentName', + null == parameters.argumentName ? null : parameters.argumentName + ) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'optional', + null == parameters.optional ? null : parameters.optional + ) + this.Serializable$set( + 'defaultValue', + null == parameters.defaultValue ? null : parameters.defaultValue + ) +} +$jscomp.inherits( + module$exports$eeapiclient$ee_api_client.AlgorithmArgument, + module$exports$eeapiclient$domain_object.Serializable +) +module$exports$eeapiclient$ee_api_client.AlgorithmArgument.prototype.getConstructor = + function () { + return module$exports$eeapiclient$ee_api_client.AlgorithmArgument + } +module$exports$eeapiclient$ee_api_client.AlgorithmArgument.prototype.getPartialClassMetadata = + function () { + return { + keys: [ + 'argumentName', + 'defaultValue', + 'description', + 'optional', + 'type', + ], + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.AlgorithmArgument.prototype, + { + argumentName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('argumentName') + ? this.Serializable$get('argumentName') + : null + }, + set: function (value) { + this.Serializable$set('argumentName', value) + }, + }, + defaultValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('defaultValue') + ? this.Serializable$get('defaultValue') + : null + }, + set: function (value) { + this.Serializable$set('defaultValue', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + optional: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('optional') + ? this.Serializable$get('optional') + : null + }, + set: function (value) { + this.Serializable$set('optional', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.AppealRestrictionRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest = function ( - parameters + parameters ) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest + } module$exports$eeapiclient$ee_api_client.AppealRestrictionRequest.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; -module$exports$eeapiclient$ee_api_client.ArrayValueParameters = function () {}; + function () { + return { keys: [] } + } +module$exports$eeapiclient$ee_api_client.ArrayValueParameters = function () {} module$exports$eeapiclient$ee_api_client.ArrayValue = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "values", - null == parameters.values ? null : parameters.values - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'values', + null == parameters.values ? null : parameters.values + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ArrayValue, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ArrayValue, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ArrayValue.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ArrayValue; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ArrayValue + } module$exports$eeapiclient$ee_api_client.ArrayValue.prototype.getPartialClassMetadata = - function () { - return { - arrays: { values: module$exports$eeapiclient$ee_api_client.ValueNode }, - keys: ["values"], - }; - }; + function () { + return { + arrays: { + values: module$exports$eeapiclient$ee_api_client.ValueNode, + }, + keys: ['values'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ArrayValue.prototype, - { - values: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("values") - ? this.Serializable$get("values") - : null; - }, - set: function (value) { - this.Serializable$set("values", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.AuditConfigParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ArrayValue.prototype, + { + values: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('values') + ? this.Serializable$get('values') + : null + }, + set: function (value) { + this.Serializable$set('values', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.AuditConfigParameters = function () {} module$exports$eeapiclient$ee_api_client.AuditConfig = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "service", - null == parameters.service ? null : parameters.service - ); - this.Serializable$set( - "auditLogConfigs", - null == parameters.auditLogConfigs ? null : parameters.auditLogConfigs - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'service', + null == parameters.service ? null : parameters.service + ) + this.Serializable$set( + 'auditLogConfigs', + null == parameters.auditLogConfigs ? null : parameters.auditLogConfigs + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.AuditConfig, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.AuditConfig, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.AuditConfig.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.AuditConfig; - }; + function () { + return module$exports$eeapiclient$ee_api_client.AuditConfig + } module$exports$eeapiclient$ee_api_client.AuditConfig.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - auditLogConfigs: - module$exports$eeapiclient$ee_api_client.AuditLogConfig, - }, - keys: ["auditLogConfigs", "service"], - }; - }; + function () { + return { + arrays: { + auditLogConfigs: + module$exports$eeapiclient$ee_api_client.AuditLogConfig, + }, + keys: ['auditLogConfigs', 'service'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AuditConfig.prototype, - { - auditLogConfigs: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("auditLogConfigs") - ? this.Serializable$get("auditLogConfigs") - : null; - }, - set: function (value) { - this.Serializable$set("auditLogConfigs", value); - }, - }, - service: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("service") - ? this.Serializable$get("service") - : null; - }, - set: function (value) { - this.Serializable$set("service", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.AuditConfig.prototype, + { + auditLogConfigs: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('auditLogConfigs') + ? this.Serializable$get('auditLogConfigs') + : null + }, + set: function (value) { + this.Serializable$set('auditLogConfigs', value) + }, + }, + service: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('service') + ? this.Serializable$get('service') + : null + }, + set: function (value) { + this.Serializable$set('service', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.AuditLogConfigParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.AuditLogConfig = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "logType", - null == parameters.logType ? null : parameters.logType - ); - this.Serializable$set( - "exemptedMembers", - null == parameters.exemptedMembers ? null : parameters.exemptedMembers - ); - this.Serializable$set( - "ignoreChildExemptions", - null == parameters.ignoreChildExemptions - ? null - : parameters.ignoreChildExemptions - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'logType', + null == parameters.logType ? null : parameters.logType + ) + this.Serializable$set( + 'exemptedMembers', + null == parameters.exemptedMembers ? null : parameters.exemptedMembers + ) + this.Serializable$set( + 'ignoreChildExemptions', + null == parameters.ignoreChildExemptions + ? null + : parameters.ignoreChildExemptions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.AuditLogConfig, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.AuditLogConfig, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.AuditLogConfig.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.AuditLogConfig; - }; + function () { + return module$exports$eeapiclient$ee_api_client.AuditLogConfig + } module$exports$eeapiclient$ee_api_client.AuditLogConfig.prototype.getPartialClassMetadata = - function () { - return { - enums: { - logType: - module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum, - }, - keys: ["exemptedMembers", "ignoreChildExemptions", "logType"], - }; - }; + function () { + return { + enums: { + logType: + module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum, + }, + keys: ['exemptedMembers', 'ignoreChildExemptions', 'logType'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AuditLogConfig.prototype, - { - exemptedMembers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("exemptedMembers") - ? this.Serializable$get("exemptedMembers") - : null; - }, - set: function (value) { - this.Serializable$set("exemptedMembers", value); - }, - }, - ignoreChildExemptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("ignoreChildExemptions") - ? this.Serializable$get("ignoreChildExemptions") - : null; - }, - set: function (value) { - this.Serializable$set("ignoreChildExemptions", value); - }, - }, - logType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("logType") - ? this.Serializable$get("logType") - : null; - }, - set: function (value) { - this.Serializable$set("logType", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.AuditLogConfig.prototype, + { + exemptedMembers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('exemptedMembers') + ? this.Serializable$get('exemptedMembers') + : null + }, + set: function (value) { + this.Serializable$set('exemptedMembers', value) + }, + }, + ignoreChildExemptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('ignoreChildExemptions') + ? this.Serializable$get('ignoreChildExemptions') + : null + }, + set: function (value) { + this.Serializable$set('ignoreChildExemptions', value) + }, + }, + logType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('logType') + ? this.Serializable$get('logType') + : null + }, + set: function (value) { + this.Serializable$set('logType', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AuditLogConfig, - { - LogType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.AuditLogConfig, + { + LogType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.AuditLogConfigLogTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions = - function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "permissionType", - null == parameters.permissionType ? null : parameters.permissionType - ); - }; + function (parameters) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'permissionType', + null == parameters.permissionType ? null : parameters.permissionType + ) + } $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions + } module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - permissionType: - module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsPermissionTypeEnum, - }, - keys: ["permissionType"], - }; - }; + function () { + return { + enums: { + permissionType: + module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsPermissionTypeEnum, + }, + keys: ['permissionType'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions - .prototype, - { - permissionType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissionType") - ? this.Serializable$get("permissionType") - : null; - }, - set: function (value) { - this.Serializable$set("permissionType", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions + .prototype, + { + permissionType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissionType') + ? this.Serializable$get('permissionType') + : null + }, + set: function (value) { + this.Serializable$set('permissionType', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions, - { - PermissionType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsPermissionTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions, + { + PermissionType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptionsPermissionTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.BigQueryDestinationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.BigQueryDestination = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "table", - null == parameters.table ? null : parameters.table - ); - this.Serializable$set( - "overwrite", - null == parameters.overwrite ? null : parameters.overwrite - ); - this.Serializable$set( - "append", - null == parameters.append ? null : parameters.append - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'table', + null == parameters.table ? null : parameters.table + ) + this.Serializable$set( + 'overwrite', + null == parameters.overwrite ? null : parameters.overwrite + ) + this.Serializable$set( + 'append', + null == parameters.append ? null : parameters.append + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.BigQueryDestination, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.BigQueryDestination, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.BigQueryDestination.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.BigQueryDestination; - }; + function () { + return module$exports$eeapiclient$ee_api_client.BigQueryDestination + } module$exports$eeapiclient$ee_api_client.BigQueryDestination.prototype.getPartialClassMetadata = - function () { - return { keys: ["append", "overwrite", "table"] }; - }; + function () { + return { keys: ['append', 'overwrite', 'table'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.BigQueryDestination.prototype, - { - append: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("append") - ? this.Serializable$get("append") - : null; - }, - set: function (value) { - this.Serializable$set("append", value); - }, - }, - overwrite: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("overwrite") - ? this.Serializable$get("overwrite") - : null; - }, - set: function (value) { - this.Serializable$set("overwrite", value); - }, - }, - table: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("table") - ? this.Serializable$get("table") - : null; - }, - set: function (value) { - this.Serializable$set("table", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.BigQueryDestination.prototype, + { + append: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('append') + ? this.Serializable$get('append') + : null + }, + set: function (value) { + this.Serializable$set('append', value) + }, + }, + overwrite: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('overwrite') + ? this.Serializable$get('overwrite') + : null + }, + set: function (value) { + this.Serializable$set('overwrite', value) + }, + }, + table: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('table') + ? this.Serializable$get('table') + : null + }, + set: function (value) { + this.Serializable$set('table', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.BigQueryExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.BigQueryExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "bigqueryDestination", - null == parameters.bigqueryDestination - ? null - : parameters.bigqueryDestination - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'bigqueryDestination', + null == parameters.bigqueryDestination + ? null + : parameters.bigqueryDestination + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.BigQueryExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.BigQueryExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.BigQueryExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.BigQueryExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.BigQueryExportOptions + } module$exports$eeapiclient$ee_api_client.BigQueryExportOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: ["bigqueryDestination"], - objects: { - bigqueryDestination: - module$exports$eeapiclient$ee_api_client.BigQueryDestination, - }, - }; - }; + function () { + return { + keys: ['bigqueryDestination'], + objects: { + bigqueryDestination: + module$exports$eeapiclient$ee_api_client.BigQueryDestination, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.BigQueryExportOptions.prototype, - { - bigqueryDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bigqueryDestination") - ? this.Serializable$get("bigqueryDestination") - : null; - }, - set: function (value) { - this.Serializable$set("bigqueryDestination", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.BindingParameters = function () {}; + module$exports$eeapiclient$ee_api_client.BigQueryExportOptions.prototype, + { + bigqueryDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bigqueryDestination') + ? this.Serializable$get('bigqueryDestination') + : null + }, + set: function (value) { + this.Serializable$set('bigqueryDestination', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.BindingParameters = function () {} module$exports$eeapiclient$ee_api_client.Binding = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "role", - null == parameters.role ? null : parameters.role - ); - this.Serializable$set( - "members", - null == parameters.members ? null : parameters.members - ); - this.Serializable$set( - "condition", - null == parameters.condition ? null : parameters.condition - ); - this.Serializable$set( - "bindingId", - null == parameters.bindingId ? null : parameters.bindingId - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'role', + null == parameters.role ? null : parameters.role + ) + this.Serializable$set( + 'members', + null == parameters.members ? null : parameters.members + ) + this.Serializable$set( + 'condition', + null == parameters.condition ? null : parameters.condition + ) + this.Serializable$set( + 'bindingId', + null == parameters.bindingId ? null : parameters.bindingId + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Binding, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Binding, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Binding.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Binding; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Binding + } module$exports$eeapiclient$ee_api_client.Binding.prototype.getPartialClassMetadata = - function () { - return { - keys: ["bindingId", "condition", "members", "role"], - objects: { condition: module$exports$eeapiclient$ee_api_client.Expr }, - }; - }; + function () { + return { + keys: ['bindingId', 'condition', 'members', 'role'], + objects: { + condition: module$exports$eeapiclient$ee_api_client.Expr, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Binding.prototype, - { - bindingId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bindingId") - ? this.Serializable$get("bindingId") - : null; - }, - set: function (value) { - this.Serializable$set("bindingId", value); - }, - }, - condition: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("condition") - ? this.Serializable$get("condition") - : null; - }, - set: function (value) { - this.Serializable$set("condition", value); - }, - }, - members: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("members") - ? this.Serializable$get("members") - : null; - }, - set: function (value) { - this.Serializable$set("members", value); - }, - }, - role: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("role") - ? this.Serializable$get("role") - : null; - }, - set: function (value) { - this.Serializable$set("role", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Binding.prototype, + { + bindingId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bindingId') + ? this.Serializable$get('bindingId') + : null + }, + set: function (value) { + this.Serializable$set('bindingId', value) + }, + }, + condition: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('condition') + ? this.Serializable$get('condition') + : null + }, + set: function (value) { + this.Serializable$set('condition', value) + }, + }, + members: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('members') + ? this.Serializable$get('members') + : null + }, + set: function (value) { + this.Serializable$set('members', value) + }, + }, + role: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('role') + ? this.Serializable$get('role') + : null + }, + set: function (value) { + this.Serializable$set('role', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.CancelOperationRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CancelOperationRequest = function ( - parameters + parameters ) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CancelOperationRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CancelOperationRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CancelOperationRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CancelOperationRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CancelOperationRequest + } module$exports$eeapiclient$ee_api_client.CancelOperationRequest.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; -module$exports$eeapiclient$ee_api_client.CapabilitiesParameters = - function () {}; + function () { + return { keys: [] } + } +module$exports$eeapiclient$ee_api_client.CapabilitiesParameters = function () {} module$exports$eeapiclient$ee_api_client.Capabilities = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "capabilities", - null == parameters.capabilities ? null : parameters.capabilities - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'capabilities', + null == parameters.capabilities ? null : parameters.capabilities + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Capabilities, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Capabilities, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Capabilities.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Capabilities; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Capabilities + } module$exports$eeapiclient$ee_api_client.Capabilities.prototype.getPartialClassMetadata = - function () { - return { - enums: { - capabilities: - module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum, - }, - keys: ["capabilities"], - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Capabilities.prototype, - { - capabilities: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("capabilities") - ? this.Serializable$get("capabilities") - : null; - }, - set: function (value) { - this.Serializable$set("capabilities", value); - }, - }, - } -); + function () { + return { + enums: { + capabilities: + module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum, + }, + keys: ['capabilities'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Capabilities, - { - Capabilities: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Capabilities.prototype, + { + capabilities: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('capabilities') + ? this.Serializable$get('capabilities') + : null + }, + set: function (value) { + this.Serializable$set('capabilities', value) + }, + }, + } +) +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.Capabilities, + { + Capabilities: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.CapabilitiesCapabilitiesEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest = - function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "changeTime", - null == parameters.changeTime ? null : parameters.changeTime - ); - this.Serializable$set( - "etag", - null == parameters.etag ? null : parameters.etag - ); - }; + function (parameters) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'changeTime', + null == parameters.changeTime ? null : parameters.changeTime + ) + this.Serializable$set( + 'etag', + null == parameters.etag ? null : parameters.etag + ) + } $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest + } module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest.prototype.getPartialClassMetadata = - function () { - return { - enums: { - changeTime: - module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestChangeTimeEnum, - type: module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestTypeEnum, - }, - keys: ["changeTime", "etag", "type"], - }; - }; + function () { + return { + enums: { + changeTime: + module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestChangeTimeEnum, + type: module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestTypeEnum, + }, + keys: ['changeTime', 'etag', 'type'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest - .prototype, - { - changeTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("changeTime") - ? this.Serializable$get("changeTime") - : null; - }, - set: function (value) { - this.Serializable$set("changeTime", value); - }, - }, - etag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("etag") - ? this.Serializable$get("etag") - : null; - }, - set: function (value) { - this.Serializable$set("etag", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest + .prototype, + { + changeTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('changeTime') + ? this.Serializable$get('changeTime') + : null + }, + set: function (value) { + this.Serializable$set('changeTime', value) + }, + }, + etag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('etag') + ? this.Serializable$get('etag') + : null + }, + set: function (value) { + this.Serializable$set('etag', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest, - { - ChangeTime: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestChangeTimeEnum; - }, - }, - Type: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequest, + { + ChangeTime: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestChangeTimeEnum + }, + }, + Type: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ChangeSubscriptionTypeRequestTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions = - function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "earthEngineDestination", - null == parameters.earthEngineDestination - ? null - : parameters.earthEngineDestination - ); - }; + function (parameters) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'earthEngineDestination', + null == parameters.earthEngineDestination + ? null + : parameters.earthEngineDestination + ) + } $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions + } module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: ["earthEngineDestination"], - objects: { - earthEngineDestination: - module$exports$eeapiclient$ee_api_client.EarthEngineDestination, - }, - }; - }; + function () { + return { + keys: ['earthEngineDestination'], + objects: { + earthEngineDestination: + module$exports$eeapiclient$ee_api_client.EarthEngineDestination, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions - .prototype, - { - earthEngineDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("earthEngineDestination") - ? this.Serializable$get("earthEngineDestination") - : null; - }, - set: function (value) { - this.Serializable$set("earthEngineDestination", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions + .prototype, + { + earthEngineDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('earthEngineDestination') + ? this.Serializable$get('earthEngineDestination') + : null + }, + set: function (value) { + this.Serializable$set('earthEngineDestination', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.CloudAuditOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CloudAuditOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "logName", - null == parameters.logName ? null : parameters.logName - ); - this.Serializable$set( - "authorizationLoggingOptions", - null == parameters.authorizationLoggingOptions - ? null - : parameters.authorizationLoggingOptions - ); - this.Serializable$set( - "permissionType", - null == parameters.permissionType ? null : parameters.permissionType - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'logName', + null == parameters.logName ? null : parameters.logName + ) + this.Serializable$set( + 'authorizationLoggingOptions', + null == parameters.authorizationLoggingOptions + ? null + : parameters.authorizationLoggingOptions + ) + this.Serializable$set( + 'permissionType', + null == parameters.permissionType ? null : parameters.permissionType + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CloudAuditOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CloudAuditOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CloudAuditOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CloudAuditOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CloudAuditOptions + } module$exports$eeapiclient$ee_api_client.CloudAuditOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - logName: - module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum, - permissionType: - module$exports$eeapiclient$ee_api_client.CloudAuditOptionsPermissionTypeEnum, - }, - keys: ["authorizationLoggingOptions", "logName", "permissionType"], - objects: { - authorizationLoggingOptions: - module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions, - }, - }; - }; + function () { + return { + enums: { + logName: + module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum, + permissionType: + module$exports$eeapiclient$ee_api_client.CloudAuditOptionsPermissionTypeEnum, + }, + keys: ['authorizationLoggingOptions', 'logName', 'permissionType'], + objects: { + authorizationLoggingOptions: + module$exports$eeapiclient$ee_api_client.AuthorizationLoggingOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CloudAuditOptions.prototype, - { - authorizationLoggingOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("authorizationLoggingOptions") - ? this.Serializable$get("authorizationLoggingOptions") - : null; - }, - set: function (value) { - this.Serializable$set("authorizationLoggingOptions", value); - }, - }, - logName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("logName") - ? this.Serializable$get("logName") - : null; - }, - set: function (value) { - this.Serializable$set("logName", value); - }, - }, - permissionType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissionType") - ? this.Serializable$get("permissionType") - : null; - }, - set: function (value) { - this.Serializable$set("permissionType", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.CloudAuditOptions.prototype, + { + authorizationLoggingOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('authorizationLoggingOptions') + ? this.Serializable$get('authorizationLoggingOptions') + : null + }, + set: function (value) { + this.Serializable$set('authorizationLoggingOptions', value) + }, + }, + logName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('logName') + ? this.Serializable$get('logName') + : null + }, + set: function (value) { + this.Serializable$set('logName', value) + }, + }, + permissionType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissionType') + ? this.Serializable$get('permissionType') + : null + }, + set: function (value) { + this.Serializable$set('permissionType', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CloudAuditOptions, - { - LogName: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum; - }, - }, - PermissionType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.CloudAuditOptionsPermissionTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.CloudAuditOptions, + { + LogName: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.CloudAuditOptionsLogNameEnum + }, + }, + PermissionType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.CloudAuditOptionsPermissionTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.CloudStorageDestinationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CloudStorageDestination = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "bucket", - null == parameters.bucket ? null : parameters.bucket - ); - this.Serializable$set( - "filenamePrefix", - null == parameters.filenamePrefix ? null : parameters.filenamePrefix - ); - this.Serializable$set( - "permissions", - null == parameters.permissions ? null : parameters.permissions - ); - this.Serializable$set( - "bucketCorsUris", - null == parameters.bucketCorsUris ? null : parameters.bucketCorsUris - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'bucket', + null == parameters.bucket ? null : parameters.bucket + ) + this.Serializable$set( + 'filenamePrefix', + null == parameters.filenamePrefix ? null : parameters.filenamePrefix + ) + this.Serializable$set( + 'permissions', + null == parameters.permissions ? null : parameters.permissions + ) + this.Serializable$set( + 'bucketCorsUris', + null == parameters.bucketCorsUris ? null : parameters.bucketCorsUris + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CloudStorageDestination, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CloudStorageDestination, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CloudStorageDestination.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CloudStorageDestination; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CloudStorageDestination + } module$exports$eeapiclient$ee_api_client.CloudStorageDestination.prototype.getPartialClassMetadata = - function () { - return { - enums: { - permissions: - module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum, - }, - keys: ["bucket", "bucketCorsUris", "filenamePrefix", "permissions"], - }; - }; + function () { + return { + enums: { + permissions: + module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum, + }, + keys: ['bucket', 'bucketCorsUris', 'filenamePrefix', 'permissions'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CloudStorageDestination.prototype, - { - bucket: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bucket") - ? this.Serializable$get("bucket") - : null; - }, - set: function (value) { - this.Serializable$set("bucket", value); - }, - }, - bucketCorsUris: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bucketCorsUris") - ? this.Serializable$get("bucketCorsUris") - : null; - }, - set: function (value) { - this.Serializable$set("bucketCorsUris", value); - }, - }, - filenamePrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("filenamePrefix") - ? this.Serializable$get("filenamePrefix") - : null; - }, - set: function (value) { - this.Serializable$set("filenamePrefix", value); - }, - }, - permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissions") - ? this.Serializable$get("permissions") - : null; - }, - set: function (value) { - this.Serializable$set("permissions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.CloudStorageDestination.prototype, + { + bucket: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bucket') + ? this.Serializable$get('bucket') + : null + }, + set: function (value) { + this.Serializable$set('bucket', value) + }, + }, + bucketCorsUris: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bucketCorsUris') + ? this.Serializable$get('bucketCorsUris') + : null + }, + set: function (value) { + this.Serializable$set('bucketCorsUris', value) + }, + }, + filenamePrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('filenamePrefix') + ? this.Serializable$get('filenamePrefix') + : null + }, + set: function (value) { + this.Serializable$set('filenamePrefix', value) + }, + }, + permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissions') + ? this.Serializable$get('permissions') + : null + }, + set: function (value) { + this.Serializable$set('permissions', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CloudStorageDestination, - { - Permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.CloudStorageDestination, + { + Permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.CloudStorageLocationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CloudStorageLocation = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "uris", - null == parameters.uris ? null : parameters.uris - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'uris', + null == parameters.uris ? null : parameters.uris + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CloudStorageLocation, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CloudStorageLocation, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CloudStorageLocation.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CloudStorageLocation; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CloudStorageLocation + } module$exports$eeapiclient$ee_api_client.CloudStorageLocation.prototype.getPartialClassMetadata = - function () { - return { keys: ["uris"] }; - }; + function () { + return { keys: ['uris'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CloudStorageLocation.prototype, - { - uris: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("uris") - ? this.Serializable$get("uris") - : null; - }, - set: function (value) { - this.Serializable$set("uris", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.CloudStorageLocation.prototype, + { + uris: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('uris') + ? this.Serializable$get('uris') + : null + }, + set: function (value) { + this.Serializable$set('uris', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "pageSize", - null == parameters.pageSize ? null : parameters.pageSize - ); - this.Serializable$set( - "pageToken", - null == parameters.pageToken ? null : parameters.pageToken - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'pageSize', + null == parameters.pageSize ? null : parameters.pageSize + ) + this.Serializable$set( + 'pageToken', + null == parameters.pageToken ? null : parameters.pageToken + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest + } module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["expression", "pageSize", "pageToken", "workloadTag"], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - }, - }; - }; + function () { + return { + keys: ['expression', 'pageSize', 'pageToken', 'workloadTag'], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype, - { - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - pageSize: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pageSize") - ? this.Serializable$get("pageSize") - : null; - }, - set: function (value) { - this.Serializable$set("pageSize", value); - }, - }, - pageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pageToken") - ? this.Serializable$get("pageToken") - : null; - }, - set: function (value) { - this.Serializable$set("pageToken", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype, + { + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + pageSize: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pageSize') + ? this.Serializable$get('pageSize') + : null + }, + set: function (value) { + this.Serializable$set('pageSize', value) + }, + }, + pageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pageToken') + ? this.Serializable$get('pageToken') + : null + }, + set: function (value) { + this.Serializable$set('pageToken', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "features", - null == parameters.features ? null : parameters.features - ); - this.Serializable$set( - "nextPageToken", - null == parameters.nextPageToken ? null : parameters.nextPageToken - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'features', + null == parameters.features ? null : parameters.features + ) + this.Serializable$set( + 'nextPageToken', + null == parameters.nextPageToken ? null : parameters.nextPageToken + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse + } module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { features: module$exports$eeapiclient$ee_api_client.Feature }, - keys: ["features", "nextPageToken", "type"], - }; - }; + function () { + return { + arrays: { + features: module$exports$eeapiclient$ee_api_client.Feature, + }, + keys: ['features', 'nextPageToken', 'type'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse.prototype, - { - features: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("features") - ? this.Serializable$get("features") - : null; - }, - set: function (value) { - this.Serializable$set("features", value); - }, - }, - nextPageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("nextPageToken") - ? this.Serializable$get("nextPageToken") - : null; - }, - set: function (value) { - this.Serializable$set("nextPageToken", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse.prototype, + { + features: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('features') + ? this.Serializable$get('features') + : null + }, + set: function (value) { + this.Serializable$set('features', value) + }, + }, + nextPageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('nextPageToken') + ? this.Serializable$get('nextPageToken') + : null + }, + set: function (value) { + this.Serializable$set('nextPageToken', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ComputeImagesRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputeImagesRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "pageSize", - null == parameters.pageSize ? null : parameters.pageSize - ); - this.Serializable$set( - "pageToken", - null == parameters.pageToken ? null : parameters.pageToken - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'pageSize', + null == parameters.pageSize ? null : parameters.pageSize + ) + this.Serializable$set( + 'pageToken', + null == parameters.pageToken ? null : parameters.pageToken + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputeImagesRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputeImagesRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputeImagesRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputeImagesRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputeImagesRequest + } module$exports$eeapiclient$ee_api_client.ComputeImagesRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["expression", "pageSize", "pageToken", "workloadTag"], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - }, - }; - }; + function () { + return { + keys: ['expression', 'pageSize', 'pageToken', 'workloadTag'], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputeImagesRequest.prototype, - { - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - pageSize: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pageSize") - ? this.Serializable$get("pageSize") - : null; - }, - set: function (value) { - this.Serializable$set("pageSize", value); - }, - }, - pageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pageToken") - ? this.Serializable$get("pageToken") - : null; - }, - set: function (value) { - this.Serializable$set("pageToken", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ComputeImagesResponseParameters = - function () {}; -module$exports$eeapiclient$ee_api_client.ComputeImagesResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "images", - null == parameters.images ? null : parameters.images - ); - this.Serializable$set( - "nextPageToken", - null == parameters.nextPageToken ? null : parameters.nextPageToken - ); -}; + module$exports$eeapiclient$ee_api_client.ComputeImagesRequest.prototype, + { + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + pageSize: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pageSize') + ? this.Serializable$get('pageSize') + : null + }, + set: function (value) { + this.Serializable$set('pageSize', value) + }, + }, + pageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pageToken') + ? this.Serializable$get('pageToken') + : null + }, + set: function (value) { + this.Serializable$set('pageToken', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ComputeImagesResponseParameters = + function () {} +module$exports$eeapiclient$ee_api_client.ComputeImagesResponse = function ( + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'images', + null == parameters.images ? null : parameters.images + ) + this.Serializable$set( + 'nextPageToken', + null == parameters.nextPageToken ? null : parameters.nextPageToken + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputeImagesResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputeImagesResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputeImagesResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputeImagesResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputeImagesResponse + } module$exports$eeapiclient$ee_api_client.ComputeImagesResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - images: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }, - keys: ["images", "nextPageToken"], - }; - }; + function () { + return { + arrays: { + images: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }, + keys: ['images', 'nextPageToken'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputeImagesResponse.prototype, - { - images: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("images") - ? this.Serializable$get("images") - : null; - }, - set: function (value) { - this.Serializable$set("images", value); - }, - }, - nextPageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("nextPageToken") - ? this.Serializable$get("nextPageToken") - : null; - }, - set: function (value) { - this.Serializable$set("nextPageToken", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ComputeImagesResponse.prototype, + { + images: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('images') + ? this.Serializable$get('images') + : null + }, + set: function (value) { + this.Serializable$set('images', value) + }, + }, + nextPageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('nextPageToken') + ? this.Serializable$get('nextPageToken') + : null + }, + set: function (value) { + this.Serializable$set('nextPageToken', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ComputePixelsRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputePixelsRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); - this.Serializable$set( - "bandIds", - null == parameters.bandIds ? null : parameters.bandIds - ); - this.Serializable$set( - "visualizationOptions", - null == parameters.visualizationOptions - ? null - : parameters.visualizationOptions - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) + this.Serializable$set( + 'bandIds', + null == parameters.bandIds ? null : parameters.bandIds + ) + this.Serializable$set( + 'visualizationOptions', + null == parameters.visualizationOptions + ? null + : parameters.visualizationOptions + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputePixelsRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputePixelsRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputePixelsRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputePixelsRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputePixelsRequest + } module$exports$eeapiclient$ee_api_client.ComputePixelsRequest.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.ComputePixelsRequestFileFormatEnum, - }, - keys: "bandIds expression fileFormat grid visualizationOptions workloadTag".split( - " " - ), - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - visualizationOptions: - module$exports$eeapiclient$ee_api_client.VisualizationOptions, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.ComputePixelsRequestFileFormatEnum, + }, + keys: 'bandIds expression fileFormat grid visualizationOptions workloadTag'.split( + ' ' + ), + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + visualizationOptions: + module$exports$eeapiclient$ee_api_client.VisualizationOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputePixelsRequest.prototype, - { - bandIds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandIds") - ? this.Serializable$get("bandIds") - : null; - }, - set: function (value) { - this.Serializable$set("bandIds", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - visualizationOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("visualizationOptions") - ? this.Serializable$get("visualizationOptions") - : null; - }, - set: function (value) { - this.Serializable$set("visualizationOptions", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ComputePixelsRequest.prototype, + { + bandIds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandIds') + ? this.Serializable$get('bandIds') + : null + }, + set: function (value) { + this.Serializable$set('bandIds', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + visualizationOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('visualizationOptions') + ? this.Serializable$get('visualizationOptions') + : null + }, + set: function (value) { + this.Serializable$set('visualizationOptions', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputePixelsRequest, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ComputePixelsRequestFileFormatEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ComputePixelsRequest, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ComputePixelsRequestFileFormatEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ComputeValueRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputeValueRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputeValueRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputeValueRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputeValueRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputeValueRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputeValueRequest + } module$exports$eeapiclient$ee_api_client.ComputeValueRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["expression", "workloadTag"], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - }, - }; - }; + function () { + return { + keys: ['expression', 'workloadTag'], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputeValueRequest.prototype, - { - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ComputeValueRequest.prototype, + { + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ComputeValueResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ComputeValueResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "result", - null == parameters.result ? null : parameters.result - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'result', + null == parameters.result ? null : parameters.result + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ComputeValueResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ComputeValueResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ComputeValueResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ComputeValueResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ComputeValueResponse + } module$exports$eeapiclient$ee_api_client.ComputeValueResponse.prototype.getPartialClassMetadata = - function () { - return { keys: ["result"] }; - }; + function () { + return { keys: ['result'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ComputeValueResponse.prototype, - { - result: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("result") - ? this.Serializable$get("result") - : null; - }, - set: function (value) { - this.Serializable$set("result", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ConditionParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ComputeValueResponse.prototype, + { + result: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('result') + ? this.Serializable$get('result') + : null + }, + set: function (value) { + this.Serializable$set('result', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ConditionParameters = function () {} module$exports$eeapiclient$ee_api_client.Condition = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set("iam", null == parameters.iam ? null : parameters.iam); - this.Serializable$set("sys", null == parameters.sys ? null : parameters.sys); - this.Serializable$set("svc", null == parameters.svc ? null : parameters.svc); - this.Serializable$set("op", null == parameters.op ? null : parameters.op); - this.Serializable$set( - "values", - null == parameters.values ? null : parameters.values - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set('iam', null == parameters.iam ? null : parameters.iam) + this.Serializable$set('sys', null == parameters.sys ? null : parameters.sys) + this.Serializable$set('svc', null == parameters.svc ? null : parameters.svc) + this.Serializable$set('op', null == parameters.op ? null : parameters.op) + this.Serializable$set( + 'values', + null == parameters.values ? null : parameters.values + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Condition, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Condition, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Condition.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Condition; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Condition + } module$exports$eeapiclient$ee_api_client.Condition.prototype.getPartialClassMetadata = - function () { - return { - enums: { - iam: module$exports$eeapiclient$ee_api_client.ConditionIamEnum, - op: module$exports$eeapiclient$ee_api_client.ConditionOpEnum, - sys: module$exports$eeapiclient$ee_api_client.ConditionSysEnum, - }, - keys: ["iam", "op", "svc", "sys", "values"], - }; - }; + function () { + return { + enums: { + iam: module$exports$eeapiclient$ee_api_client.ConditionIamEnum, + op: module$exports$eeapiclient$ee_api_client.ConditionOpEnum, + sys: module$exports$eeapiclient$ee_api_client.ConditionSysEnum, + }, + keys: ['iam', 'op', 'svc', 'sys', 'values'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Condition.prototype, - { - iam: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("iam") - ? this.Serializable$get("iam") - : null; - }, - set: function (value) { - this.Serializable$set("iam", value); - }, - }, - op: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("op") ? this.Serializable$get("op") : null; - }, - set: function (value) { - this.Serializable$set("op", value); - }, - }, - svc: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("svc") - ? this.Serializable$get("svc") - : null; - }, - set: function (value) { - this.Serializable$set("svc", value); - }, - }, - sys: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sys") - ? this.Serializable$get("sys") - : null; - }, - set: function (value) { - this.Serializable$set("sys", value); - }, - }, - values: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("values") - ? this.Serializable$get("values") - : null; - }, - set: function (value) { - this.Serializable$set("values", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Condition.prototype, + { + iam: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('iam') + ? this.Serializable$get('iam') + : null + }, + set: function (value) { + this.Serializable$set('iam', value) + }, + }, + op: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('op') + ? this.Serializable$get('op') + : null + }, + set: function (value) { + this.Serializable$set('op', value) + }, + }, + svc: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('svc') + ? this.Serializable$get('svc') + : null + }, + set: function (value) { + this.Serializable$set('svc', value) + }, + }, + sys: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sys') + ? this.Serializable$get('sys') + : null + }, + set: function (value) { + this.Serializable$set('sys', value) + }, + }, + values: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('values') + ? this.Serializable$get('values') + : null + }, + set: function (value) { + this.Serializable$set('values', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Condition, - { - Iam: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ConditionIamEnum; - }, - }, - Op: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ConditionOpEnum; - }, - }, - Sys: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ConditionSysEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Condition, + { + Iam: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ConditionIamEnum + }, + }, + Op: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ConditionOpEnum + }, + }, + Sys: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ConditionSysEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.CopyAssetRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CopyAssetRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "destinationName", - null == parameters.destinationName ? null : parameters.destinationName - ); - this.Serializable$set( - "overwrite", - null == parameters.overwrite ? null : parameters.overwrite - ); - this.Serializable$set( - "bandIds", - null == parameters.bandIds ? null : parameters.bandIds - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'destinationName', + null == parameters.destinationName ? null : parameters.destinationName + ) + this.Serializable$set( + 'overwrite', + null == parameters.overwrite ? null : parameters.overwrite + ) + this.Serializable$set( + 'bandIds', + null == parameters.bandIds ? null : parameters.bandIds + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CopyAssetRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CopyAssetRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CopyAssetRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CopyAssetRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CopyAssetRequest + } module$exports$eeapiclient$ee_api_client.CopyAssetRequest.prototype.getPartialClassMetadata = - function () { - return { keys: ["bandIds", "destinationName", "overwrite"] }; - }; + function () { + return { keys: ['bandIds', 'destinationName', 'overwrite'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CopyAssetRequest.prototype, - { - bandIds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandIds") - ? this.Serializable$get("bandIds") - : null; - }, - set: function (value) { - this.Serializable$set("bandIds", value); - }, - }, - destinationName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("destinationName") - ? this.Serializable$get("destinationName") - : null; - }, - set: function (value) { - this.Serializable$set("destinationName", value); - }, - }, - overwrite: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("overwrite") - ? this.Serializable$get("overwrite") - : null; - }, - set: function (value) { - this.Serializable$set("overwrite", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.CopyAssetRequest.prototype, + { + bandIds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandIds') + ? this.Serializable$get('bandIds') + : null + }, + set: function (value) { + this.Serializable$set('bandIds', value) + }, + }, + destinationName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('destinationName') + ? this.Serializable$get('destinationName') + : null + }, + set: function (value) { + this.Serializable$set('destinationName', value) + }, + }, + overwrite: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('overwrite') + ? this.Serializable$get('overwrite') + : null + }, + set: function (value) { + this.Serializable$set('overwrite', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.CounterOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CounterOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "metric", - null == parameters.metric ? null : parameters.metric - ); - this.Serializable$set( - "field", - null == parameters.field ? null : parameters.field - ); - this.Serializable$set( - "customFields", - null == parameters.customFields ? null : parameters.customFields - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'metric', + null == parameters.metric ? null : parameters.metric + ) + this.Serializable$set( + 'field', + null == parameters.field ? null : parameters.field + ) + this.Serializable$set( + 'customFields', + null == parameters.customFields ? null : parameters.customFields + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CounterOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CounterOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CounterOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CounterOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CounterOptions + } module$exports$eeapiclient$ee_api_client.CounterOptions.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - customFields: module$exports$eeapiclient$ee_api_client.CustomField, - }, - keys: ["customFields", "field", "metric"], - }; - }; + function () { + return { + arrays: { + customFields: + module$exports$eeapiclient$ee_api_client.CustomField, + }, + keys: ['customFields', 'field', 'metric'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CounterOptions.prototype, - { - customFields: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("customFields") - ? this.Serializable$get("customFields") - : null; - }, - set: function (value) { - this.Serializable$set("customFields", value); - }, - }, - field: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("field") - ? this.Serializable$get("field") - : null; - }, - set: function (value) { - this.Serializable$set("field", value); - }, - }, - metric: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("metric") - ? this.Serializable$get("metric") - : null; - }, - set: function (value) { - this.Serializable$set("metric", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.CustomFieldParameters = function () {}; + module$exports$eeapiclient$ee_api_client.CounterOptions.prototype, + { + customFields: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('customFields') + ? this.Serializable$get('customFields') + : null + }, + set: function (value) { + this.Serializable$set('customFields', value) + }, + }, + field: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('field') + ? this.Serializable$get('field') + : null + }, + set: function (value) { + this.Serializable$set('field', value) + }, + }, + metric: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('metric') + ? this.Serializable$get('metric') + : null + }, + set: function (value) { + this.Serializable$set('metric', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.CustomFieldParameters = function () {} module$exports$eeapiclient$ee_api_client.CustomField = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "value", - null == parameters.value ? null : parameters.value - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'value', + null == parameters.value ? null : parameters.value + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.CustomField, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.CustomField, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.CustomField.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.CustomField; - }; + function () { + return module$exports$eeapiclient$ee_api_client.CustomField + } module$exports$eeapiclient$ee_api_client.CustomField.prototype.getPartialClassMetadata = - function () { - return { keys: ["name", "value"] }; - }; + function () { + return { keys: ['name', 'value'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.CustomField.prototype, - { - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - value: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("value") - ? this.Serializable$get("value") - : null; - }, - set: function (value) { - this.Serializable$set("value", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.DataAccessOptionsParameters = - function () {}; -module$exports$eeapiclient$ee_api_client.DataAccessOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "logMode", - null == parameters.logMode ? null : parameters.logMode - ); -}; + module$exports$eeapiclient$ee_api_client.CustomField.prototype, + { + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + value: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('value') + ? this.Serializable$get('value') + : null + }, + set: function (value) { + this.Serializable$set('value', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.DataAccessOptionsParameters = + function () {} +module$exports$eeapiclient$ee_api_client.DataAccessOptions = function ( + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'logMode', + null == parameters.logMode ? null : parameters.logMode + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.DataAccessOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.DataAccessOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.DataAccessOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.DataAccessOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.DataAccessOptions + } module$exports$eeapiclient$ee_api_client.DataAccessOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - logMode: - module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum, - }, - keys: ["logMode"], - }; - }; + function () { + return { + enums: { + logMode: + module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum, + }, + keys: ['logMode'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.DataAccessOptions.prototype, - { - logMode: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("logMode") - ? this.Serializable$get("logMode") - : null; - }, - set: function (value) { - this.Serializable$set("logMode", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.DataAccessOptions.prototype, + { + logMode: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('logMode') + ? this.Serializable$get('logMode') + : null + }, + set: function (value) { + this.Serializable$set('logMode', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.DataAccessOptions, - { - LogMode: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.DataAccessOptions, + { + LogMode: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.DataAccessOptionsLogModeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.DictionaryValueParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.DictionaryValue = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "values", - null == parameters.values ? null : parameters.values - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'values', + null == parameters.values ? null : parameters.values + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.DictionaryValue, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.DictionaryValue, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.DictionaryValue.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.DictionaryValue; - }; + function () { + return module$exports$eeapiclient$ee_api_client.DictionaryValue + } module$exports$eeapiclient$ee_api_client.DictionaryValue.prototype.getPartialClassMetadata = - function () { - return { - keys: ["values"], - objectMaps: { - values: { - ctor: module$exports$eeapiclient$ee_api_client.ValueNode, - isPropertyArray: !1, - isSerializable: !0, - isValueArray: !1, - }, - }, - }; - }; + function () { + return { + keys: ['values'], + objectMaps: { + values: { + ctor: module$exports$eeapiclient$ee_api_client.ValueNode, + isPropertyArray: !1, + isSerializable: !0, + isValueArray: !1, + }, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.DictionaryValue.prototype, - { - values: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("values") - ? this.Serializable$get("values") - : null; - }, - set: function (value) { - this.Serializable$set("values", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.DoubleRangeParameters = function () {}; + module$exports$eeapiclient$ee_api_client.DictionaryValue.prototype, + { + values: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('values') + ? this.Serializable$get('values') + : null + }, + set: function (value) { + this.Serializable$set('values', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.DoubleRangeParameters = function () {} module$exports$eeapiclient$ee_api_client.DoubleRange = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set("min", null == parameters.min ? null : parameters.min); - this.Serializable$set("max", null == parameters.max ? null : parameters.max); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set('min', null == parameters.min ? null : parameters.min) + this.Serializable$set('max', null == parameters.max ? null : parameters.max) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.DoubleRange, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.DoubleRange, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.DoubleRange.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.DoubleRange; - }; + function () { + return module$exports$eeapiclient$ee_api_client.DoubleRange + } module$exports$eeapiclient$ee_api_client.DoubleRange.prototype.getPartialClassMetadata = - function () { - return { keys: ["max", "min"] }; - }; + function () { + return { keys: ['max', 'min'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.DoubleRange.prototype, - { - max: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("max") - ? this.Serializable$get("max") - : null; - }, - set: function (value) { - this.Serializable$set("max", value); - }, - }, - min: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("min") - ? this.Serializable$get("min") - : null; - }, - set: function (value) { - this.Serializable$set("min", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.DoubleRange.prototype, + { + max: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('max') + ? this.Serializable$get('max') + : null + }, + set: function (value) { + this.Serializable$set('max', value) + }, + }, + min: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('min') + ? this.Serializable$get('min') + : null + }, + set: function (value) { + this.Serializable$set('min', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.DriveDestinationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.DriveDestination = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "folder", - null == parameters.folder ? null : parameters.folder - ); - this.Serializable$set( - "filenamePrefix", - null == parameters.filenamePrefix ? null : parameters.filenamePrefix - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'folder', + null == parameters.folder ? null : parameters.folder + ) + this.Serializable$set( + 'filenamePrefix', + null == parameters.filenamePrefix ? null : parameters.filenamePrefix + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.DriveDestination, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.DriveDestination, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.DriveDestination.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.DriveDestination; - }; + function () { + return module$exports$eeapiclient$ee_api_client.DriveDestination + } module$exports$eeapiclient$ee_api_client.DriveDestination.prototype.getPartialClassMetadata = - function () { - return { keys: ["filenamePrefix", "folder"] }; - }; + function () { + return { keys: ['filenamePrefix', 'folder'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.DriveDestination.prototype, - { - filenamePrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("filenamePrefix") - ? this.Serializable$get("filenamePrefix") - : null; - }, - set: function (value) { - this.Serializable$set("filenamePrefix", value); - }, - }, - folder: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("folder") - ? this.Serializable$get("folder") - : null; - }, - set: function (value) { - this.Serializable$set("folder", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.DriveDestination.prototype, + { + filenamePrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('filenamePrefix') + ? this.Serializable$get('filenamePrefix') + : null + }, + set: function (value) { + this.Serializable$set('filenamePrefix', value) + }, + }, + folder: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('folder') + ? this.Serializable$get('folder') + : null + }, + set: function (value) { + this.Serializable$set('folder', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.EarthEngineAssetParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.EarthEngineAsset = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "tilestoreLocation", - null == parameters.tilestoreLocation ? null : parameters.tilestoreLocation - ); - this.Serializable$set( - "cloudStorageLocation", - null == parameters.cloudStorageLocation - ? null - : parameters.cloudStorageLocation - ); - this.Serializable$set( - "featureViewAssetLocation", - null == parameters.featureViewAssetLocation - ? null - : parameters.featureViewAssetLocation - ); - this.Serializable$set( - "tableLocation", - null == parameters.tableLocation ? null : parameters.tableLocation - ); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set("id", null == parameters.id ? null : parameters.id); - this.Serializable$set( - "updateTime", - null == parameters.updateTime ? null : parameters.updateTime - ); - this.Serializable$set( - "properties", - null == parameters.properties ? null : parameters.properties - ); - this.Serializable$set( - "startTime", - null == parameters.startTime ? null : parameters.startTime - ); - this.Serializable$set( - "endTime", - null == parameters.endTime ? null : parameters.endTime - ); - this.Serializable$set( - "geometry", - null == parameters.geometry ? null : parameters.geometry - ); - this.Serializable$set( - "bands", - null == parameters.bands ? null : parameters.bands - ); - this.Serializable$set( - "sizeBytes", - null == parameters.sizeBytes ? null : parameters.sizeBytes - ); - this.Serializable$set( - "featureCount", - null == parameters.featureCount ? null : parameters.featureCount - ); - this.Serializable$set( - "quota", - null == parameters.quota ? null : parameters.quota - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "tilesets", - null == parameters.tilesets ? null : parameters.tilesets - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'tilestoreLocation', + null == parameters.tilestoreLocation + ? null + : parameters.tilestoreLocation + ) + this.Serializable$set( + 'cloudStorageLocation', + null == parameters.cloudStorageLocation + ? null + : parameters.cloudStorageLocation + ) + this.Serializable$set( + 'featureViewAssetLocation', + null == parameters.featureViewAssetLocation + ? null + : parameters.featureViewAssetLocation + ) + this.Serializable$set( + 'tableLocation', + null == parameters.tableLocation ? null : parameters.tableLocation + ) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set('id', null == parameters.id ? null : parameters.id) + this.Serializable$set( + 'updateTime', + null == parameters.updateTime ? null : parameters.updateTime + ) + this.Serializable$set( + 'properties', + null == parameters.properties ? null : parameters.properties + ) + this.Serializable$set( + 'startTime', + null == parameters.startTime ? null : parameters.startTime + ) + this.Serializable$set( + 'endTime', + null == parameters.endTime ? null : parameters.endTime + ) + this.Serializable$set( + 'geometry', + null == parameters.geometry ? null : parameters.geometry + ) + this.Serializable$set( + 'bands', + null == parameters.bands ? null : parameters.bands + ) + this.Serializable$set( + 'sizeBytes', + null == parameters.sizeBytes ? null : parameters.sizeBytes + ) + this.Serializable$set( + 'featureCount', + null == parameters.featureCount ? null : parameters.featureCount + ) + this.Serializable$set( + 'quota', + null == parameters.quota ? null : parameters.quota + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'tilesets', + null == parameters.tilesets ? null : parameters.tilesets + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.EarthEngineAsset; - }; + function () { + return module$exports$eeapiclient$ee_api_client.EarthEngineAsset + } module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - bands: module$exports$eeapiclient$ee_api_client.ImageBand, - tilesets: module$exports$eeapiclient$ee_api_client.Tileset, - }, - enums: { - type: module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum, - }, - keys: "bands cloudStorageLocation endTime expression featureCount featureViewAssetLocation geometry id name properties quota sizeBytes startTime tableLocation tilesets tilestoreLocation type updateTime".split( - " " - ), - objectMaps: { + function () { + return { + arrays: { + bands: module$exports$eeapiclient$ee_api_client.ImageBand, + tilesets: module$exports$eeapiclient$ee_api_client.Tileset, + }, + enums: { + type: module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum, + }, + keys: 'bands cloudStorageLocation endTime expression featureCount featureViewAssetLocation geometry id name properties quota sizeBytes startTime tableLocation tilesets tilestoreLocation type updateTime'.split( + ' ' + ), + objectMaps: { + geometry: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + properties: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { + cloudStorageLocation: + module$exports$eeapiclient$ee_api_client.CloudStorageLocation, + expression: module$exports$eeapiclient$ee_api_client.Expression, + featureViewAssetLocation: + module$exports$eeapiclient$ee_api_client.FeatureViewLocation, + quota: module$exports$eeapiclient$ee_api_client.FolderQuota, + tableLocation: + module$exports$eeapiclient$ee_api_client.TableLocation, + tilestoreLocation: + module$exports$eeapiclient$ee_api_client.TilestoreLocation, + }, + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype, + { + bands: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bands') + ? this.Serializable$get('bands') + : null + }, + set: function (value) { + this.Serializable$set('bands', value) + }, + }, + cloudStorageLocation: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('cloudStorageLocation') + ? this.Serializable$get('cloudStorageLocation') + : null + }, + set: function (value) { + this.Serializable$set('cloudStorageLocation', value) + }, + }, + endTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('endTime') + ? this.Serializable$get('endTime') + : null + }, + set: function (value) { + this.Serializable$set('endTime', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + featureCount: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('featureCount') + ? this.Serializable$get('featureCount') + : null + }, + set: function (value) { + this.Serializable$set('featureCount', value) + }, + }, + featureViewAssetLocation: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('featureViewAssetLocation') + ? this.Serializable$get('featureViewAssetLocation') + : null + }, + set: function (value) { + this.Serializable$set('featureViewAssetLocation', value) + }, + }, geometry: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('geometry') + ? this.Serializable$get('geometry') + : null + }, + set: function (value) { + this.Serializable$set('geometry', value) + }, + }, + id: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('id') + ? this.Serializable$get('id') + : null + }, + set: function (value) { + this.Serializable$set('id', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, }, properties: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { - cloudStorageLocation: - module$exports$eeapiclient$ee_api_client.CloudStorageLocation, - expression: module$exports$eeapiclient$ee_api_client.Expression, - featureViewAssetLocation: - module$exports$eeapiclient$ee_api_client.FeatureViewLocation, - quota: module$exports$eeapiclient$ee_api_client.FolderQuota, - tableLocation: module$exports$eeapiclient$ee_api_client.TableLocation, - tilestoreLocation: - module$exports$eeapiclient$ee_api_client.TilestoreLocation, - }, - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype, - { - bands: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bands") - ? this.Serializable$get("bands") - : null; - }, - set: function (value) { - this.Serializable$set("bands", value); - }, - }, - cloudStorageLocation: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("cloudStorageLocation") - ? this.Serializable$get("cloudStorageLocation") - : null; - }, - set: function (value) { - this.Serializable$set("cloudStorageLocation", value); - }, - }, - endTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("endTime") - ? this.Serializable$get("endTime") - : null; - }, - set: function (value) { - this.Serializable$set("endTime", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - featureCount: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("featureCount") - ? this.Serializable$get("featureCount") - : null; - }, - set: function (value) { - this.Serializable$set("featureCount", value); - }, - }, - featureViewAssetLocation: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("featureViewAssetLocation") - ? this.Serializable$get("featureViewAssetLocation") - : null; - }, - set: function (value) { - this.Serializable$set("featureViewAssetLocation", value); - }, - }, - geometry: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("geometry") - ? this.Serializable$get("geometry") - : null; - }, - set: function (value) { - this.Serializable$set("geometry", value); - }, - }, - id: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("id") ? this.Serializable$get("id") : null; - }, - set: function (value) { - this.Serializable$set("id", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - properties: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("properties") - ? this.Serializable$get("properties") - : null; - }, - set: function (value) { - this.Serializable$set("properties", value); - }, - }, - quota: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("quota") - ? this.Serializable$get("quota") - : null; - }, - set: function (value) { - this.Serializable$set("quota", value); - }, - }, - sizeBytes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sizeBytes") - ? this.Serializable$get("sizeBytes") - : null; - }, - set: function (value) { - this.Serializable$set("sizeBytes", value); - }, - }, - startTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startTime") - ? this.Serializable$get("startTime") - : null; - }, - set: function (value) { - this.Serializable$set("startTime", value); - }, - }, - tableLocation: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tableLocation") - ? this.Serializable$get("tableLocation") - : null; - }, - set: function (value) { - this.Serializable$set("tableLocation", value); - }, - }, - tilesets: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesets") - ? this.Serializable$get("tilesets") - : null; - }, - set: function (value) { - this.Serializable$set("tilesets", value); - }, - }, - tilestoreLocation: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilestoreLocation") - ? this.Serializable$get("tilestoreLocation") - : null; - }, - set: function (value) { - this.Serializable$set("tilestoreLocation", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - updateTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("updateTime") - ? this.Serializable$get("updateTime") - : null; - }, - set: function (value) { - this.Serializable$set("updateTime", value); - }, - }, - } -); + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('properties') + ? this.Serializable$get('properties') + : null + }, + set: function (value) { + this.Serializable$set('properties', value) + }, + }, + quota: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('quota') + ? this.Serializable$get('quota') + : null + }, + set: function (value) { + this.Serializable$set('quota', value) + }, + }, + sizeBytes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sizeBytes') + ? this.Serializable$get('sizeBytes') + : null + }, + set: function (value) { + this.Serializable$set('sizeBytes', value) + }, + }, + startTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startTime') + ? this.Serializable$get('startTime') + : null + }, + set: function (value) { + this.Serializable$set('startTime', value) + }, + }, + tableLocation: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tableLocation') + ? this.Serializable$get('tableLocation') + : null + }, + set: function (value) { + this.Serializable$set('tableLocation', value) + }, + }, + tilesets: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesets') + ? this.Serializable$get('tilesets') + : null + }, + set: function (value) { + this.Serializable$set('tilesets', value) + }, + }, + tilestoreLocation: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilestoreLocation') + ? this.Serializable$get('tilestoreLocation') + : null + }, + set: function (value) { + this.Serializable$set('tilestoreLocation', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + updateTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('updateTime') + ? this.Serializable$get('updateTime') + : null + }, + set: function (value) { + this.Serializable$set('updateTime', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - { - Type: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + { + Type: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.EarthEngineDestinationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.EarthEngineDestination = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "overwrite", - null == parameters.overwrite ? null : parameters.overwrite - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'overwrite', + null == parameters.overwrite ? null : parameters.overwrite + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.EarthEngineDestination, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.EarthEngineDestination, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.EarthEngineDestination; - }; + function () { + return module$exports$eeapiclient$ee_api_client.EarthEngineDestination + } module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype.getPartialClassMetadata = - function () { - return { keys: ["name", "overwrite"] }; - }; + function () { + return { keys: ['name', 'overwrite'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype, - { - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - overwrite: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("overwrite") - ? this.Serializable$get("overwrite") - : null; - }, - set: function (value) { - this.Serializable$set("overwrite", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.EarthEngineDestination.prototype, + { + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + overwrite: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('overwrite') + ? this.Serializable$get('overwrite') + : null + }, + set: function (value) { + this.Serializable$set('overwrite', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.EarthEngineMapParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.EarthEngineMap = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "bandIds", - null == parameters.bandIds ? null : parameters.bandIds - ); - this.Serializable$set( - "visualizationOptions", - null == parameters.visualizationOptions - ? null - : parameters.visualizationOptions - ); -}; -$jscomp.inherits( - module$exports$eeapiclient$ee_api_client.EarthEngineMap, - module$exports$eeapiclient$domain_object.Serializable -); -module$exports$eeapiclient$ee_api_client.EarthEngineMap.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.EarthEngineMap; - }; -module$exports$eeapiclient$ee_api_client.EarthEngineMap.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum, - }, - keys: [ - "bandIds", - "expression", - "fileFormat", - "name", - "visualizationOptions", - ], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - visualizationOptions: - module$exports$eeapiclient$ee_api_client.VisualizationOptions, - }, - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.EarthEngineMap.prototype, - { - bandIds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandIds") - ? this.Serializable$get("bandIds") - : null; - }, - set: function (value) { - this.Serializable$set("bandIds", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - visualizationOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("visualizationOptions") - ? this.Serializable$get("visualizationOptions") - : null; - }, - set: function (value) { - this.Serializable$set("visualizationOptions", value); - }, - }, - } -); -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.EarthEngineMap, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.EmptyParameters = function () {}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'bandIds', + null == parameters.bandIds ? null : parameters.bandIds + ) + this.Serializable$set( + 'visualizationOptions', + null == parameters.visualizationOptions + ? null + : parameters.visualizationOptions + ) +} +$jscomp.inherits( + module$exports$eeapiclient$ee_api_client.EarthEngineMap, + module$exports$eeapiclient$domain_object.Serializable +) +module$exports$eeapiclient$ee_api_client.EarthEngineMap.prototype.getConstructor = + function () { + return module$exports$eeapiclient$ee_api_client.EarthEngineMap + } +module$exports$eeapiclient$ee_api_client.EarthEngineMap.prototype.getPartialClassMetadata = + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum, + }, + keys: [ + 'bandIds', + 'expression', + 'fileFormat', + 'name', + 'visualizationOptions', + ], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + visualizationOptions: + module$exports$eeapiclient$ee_api_client.VisualizationOptions, + }, + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.EarthEngineMap.prototype, + { + bandIds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandIds') + ? this.Serializable$get('bandIds') + : null + }, + set: function (value) { + this.Serializable$set('bandIds', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + visualizationOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('visualizationOptions') + ? this.Serializable$get('visualizationOptions') + : null + }, + set: function (value) { + this.Serializable$set('visualizationOptions', value) + }, + }, + } +) +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.EarthEngineMap, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.EarthEngineMapFileFormatEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.EmptyParameters = function () {} module$exports$eeapiclient$ee_api_client.Empty = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Empty, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Empty, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Empty.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Empty; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Empty + } module$exports$eeapiclient$ee_api_client.Empty.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; + function () { + return { keys: [] } + } module$exports$eeapiclient$ee_api_client.ExportClassifierRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportClassifierRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "assetExportOptions", - null == parameters.assetExportOptions ? null : parameters.assetExportOptions - ); - this.Serializable$set( - "maxWorkers", - null == parameters.maxWorkers ? null : parameters.maxWorkers - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'assetExportOptions', + null == parameters.assetExportOptions + ? null + : parameters.assetExportOptions + ) + this.Serializable$set( + 'maxWorkers', + null == parameters.maxWorkers ? null : parameters.maxWorkers + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ExportClassifierRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ExportClassifierRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ExportClassifierRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ExportClassifierRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ExportClassifierRequest + } module$exports$eeapiclient$ee_api_client.ExportClassifierRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: "assetExportOptions description expression maxWorkers requestId workloadTag".split( - " " - ), - objects: { - assetExportOptions: - module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions, - expression: module$exports$eeapiclient$ee_api_client.Expression, - }, - }; - }; + function () { + return { + keys: 'assetExportOptions description expression maxWorkers requestId workloadTag'.split( + ' ' + ), + objects: { + assetExportOptions: + module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions, + expression: module$exports$eeapiclient$ee_api_client.Expression, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportClassifierRequest.prototype, - { - assetExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assetExportOptions") - ? this.Serializable$get("assetExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("assetExportOptions", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - maxWorkers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxWorkers") - ? this.Serializable$get("maxWorkers") - : null; - }, - set: function (value) { - this.Serializable$set("maxWorkers", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ExportClassifierRequest.prototype, + { + assetExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assetExportOptions') + ? this.Serializable$get('assetExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('assetExportOptions', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + maxWorkers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxWorkers') + ? this.Serializable$get('maxWorkers') + : null + }, + set: function (value) { + this.Serializable$set('maxWorkers', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ExportImageRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportImageRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "fileExportOptions", - null == parameters.fileExportOptions ? null : parameters.fileExportOptions - ); - this.Serializable$set( - "assetExportOptions", - null == parameters.assetExportOptions ? null : parameters.assetExportOptions - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "maxPixels", - null == parameters.maxPixels ? null : parameters.maxPixels - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "maxWorkers", - null == parameters.maxWorkers ? null : parameters.maxWorkers - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'fileExportOptions', + null == parameters.fileExportOptions + ? null + : parameters.fileExportOptions + ) + this.Serializable$set( + 'assetExportOptions', + null == parameters.assetExportOptions + ? null + : parameters.assetExportOptions + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'maxPixels', + null == parameters.maxPixels ? null : parameters.maxPixels + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'maxWorkers', + null == parameters.maxWorkers ? null : parameters.maxWorkers + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ExportImageRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ExportImageRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ExportImageRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ExportImageRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ExportImageRequest + } module$exports$eeapiclient$ee_api_client.ExportImageRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: "assetExportOptions description expression fileExportOptions grid maxPixels maxWorkers requestId workloadTag".split( - " " - ), - objects: { - assetExportOptions: - module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions, - expression: module$exports$eeapiclient$ee_api_client.Expression, - fileExportOptions: - module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - }, - }; - }; + function () { + return { + keys: 'assetExportOptions description expression fileExportOptions grid maxPixels maxWorkers requestId workloadTag'.split( + ' ' + ), + objects: { + assetExportOptions: + module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions, + expression: module$exports$eeapiclient$ee_api_client.Expression, + fileExportOptions: + module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportImageRequest.prototype, - { - assetExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assetExportOptions") - ? this.Serializable$get("assetExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("assetExportOptions", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileExportOptions") - ? this.Serializable$get("fileExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("fileExportOptions", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - maxPixels: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxPixels") - ? this.Serializable$get("maxPixels") - : null; - }, - set: function (value) { - this.Serializable$set("maxPixels", value); - }, - }, - maxWorkers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxWorkers") - ? this.Serializable$get("maxWorkers") - : null; - }, - set: function (value) { - this.Serializable$set("maxWorkers", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ExportImageRequest.prototype, + { + assetExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assetExportOptions') + ? this.Serializable$get('assetExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('assetExportOptions', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileExportOptions') + ? this.Serializable$get('fileExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('fileExportOptions', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + maxPixels: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxPixels') + ? this.Serializable$get('maxPixels') + : null + }, + set: function (value) { + this.Serializable$set('maxPixels', value) + }, + }, + maxWorkers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxWorkers') + ? this.Serializable$get('maxWorkers') + : null + }, + set: function (value) { + this.Serializable$set('maxWorkers', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ExportMapRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportMapRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "tileOptions", - null == parameters.tileOptions ? null : parameters.tileOptions - ); - this.Serializable$set( - "tileExportOptions", - null == parameters.tileExportOptions ? null : parameters.tileExportOptions - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "maxWorkers", - null == parameters.maxWorkers ? null : parameters.maxWorkers - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'tileOptions', + null == parameters.tileOptions ? null : parameters.tileOptions + ) + this.Serializable$set( + 'tileExportOptions', + null == parameters.tileExportOptions + ? null + : parameters.tileExportOptions + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'maxWorkers', + null == parameters.maxWorkers ? null : parameters.maxWorkers + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ExportMapRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ExportMapRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ExportMapRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ExportMapRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ExportMapRequest + } module$exports$eeapiclient$ee_api_client.ExportMapRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: "description expression maxWorkers requestId tileExportOptions tileOptions workloadTag".split( - " " - ), - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - tileExportOptions: - module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, - tileOptions: module$exports$eeapiclient$ee_api_client.TileOptions, - }, - }; - }; + function () { + return { + keys: 'description expression maxWorkers requestId tileExportOptions tileOptions workloadTag'.split( + ' ' + ), + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + tileExportOptions: + module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, + tileOptions: + module$exports$eeapiclient$ee_api_client.TileOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportMapRequest.prototype, - { - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - maxWorkers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxWorkers") - ? this.Serializable$get("maxWorkers") - : null; - }, - set: function (value) { - this.Serializable$set("maxWorkers", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - tileExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileExportOptions") - ? this.Serializable$get("tileExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("tileExportOptions", value); - }, - }, - tileOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileOptions") - ? this.Serializable$get("tileOptions") - : null; - }, - set: function (value) { - this.Serializable$set("tileOptions", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ExportMapRequest.prototype, + { + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + maxWorkers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxWorkers') + ? this.Serializable$get('maxWorkers') + : null + }, + set: function (value) { + this.Serializable$set('maxWorkers', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + tileExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileExportOptions') + ? this.Serializable$get('tileExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('tileExportOptions', value) + }, + }, + tileOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileOptions') + ? this.Serializable$get('tileOptions') + : null + }, + set: function (value) { + this.Serializable$set('tileOptions', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ExportTableRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportTableRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "fileExportOptions", - null == parameters.fileExportOptions ? null : parameters.fileExportOptions - ); - this.Serializable$set( - "assetExportOptions", - null == parameters.assetExportOptions ? null : parameters.assetExportOptions - ); - this.Serializable$set( - "featureViewExportOptions", - null == parameters.featureViewExportOptions - ? null - : parameters.featureViewExportOptions - ); - this.Serializable$set( - "bigqueryExportOptions", - null == parameters.bigqueryExportOptions - ? null - : parameters.bigqueryExportOptions - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "selectors", - null == parameters.selectors ? null : parameters.selectors - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "maxErrorMeters", - null == parameters.maxErrorMeters ? null : parameters.maxErrorMeters - ); - this.Serializable$set( - "maxWorkers", - null == parameters.maxWorkers ? null : parameters.maxWorkers - ); - this.Serializable$set( - "maxVertices", - null == parameters.maxVertices ? null : parameters.maxVertices - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); - this.Serializable$set( - "policy", - null == parameters.policy ? null : parameters.policy - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'fileExportOptions', + null == parameters.fileExportOptions + ? null + : parameters.fileExportOptions + ) + this.Serializable$set( + 'assetExportOptions', + null == parameters.assetExportOptions + ? null + : parameters.assetExportOptions + ) + this.Serializable$set( + 'featureViewExportOptions', + null == parameters.featureViewExportOptions + ? null + : parameters.featureViewExportOptions + ) + this.Serializable$set( + 'bigqueryExportOptions', + null == parameters.bigqueryExportOptions + ? null + : parameters.bigqueryExportOptions + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'selectors', + null == parameters.selectors ? null : parameters.selectors + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'maxErrorMeters', + null == parameters.maxErrorMeters ? null : parameters.maxErrorMeters + ) + this.Serializable$set( + 'maxWorkers', + null == parameters.maxWorkers ? null : parameters.maxWorkers + ) + this.Serializable$set( + 'maxVertices', + null == parameters.maxVertices ? null : parameters.maxVertices + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) + this.Serializable$set( + 'policy', + null == parameters.policy ? null : parameters.policy + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ExportTableRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ExportTableRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ExportTableRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ExportTableRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ExportTableRequest + } module$exports$eeapiclient$ee_api_client.ExportTableRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: "assetExportOptions bigqueryExportOptions description expression featureViewExportOptions fileExportOptions maxErrorMeters maxVertices maxWorkers policy requestId selectors workloadTag".split( - " " - ), - objects: { - assetExportOptions: - module$exports$eeapiclient$ee_api_client.TableAssetExportOptions, - bigqueryExportOptions: - module$exports$eeapiclient$ee_api_client.BigQueryExportOptions, - expression: module$exports$eeapiclient$ee_api_client.Expression, - featureViewExportOptions: - module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions, - fileExportOptions: - module$exports$eeapiclient$ee_api_client.TableFileExportOptions, - policy: module$exports$eeapiclient$ee_api_client.Policy, - }, - }; - }; + function () { + return { + keys: 'assetExportOptions bigqueryExportOptions description expression featureViewExportOptions fileExportOptions maxErrorMeters maxVertices maxWorkers policy requestId selectors workloadTag'.split( + ' ' + ), + objects: { + assetExportOptions: + module$exports$eeapiclient$ee_api_client.TableAssetExportOptions, + bigqueryExportOptions: + module$exports$eeapiclient$ee_api_client.BigQueryExportOptions, + expression: module$exports$eeapiclient$ee_api_client.Expression, + featureViewExportOptions: + module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions, + fileExportOptions: + module$exports$eeapiclient$ee_api_client.TableFileExportOptions, + policy: module$exports$eeapiclient$ee_api_client.Policy, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportTableRequest.prototype, - { - assetExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assetExportOptions") - ? this.Serializable$get("assetExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("assetExportOptions", value); - }, - }, - bigqueryExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bigqueryExportOptions") - ? this.Serializable$get("bigqueryExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("bigqueryExportOptions", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - featureViewExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("featureViewExportOptions") - ? this.Serializable$get("featureViewExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("featureViewExportOptions", value); - }, - }, - fileExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileExportOptions") - ? this.Serializable$get("fileExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("fileExportOptions", value); - }, - }, - maxErrorMeters: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxErrorMeters") - ? this.Serializable$get("maxErrorMeters") - : null; - }, - set: function (value) { - this.Serializable$set("maxErrorMeters", value); - }, - }, - maxVertices: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxVertices") - ? this.Serializable$get("maxVertices") - : null; - }, - set: function (value) { - this.Serializable$set("maxVertices", value); - }, - }, - maxWorkers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxWorkers") - ? this.Serializable$get("maxWorkers") - : null; - }, - set: function (value) { - this.Serializable$set("maxWorkers", value); - }, - }, - policy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("policy") - ? this.Serializable$get("policy") - : null; - }, - set: function (value) { - this.Serializable$set("policy", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - selectors: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("selectors") - ? this.Serializable$get("selectors") - : null; - }, - set: function (value) { - this.Serializable$set("selectors", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ExportTableRequest.prototype, + { + assetExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assetExportOptions') + ? this.Serializable$get('assetExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('assetExportOptions', value) + }, + }, + bigqueryExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bigqueryExportOptions') + ? this.Serializable$get('bigqueryExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('bigqueryExportOptions', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + featureViewExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('featureViewExportOptions') + ? this.Serializable$get('featureViewExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('featureViewExportOptions', value) + }, + }, + fileExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileExportOptions') + ? this.Serializable$get('fileExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('fileExportOptions', value) + }, + }, + maxErrorMeters: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxErrorMeters') + ? this.Serializable$get('maxErrorMeters') + : null + }, + set: function (value) { + this.Serializable$set('maxErrorMeters', value) + }, + }, + maxVertices: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxVertices') + ? this.Serializable$get('maxVertices') + : null + }, + set: function (value) { + this.Serializable$set('maxVertices', value) + }, + }, + maxWorkers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxWorkers') + ? this.Serializable$get('maxWorkers') + : null + }, + set: function (value) { + this.Serializable$set('maxWorkers', value) + }, + }, + policy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('policy') + ? this.Serializable$get('policy') + : null + }, + set: function (value) { + this.Serializable$set('policy', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + selectors: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('selectors') + ? this.Serializable$get('selectors') + : null + }, + set: function (value) { + this.Serializable$set('selectors', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "videoOptions", - null == parameters.videoOptions ? null : parameters.videoOptions - ); - this.Serializable$set( - "tileOptions", - null == parameters.tileOptions ? null : parameters.tileOptions - ); - this.Serializable$set( - "tileExportOptions", - null == parameters.tileExportOptions ? null : parameters.tileExportOptions - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "version", - null == parameters.version ? null : parameters.version - ); - this.Serializable$set( - "maxWorkers", - null == parameters.maxWorkers ? null : parameters.maxWorkers - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'videoOptions', + null == parameters.videoOptions ? null : parameters.videoOptions + ) + this.Serializable$set( + 'tileOptions', + null == parameters.tileOptions ? null : parameters.tileOptions + ) + this.Serializable$set( + 'tileExportOptions', + null == parameters.tileExportOptions + ? null + : parameters.tileExportOptions + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'version', + null == parameters.version ? null : parameters.version + ) + this.Serializable$set( + 'maxWorkers', + null == parameters.maxWorkers ? null : parameters.maxWorkers + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest + } module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest.prototype.getPartialClassMetadata = - function () { - return { - enums: { - version: - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum, - }, - keys: "description expression maxWorkers requestId tileExportOptions tileOptions version videoOptions workloadTag".split( - " " - ), - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - tileExportOptions: - module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, - tileOptions: module$exports$eeapiclient$ee_api_client.TileOptions, - videoOptions: module$exports$eeapiclient$ee_api_client.VideoOptions, - }, - }; - }; + function () { + return { + enums: { + version: + module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum, + }, + keys: 'description expression maxWorkers requestId tileExportOptions tileOptions version videoOptions workloadTag'.split( + ' ' + ), + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + tileExportOptions: + module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, + tileOptions: + module$exports$eeapiclient$ee_api_client.TileOptions, + videoOptions: + module$exports$eeapiclient$ee_api_client.VideoOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest.prototype, - { - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - maxWorkers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxWorkers") - ? this.Serializable$get("maxWorkers") - : null; - }, - set: function (value) { - this.Serializable$set("maxWorkers", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - tileExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileExportOptions") - ? this.Serializable$get("tileExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("tileExportOptions", value); - }, - }, - tileOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileOptions") - ? this.Serializable$get("tileOptions") - : null; - }, - set: function (value) { - this.Serializable$set("tileOptions", value); - }, - }, - version: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("version") - ? this.Serializable$get("version") - : null; - }, - set: function (value) { - this.Serializable$set("version", value); - }, - }, - videoOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("videoOptions") - ? this.Serializable$get("videoOptions") - : null; - }, - set: function (value) { - this.Serializable$set("videoOptions", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest.prototype, + { + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + maxWorkers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxWorkers') + ? this.Serializable$get('maxWorkers') + : null + }, + set: function (value) { + this.Serializable$set('maxWorkers', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + tileExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileExportOptions') + ? this.Serializable$get('tileExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('tileExportOptions', value) + }, + }, + tileOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileOptions') + ? this.Serializable$get('tileOptions') + : null + }, + set: function (value) { + this.Serializable$set('tileOptions', value) + }, + }, + version: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('version') + ? this.Serializable$get('version') + : null + }, + set: function (value) { + this.Serializable$set('version', value) + }, + }, + videoOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('videoOptions') + ? this.Serializable$get('videoOptions') + : null + }, + set: function (value) { + this.Serializable$set('videoOptions', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest, - { - Version: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest, + { + Version: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ExportVideoMapRequestVersionEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ExportVideoRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ExportVideoRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "videoOptions", - null == parameters.videoOptions ? null : parameters.videoOptions - ); - this.Serializable$set( - "fileExportOptions", - null == parameters.fileExportOptions ? null : parameters.fileExportOptions - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "maxWorkers", - null == parameters.maxWorkers ? null : parameters.maxWorkers - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'videoOptions', + null == parameters.videoOptions ? null : parameters.videoOptions + ) + this.Serializable$set( + 'fileExportOptions', + null == parameters.fileExportOptions + ? null + : parameters.fileExportOptions + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'maxWorkers', + null == parameters.maxWorkers ? null : parameters.maxWorkers + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ExportVideoRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ExportVideoRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ExportVideoRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ExportVideoRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ExportVideoRequest + } module$exports$eeapiclient$ee_api_client.ExportVideoRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: "description expression fileExportOptions maxWorkers requestId videoOptions workloadTag".split( - " " - ), - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - fileExportOptions: - module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, - videoOptions: module$exports$eeapiclient$ee_api_client.VideoOptions, - }, - }; - }; + function () { + return { + keys: 'description expression fileExportOptions maxWorkers requestId videoOptions workloadTag'.split( + ' ' + ), + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + fileExportOptions: + module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, + videoOptions: + module$exports$eeapiclient$ee_api_client.VideoOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ExportVideoRequest.prototype, - { - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileExportOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileExportOptions") - ? this.Serializable$get("fileExportOptions") - : null; - }, - set: function (value) { - this.Serializable$set("fileExportOptions", value); - }, - }, - maxWorkers: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxWorkers") - ? this.Serializable$get("maxWorkers") - : null; - }, - set: function (value) { - this.Serializable$set("maxWorkers", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - videoOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("videoOptions") - ? this.Serializable$get("videoOptions") - : null; - }, - set: function (value) { - this.Serializable$set("videoOptions", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ExprParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ExportVideoRequest.prototype, + { + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileExportOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileExportOptions') + ? this.Serializable$get('fileExportOptions') + : null + }, + set: function (value) { + this.Serializable$set('fileExportOptions', value) + }, + }, + maxWorkers: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxWorkers') + ? this.Serializable$get('maxWorkers') + : null + }, + set: function (value) { + this.Serializable$set('maxWorkers', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + videoOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('videoOptions') + ? this.Serializable$get('videoOptions') + : null + }, + set: function (value) { + this.Serializable$set('videoOptions', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ExprParameters = function () {} module$exports$eeapiclient$ee_api_client.Expr = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "title", - null == parameters.title ? null : parameters.title - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "location", - null == parameters.location ? null : parameters.location - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'title', + null == parameters.title ? null : parameters.title + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'location', + null == parameters.location ? null : parameters.location + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Expr, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Expr, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Expr.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Expr; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Expr + } module$exports$eeapiclient$ee_api_client.Expr.prototype.getPartialClassMetadata = - function () { - return { keys: ["description", "expression", "location", "title"] }; - }; + function () { + return { keys: ['description', 'expression', 'location', 'title'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Expr.prototype, - { - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - location: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("location") - ? this.Serializable$get("location") - : null; - }, - set: function (value) { - this.Serializable$set("location", value); - }, - }, - title: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("title") - ? this.Serializable$get("title") - : null; - }, - set: function (value) { - this.Serializable$set("title", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ExpressionParameters = function () {}; + module$exports$eeapiclient$ee_api_client.Expr.prototype, + { + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + location: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('location') + ? this.Serializable$get('location') + : null + }, + set: function (value) { + this.Serializable$set('location', value) + }, + }, + title: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('title') + ? this.Serializable$get('title') + : null + }, + set: function (value) { + this.Serializable$set('title', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ExpressionParameters = function () {} module$exports$eeapiclient$ee_api_client.Expression = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "values", - null == parameters.values ? null : parameters.values - ); - this.Serializable$set( - "result", - null == parameters.result ? null : parameters.result - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'values', + null == parameters.values ? null : parameters.values + ) + this.Serializable$set( + 'result', + null == parameters.result ? null : parameters.result + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Expression, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Expression, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Expression.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Expression; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Expression + } module$exports$eeapiclient$ee_api_client.Expression.prototype.getPartialClassMetadata = - function () { - return { - keys: ["result", "values"], - objectMaps: { - values: { - ctor: module$exports$eeapiclient$ee_api_client.ValueNode, - isPropertyArray: !1, - isSerializable: !0, - isValueArray: !1, - }, - }, - }; - }; + function () { + return { + keys: ['result', 'values'], + objectMaps: { + values: { + ctor: module$exports$eeapiclient$ee_api_client.ValueNode, + isPropertyArray: !1, + isSerializable: !0, + isValueArray: !1, + }, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Expression.prototype, - { - result: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("result") - ? this.Serializable$get("result") - : null; - }, - set: function (value) { - this.Serializable$set("result", value); - }, - }, - values: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("values") - ? this.Serializable$get("values") - : null; - }, - set: function (value) { - this.Serializable$set("values", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.FeatureParameters = function () {}; + module$exports$eeapiclient$ee_api_client.Expression.prototype, + { + result: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('result') + ? this.Serializable$get('result') + : null + }, + set: function (value) { + this.Serializable$set('result', value) + }, + }, + values: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('values') + ? this.Serializable$get('values') + : null + }, + set: function (value) { + this.Serializable$set('values', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.FeatureParameters = function () {} module$exports$eeapiclient$ee_api_client.Feature = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "geometry", - null == parameters.geometry ? null : parameters.geometry - ); - this.Serializable$set( - "properties", - null == parameters.properties ? null : parameters.properties - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'geometry', + null == parameters.geometry ? null : parameters.geometry + ) + this.Serializable$set( + 'properties', + null == parameters.properties ? null : parameters.properties + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Feature, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Feature, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Feature.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Feature; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Feature + } module$exports$eeapiclient$ee_api_client.Feature.prototype.getPartialClassMetadata = - function () { - return { keys: ["geometry", "properties", "type"] }; - }; + function () { + return { keys: ['geometry', 'properties', 'type'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Feature.prototype, - { - geometry: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("geometry") - ? this.Serializable$get("geometry") - : null; - }, - set: function (value) { - this.Serializable$set("geometry", value); - }, - }, - properties: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("properties") - ? this.Serializable$get("properties") - : null; - }, - set: function (value) { - this.Serializable$set("properties", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.FeatureViewParameters = function () {}; + module$exports$eeapiclient$ee_api_client.Feature.prototype, + { + geometry: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('geometry') + ? this.Serializable$get('geometry') + : null + }, + set: function (value) { + this.Serializable$set('geometry', value) + }, + }, + properties: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('properties') + ? this.Serializable$get('properties') + : null + }, + set: function (value) { + this.Serializable$set('properties', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.FeatureViewParameters = function () {} module$exports$eeapiclient$ee_api_client.FeatureView = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "asset", - null == parameters.asset ? null : parameters.asset - ); - this.Serializable$set( - "mapName", - null == parameters.mapName ? null : parameters.mapName - ); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "visualizationExpression", - null == parameters.visualizationExpression - ? null - : parameters.visualizationExpression - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'asset', + null == parameters.asset ? null : parameters.asset + ) + this.Serializable$set( + 'mapName', + null == parameters.mapName ? null : parameters.mapName + ) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'visualizationExpression', + null == parameters.visualizationExpression + ? null + : parameters.visualizationExpression + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureView, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureView, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureView.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureView; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureView + } module$exports$eeapiclient$ee_api_client.FeatureView.prototype.getPartialClassMetadata = - function () { - return { - keys: ["asset", "mapName", "name", "visualizationExpression"], - objects: { - visualizationExpression: - module$exports$eeapiclient$ee_api_client.Expression, - }, - }; - }; + function () { + return { + keys: ['asset', 'mapName', 'name', 'visualizationExpression'], + objects: { + visualizationExpression: + module$exports$eeapiclient$ee_api_client.Expression, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureView.prototype, - { - asset: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("asset") - ? this.Serializable$get("asset") - : null; - }, - set: function (value) { - this.Serializable$set("asset", value); - }, - }, - mapName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("mapName") - ? this.Serializable$get("mapName") - : null; - }, - set: function (value) { - this.Serializable$set("mapName", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - visualizationExpression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("visualizationExpression") - ? this.Serializable$get("visualizationExpression") - : null; - }, - set: function (value) { - this.Serializable$set("visualizationExpression", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureView.prototype, + { + asset: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('asset') + ? this.Serializable$get('asset') + : null + }, + set: function (value) { + this.Serializable$set('asset', value) + }, + }, + mapName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('mapName') + ? this.Serializable$get('mapName') + : null + }, + set: function (value) { + this.Serializable$set('mapName', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + visualizationExpression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('visualizationExpression') + ? this.Serializable$get('visualizationExpression') + : null + }, + set: function (value) { + this.Serializable$set('visualizationExpression', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions = - function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "featureViewDestination", - null == parameters.featureViewDestination - ? null - : parameters.featureViewDestination - ); - this.Serializable$set( - "ingestionTimeParameters", - null == parameters.ingestionTimeParameters - ? null - : parameters.ingestionTimeParameters - ); - }; + function (parameters) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'featureViewDestination', + null == parameters.featureViewDestination + ? null + : parameters.featureViewDestination + ) + this.Serializable$set( + 'ingestionTimeParameters', + null == parameters.ingestionTimeParameters + ? null + : parameters.ingestionTimeParameters + ) + } $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions + } module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: ["featureViewDestination", "ingestionTimeParameters"], - objects: { - featureViewDestination: - module$exports$eeapiclient$ee_api_client.FeatureViewDestination, - ingestionTimeParameters: - module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters, - }, - }; - }; + function () { + return { + keys: ['featureViewDestination', 'ingestionTimeParameters'], + objects: { + featureViewDestination: + module$exports$eeapiclient$ee_api_client.FeatureViewDestination, + ingestionTimeParameters: + module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions - .prototype, - { - featureViewDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("featureViewDestination") - ? this.Serializable$get("featureViewDestination") - : null; - }, - set: function (value) { - this.Serializable$set("featureViewDestination", value); - }, - }, - ingestionTimeParameters: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("ingestionTimeParameters") - ? this.Serializable$get("ingestionTimeParameters") - : null; - }, - set: function (value) { - this.Serializable$set("ingestionTimeParameters", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewAssetExportOptions + .prototype, + { + featureViewDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('featureViewDestination') + ? this.Serializable$get('featureViewDestination') + : null + }, + set: function (value) { + this.Serializable$set('featureViewDestination', value) + }, + }, + ingestionTimeParameters: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('ingestionTimeParameters') + ? this.Serializable$get('ingestionTimeParameters') + : null + }, + set: function (value) { + this.Serializable$set('ingestionTimeParameters', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FeatureViewAttributeParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FeatureViewAttribute = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureViewAttribute, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureViewAttribute, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureViewAttribute.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewAttribute; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewAttribute + } module$exports$eeapiclient$ee_api_client.FeatureViewAttribute.prototype.getPartialClassMetadata = - function () { - return { - enums: { - type: module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum, - }, - keys: ["name", "type"], - }; - }; + function () { + return { + enums: { + type: module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum, + }, + keys: ['name', 'type'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewAttribute.prototype, - { - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewAttribute.prototype, + { + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewAttribute, - { - Type: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewAttribute, + { + Type: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewAttributeTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FeatureViewDestinationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FeatureViewDestination = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "assetVersion", - null == parameters.assetVersion ? null : parameters.assetVersion - ); - this.Serializable$set( - "permissions", - null == parameters.permissions ? null : parameters.permissions - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'assetVersion', + null == parameters.assetVersion ? null : parameters.assetVersion + ) + this.Serializable$set( + 'permissions', + null == parameters.permissions ? null : parameters.permissions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureViewDestination, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureViewDestination, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureViewDestination.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewDestination; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewDestination + } module$exports$eeapiclient$ee_api_client.FeatureViewDestination.prototype.getPartialClassMetadata = - function () { - return { - enums: { - permissions: - module$exports$eeapiclient$ee_api_client.FeatureViewDestinationPermissionsEnum, - }, - keys: ["assetVersion", "name", "permissions"], - }; - }; + function () { + return { + enums: { + permissions: + module$exports$eeapiclient$ee_api_client.FeatureViewDestinationPermissionsEnum, + }, + keys: ['assetVersion', 'name', 'permissions'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewDestination.prototype, - { - assetVersion: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assetVersion") - ? this.Serializable$get("assetVersion") - : null; - }, - set: function (value) { - this.Serializable$set("assetVersion", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissions") - ? this.Serializable$get("permissions") - : null; - }, - set: function (value) { - this.Serializable$set("permissions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewDestination.prototype, + { + assetVersion: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assetVersion') + ? this.Serializable$get('assetVersion') + : null + }, + set: function (value) { + this.Serializable$set('assetVersion', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissions') + ? this.Serializable$get('permissions') + : null + }, + set: function (value) { + this.Serializable$set('permissions', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewDestination, - { - Permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewDestinationPermissionsEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewDestination, + { + Permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewDestinationPermissionsEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParametersParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters = - function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "thinningOptions", - null == parameters.thinningOptions ? null : parameters.thinningOptions - ); - this.Serializable$set( - "rankingOptions", - null == parameters.rankingOptions ? null : parameters.rankingOptions - ); - this.Serializable$set( - "prerenderingOptions", - null == parameters.prerenderingOptions - ? null - : parameters.prerenderingOptions - ); - }; + function (parameters) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'thinningOptions', + null == parameters.thinningOptions + ? null + : parameters.thinningOptions + ) + this.Serializable$set( + 'rankingOptions', + null == parameters.rankingOptions ? null : parameters.rankingOptions + ) + this.Serializable$set( + 'prerenderingOptions', + null == parameters.prerenderingOptions + ? null + : parameters.prerenderingOptions + ) + } $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters + } module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters.prototype.getPartialClassMetadata = - function () { - return { - keys: ["prerenderingOptions", "rankingOptions", "thinningOptions"], - objects: { - prerenderingOptions: - module$exports$eeapiclient$ee_api_client.PrerenderingOptions, - rankingOptions: module$exports$eeapiclient$ee_api_client.RankingOptions, - thinningOptions: - module$exports$eeapiclient$ee_api_client.ThinningOptions, - }, - }; - }; + function () { + return { + keys: ['prerenderingOptions', 'rankingOptions', 'thinningOptions'], + objects: { + prerenderingOptions: + module$exports$eeapiclient$ee_api_client.PrerenderingOptions, + rankingOptions: + module$exports$eeapiclient$ee_api_client.RankingOptions, + thinningOptions: + module$exports$eeapiclient$ee_api_client.ThinningOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters - .prototype, - { - prerenderingOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("prerenderingOptions") - ? this.Serializable$get("prerenderingOptions") - : null; - }, - set: function (value) { - this.Serializable$set("prerenderingOptions", value); - }, - }, - rankingOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rankingOptions") - ? this.Serializable$get("rankingOptions") - : null; - }, - set: function (value) { - this.Serializable$set("rankingOptions", value); - }, - }, - thinningOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("thinningOptions") - ? this.Serializable$get("thinningOptions") - : null; - }, - set: function (value) { - this.Serializable$set("thinningOptions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters + .prototype, + { + prerenderingOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('prerenderingOptions') + ? this.Serializable$get('prerenderingOptions') + : null + }, + set: function (value) { + this.Serializable$set('prerenderingOptions', value) + }, + }, + rankingOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rankingOptions') + ? this.Serializable$get('rankingOptions') + : null + }, + set: function (value) { + this.Serializable$set('rankingOptions', value) + }, + }, + thinningOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('thinningOptions') + ? this.Serializable$get('thinningOptions') + : null + }, + set: function (value) { + this.Serializable$set('thinningOptions', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FeatureViewLocationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FeatureViewLocation = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "location", - null == parameters.location ? null : parameters.location - ); - this.Serializable$set( - "assetOptions", - null == parameters.assetOptions ? null : parameters.assetOptions - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'location', + null == parameters.location ? null : parameters.location + ) + this.Serializable$set( + 'assetOptions', + null == parameters.assetOptions ? null : parameters.assetOptions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureViewLocation, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureViewLocation, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureViewLocation.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewLocation; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewLocation + } module$exports$eeapiclient$ee_api_client.FeatureViewLocation.prototype.getPartialClassMetadata = - function () { - return { - keys: ["assetOptions", "location"], - objects: { - assetOptions: - module$exports$eeapiclient$ee_api_client.FeatureViewOptions, - }, - }; - }; + function () { + return { + keys: ['assetOptions', 'location'], + objects: { + assetOptions: + module$exports$eeapiclient$ee_api_client.FeatureViewOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewLocation.prototype, - { - assetOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assetOptions") - ? this.Serializable$get("assetOptions") - : null; - }, - set: function (value) { - this.Serializable$set("assetOptions", value); - }, - }, - location: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("location") - ? this.Serializable$get("location") - : null; - }, - set: function (value) { - this.Serializable$set("location", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewLocation.prototype, + { + assetOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assetOptions') + ? this.Serializable$get('assetOptions') + : null + }, + set: function (value) { + this.Serializable$set('assetOptions', value) + }, + }, + location: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('location') + ? this.Serializable$get('location') + : null + }, + set: function (value) { + this.Serializable$set('location', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FeatureViewOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FeatureViewOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "featureViewAttributes", - null == parameters.featureViewAttributes - ? null - : parameters.featureViewAttributes - ); - this.Serializable$set( - "ingestionTimeParameters", - null == parameters.ingestionTimeParameters - ? null - : parameters.ingestionTimeParameters - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'featureViewAttributes', + null == parameters.featureViewAttributes + ? null + : parameters.featureViewAttributes + ) + this.Serializable$set( + 'ingestionTimeParameters', + null == parameters.ingestionTimeParameters + ? null + : parameters.ingestionTimeParameters + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FeatureViewOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FeatureViewOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FeatureViewOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FeatureViewOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FeatureViewOptions + } module$exports$eeapiclient$ee_api_client.FeatureViewOptions.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - featureViewAttributes: - module$exports$eeapiclient$ee_api_client.FeatureViewAttribute, - }, - keys: ["featureViewAttributes", "ingestionTimeParameters"], - objects: { - ingestionTimeParameters: - module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters, - }, - }; - }; + function () { + return { + arrays: { + featureViewAttributes: + module$exports$eeapiclient$ee_api_client.FeatureViewAttribute, + }, + keys: ['featureViewAttributes', 'ingestionTimeParameters'], + objects: { + ingestionTimeParameters: + module$exports$eeapiclient$ee_api_client.FeatureViewIngestionTimeParameters, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FeatureViewOptions.prototype, - { - featureViewAttributes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("featureViewAttributes") - ? this.Serializable$get("featureViewAttributes") - : null; - }, - set: function (value) { - this.Serializable$set("featureViewAttributes", value); - }, - }, - ingestionTimeParameters: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("ingestionTimeParameters") - ? this.Serializable$get("ingestionTimeParameters") - : null; - }, - set: function (value) { - this.Serializable$set("ingestionTimeParameters", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FeatureViewOptions.prototype, + { + featureViewAttributes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('featureViewAttributes') + ? this.Serializable$get('featureViewAttributes') + : null + }, + set: function (value) { + this.Serializable$set('featureViewAttributes', value) + }, + }, + ingestionTimeParameters: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('ingestionTimeParameters') + ? this.Serializable$get('ingestionTimeParameters') + : null + }, + set: function (value) { + this.Serializable$set('ingestionTimeParameters', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FilmstripThumbnailParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FilmstripThumbnail = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "orientation", - null == parameters.orientation ? null : parameters.orientation - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'orientation', + null == parameters.orientation ? null : parameters.orientation + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FilmstripThumbnail.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FilmstripThumbnail; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FilmstripThumbnail + } module$exports$eeapiclient$ee_api_client.FilmstripThumbnail.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum, - orientation: - module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum, - }, - keys: ["expression", "fileFormat", "grid", "name", "orientation"], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum, + orientation: + module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum, + }, + keys: ['expression', 'fileFormat', 'grid', 'name', 'orientation'], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FilmstripThumbnail.prototype, - { - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - orientation: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("orientation") - ? this.Serializable$get("orientation") - : null; - }, - set: function (value) { - this.Serializable$set("orientation", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FilmstripThumbnail.prototype, + { + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + orientation: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('orientation') + ? this.Serializable$get('orientation') + : null + }, + set: function (value) { + this.Serializable$set('orientation', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum; - }, - }, - Orientation: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.FolderQuotaParameters = function () {}; + module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.FilmstripThumbnailFileFormatEnum + }, + }, + Orientation: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.FilmstripThumbnailOrientationEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.FolderQuotaParameters = function () {} module$exports$eeapiclient$ee_api_client.FolderQuota = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "sizeBytes", - null == parameters.sizeBytes ? null : parameters.sizeBytes - ); - this.Serializable$set( - "maxSizeBytes", - null == parameters.maxSizeBytes ? null : parameters.maxSizeBytes - ); - this.Serializable$set( - "assetCount", - null == parameters.assetCount ? null : parameters.assetCount - ); - this.Serializable$set( - "maxAssets", - null == parameters.maxAssets ? null : parameters.maxAssets - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'sizeBytes', + null == parameters.sizeBytes ? null : parameters.sizeBytes + ) + this.Serializable$set( + 'maxSizeBytes', + null == parameters.maxSizeBytes ? null : parameters.maxSizeBytes + ) + this.Serializable$set( + 'assetCount', + null == parameters.assetCount ? null : parameters.assetCount + ) + this.Serializable$set( + 'maxAssets', + null == parameters.maxAssets ? null : parameters.maxAssets + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FolderQuota, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FolderQuota, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FolderQuota.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FolderQuota; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FolderQuota + } module$exports$eeapiclient$ee_api_client.FolderQuota.prototype.getPartialClassMetadata = - function () { - return { keys: ["assetCount", "maxAssets", "maxSizeBytes", "sizeBytes"] }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FolderQuota.prototype, - { - assetCount: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assetCount") - ? this.Serializable$get("assetCount") - : null; - }, - set: function (value) { - this.Serializable$set("assetCount", value); - }, - }, - maxAssets: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxAssets") - ? this.Serializable$get("maxAssets") - : null; - }, - set: function (value) { - this.Serializable$set("maxAssets", value); - }, - }, - maxSizeBytes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxSizeBytes") - ? this.Serializable$get("maxSizeBytes") - : null; - }, - set: function (value) { - this.Serializable$set("maxSizeBytes", value); - }, - }, - sizeBytes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sizeBytes") - ? this.Serializable$get("sizeBytes") - : null; - }, - set: function (value) { - this.Serializable$set("sizeBytes", value); - }, - }, - } -); + function () { + return { + keys: ['assetCount', 'maxAssets', 'maxSizeBytes', 'sizeBytes'], + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.FolderQuota.prototype, + { + assetCount: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assetCount') + ? this.Serializable$get('assetCount') + : null + }, + set: function (value) { + this.Serializable$set('assetCount', value) + }, + }, + maxAssets: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxAssets') + ? this.Serializable$get('maxAssets') + : null + }, + set: function (value) { + this.Serializable$set('maxAssets', value) + }, + }, + maxSizeBytes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxSizeBytes') + ? this.Serializable$get('maxSizeBytes') + : null + }, + set: function (value) { + this.Serializable$set('maxSizeBytes', value) + }, + }, + sizeBytes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sizeBytes') + ? this.Serializable$get('sizeBytes') + : null + }, + set: function (value) { + this.Serializable$set('sizeBytes', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FunctionDefinitionParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FunctionDefinition = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "argumentNames", - null == parameters.argumentNames ? null : parameters.argumentNames - ); - this.Serializable$set( - "body", - null == parameters.body ? null : parameters.body - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'argumentNames', + null == parameters.argumentNames ? null : parameters.argumentNames + ) + this.Serializable$set( + 'body', + null == parameters.body ? null : parameters.body + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FunctionDefinition, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FunctionDefinition, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FunctionDefinition.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FunctionDefinition; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FunctionDefinition + } module$exports$eeapiclient$ee_api_client.FunctionDefinition.prototype.getPartialClassMetadata = - function () { - return { keys: ["argumentNames", "body"] }; - }; + function () { + return { keys: ['argumentNames', 'body'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FunctionDefinition.prototype, - { - argumentNames: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("argumentNames") - ? this.Serializable$get("argumentNames") - : null; - }, - set: function (value) { - this.Serializable$set("argumentNames", value); - }, - }, - body: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("body") - ? this.Serializable$get("body") - : null; - }, - set: function (value) { - this.Serializable$set("body", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FunctionDefinition.prototype, + { + argumentNames: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('argumentNames') + ? this.Serializable$get('argumentNames') + : null + }, + set: function (value) { + this.Serializable$set('argumentNames', value) + }, + }, + body: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('body') + ? this.Serializable$get('body') + : null + }, + set: function (value) { + this.Serializable$set('body', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.FunctionInvocationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.FunctionInvocation = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "functionName", - null == parameters.functionName ? null : parameters.functionName - ); - this.Serializable$set( - "functionReference", - null == parameters.functionReference ? null : parameters.functionReference - ); - this.Serializable$set( - "arguments", - null == parameters.arguments ? null : parameters.arguments - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'functionName', + null == parameters.functionName ? null : parameters.functionName + ) + this.Serializable$set( + 'functionReference', + null == parameters.functionReference + ? null + : parameters.functionReference + ) + this.Serializable$set( + 'arguments', + null == parameters.arguments ? null : parameters.arguments + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.FunctionInvocation, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.FunctionInvocation, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.FunctionInvocation.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.FunctionInvocation; - }; + function () { + return module$exports$eeapiclient$ee_api_client.FunctionInvocation + } module$exports$eeapiclient$ee_api_client.FunctionInvocation.prototype.getPartialClassMetadata = - function () { - return { - keys: ["arguments", "functionName", "functionReference"], - objectMaps: { - arguments: { - ctor: module$exports$eeapiclient$ee_api_client.ValueNode, - isPropertyArray: !1, - isSerializable: !0, - isValueArray: !1, - }, - }, - }; - }; + function () { + return { + keys: ['arguments', 'functionName', 'functionReference'], + objectMaps: { + arguments: { + ctor: module$exports$eeapiclient$ee_api_client.ValueNode, + isPropertyArray: !1, + isSerializable: !0, + isValueArray: !1, + }, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.FunctionInvocation.prototype, - { - arguments: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("arguments") - ? this.Serializable$get("arguments") - : null; - }, - set: function (value) { - this.Serializable$set("arguments", value); - }, - }, - functionName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("functionName") - ? this.Serializable$get("functionName") - : null; - }, - set: function (value) { - this.Serializable$set("functionName", value); - }, - }, - functionReference: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("functionReference") - ? this.Serializable$get("functionReference") - : null; - }, - set: function (value) { - this.Serializable$set("functionReference", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.FunctionInvocation.prototype, + { + arguments: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('arguments') + ? this.Serializable$get('arguments') + : null + }, + set: function (value) { + this.Serializable$set('arguments', value) + }, + }, + functionName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('functionName') + ? this.Serializable$get('functionName') + : null + }, + set: function (value) { + this.Serializable$set('functionName', value) + }, + }, + functionReference: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('functionReference') + ? this.Serializable$get('functionReference') + : null + }, + set: function (value) { + this.Serializable$set('functionReference', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "cloudOptimized", - null == parameters.cloudOptimized ? null : parameters.cloudOptimized - ); - this.Serializable$set( - "tileDimensions", - null == parameters.tileDimensions ? null : parameters.tileDimensions - ); - this.Serializable$set( - "skipEmptyFiles", - null == parameters.skipEmptyFiles ? null : parameters.skipEmptyFiles - ); - this.Serializable$set( - "tileSize", - null == parameters.tileSize ? null : parameters.tileSize - ); - this.Serializable$set( - "noData", - null == parameters.noData ? null : parameters.noData - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'cloudOptimized', + null == parameters.cloudOptimized ? null : parameters.cloudOptimized + ) + this.Serializable$set( + 'tileDimensions', + null == parameters.tileDimensions ? null : parameters.tileDimensions + ) + this.Serializable$set( + 'skipEmptyFiles', + null == parameters.skipEmptyFiles ? null : parameters.skipEmptyFiles + ) + this.Serializable$set( + 'tileSize', + null == parameters.tileSize ? null : parameters.tileSize + ) + this.Serializable$set( + 'noData', + null == parameters.noData ? null : parameters.noData + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions + } module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: [ - "cloudOptimized", - "noData", - "skipEmptyFiles", - "tileDimensions", - "tileSize", - ], - objects: { - noData: module$exports$eeapiclient$ee_api_client.Number, - tileDimensions: module$exports$eeapiclient$ee_api_client.GridDimensions, - }, - }; - }; + function () { + return { + keys: [ + 'cloudOptimized', + 'noData', + 'skipEmptyFiles', + 'tileDimensions', + 'tileSize', + ], + objects: { + noData: module$exports$eeapiclient$ee_api_client.Number, + tileDimensions: + module$exports$eeapiclient$ee_api_client.GridDimensions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions.prototype, - { - cloudOptimized: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("cloudOptimized") - ? this.Serializable$get("cloudOptimized") - : null; - }, - set: function (value) { - this.Serializable$set("cloudOptimized", value); - }, - }, - noData: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("noData") - ? this.Serializable$get("noData") - : null; - }, - set: function (value) { - this.Serializable$set("noData", value); - }, - }, - skipEmptyFiles: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("skipEmptyFiles") - ? this.Serializable$get("skipEmptyFiles") - : null; - }, - set: function (value) { - this.Serializable$set("skipEmptyFiles", value); - }, - }, - tileDimensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileDimensions") - ? this.Serializable$get("tileDimensions") - : null; - }, - set: function (value) { - this.Serializable$set("tileDimensions", value); - }, - }, - tileSize: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileSize") - ? this.Serializable$get("tileSize") - : null; - }, - set: function (value) { - this.Serializable$set("tileSize", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions + .prototype, + { + cloudOptimized: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('cloudOptimized') + ? this.Serializable$get('cloudOptimized') + : null + }, + set: function (value) { + this.Serializable$set('cloudOptimized', value) + }, + }, + noData: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('noData') + ? this.Serializable$get('noData') + : null + }, + set: function (value) { + this.Serializable$set('noData', value) + }, + }, + skipEmptyFiles: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('skipEmptyFiles') + ? this.Serializable$get('skipEmptyFiles') + : null + }, + set: function (value) { + this.Serializable$set('skipEmptyFiles', value) + }, + }, + tileDimensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileDimensions') + ? this.Serializable$get('tileDimensions') + : null + }, + set: function (value) { + this.Serializable$set('tileDimensions', value) + }, + }, + tileSize: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileSize') + ? this.Serializable$get('tileSize') + : null + }, + set: function (value) { + this.Serializable$set('tileSize', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.GetIamPolicyRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "options", - null == parameters.options ? null : parameters.options - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'options', + null == parameters.options ? null : parameters.options + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest + } module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["options"], - objects: { - options: module$exports$eeapiclient$ee_api_client.GetPolicyOptions, - }, - }; - }; + function () { + return { + keys: ['options'], + objects: { + options: + module$exports$eeapiclient$ee_api_client.GetPolicyOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest.prototype, - { - options: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("options") - ? this.Serializable$get("options") - : null; - }, - set: function (value) { - this.Serializable$set("options", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.GetIamPolicyRequest.prototype, + { + options: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('options') + ? this.Serializable$get('options') + : null + }, + set: function (value) { + this.Serializable$set('options', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest = function ( - parameters + parameters ) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest + } module$exports$eeapiclient$ee_api_client.GetLinkedAssetRequest.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; + function () { + return { keys: [] } + } module$exports$eeapiclient$ee_api_client.GetPixelsRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GetPixelsRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); - this.Serializable$set( - "region", - null == parameters.region ? null : parameters.region - ); - this.Serializable$set( - "bandIds", - null == parameters.bandIds ? null : parameters.bandIds - ); - this.Serializable$set( - "visualizationOptions", - null == parameters.visualizationOptions - ? null - : parameters.visualizationOptions - ); - this.Serializable$set( - "workloadTag", - null == parameters.workloadTag ? null : parameters.workloadTag - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) + this.Serializable$set( + 'region', + null == parameters.region ? null : parameters.region + ) + this.Serializable$set( + 'bandIds', + null == parameters.bandIds ? null : parameters.bandIds + ) + this.Serializable$set( + 'visualizationOptions', + null == parameters.visualizationOptions + ? null + : parameters.visualizationOptions + ) + this.Serializable$set( + 'workloadTag', + null == parameters.workloadTag ? null : parameters.workloadTag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GetPixelsRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GetPixelsRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GetPixelsRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GetPixelsRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GetPixelsRequest + } module$exports$eeapiclient$ee_api_client.GetPixelsRequest.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum, - }, - keys: "bandIds fileFormat grid region visualizationOptions workloadTag".split( - " " - ), - objectMaps: { - region: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - visualizationOptions: - module$exports$eeapiclient$ee_api_client.VisualizationOptions, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum, + }, + keys: 'bandIds fileFormat grid region visualizationOptions workloadTag'.split( + ' ' + ), + objectMaps: { + region: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + visualizationOptions: + module$exports$eeapiclient$ee_api_client.VisualizationOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GetPixelsRequest.prototype, - { - bandIds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandIds") - ? this.Serializable$get("bandIds") - : null; - }, - set: function (value) { - this.Serializable$set("bandIds", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - region: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("region") - ? this.Serializable$get("region") - : null; - }, - set: function (value) { - this.Serializable$set("region", value); - }, - }, - visualizationOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("visualizationOptions") - ? this.Serializable$get("visualizationOptions") - : null; - }, - set: function (value) { - this.Serializable$set("visualizationOptions", value); - }, - }, - workloadTag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("workloadTag") - ? this.Serializable$get("workloadTag") - : null; - }, - set: function (value) { - this.Serializable$set("workloadTag", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.GetPixelsRequest.prototype, + { + bandIds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandIds') + ? this.Serializable$get('bandIds') + : null + }, + set: function (value) { + this.Serializable$set('bandIds', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + region: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('region') + ? this.Serializable$get('region') + : null + }, + set: function (value) { + this.Serializable$set('region', value) + }, + }, + visualizationOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('visualizationOptions') + ? this.Serializable$get('visualizationOptions') + : null + }, + set: function (value) { + this.Serializable$set('visualizationOptions', value) + }, + }, + workloadTag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('workloadTag') + ? this.Serializable$get('workloadTag') + : null + }, + set: function (value) { + this.Serializable$set('workloadTag', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GetPixelsRequest, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.GetPixelsRequest, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.GetPixelsRequestFileFormatEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.GetPolicyOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GetPolicyOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "requestedPolicyVersion", - null == parameters.requestedPolicyVersion - ? null - : parameters.requestedPolicyVersion - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'requestedPolicyVersion', + null == parameters.requestedPolicyVersion + ? null + : parameters.requestedPolicyVersion + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GetPolicyOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GetPolicyOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GetPolicyOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GetPolicyOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GetPolicyOptions + } module$exports$eeapiclient$ee_api_client.GetPolicyOptions.prototype.getPartialClassMetadata = - function () { - return { keys: ["requestedPolicyVersion"] }; - }; + function () { + return { keys: ['requestedPolicyVersion'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GetPolicyOptions.prototype, - { - requestedPolicyVersion: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestedPolicyVersion") - ? this.Serializable$get("requestedPolicyVersion") - : null; - }, - set: function (value) { - this.Serializable$set("requestedPolicyVersion", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.GetPolicyOptions.prototype, + { + requestedPolicyVersion: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestedPolicyVersion') + ? this.Serializable$get('requestedPolicyVersion') + : null + }, + set: function (value) { + this.Serializable$set('requestedPolicyVersion', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.GridDimensionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.GridDimensions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "width", - null == parameters.width ? null : parameters.width - ); - this.Serializable$set( - "height", - null == parameters.height ? null : parameters.height - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'width', + null == parameters.width ? null : parameters.width + ) + this.Serializable$set( + 'height', + null == parameters.height ? null : parameters.height + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GridDimensions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GridDimensions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GridDimensions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GridDimensions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GridDimensions + } module$exports$eeapiclient$ee_api_client.GridDimensions.prototype.getPartialClassMetadata = - function () { - return { keys: ["height", "width"] }; - }; + function () { + return { keys: ['height', 'width'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GridDimensions.prototype, - { - height: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("height") - ? this.Serializable$get("height") - : null; - }, - set: function (value) { - this.Serializable$set("height", value); - }, - }, - width: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("width") - ? this.Serializable$get("width") - : null; - }, - set: function (value) { - this.Serializable$set("width", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.GridPointParameters = function () {}; + module$exports$eeapiclient$ee_api_client.GridDimensions.prototype, + { + height: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('height') + ? this.Serializable$get('height') + : null + }, + set: function (value) { + this.Serializable$set('height', value) + }, + }, + width: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('width') + ? this.Serializable$get('width') + : null + }, + set: function (value) { + this.Serializable$set('width', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.GridPointParameters = function () {} module$exports$eeapiclient$ee_api_client.GridPoint = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set("x", null == parameters.x ? null : parameters.x); - this.Serializable$set("y", null == parameters.y ? null : parameters.y); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set('x', null == parameters.x ? null : parameters.x) + this.Serializable$set('y', null == parameters.y ? null : parameters.y) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.GridPoint, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.GridPoint, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.GridPoint.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.GridPoint; - }; + function () { + return module$exports$eeapiclient$ee_api_client.GridPoint + } module$exports$eeapiclient$ee_api_client.GridPoint.prototype.getPartialClassMetadata = - function () { - return { keys: ["x", "y"] }; - }; + function () { + return { keys: ['x', 'y'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.GridPoint.prototype, - { - x: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("x") ? this.Serializable$get("x") : null; - }, - set: function (value) { - this.Serializable$set("x", value); - }, - }, - y: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("y") ? this.Serializable$get("y") : null; - }, - set: function (value) { - this.Serializable$set("y", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.HttpBodyParameters = function () {}; + module$exports$eeapiclient$ee_api_client.GridPoint.prototype, + { + x: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('x') + ? this.Serializable$get('x') + : null + }, + set: function (value) { + this.Serializable$set('x', value) + }, + }, + y: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('y') + ? this.Serializable$get('y') + : null + }, + set: function (value) { + this.Serializable$set('y', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.HttpBodyParameters = function () {} module$exports$eeapiclient$ee_api_client.HttpBody = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "contentType", - null == parameters.contentType ? null : parameters.contentType - ); - this.Serializable$set( - "data", - null == parameters.data ? null : parameters.data - ); - this.Serializable$set( - "extensions", - null == parameters.extensions ? null : parameters.extensions - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'contentType', + null == parameters.contentType ? null : parameters.contentType + ) + this.Serializable$set( + 'data', + null == parameters.data ? null : parameters.data + ) + this.Serializable$set( + 'extensions', + null == parameters.extensions ? null : parameters.extensions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.HttpBody, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.HttpBody, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.HttpBody.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.HttpBody; - }; + function () { + return module$exports$eeapiclient$ee_api_client.HttpBody + } module$exports$eeapiclient$ee_api_client.HttpBody.prototype.getPartialClassMetadata = - function () { - return { - keys: ["contentType", "data", "extensions"], - objectMaps: { - extensions: { - ctor: null, - isPropertyArray: !0, - isSerializable: !1, - isValueArray: !1, - }, - }, - }; - }; + function () { + return { + keys: ['contentType', 'data', 'extensions'], + objectMaps: { + extensions: { + ctor: null, + isPropertyArray: !0, + isSerializable: !1, + isValueArray: !1, + }, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.HttpBody.prototype, - { - contentType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("contentType") - ? this.Serializable$get("contentType") - : null; - }, - set: function (value) { - this.Serializable$set("contentType", value); - }, - }, - data: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("data") - ? this.Serializable$get("data") - : null; - }, - set: function (value) { - this.Serializable$set("data", value); - }, - }, - extensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("extensions") - ? this.Serializable$get("extensions") - : null; - }, - set: function (value) { - this.Serializable$set("extensions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.HttpBody.prototype, + { + contentType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('contentType') + ? this.Serializable$get('contentType') + : null + }, + set: function (value) { + this.Serializable$set('contentType', value) + }, + }, + data: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('data') + ? this.Serializable$get('data') + : null + }, + set: function (value) { + this.Serializable$set('data', value) + }, + }, + extensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('extensions') + ? this.Serializable$get('extensions') + : null + }, + set: function (value) { + this.Serializable$set('extensions', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "earthEngineDestination", - null == parameters.earthEngineDestination - ? null - : parameters.earthEngineDestination - ); - this.Serializable$set( - "pyramidingPolicy", - null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy - ); - this.Serializable$set( - "pyramidingPolicyOverrides", - null == parameters.pyramidingPolicyOverrides - ? null - : parameters.pyramidingPolicyOverrides - ); - this.Serializable$set( - "tileSize", - null == parameters.tileSize ? null : parameters.tileSize - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'earthEngineDestination', + null == parameters.earthEngineDestination + ? null + : parameters.earthEngineDestination + ) + this.Serializable$set( + 'pyramidingPolicy', + null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy + ) + this.Serializable$set( + 'pyramidingPolicyOverrides', + null == parameters.pyramidingPolicyOverrides + ? null + : parameters.pyramidingPolicyOverrides + ) + this.Serializable$set( + 'tileSize', + null == parameters.tileSize ? null : parameters.tileSize + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions + } module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - pyramidingPolicy: - module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyEnum, - pyramidingPolicyOverrides: - module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyOverridesEnum, - }, - keys: [ - "earthEngineDestination", - "pyramidingPolicy", - "pyramidingPolicyOverrides", - "tileSize", - ], - objectMaps: { - pyramidingPolicyOverrides: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { - earthEngineDestination: - module$exports$eeapiclient$ee_api_client.EarthEngineDestination, - }, - }; - }; + function () { + return { + enums: { + pyramidingPolicy: + module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyEnum, + pyramidingPolicyOverrides: + module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyOverridesEnum, + }, + keys: [ + 'earthEngineDestination', + 'pyramidingPolicy', + 'pyramidingPolicyOverrides', + 'tileSize', + ], + objectMaps: { + pyramidingPolicyOverrides: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { + earthEngineDestination: + module$exports$eeapiclient$ee_api_client.EarthEngineDestination, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions.prototype, - { - earthEngineDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("earthEngineDestination") - ? this.Serializable$get("earthEngineDestination") - : null; - }, - set: function (value) { - this.Serializable$set("earthEngineDestination", value); - }, - }, - pyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pyramidingPolicy") - ? this.Serializable$get("pyramidingPolicy") - : null; - }, - set: function (value) { - this.Serializable$set("pyramidingPolicy", value); - }, - }, - pyramidingPolicyOverrides: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pyramidingPolicyOverrides") - ? this.Serializable$get("pyramidingPolicyOverrides") - : null; - }, - set: function (value) { - this.Serializable$set("pyramidingPolicyOverrides", value); - }, - }, - tileSize: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileSize") - ? this.Serializable$get("tileSize") - : null; - }, - set: function (value) { - this.Serializable$set("tileSize", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions.prototype, + { + earthEngineDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('earthEngineDestination') + ? this.Serializable$get('earthEngineDestination') + : null + }, + set: function (value) { + this.Serializable$set('earthEngineDestination', value) + }, + }, + pyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pyramidingPolicy') + ? this.Serializable$get('pyramidingPolicy') + : null + }, + set: function (value) { + this.Serializable$set('pyramidingPolicy', value) + }, + }, + pyramidingPolicyOverrides: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pyramidingPolicyOverrides') + ? this.Serializable$get('pyramidingPolicyOverrides') + : null + }, + set: function (value) { + this.Serializable$set('pyramidingPolicyOverrides', value) + }, + }, + tileSize: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileSize') + ? this.Serializable$get('tileSize') + : null + }, + set: function (value) { + this.Serializable$set('tileSize', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions, - { - PyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyEnum; - }, - }, - PyramidingPolicyOverrides: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyOverridesEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ImageBandParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ImageAssetExportOptions, + { + PyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyEnum + }, + }, + PyramidingPolicyOverrides: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ImageAssetExportOptionsPyramidingPolicyOverridesEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ImageBandParameters = function () {} module$exports$eeapiclient$ee_api_client.ImageBand = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set("id", null == parameters.id ? null : parameters.id); - this.Serializable$set( - "dataType", - null == parameters.dataType ? null : parameters.dataType - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); - this.Serializable$set( - "pyramidingPolicy", - null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy - ); - this.Serializable$set( - "tilesets", - null == parameters.tilesets ? null : parameters.tilesets - ); - this.Serializable$set( - "missingData", - null == parameters.missingData ? null : parameters.missingData - ); - this.Serializable$set( - "tilesetId", - null == parameters.tilesetId ? null : parameters.tilesetId - ); - this.Serializable$set( - "tilesetBandIndex", - null == parameters.tilesetBandIndex ? null : parameters.tilesetBandIndex - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set('id', null == parameters.id ? null : parameters.id) + this.Serializable$set( + 'dataType', + null == parameters.dataType ? null : parameters.dataType + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) + this.Serializable$set( + 'pyramidingPolicy', + null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy + ) + this.Serializable$set( + 'tilesets', + null == parameters.tilesets ? null : parameters.tilesets + ) + this.Serializable$set( + 'missingData', + null == parameters.missingData ? null : parameters.missingData + ) + this.Serializable$set( + 'tilesetId', + null == parameters.tilesetId ? null : parameters.tilesetId + ) + this.Serializable$set( + 'tilesetBandIndex', + null == parameters.tilesetBandIndex ? null : parameters.tilesetBandIndex + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImageBand, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImageBand, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImageBand.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImageBand; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImageBand + } module$exports$eeapiclient$ee_api_client.ImageBand.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - tilesets: module$exports$eeapiclient$ee_api_client.TilestoreTileset, - }, - enums: { - pyramidingPolicy: - module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum, - }, - keys: "dataType grid id missingData pyramidingPolicy tilesetBandIndex tilesetId tilesets".split( - " " - ), - objects: { - dataType: module$exports$eeapiclient$ee_api_client.PixelDataType, - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - missingData: module$exports$eeapiclient$ee_api_client.MissingData, - }, - }; - }; + function () { + return { + arrays: { + tilesets: + module$exports$eeapiclient$ee_api_client.TilestoreTileset, + }, + enums: { + pyramidingPolicy: + module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum, + }, + keys: 'dataType grid id missingData pyramidingPolicy tilesetBandIndex tilesetId tilesets'.split( + ' ' + ), + objects: { + dataType: + module$exports$eeapiclient$ee_api_client.PixelDataType, + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + missingData: + module$exports$eeapiclient$ee_api_client.MissingData, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageBand.prototype, - { - dataType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dataType") - ? this.Serializable$get("dataType") - : null; - }, - set: function (value) { - this.Serializable$set("dataType", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - id: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("id") ? this.Serializable$get("id") : null; - }, - set: function (value) { - this.Serializable$set("id", value); - }, - }, - missingData: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("missingData") - ? this.Serializable$get("missingData") - : null; - }, - set: function (value) { - this.Serializable$set("missingData", value); - }, - }, - pyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pyramidingPolicy") - ? this.Serializable$get("pyramidingPolicy") - : null; - }, - set: function (value) { - this.Serializable$set("pyramidingPolicy", value); - }, - }, - tilesetBandIndex: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesetBandIndex") - ? this.Serializable$get("tilesetBandIndex") - : null; - }, - set: function (value) { - this.Serializable$set("tilesetBandIndex", value); - }, - }, - tilesetId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesetId") - ? this.Serializable$get("tilesetId") - : null; - }, - set: function (value) { - this.Serializable$set("tilesetId", value); - }, - }, - tilesets: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesets") - ? this.Serializable$get("tilesets") - : null; - }, - set: function (value) { - this.Serializable$set("tilesets", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImageBand.prototype, + { + dataType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dataType') + ? this.Serializable$get('dataType') + : null + }, + set: function (value) { + this.Serializable$set('dataType', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + id: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('id') + ? this.Serializable$get('id') + : null + }, + set: function (value) { + this.Serializable$set('id', value) + }, + }, + missingData: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('missingData') + ? this.Serializable$get('missingData') + : null + }, + set: function (value) { + this.Serializable$set('missingData', value) + }, + }, + pyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pyramidingPolicy') + ? this.Serializable$get('pyramidingPolicy') + : null + }, + set: function (value) { + this.Serializable$set('pyramidingPolicy', value) + }, + }, + tilesetBandIndex: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesetBandIndex') + ? this.Serializable$get('tilesetBandIndex') + : null + }, + set: function (value) { + this.Serializable$set('tilesetBandIndex', value) + }, + }, + tilesetId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesetId') + ? this.Serializable$get('tilesetId') + : null + }, + set: function (value) { + this.Serializable$set('tilesetId', value) + }, + }, + tilesets: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesets') + ? this.Serializable$get('tilesets') + : null + }, + set: function (value) { + this.Serializable$set('tilesets', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageBand, - { - PyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImageBand, + { + PyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImageFileExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "driveDestination", - null == parameters.driveDestination ? null : parameters.driveDestination - ); - this.Serializable$set( - "cloudStorageDestination", - null == parameters.cloudStorageDestination - ? null - : parameters.cloudStorageDestination - ); - this.Serializable$set( - "geoTiffOptions", - null == parameters.geoTiffOptions ? null : parameters.geoTiffOptions - ); - this.Serializable$set( - "tfRecordOptions", - null == parameters.tfRecordOptions ? null : parameters.tfRecordOptions - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'driveDestination', + null == parameters.driveDestination ? null : parameters.driveDestination + ) + this.Serializable$set( + 'cloudStorageDestination', + null == parameters.cloudStorageDestination + ? null + : parameters.cloudStorageDestination + ) + this.Serializable$set( + 'geoTiffOptions', + null == parameters.geoTiffOptions ? null : parameters.geoTiffOptions + ) + this.Serializable$set( + 'tfRecordOptions', + null == parameters.tfRecordOptions ? null : parameters.tfRecordOptions + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImageFileExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImageFileExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImageFileExportOptions + } module$exports$eeapiclient$ee_api_client.ImageFileExportOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsFileFormatEnum, - }, - keys: [ - "cloudStorageDestination", - "driveDestination", - "fileFormat", - "geoTiffOptions", - "tfRecordOptions", - ], - objects: { - cloudStorageDestination: - module$exports$eeapiclient$ee_api_client.CloudStorageDestination, - driveDestination: - module$exports$eeapiclient$ee_api_client.DriveDestination, - geoTiffOptions: - module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions, - tfRecordOptions: - module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsFileFormatEnum, + }, + keys: [ + 'cloudStorageDestination', + 'driveDestination', + 'fileFormat', + 'geoTiffOptions', + 'tfRecordOptions', + ], + objects: { + cloudStorageDestination: + module$exports$eeapiclient$ee_api_client.CloudStorageDestination, + driveDestination: + module$exports$eeapiclient$ee_api_client.DriveDestination, + geoTiffOptions: + module$exports$eeapiclient$ee_api_client.GeoTiffImageExportOptions, + tfRecordOptions: + module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageFileExportOptions.prototype, - { - cloudStorageDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("cloudStorageDestination") - ? this.Serializable$get("cloudStorageDestination") - : null; - }, - set: function (value) { - this.Serializable$set("cloudStorageDestination", value); - }, - }, - driveDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("driveDestination") - ? this.Serializable$get("driveDestination") - : null; - }, - set: function (value) { - this.Serializable$set("driveDestination", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - geoTiffOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("geoTiffOptions") - ? this.Serializable$get("geoTiffOptions") - : null; - }, - set: function (value) { - this.Serializable$set("geoTiffOptions", value); - }, - }, - tfRecordOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tfRecordOptions") - ? this.Serializable$get("tfRecordOptions") - : null; - }, - set: function (value) { - this.Serializable$set("tfRecordOptions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImageFileExportOptions.prototype, + { + cloudStorageDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('cloudStorageDestination') + ? this.Serializable$get('cloudStorageDestination') + : null + }, + set: function (value) { + this.Serializable$set('cloudStorageDestination', value) + }, + }, + driveDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('driveDestination') + ? this.Serializable$get('driveDestination') + : null + }, + set: function (value) { + this.Serializable$set('driveDestination', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + geoTiffOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('geoTiffOptions') + ? this.Serializable$get('geoTiffOptions') + : null + }, + set: function (value) { + this.Serializable$set('geoTiffOptions', value) + }, + }, + tfRecordOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tfRecordOptions') + ? this.Serializable$get('tfRecordOptions') + : null + }, + set: function (value) { + this.Serializable$set('tfRecordOptions', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsFileFormatEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImageFileExportOptions, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ImageFileExportOptionsFileFormatEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ImageManifestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImageManifest = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "properties", - null == parameters.properties ? null : parameters.properties - ); - this.Serializable$set( - "uriPrefix", - null == parameters.uriPrefix ? null : parameters.uriPrefix - ); - this.Serializable$set( - "tilesets", - null == parameters.tilesets ? null : parameters.tilesets - ); - this.Serializable$set( - "bands", - null == parameters.bands ? null : parameters.bands - ); - this.Serializable$set( - "maskBands", - null == parameters.maskBands ? null : parameters.maskBands - ); - this.Serializable$set( - "footprint", - null == parameters.footprint ? null : parameters.footprint - ); - this.Serializable$set( - "missingData", - null == parameters.missingData ? null : parameters.missingData - ); - this.Serializable$set( - "pyramidingPolicy", - null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy - ); - this.Serializable$set( - "startTime", - null == parameters.startTime ? null : parameters.startTime - ); - this.Serializable$set( - "endTime", - null == parameters.endTime ? null : parameters.endTime - ); - this.Serializable$set( - "minTileAreaRatio", - null == parameters.minTileAreaRatio ? null : parameters.minTileAreaRatio - ); - this.Serializable$set( - "skipMetadataRead", - null == parameters.skipMetadataRead ? null : parameters.skipMetadataRead - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'properties', + null == parameters.properties ? null : parameters.properties + ) + this.Serializable$set( + 'uriPrefix', + null == parameters.uriPrefix ? null : parameters.uriPrefix + ) + this.Serializable$set( + 'tilesets', + null == parameters.tilesets ? null : parameters.tilesets + ) + this.Serializable$set( + 'bands', + null == parameters.bands ? null : parameters.bands + ) + this.Serializable$set( + 'maskBands', + null == parameters.maskBands ? null : parameters.maskBands + ) + this.Serializable$set( + 'footprint', + null == parameters.footprint ? null : parameters.footprint + ) + this.Serializable$set( + 'missingData', + null == parameters.missingData ? null : parameters.missingData + ) + this.Serializable$set( + 'pyramidingPolicy', + null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy + ) + this.Serializable$set( + 'startTime', + null == parameters.startTime ? null : parameters.startTime + ) + this.Serializable$set( + 'endTime', + null == parameters.endTime ? null : parameters.endTime + ) + this.Serializable$set( + 'minTileAreaRatio', + null == parameters.minTileAreaRatio ? null : parameters.minTileAreaRatio + ) + this.Serializable$set( + 'skipMetadataRead', + null == parameters.skipMetadataRead ? null : parameters.skipMetadataRead + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImageManifest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImageManifest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImageManifest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImageManifest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImageManifest + } module$exports$eeapiclient$ee_api_client.ImageManifest.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - bands: module$exports$eeapiclient$ee_api_client.TilesetBand, - maskBands: module$exports$eeapiclient$ee_api_client.TilesetMaskBand, - tilesets: module$exports$eeapiclient$ee_api_client.Tileset, - }, - enums: { - pyramidingPolicy: - module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum, - }, - keys: "bands endTime footprint maskBands minTileAreaRatio missingData name properties pyramidingPolicy skipMetadataRead startTime tilesets uriPrefix".split( - " " - ), - objectMaps: { + function () { + return { + arrays: { + bands: module$exports$eeapiclient$ee_api_client.TilesetBand, + maskBands: + module$exports$eeapiclient$ee_api_client.TilesetMaskBand, + tilesets: module$exports$eeapiclient$ee_api_client.Tileset, + }, + enums: { + pyramidingPolicy: + module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum, + }, + keys: 'bands endTime footprint maskBands minTileAreaRatio missingData name properties pyramidingPolicy skipMetadataRead startTime tilesets uriPrefix'.split( + ' ' + ), + objectMaps: { + properties: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { + footprint: + module$exports$eeapiclient$ee_api_client.PixelFootprint, + missingData: + module$exports$eeapiclient$ee_api_client.MissingData, + }, + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.ImageManifest.prototype, + { + bands: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bands') + ? this.Serializable$get('bands') + : null + }, + set: function (value) { + this.Serializable$set('bands', value) + }, + }, + endTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('endTime') + ? this.Serializable$get('endTime') + : null + }, + set: function (value) { + this.Serializable$set('endTime', value) + }, + }, + footprint: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('footprint') + ? this.Serializable$get('footprint') + : null + }, + set: function (value) { + this.Serializable$set('footprint', value) + }, + }, + maskBands: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maskBands') + ? this.Serializable$get('maskBands') + : null + }, + set: function (value) { + this.Serializable$set('maskBands', value) + }, + }, + minTileAreaRatio: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('minTileAreaRatio') + ? this.Serializable$get('minTileAreaRatio') + : null + }, + set: function (value) { + this.Serializable$set('minTileAreaRatio', value) + }, + }, + missingData: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('missingData') + ? this.Serializable$get('missingData') + : null + }, + set: function (value) { + this.Serializable$set('missingData', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, properties: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { - footprint: module$exports$eeapiclient$ee_api_client.PixelFootprint, - missingData: module$exports$eeapiclient$ee_api_client.MissingData, - }, - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageManifest.prototype, - { - bands: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bands") - ? this.Serializable$get("bands") - : null; - }, - set: function (value) { - this.Serializable$set("bands", value); - }, - }, - endTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("endTime") - ? this.Serializable$get("endTime") - : null; - }, - set: function (value) { - this.Serializable$set("endTime", value); - }, - }, - footprint: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("footprint") - ? this.Serializable$get("footprint") - : null; - }, - set: function (value) { - this.Serializable$set("footprint", value); - }, - }, - maskBands: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maskBands") - ? this.Serializable$get("maskBands") - : null; - }, - set: function (value) { - this.Serializable$set("maskBands", value); - }, - }, - minTileAreaRatio: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("minTileAreaRatio") - ? this.Serializable$get("minTileAreaRatio") - : null; - }, - set: function (value) { - this.Serializable$set("minTileAreaRatio", value); - }, - }, - missingData: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("missingData") - ? this.Serializable$get("missingData") - : null; - }, - set: function (value) { - this.Serializable$set("missingData", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - properties: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("properties") - ? this.Serializable$get("properties") - : null; - }, - set: function (value) { - this.Serializable$set("properties", value); - }, - }, - pyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pyramidingPolicy") - ? this.Serializable$get("pyramidingPolicy") - : null; - }, - set: function (value) { - this.Serializable$set("pyramidingPolicy", value); - }, - }, - skipMetadataRead: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("skipMetadataRead") - ? this.Serializable$get("skipMetadataRead") - : null; - }, - set: function (value) { - this.Serializable$set("skipMetadataRead", value); - }, - }, - startTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startTime") - ? this.Serializable$get("startTime") - : null; - }, - set: function (value) { - this.Serializable$set("startTime", value); - }, - }, - tilesets: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesets") - ? this.Serializable$get("tilesets") - : null; - }, - set: function (value) { - this.Serializable$set("tilesets", value); - }, - }, - uriPrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("uriPrefix") - ? this.Serializable$get("uriPrefix") - : null; - }, - set: function (value) { - this.Serializable$set("uriPrefix", value); - }, - }, - } -); + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('properties') + ? this.Serializable$get('properties') + : null + }, + set: function (value) { + this.Serializable$set('properties', value) + }, + }, + pyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pyramidingPolicy') + ? this.Serializable$get('pyramidingPolicy') + : null + }, + set: function (value) { + this.Serializable$set('pyramidingPolicy', value) + }, + }, + skipMetadataRead: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('skipMetadataRead') + ? this.Serializable$get('skipMetadataRead') + : null + }, + set: function (value) { + this.Serializable$set('skipMetadataRead', value) + }, + }, + startTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startTime') + ? this.Serializable$get('startTime') + : null + }, + set: function (value) { + this.Serializable$set('startTime', value) + }, + }, + tilesets: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesets') + ? this.Serializable$get('tilesets') + : null + }, + set: function (value) { + this.Serializable$set('tilesets', value) + }, + }, + uriPrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('uriPrefix') + ? this.Serializable$get('uriPrefix') + : null + }, + set: function (value) { + this.Serializable$set('uriPrefix', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageManifest, - { - PyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ImageSourceParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ImageManifest, + { + PyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ImageSourceParameters = function () {} module$exports$eeapiclient$ee_api_client.ImageSource = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "uris", - null == parameters.uris ? null : parameters.uris - ); - this.Serializable$set( - "affineTransform", - null == parameters.affineTransform ? null : parameters.affineTransform - ); - this.Serializable$set( - "dimensions", - null == parameters.dimensions ? null : parameters.dimensions - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'uris', + null == parameters.uris ? null : parameters.uris + ) + this.Serializable$set( + 'affineTransform', + null == parameters.affineTransform ? null : parameters.affineTransform + ) + this.Serializable$set( + 'dimensions', + null == parameters.dimensions ? null : parameters.dimensions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImageSource, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImageSource, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImageSource.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImageSource; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImageSource + } module$exports$eeapiclient$ee_api_client.ImageSource.prototype.getPartialClassMetadata = - function () { - return { - keys: ["affineTransform", "dimensions", "uris"], - objects: { - affineTransform: - module$exports$eeapiclient$ee_api_client.AffineTransform, - dimensions: module$exports$eeapiclient$ee_api_client.GridDimensions, - }, - }; - }; + function () { + return { + keys: ['affineTransform', 'dimensions', 'uris'], + objects: { + affineTransform: + module$exports$eeapiclient$ee_api_client.AffineTransform, + dimensions: + module$exports$eeapiclient$ee_api_client.GridDimensions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImageSource.prototype, - { - affineTransform: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("affineTransform") - ? this.Serializable$get("affineTransform") - : null; - }, - set: function (value) { - this.Serializable$set("affineTransform", value); - }, - }, - dimensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dimensions") - ? this.Serializable$get("dimensions") - : null; - }, - set: function (value) { - this.Serializable$set("dimensions", value); - }, - }, - uris: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("uris") - ? this.Serializable$get("uris") - : null; - }, - set: function (value) { - this.Serializable$set("uris", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImageSource.prototype, + { + affineTransform: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('affineTransform') + ? this.Serializable$get('affineTransform') + : null + }, + set: function (value) { + this.Serializable$set('affineTransform', value) + }, + }, + dimensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dimensions') + ? this.Serializable$get('dimensions') + : null + }, + set: function (value) { + this.Serializable$set('dimensions', value) + }, + }, + uris: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('uris') + ? this.Serializable$get('uris') + : null + }, + set: function (value) { + this.Serializable$set('uris', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ImportImageRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImportImageRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "imageManifest", - null == parameters.imageManifest ? null : parameters.imageManifest - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "overwrite", - null == parameters.overwrite ? null : parameters.overwrite - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); - this.Serializable$set( - "mode", - null == parameters.mode ? null : parameters.mode - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'imageManifest', + null == parameters.imageManifest ? null : parameters.imageManifest + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'overwrite', + null == parameters.overwrite ? null : parameters.overwrite + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) + this.Serializable$set( + 'mode', + null == parameters.mode ? null : parameters.mode + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImportImageRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImportImageRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImportImageRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImportImageRequest + } module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype.getPartialClassMetadata = - function () { - return { - enums: { - mode: module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum, - }, - keys: ["description", "imageManifest", "mode", "overwrite", "requestId"], - objects: { - imageManifest: module$exports$eeapiclient$ee_api_client.ImageManifest, - }, - }; - }; + function () { + return { + enums: { + mode: module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum, + }, + keys: [ + 'description', + 'imageManifest', + 'mode', + 'overwrite', + 'requestId', + ], + objects: { + imageManifest: + module$exports$eeapiclient$ee_api_client.ImageManifest, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype, - { - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - imageManifest: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("imageManifest") - ? this.Serializable$get("imageManifest") - : null; - }, - set: function (value) { - this.Serializable$set("imageManifest", value); - }, - }, - mode: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("mode") - ? this.Serializable$get("mode") - : null; - }, - set: function (value) { - this.Serializable$set("mode", value); - }, - }, - overwrite: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("overwrite") - ? this.Serializable$get("overwrite") - : null; - }, - set: function (value) { - this.Serializable$set("overwrite", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype, + { + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + imageManifest: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('imageManifest') + ? this.Serializable$get('imageManifest') + : null + }, + set: function (value) { + this.Serializable$set('imageManifest', value) + }, + }, + mode: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('mode') + ? this.Serializable$get('mode') + : null + }, + set: function (value) { + this.Serializable$set('mode', value) + }, + }, + overwrite: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('overwrite') + ? this.Serializable$get('overwrite') + : null + }, + set: function (value) { + this.Serializable$set('overwrite', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImportImageRequest, - { - Mode: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImportImageRequest, + { + Mode: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ImportTableRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ImportTableRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "tableManifest", - null == parameters.tableManifest ? null : parameters.tableManifest - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "overwrite", - null == parameters.overwrite ? null : parameters.overwrite - ); - this.Serializable$set( - "requestId", - null == parameters.requestId ? null : parameters.requestId - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'tableManifest', + null == parameters.tableManifest ? null : parameters.tableManifest + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'overwrite', + null == parameters.overwrite ? null : parameters.overwrite + ) + this.Serializable$set( + 'requestId', + null == parameters.requestId ? null : parameters.requestId + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ImportTableRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ImportTableRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ImportTableRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ImportTableRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ImportTableRequest + } module$exports$eeapiclient$ee_api_client.ImportTableRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["description", "overwrite", "requestId", "tableManifest"], - objects: { - tableManifest: module$exports$eeapiclient$ee_api_client.TableManifest, - }, - }; - }; + function () { + return { + keys: ['description', 'overwrite', 'requestId', 'tableManifest'], + objects: { + tableManifest: + module$exports$eeapiclient$ee_api_client.TableManifest, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ImportTableRequest.prototype, - { - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - overwrite: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("overwrite") - ? this.Serializable$get("overwrite") - : null; - }, - set: function (value) { - this.Serializable$set("overwrite", value); - }, - }, - requestId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("requestId") - ? this.Serializable$get("requestId") - : null; - }, - set: function (value) { - this.Serializable$set("requestId", value); - }, - }, - tableManifest: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tableManifest") - ? this.Serializable$get("tableManifest") - : null; - }, - set: function (value) { - this.Serializable$set("tableManifest", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ImportTableRequest.prototype, + { + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + overwrite: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('overwrite') + ? this.Serializable$get('overwrite') + : null + }, + set: function (value) { + this.Serializable$set('overwrite', value) + }, + }, + requestId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('requestId') + ? this.Serializable$get('requestId') + : null + }, + set: function (value) { + this.Serializable$set('requestId', value) + }, + }, + tableManifest: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tableManifest') + ? this.Serializable$get('tableManifest') + : null + }, + set: function (value) { + this.Serializable$set('tableManifest', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.LinkAssetRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.LinkAssetRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "destinationName", - null == parameters.destinationName ? null : parameters.destinationName - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'destinationName', + null == parameters.destinationName ? null : parameters.destinationName + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.LinkAssetRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.LinkAssetRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.LinkAssetRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.LinkAssetRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.LinkAssetRequest + } module$exports$eeapiclient$ee_api_client.LinkAssetRequest.prototype.getPartialClassMetadata = - function () { - return { keys: ["destinationName"] }; - }; + function () { + return { keys: ['destinationName'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.LinkAssetRequest.prototype, - { - destinationName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("destinationName") - ? this.Serializable$get("destinationName") - : null; - }, - set: function (value) { - this.Serializable$set("destinationName", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.LinkAssetRequest.prototype, + { + destinationName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('destinationName') + ? this.Serializable$get('destinationName') + : null + }, + set: function (value) { + this.Serializable$set('destinationName', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "algorithms", - null == parameters.algorithms ? null : parameters.algorithms - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'algorithms', + null == parameters.algorithms ? null : parameters.algorithms + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse + } module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - algorithms: module$exports$eeapiclient$ee_api_client.Algorithm, - }, - keys: ["algorithms"], - }; - }; + function () { + return { + arrays: { + algorithms: module$exports$eeapiclient$ee_api_client.Algorithm, + }, + keys: ['algorithms'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse.prototype, - { - algorithms: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("algorithms") - ? this.Serializable$get("algorithms") - : null; - }, - set: function (value) { - this.Serializable$set("algorithms", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse.prototype, + { + algorithms: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('algorithms') + ? this.Serializable$get('algorithms') + : null + }, + set: function (value) { + this.Serializable$set('algorithms', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ListAssetsResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ListAssetsResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "assets", - null == parameters.assets ? null : parameters.assets - ); - this.Serializable$set( - "nextPageToken", - null == parameters.nextPageToken ? null : parameters.nextPageToken - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'assets', + null == parameters.assets ? null : parameters.assets + ) + this.Serializable$set( + 'nextPageToken', + null == parameters.nextPageToken ? null : parameters.nextPageToken + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ListAssetsResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ListAssetsResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ListAssetsResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ListAssetsResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ListAssetsResponse + } module$exports$eeapiclient$ee_api_client.ListAssetsResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - assets: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }, - keys: ["assets", "nextPageToken"], - }; - }; + function () { + return { + arrays: { + assets: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }, + keys: ['assets', 'nextPageToken'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ListAssetsResponse.prototype, - { - assets: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("assets") - ? this.Serializable$get("assets") - : null; - }, - set: function (value) { - this.Serializable$set("assets", value); - }, - }, - nextPageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("nextPageToken") - ? this.Serializable$get("nextPageToken") - : null; - }, - set: function (value) { - this.Serializable$set("nextPageToken", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ListAssetsResponse.prototype, + { + assets: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('assets') + ? this.Serializable$get('assets') + : null + }, + set: function (value) { + this.Serializable$set('assets', value) + }, + }, + nextPageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('nextPageToken') + ? this.Serializable$get('nextPageToken') + : null + }, + set: function (value) { + this.Serializable$set('nextPageToken', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ListFeaturesResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ListFeaturesResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "features", - null == parameters.features ? null : parameters.features - ); - this.Serializable$set( - "nextPageToken", - null == parameters.nextPageToken ? null : parameters.nextPageToken - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'features', + null == parameters.features ? null : parameters.features + ) + this.Serializable$set( + 'nextPageToken', + null == parameters.nextPageToken ? null : parameters.nextPageToken + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ListFeaturesResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ListFeaturesResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ListFeaturesResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ListFeaturesResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ListFeaturesResponse + } module$exports$eeapiclient$ee_api_client.ListFeaturesResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { features: module$exports$eeapiclient$ee_api_client.Feature }, - keys: ["features", "nextPageToken", "type"], - }; - }; + function () { + return { + arrays: { + features: module$exports$eeapiclient$ee_api_client.Feature, + }, + keys: ['features', 'nextPageToken', 'type'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ListFeaturesResponse.prototype, - { - features: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("features") - ? this.Serializable$get("features") - : null; - }, - set: function (value) { - this.Serializable$set("features", value); - }, - }, - nextPageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("nextPageToken") - ? this.Serializable$get("nextPageToken") - : null; - }, - set: function (value) { - this.Serializable$set("nextPageToken", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ListFeaturesResponse.prototype, + { + features: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('features') + ? this.Serializable$get('features') + : null + }, + set: function (value) { + this.Serializable$set('features', value) + }, + }, + nextPageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('nextPageToken') + ? this.Serializable$get('nextPageToken') + : null + }, + set: function (value) { + this.Serializable$set('nextPageToken', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ListOperationsResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ListOperationsResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "operations", - null == parameters.operations ? null : parameters.operations - ); - this.Serializable$set( - "nextPageToken", - null == parameters.nextPageToken ? null : parameters.nextPageToken - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'operations', + null == parameters.operations ? null : parameters.operations + ) + this.Serializable$set( + 'nextPageToken', + null == parameters.nextPageToken ? null : parameters.nextPageToken + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ListOperationsResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ListOperationsResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ListOperationsResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ListOperationsResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ListOperationsResponse + } module$exports$eeapiclient$ee_api_client.ListOperationsResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - operations: module$exports$eeapiclient$ee_api_client.Operation, - }, - keys: ["nextPageToken", "operations"], - }; - }; + function () { + return { + arrays: { + operations: module$exports$eeapiclient$ee_api_client.Operation, + }, + keys: ['nextPageToken', 'operations'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ListOperationsResponse.prototype, - { - nextPageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("nextPageToken") - ? this.Serializable$get("nextPageToken") - : null; - }, - set: function (value) { - this.Serializable$set("nextPageToken", value); - }, - }, - operations: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("operations") - ? this.Serializable$get("operations") - : null; - }, - set: function (value) { - this.Serializable$set("operations", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ListOperationsResponse.prototype, + { + nextPageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('nextPageToken') + ? this.Serializable$get('nextPageToken') + : null + }, + set: function (value) { + this.Serializable$set('nextPageToken', value) + }, + }, + operations: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('operations') + ? this.Serializable$get('operations') + : null + }, + set: function (value) { + this.Serializable$set('operations', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "subscriptions", - null == parameters.subscriptions ? null : parameters.subscriptions - ); - this.Serializable$set( - "nextPageToken", - null == parameters.nextPageToken ? null : parameters.nextPageToken - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'subscriptions', + null == parameters.subscriptions ? null : parameters.subscriptions + ) + this.Serializable$set( + 'nextPageToken', + null == parameters.nextPageToken ? null : parameters.nextPageToken + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse + } module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - subscriptions: module$exports$eeapiclient$ee_api_client.Subscription, - }, - keys: ["nextPageToken", "subscriptions"], - }; - }; + function () { + return { + arrays: { + subscriptions: + module$exports$eeapiclient$ee_api_client.Subscription, + }, + keys: ['nextPageToken', 'subscriptions'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse.prototype, - { - nextPageToken: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("nextPageToken") - ? this.Serializable$get("nextPageToken") - : null; - }, - set: function (value) { - this.Serializable$set("nextPageToken", value); - }, - }, - subscriptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("subscriptions") - ? this.Serializable$get("subscriptions") - : null; - }, - set: function (value) { - this.Serializable$set("subscriptions", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.LogConfigParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse + .prototype, + { + nextPageToken: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('nextPageToken') + ? this.Serializable$get('nextPageToken') + : null + }, + set: function (value) { + this.Serializable$set('nextPageToken', value) + }, + }, + subscriptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('subscriptions') + ? this.Serializable$get('subscriptions') + : null + }, + set: function (value) { + this.Serializable$set('subscriptions', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.LogConfigParameters = function () {} module$exports$eeapiclient$ee_api_client.LogConfig = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "counter", - null == parameters.counter ? null : parameters.counter - ); - this.Serializable$set( - "dataAccess", - null == parameters.dataAccess ? null : parameters.dataAccess - ); - this.Serializable$set( - "cloudAudit", - null == parameters.cloudAudit ? null : parameters.cloudAudit - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'counter', + null == parameters.counter ? null : parameters.counter + ) + this.Serializable$set( + 'dataAccess', + null == parameters.dataAccess ? null : parameters.dataAccess + ) + this.Serializable$set( + 'cloudAudit', + null == parameters.cloudAudit ? null : parameters.cloudAudit + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.LogConfig, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.LogConfig, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.LogConfig.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.LogConfig; - }; + function () { + return module$exports$eeapiclient$ee_api_client.LogConfig + } module$exports$eeapiclient$ee_api_client.LogConfig.prototype.getPartialClassMetadata = - function () { - return { - keys: ["cloudAudit", "counter", "dataAccess"], - objects: { - cloudAudit: module$exports$eeapiclient$ee_api_client.CloudAuditOptions, - counter: module$exports$eeapiclient$ee_api_client.CounterOptions, - dataAccess: module$exports$eeapiclient$ee_api_client.DataAccessOptions, - }, - }; - }; + function () { + return { + keys: ['cloudAudit', 'counter', 'dataAccess'], + objects: { + cloudAudit: + module$exports$eeapiclient$ee_api_client.CloudAuditOptions, + counter: + module$exports$eeapiclient$ee_api_client.CounterOptions, + dataAccess: + module$exports$eeapiclient$ee_api_client.DataAccessOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.LogConfig.prototype, - { - cloudAudit: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("cloudAudit") - ? this.Serializable$get("cloudAudit") - : null; - }, - set: function (value) { - this.Serializable$set("cloudAudit", value); - }, - }, - counter: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("counter") - ? this.Serializable$get("counter") - : null; - }, - set: function (value) { - this.Serializable$set("counter", value); - }, - }, - dataAccess: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dataAccess") - ? this.Serializable$get("dataAccess") - : null; - }, - set: function (value) { - this.Serializable$set("dataAccess", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.MissingDataParameters = function () {}; + module$exports$eeapiclient$ee_api_client.LogConfig.prototype, + { + cloudAudit: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('cloudAudit') + ? this.Serializable$get('cloudAudit') + : null + }, + set: function (value) { + this.Serializable$set('cloudAudit', value) + }, + }, + counter: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('counter') + ? this.Serializable$get('counter') + : null + }, + set: function (value) { + this.Serializable$set('counter', value) + }, + }, + dataAccess: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dataAccess') + ? this.Serializable$get('dataAccess') + : null + }, + set: function (value) { + this.Serializable$set('dataAccess', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.MissingDataParameters = function () {} module$exports$eeapiclient$ee_api_client.MissingData = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "values", - null == parameters.values ? null : parameters.values - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'values', + null == parameters.values ? null : parameters.values + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.MissingData, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.MissingData, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.MissingData.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.MissingData; - }; + function () { + return module$exports$eeapiclient$ee_api_client.MissingData + } module$exports$eeapiclient$ee_api_client.MissingData.prototype.getPartialClassMetadata = - function () { - return { keys: ["values"] }; - }; + function () { + return { keys: ['values'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.MissingData.prototype, - { - values: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("values") - ? this.Serializable$get("values") - : null; - }, - set: function (value) { - this.Serializable$set("values", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.MissingData.prototype, + { + values: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('values') + ? this.Serializable$get('values') + : null + }, + set: function (value) { + this.Serializable$set('values', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.MoveAssetRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.MoveAssetRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "destinationName", - null == parameters.destinationName ? null : parameters.destinationName - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'destinationName', + null == parameters.destinationName ? null : parameters.destinationName + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.MoveAssetRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.MoveAssetRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.MoveAssetRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.MoveAssetRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.MoveAssetRequest + } module$exports$eeapiclient$ee_api_client.MoveAssetRequest.prototype.getPartialClassMetadata = - function () { - return { keys: ["destinationName"] }; - }; + function () { + return { keys: ['destinationName'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.MoveAssetRequest.prototype, - { - destinationName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("destinationName") - ? this.Serializable$get("destinationName") - : null; - }, - set: function (value) { - this.Serializable$set("destinationName", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.NumberParameters = function () {}; + module$exports$eeapiclient$ee_api_client.MoveAssetRequest.prototype, + { + destinationName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('destinationName') + ? this.Serializable$get('destinationName') + : null + }, + set: function (value) { + this.Serializable$set('destinationName', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.NumberParameters = function () {} module$exports$eeapiclient$ee_api_client.Number = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "floatValue", - null == parameters.floatValue ? null : parameters.floatValue - ); - this.Serializable$set( - "integerValue", - null == parameters.integerValue ? null : parameters.integerValue - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'floatValue', + null == parameters.floatValue ? null : parameters.floatValue + ) + this.Serializable$set( + 'integerValue', + null == parameters.integerValue ? null : parameters.integerValue + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Number, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Number, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Number.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Number; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Number + } module$exports$eeapiclient$ee_api_client.Number.prototype.getPartialClassMetadata = - function () { - return { keys: ["floatValue", "integerValue"] }; - }; + function () { + return { keys: ['floatValue', 'integerValue'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Number.prototype, - { - floatValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("floatValue") - ? this.Serializable$get("floatValue") - : null; - }, - set: function (value) { - this.Serializable$set("floatValue", value); - }, - }, - integerValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("integerValue") - ? this.Serializable$get("integerValue") - : null; - }, - set: function (value) { - this.Serializable$set("integerValue", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.OperationParameters = function () {}; + module$exports$eeapiclient$ee_api_client.Number.prototype, + { + floatValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('floatValue') + ? this.Serializable$get('floatValue') + : null + }, + set: function (value) { + this.Serializable$set('floatValue', value) + }, + }, + integerValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('integerValue') + ? this.Serializable$get('integerValue') + : null + }, + set: function (value) { + this.Serializable$set('integerValue', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.OperationParameters = function () {} module$exports$eeapiclient$ee_api_client.Operation = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "metadata", - null == parameters.metadata ? null : parameters.metadata - ); - this.Serializable$set( - "done", - null == parameters.done ? null : parameters.done - ); - this.Serializable$set( - "error", - null == parameters.error ? null : parameters.error - ); - this.Serializable$set( - "response", - null == parameters.response ? null : parameters.response - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'metadata', + null == parameters.metadata ? null : parameters.metadata + ) + this.Serializable$set( + 'done', + null == parameters.done ? null : parameters.done + ) + this.Serializable$set( + 'error', + null == parameters.error ? null : parameters.error + ) + this.Serializable$set( + 'response', + null == parameters.response ? null : parameters.response + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Operation, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Operation, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Operation.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Operation; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Operation + } module$exports$eeapiclient$ee_api_client.Operation.prototype.getPartialClassMetadata = - function () { - return { - keys: ["done", "error", "metadata", "name", "response"], - objectMaps: { + function () { + return { + keys: ['done', 'error', 'metadata', 'name', 'response'], + objectMaps: { + metadata: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + response: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { error: module$exports$eeapiclient$ee_api_client.Status }, + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.Operation.prototype, + { + done: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('done') + ? this.Serializable$get('done') + : null + }, + set: function (value) { + this.Serializable$set('done', value) + }, + }, + error: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('error') + ? this.Serializable$get('error') + : null + }, + set: function (value) { + this.Serializable$set('error', value) + }, + }, metadata: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('metadata') + ? this.Serializable$get('metadata') + : null + }, + set: function (value) { + this.Serializable$set('metadata', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, }, response: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { error: module$exports$eeapiclient$ee_api_client.Status }, - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Operation.prototype, - { - done: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("done") - ? this.Serializable$get("done") - : null; - }, - set: function (value) { - this.Serializable$set("done", value); - }, - }, - error: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("error") - ? this.Serializable$get("error") - : null; - }, - set: function (value) { - this.Serializable$set("error", value); - }, - }, - metadata: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("metadata") - ? this.Serializable$get("metadata") - : null; - }, - set: function (value) { - this.Serializable$set("metadata", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - response: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("response") - ? this.Serializable$get("response") - : null; - }, - set: function (value) { - this.Serializable$set("response", value); - }, - }, - } -); + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('response') + ? this.Serializable$get('response') + : null + }, + set: function (value) { + this.Serializable$set('response', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.OperationMetadataParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.OperationMetadata = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "state", - null == parameters.state ? null : parameters.state - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "priority", - null == parameters.priority ? null : parameters.priority - ); - this.Serializable$set( - "createTime", - null == parameters.createTime ? null : parameters.createTime - ); - this.Serializable$set( - "updateTime", - null == parameters.updateTime ? null : parameters.updateTime - ); - this.Serializable$set( - "startTime", - null == parameters.startTime ? null : parameters.startTime - ); - this.Serializable$set( - "endTime", - null == parameters.endTime ? null : parameters.endTime - ); - this.Serializable$set( - "progress", - null == parameters.progress ? null : parameters.progress - ); - this.Serializable$set( - "stages", - null == parameters.stages ? null : parameters.stages - ); - this.Serializable$set( - "attempt", - null == parameters.attempt ? null : parameters.attempt - ); - this.Serializable$set( - "scriptUri", - null == parameters.scriptUri ? null : parameters.scriptUri - ); - this.Serializable$set( - "destinationUris", - null == parameters.destinationUris ? null : parameters.destinationUris - ); - this.Serializable$set( - "notifications", - null == parameters.notifications ? null : parameters.notifications - ); - this.Serializable$set( - "batchEecuUsageSeconds", - null == parameters.batchEecuUsageSeconds - ? null - : parameters.batchEecuUsageSeconds - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'state', + null == parameters.state ? null : parameters.state + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'priority', + null == parameters.priority ? null : parameters.priority + ) + this.Serializable$set( + 'createTime', + null == parameters.createTime ? null : parameters.createTime + ) + this.Serializable$set( + 'updateTime', + null == parameters.updateTime ? null : parameters.updateTime + ) + this.Serializable$set( + 'startTime', + null == parameters.startTime ? null : parameters.startTime + ) + this.Serializable$set( + 'endTime', + null == parameters.endTime ? null : parameters.endTime + ) + this.Serializable$set( + 'progress', + null == parameters.progress ? null : parameters.progress + ) + this.Serializable$set( + 'stages', + null == parameters.stages ? null : parameters.stages + ) + this.Serializable$set( + 'attempt', + null == parameters.attempt ? null : parameters.attempt + ) + this.Serializable$set( + 'scriptUri', + null == parameters.scriptUri ? null : parameters.scriptUri + ) + this.Serializable$set( + 'destinationUris', + null == parameters.destinationUris ? null : parameters.destinationUris + ) + this.Serializable$set( + 'notifications', + null == parameters.notifications ? null : parameters.notifications + ) + this.Serializable$set( + 'batchEecuUsageSeconds', + null == parameters.batchEecuUsageSeconds + ? null + : parameters.batchEecuUsageSeconds + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.OperationMetadata, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.OperationMetadata, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.OperationMetadata.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.OperationMetadata; - }; + function () { + return module$exports$eeapiclient$ee_api_client.OperationMetadata + } module$exports$eeapiclient$ee_api_client.OperationMetadata.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - notifications: - module$exports$eeapiclient$ee_api_client.OperationNotification, - stages: module$exports$eeapiclient$ee_api_client.OperationStage, - }, - enums: { - state: - module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum, - }, - keys: "attempt batchEecuUsageSeconds createTime description destinationUris endTime notifications priority progress scriptUri stages startTime state type updateTime".split( - " " - ), - }; - }; + function () { + return { + arrays: { + notifications: + module$exports$eeapiclient$ee_api_client.OperationNotification, + stages: module$exports$eeapiclient$ee_api_client.OperationStage, + }, + enums: { + state: module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum, + }, + keys: 'attempt batchEecuUsageSeconds createTime description destinationUris endTime notifications priority progress scriptUri stages startTime state type updateTime'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.OperationMetadata.prototype, - { - attempt: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("attempt") - ? this.Serializable$get("attempt") - : null; - }, - set: function (value) { - this.Serializable$set("attempt", value); - }, - }, - batchEecuUsageSeconds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("batchEecuUsageSeconds") - ? this.Serializable$get("batchEecuUsageSeconds") - : null; - }, - set: function (value) { - this.Serializable$set("batchEecuUsageSeconds", value); - }, - }, - createTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("createTime") - ? this.Serializable$get("createTime") - : null; - }, - set: function (value) { - this.Serializable$set("createTime", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - destinationUris: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("destinationUris") - ? this.Serializable$get("destinationUris") - : null; - }, - set: function (value) { - this.Serializable$set("destinationUris", value); - }, - }, - endTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("endTime") - ? this.Serializable$get("endTime") - : null; - }, - set: function (value) { - this.Serializable$set("endTime", value); - }, - }, - notifications: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("notifications") - ? this.Serializable$get("notifications") - : null; - }, - set: function (value) { - this.Serializable$set("notifications", value); - }, - }, - priority: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("priority") - ? this.Serializable$get("priority") - : null; - }, - set: function (value) { - this.Serializable$set("priority", value); - }, - }, - progress: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("progress") - ? this.Serializable$get("progress") - : null; - }, - set: function (value) { - this.Serializable$set("progress", value); - }, - }, - scriptUri: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("scriptUri") - ? this.Serializable$get("scriptUri") - : null; - }, - set: function (value) { - this.Serializable$set("scriptUri", value); - }, - }, - stages: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("stages") - ? this.Serializable$get("stages") - : null; - }, - set: function (value) { - this.Serializable$set("stages", value); - }, - }, - startTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startTime") - ? this.Serializable$get("startTime") - : null; - }, - set: function (value) { - this.Serializable$set("startTime", value); - }, - }, - state: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("state") - ? this.Serializable$get("state") - : null; - }, - set: function (value) { - this.Serializable$set("state", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - updateTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("updateTime") - ? this.Serializable$get("updateTime") - : null; - }, - set: function (value) { - this.Serializable$set("updateTime", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.OperationMetadata.prototype, + { + attempt: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('attempt') + ? this.Serializable$get('attempt') + : null + }, + set: function (value) { + this.Serializable$set('attempt', value) + }, + }, + batchEecuUsageSeconds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('batchEecuUsageSeconds') + ? this.Serializable$get('batchEecuUsageSeconds') + : null + }, + set: function (value) { + this.Serializable$set('batchEecuUsageSeconds', value) + }, + }, + createTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('createTime') + ? this.Serializable$get('createTime') + : null + }, + set: function (value) { + this.Serializable$set('createTime', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + destinationUris: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('destinationUris') + ? this.Serializable$get('destinationUris') + : null + }, + set: function (value) { + this.Serializable$set('destinationUris', value) + }, + }, + endTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('endTime') + ? this.Serializable$get('endTime') + : null + }, + set: function (value) { + this.Serializable$set('endTime', value) + }, + }, + notifications: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('notifications') + ? this.Serializable$get('notifications') + : null + }, + set: function (value) { + this.Serializable$set('notifications', value) + }, + }, + priority: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('priority') + ? this.Serializable$get('priority') + : null + }, + set: function (value) { + this.Serializable$set('priority', value) + }, + }, + progress: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('progress') + ? this.Serializable$get('progress') + : null + }, + set: function (value) { + this.Serializable$set('progress', value) + }, + }, + scriptUri: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('scriptUri') + ? this.Serializable$get('scriptUri') + : null + }, + set: function (value) { + this.Serializable$set('scriptUri', value) + }, + }, + stages: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('stages') + ? this.Serializable$get('stages') + : null + }, + set: function (value) { + this.Serializable$set('stages', value) + }, + }, + startTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startTime') + ? this.Serializable$get('startTime') + : null + }, + set: function (value) { + this.Serializable$set('startTime', value) + }, + }, + state: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('state') + ? this.Serializable$get('state') + : null + }, + set: function (value) { + this.Serializable$set('state', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + updateTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('updateTime') + ? this.Serializable$get('updateTime') + : null + }, + set: function (value) { + this.Serializable$set('updateTime', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.OperationMetadata, - { - State: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.OperationMetadata, + { + State: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.OperationNotificationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.OperationNotification = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "severity", - null == parameters.severity ? null : parameters.severity - ); - this.Serializable$set( - "topic", - null == parameters.topic ? null : parameters.topic - ); - this.Serializable$set( - "detail", - null == parameters.detail ? null : parameters.detail - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'severity', + null == parameters.severity ? null : parameters.severity + ) + this.Serializable$set( + 'topic', + null == parameters.topic ? null : parameters.topic + ) + this.Serializable$set( + 'detail', + null == parameters.detail ? null : parameters.detail + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.OperationNotification, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.OperationNotification, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.OperationNotification.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.OperationNotification; - }; + function () { + return module$exports$eeapiclient$ee_api_client.OperationNotification + } module$exports$eeapiclient$ee_api_client.OperationNotification.prototype.getPartialClassMetadata = - function () { - return { - enums: { - severity: - module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum, - }, - keys: ["detail", "severity", "topic"], - }; - }; + function () { + return { + enums: { + severity: + module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum, + }, + keys: ['detail', 'severity', 'topic'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.OperationNotification.prototype, - { - detail: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("detail") - ? this.Serializable$get("detail") - : null; - }, - set: function (value) { - this.Serializable$set("detail", value); - }, - }, - severity: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("severity") - ? this.Serializable$get("severity") - : null; - }, - set: function (value) { - this.Serializable$set("severity", value); - }, - }, - topic: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("topic") - ? this.Serializable$get("topic") - : null; - }, - set: function (value) { - this.Serializable$set("topic", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.OperationNotification.prototype, + { + detail: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('detail') + ? this.Serializable$get('detail') + : null + }, + set: function (value) { + this.Serializable$set('detail', value) + }, + }, + severity: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('severity') + ? this.Serializable$get('severity') + : null + }, + set: function (value) { + this.Serializable$set('severity', value) + }, + }, + topic: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('topic') + ? this.Serializable$get('topic') + : null + }, + set: function (value) { + this.Serializable$set('topic', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.OperationNotification, - { - Severity: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.OperationNotification, + { + Severity: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.OperationNotificationSeverityEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.OperationStageParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.OperationStage = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "displayName", - null == parameters.displayName ? null : parameters.displayName - ); - this.Serializable$set( - "completeWorkUnits", - null == parameters.completeWorkUnits ? null : parameters.completeWorkUnits - ); - this.Serializable$set( - "totalWorkUnits", - null == parameters.totalWorkUnits ? null : parameters.totalWorkUnits - ); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'displayName', + null == parameters.displayName ? null : parameters.displayName + ) + this.Serializable$set( + 'completeWorkUnits', + null == parameters.completeWorkUnits + ? null + : parameters.completeWorkUnits + ) + this.Serializable$set( + 'totalWorkUnits', + null == parameters.totalWorkUnits ? null : parameters.totalWorkUnits + ) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.OperationStage, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.OperationStage, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.OperationStage.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.OperationStage; - }; + function () { + return module$exports$eeapiclient$ee_api_client.OperationStage + } module$exports$eeapiclient$ee_api_client.OperationStage.prototype.getPartialClassMetadata = - function () { - return { - keys: [ - "completeWorkUnits", - "description", - "displayName", - "totalWorkUnits", - ], - }; - }; + function () { + return { + keys: [ + 'completeWorkUnits', + 'description', + 'displayName', + 'totalWorkUnits', + ], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.OperationStage.prototype, - { - completeWorkUnits: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("completeWorkUnits") - ? this.Serializable$get("completeWorkUnits") - : null; - }, - set: function (value) { - this.Serializable$set("completeWorkUnits", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - displayName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("displayName") - ? this.Serializable$get("displayName") - : null; - }, - set: function (value) { - this.Serializable$set("displayName", value); - }, - }, - totalWorkUnits: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("totalWorkUnits") - ? this.Serializable$get("totalWorkUnits") - : null; - }, - set: function (value) { - this.Serializable$set("totalWorkUnits", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.OperationStage.prototype, + { + completeWorkUnits: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('completeWorkUnits') + ? this.Serializable$get('completeWorkUnits') + : null + }, + set: function (value) { + this.Serializable$set('completeWorkUnits', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + displayName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('displayName') + ? this.Serializable$get('displayName') + : null + }, + set: function (value) { + this.Serializable$set('displayName', value) + }, + }, + totalWorkUnits: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('totalWorkUnits') + ? this.Serializable$get('totalWorkUnits') + : null + }, + set: function (value) { + this.Serializable$set('totalWorkUnits', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.PixelDataTypeParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.PixelDataType = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "precision", - null == parameters.precision ? null : parameters.precision - ); - this.Serializable$set( - "range", - null == parameters.range ? null : parameters.range - ); - this.Serializable$set( - "dimensionsCount", - null == parameters.dimensionsCount ? null : parameters.dimensionsCount - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'precision', + null == parameters.precision ? null : parameters.precision + ) + this.Serializable$set( + 'range', + null == parameters.range ? null : parameters.range + ) + this.Serializable$set( + 'dimensionsCount', + null == parameters.dimensionsCount ? null : parameters.dimensionsCount + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.PixelDataType, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.PixelDataType, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.PixelDataType.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.PixelDataType; - }; + function () { + return module$exports$eeapiclient$ee_api_client.PixelDataType + } module$exports$eeapiclient$ee_api_client.PixelDataType.prototype.getPartialClassMetadata = - function () { - return { - enums: { - precision: - module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum, - }, - keys: ["dimensionsCount", "precision", "range"], - objects: { range: module$exports$eeapiclient$ee_api_client.DoubleRange }, - }; - }; + function () { + return { + enums: { + precision: + module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum, + }, + keys: ['dimensionsCount', 'precision', 'range'], + objects: { + range: module$exports$eeapiclient$ee_api_client.DoubleRange, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.PixelDataType.prototype, - { - dimensionsCount: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dimensionsCount") - ? this.Serializable$get("dimensionsCount") - : null; - }, - set: function (value) { - this.Serializable$set("dimensionsCount", value); - }, - }, - precision: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("precision") - ? this.Serializable$get("precision") - : null; - }, - set: function (value) { - this.Serializable$set("precision", value); - }, - }, - range: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("range") - ? this.Serializable$get("range") - : null; - }, - set: function (value) { - this.Serializable$set("range", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.PixelDataType.prototype, + { + dimensionsCount: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dimensionsCount') + ? this.Serializable$get('dimensionsCount') + : null + }, + set: function (value) { + this.Serializable$set('dimensionsCount', value) + }, + }, + precision: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('precision') + ? this.Serializable$get('precision') + : null + }, + set: function (value) { + this.Serializable$set('precision', value) + }, + }, + range: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('range') + ? this.Serializable$get('range') + : null + }, + set: function (value) { + this.Serializable$set('range', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.PixelDataType, - { - Precision: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.PixelDataType, + { + Precision: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.PixelFootprintParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.PixelFootprint = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "points", - null == parameters.points ? null : parameters.points - ); - this.Serializable$set( - "bandId", - null == parameters.bandId ? null : parameters.bandId - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'points', + null == parameters.points ? null : parameters.points + ) + this.Serializable$set( + 'bandId', + null == parameters.bandId ? null : parameters.bandId + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.PixelFootprint, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.PixelFootprint, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.PixelFootprint.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.PixelFootprint; - }; + function () { + return module$exports$eeapiclient$ee_api_client.PixelFootprint + } module$exports$eeapiclient$ee_api_client.PixelFootprint.prototype.getPartialClassMetadata = - function () { - return { - arrays: { points: module$exports$eeapiclient$ee_api_client.GridPoint }, - keys: ["bandId", "points"], - }; - }; + function () { + return { + arrays: { + points: module$exports$eeapiclient$ee_api_client.GridPoint, + }, + keys: ['bandId', 'points'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.PixelFootprint.prototype, - { - bandId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandId") - ? this.Serializable$get("bandId") - : null; - }, - set: function (value) { - this.Serializable$set("bandId", value); - }, - }, - points: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("points") - ? this.Serializable$get("points") - : null; - }, - set: function (value) { - this.Serializable$set("points", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.PixelGridParameters = function () {}; + module$exports$eeapiclient$ee_api_client.PixelFootprint.prototype, + { + bandId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandId') + ? this.Serializable$get('bandId') + : null + }, + set: function (value) { + this.Serializable$set('bandId', value) + }, + }, + points: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('points') + ? this.Serializable$get('points') + : null + }, + set: function (value) { + this.Serializable$set('points', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.PixelGridParameters = function () {} module$exports$eeapiclient$ee_api_client.PixelGrid = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "crsCode", - null == parameters.crsCode ? null : parameters.crsCode - ); - this.Serializable$set( - "crsWkt", - null == parameters.crsWkt ? null : parameters.crsWkt - ); - this.Serializable$set( - "dimensions", - null == parameters.dimensions ? null : parameters.dimensions - ); - this.Serializable$set( - "affineTransform", - null == parameters.affineTransform ? null : parameters.affineTransform - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'crsCode', + null == parameters.crsCode ? null : parameters.crsCode + ) + this.Serializable$set( + 'crsWkt', + null == parameters.crsWkt ? null : parameters.crsWkt + ) + this.Serializable$set( + 'dimensions', + null == parameters.dimensions ? null : parameters.dimensions + ) + this.Serializable$set( + 'affineTransform', + null == parameters.affineTransform ? null : parameters.affineTransform + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.PixelGrid, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.PixelGrid, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.PixelGrid.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.PixelGrid; - }; + function () { + return module$exports$eeapiclient$ee_api_client.PixelGrid + } module$exports$eeapiclient$ee_api_client.PixelGrid.prototype.getPartialClassMetadata = - function () { - return { - keys: ["affineTransform", "crsCode", "crsWkt", "dimensions"], - objects: { - affineTransform: - module$exports$eeapiclient$ee_api_client.AffineTransform, - dimensions: module$exports$eeapiclient$ee_api_client.GridDimensions, - }, - }; - }; + function () { + return { + keys: ['affineTransform', 'crsCode', 'crsWkt', 'dimensions'], + objects: { + affineTransform: + module$exports$eeapiclient$ee_api_client.AffineTransform, + dimensions: + module$exports$eeapiclient$ee_api_client.GridDimensions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.PixelGrid.prototype, - { - affineTransform: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("affineTransform") - ? this.Serializable$get("affineTransform") - : null; - }, - set: function (value) { - this.Serializable$set("affineTransform", value); - }, - }, - crsCode: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("crsCode") - ? this.Serializable$get("crsCode") - : null; - }, - set: function (value) { - this.Serializable$set("crsCode", value); - }, - }, - crsWkt: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("crsWkt") - ? this.Serializable$get("crsWkt") - : null; - }, - set: function (value) { - this.Serializable$set("crsWkt", value); - }, - }, - dimensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dimensions") - ? this.Serializable$get("dimensions") - : null; - }, - set: function (value) { - this.Serializable$set("dimensions", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.PolicyParameters = function () {}; + module$exports$eeapiclient$ee_api_client.PixelGrid.prototype, + { + affineTransform: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('affineTransform') + ? this.Serializable$get('affineTransform') + : null + }, + set: function (value) { + this.Serializable$set('affineTransform', value) + }, + }, + crsCode: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('crsCode') + ? this.Serializable$get('crsCode') + : null + }, + set: function (value) { + this.Serializable$set('crsCode', value) + }, + }, + crsWkt: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('crsWkt') + ? this.Serializable$get('crsWkt') + : null + }, + set: function (value) { + this.Serializable$set('crsWkt', value) + }, + }, + dimensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dimensions') + ? this.Serializable$get('dimensions') + : null + }, + set: function (value) { + this.Serializable$set('dimensions', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.PolicyParameters = function () {} module$exports$eeapiclient$ee_api_client.Policy = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "version", - null == parameters.version ? null : parameters.version - ); - this.Serializable$set( - "bindings", - null == parameters.bindings ? null : parameters.bindings - ); - this.Serializable$set( - "auditConfigs", - null == parameters.auditConfigs ? null : parameters.auditConfigs - ); - this.Serializable$set( - "rules", - null == parameters.rules ? null : parameters.rules - ); - this.Serializable$set( - "etag", - null == parameters.etag ? null : parameters.etag - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'version', + null == parameters.version ? null : parameters.version + ) + this.Serializable$set( + 'bindings', + null == parameters.bindings ? null : parameters.bindings + ) + this.Serializable$set( + 'auditConfigs', + null == parameters.auditConfigs ? null : parameters.auditConfigs + ) + this.Serializable$set( + 'rules', + null == parameters.rules ? null : parameters.rules + ) + this.Serializable$set( + 'etag', + null == parameters.etag ? null : parameters.etag + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Policy, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Policy, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Policy.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Policy; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Policy + } module$exports$eeapiclient$ee_api_client.Policy.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - auditConfigs: module$exports$eeapiclient$ee_api_client.AuditConfig, - bindings: module$exports$eeapiclient$ee_api_client.Binding, - rules: module$exports$eeapiclient$ee_api_client.Rule, - }, - keys: ["auditConfigs", "bindings", "etag", "rules", "version"], - }; - }; + function () { + return { + arrays: { + auditConfigs: + module$exports$eeapiclient$ee_api_client.AuditConfig, + bindings: module$exports$eeapiclient$ee_api_client.Binding, + rules: module$exports$eeapiclient$ee_api_client.Rule, + }, + keys: ['auditConfigs', 'bindings', 'etag', 'rules', 'version'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Policy.prototype, - { - auditConfigs: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("auditConfigs") - ? this.Serializable$get("auditConfigs") - : null; - }, - set: function (value) { - this.Serializable$set("auditConfigs", value); - }, - }, - bindings: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bindings") - ? this.Serializable$get("bindings") - : null; - }, - set: function (value) { - this.Serializable$set("bindings", value); - }, - }, - etag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("etag") - ? this.Serializable$get("etag") - : null; - }, - set: function (value) { - this.Serializable$set("etag", value); - }, - }, - rules: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rules") - ? this.Serializable$get("rules") - : null; - }, - set: function (value) { - this.Serializable$set("rules", value); - }, - }, - version: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("version") - ? this.Serializable$get("version") - : null; - }, - set: function (value) { - this.Serializable$set("version", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Policy.prototype, + { + auditConfigs: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('auditConfigs') + ? this.Serializable$get('auditConfigs') + : null + }, + set: function (value) { + this.Serializable$set('auditConfigs', value) + }, + }, + bindings: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bindings') + ? this.Serializable$get('bindings') + : null + }, + set: function (value) { + this.Serializable$set('bindings', value) + }, + }, + etag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('etag') + ? this.Serializable$get('etag') + : null + }, + set: function (value) { + this.Serializable$set('etag', value) + }, + }, + rules: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rules') + ? this.Serializable$get('rules') + : null + }, + set: function (value) { + this.Serializable$set('rules', value) + }, + }, + version: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('version') + ? this.Serializable$get('version') + : null + }, + set: function (value) { + this.Serializable$set('version', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.PrerenderingOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.PrerenderingOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "prerenderTiles", - null == parameters.prerenderTiles ? null : parameters.prerenderTiles - ); - this.Serializable$set( - "tileLimiting", - null == parameters.tileLimiting ? null : parameters.tileLimiting - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'prerenderTiles', + null == parameters.prerenderTiles ? null : parameters.prerenderTiles + ) + this.Serializable$set( + 'tileLimiting', + null == parameters.tileLimiting ? null : parameters.tileLimiting + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.PrerenderingOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.PrerenderingOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.PrerenderingOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.PrerenderingOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.PrerenderingOptions + } module$exports$eeapiclient$ee_api_client.PrerenderingOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: ["prerenderTiles", "tileLimiting"], - objects: { - tileLimiting: module$exports$eeapiclient$ee_api_client.TileLimiting, - }, - }; - }; + function () { + return { + keys: ['prerenderTiles', 'tileLimiting'], + objects: { + tileLimiting: + module$exports$eeapiclient$ee_api_client.TileLimiting, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.PrerenderingOptions.prototype, - { - prerenderTiles: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("prerenderTiles") - ? this.Serializable$get("prerenderTiles") - : null; - }, - set: function (value) { - this.Serializable$set("prerenderTiles", value); - }, - }, - tileLimiting: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileLimiting") - ? this.Serializable$get("tileLimiting") - : null; - }, - set: function (value) { - this.Serializable$set("tileLimiting", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.PrerenderingOptions.prototype, + { + prerenderTiles: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('prerenderTiles') + ? this.Serializable$get('prerenderTiles') + : null + }, + set: function (value) { + this.Serializable$set('prerenderTiles', value) + }, + }, + tileLimiting: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileLimiting') + ? this.Serializable$get('tileLimiting') + : null + }, + set: function (value) { + this.Serializable$set('tileLimiting', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ProjectConfigParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectConfig = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "registration", - null == parameters.registration ? null : parameters.registration - ); - this.Serializable$set( - "trialStatus", - null == parameters.trialStatus ? null : parameters.trialStatus - ); - this.Serializable$set( - "vpcServiceControlsRestricted", - null == parameters.vpcServiceControlsRestricted - ? null - : parameters.vpcServiceControlsRestricted - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'registration', + null == parameters.registration ? null : parameters.registration + ) + this.Serializable$set( + 'trialStatus', + null == parameters.trialStatus ? null : parameters.trialStatus + ) + this.Serializable$set( + 'vpcServiceControlsRestricted', + null == parameters.vpcServiceControlsRestricted + ? null + : parameters.vpcServiceControlsRestricted + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ProjectConfig, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ProjectConfig, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ProjectConfig; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ProjectConfig + } module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getPartialClassMetadata = - function () { - return { - keys: [ - "name", - "registration", - "trialStatus", - "vpcServiceControlsRestricted", - ], - objects: { - registration: - module$exports$eeapiclient$ee_api_client.ProjectRegistration, - trialStatus: module$exports$eeapiclient$ee_api_client.TrialStatus, - }, - }; - }; + function () { + return { + keys: [ + 'name', + 'registration', + 'trialStatus', + 'vpcServiceControlsRestricted', + ], + objects: { + registration: + module$exports$eeapiclient$ee_api_client.ProjectRegistration, + trialStatus: + module$exports$eeapiclient$ee_api_client.TrialStatus, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype, - { - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - registration: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("registration") - ? this.Serializable$get("registration") - : null; - }, - set: function (value) { - this.Serializable$set("registration", value); - }, - }, - trialStatus: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("trialStatus") - ? this.Serializable$get("trialStatus") - : null; - }, - set: function (value) { - this.Serializable$set("trialStatus", value); - }, - }, - vpcServiceControlsRestricted: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("vpcServiceControlsRestricted") - ? this.Serializable$get("vpcServiceControlsRestricted") - : null; - }, - set: function (value) { - this.Serializable$set("vpcServiceControlsRestricted", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype, + { + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + registration: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('registration') + ? this.Serializable$get('registration') + : null + }, + set: function (value) { + this.Serializable$set('registration', value) + }, + }, + trialStatus: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('trialStatus') + ? this.Serializable$get('trialStatus') + : null + }, + set: function (value) { + this.Serializable$set('trialStatus', value) + }, + }, + vpcServiceControlsRestricted: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('vpcServiceControlsRestricted') + ? this.Serializable$get('vpcServiceControlsRestricted') + : null + }, + set: function (value) { + this.Serializable$set('vpcServiceControlsRestricted', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ProjectRegistrationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectRegistration = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "billingConsent", - null == parameters.billingConsent ? null : parameters.billingConsent - ); - this.Serializable$set( - "freeQuota", - null == parameters.freeQuota ? null : parameters.freeQuota - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'billingConsent', + null == parameters.billingConsent ? null : parameters.billingConsent + ) + this.Serializable$set( + 'freeQuota', + null == parameters.freeQuota ? null : parameters.freeQuota + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ProjectRegistration, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ProjectRegistration, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ProjectRegistration.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ProjectRegistration; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ProjectRegistration + } module$exports$eeapiclient$ee_api_client.ProjectRegistration.prototype.getPartialClassMetadata = - function () { - return { - enums: { - billingConsent: - module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum, - freeQuota: - module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum, - }, - keys: ["billingConsent", "freeQuota"], - }; - }; + function () { + return { + enums: { + billingConsent: + module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum, + freeQuota: + module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum, + }, + keys: ['billingConsent', 'freeQuota'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ProjectRegistration.prototype, - { - billingConsent: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("billingConsent") - ? this.Serializable$get("billingConsent") - : null; - }, - set: function (value) { - this.Serializable$set("billingConsent", value); - }, - }, - freeQuota: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("freeQuota") - ? this.Serializable$get("freeQuota") - : null; - }, - set: function (value) { - this.Serializable$set("freeQuota", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ProjectRegistration.prototype, + { + billingConsent: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('billingConsent') + ? this.Serializable$get('billingConsent') + : null + }, + set: function (value) { + this.Serializable$set('billingConsent', value) + }, + }, + freeQuota: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('freeQuota') + ? this.Serializable$get('freeQuota') + : null + }, + set: function (value) { + this.Serializable$set('freeQuota', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ProjectRegistration, - { - BillingConsent: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum; - }, - }, - FreeQuota: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ProjectRegistration, + { + BillingConsent: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum + }, + }, + FreeQuota: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ProjectRegistrationFreeQuotaEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.RankByAttributeRuleParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankByAttributeRule = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "attributeName", - null == parameters.attributeName ? null : parameters.attributeName - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'attributeName', + null == parameters.attributeName ? null : parameters.attributeName + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankByAttributeRule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankByAttributeRule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankByAttributeRule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankByAttributeRule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankByAttributeRule + } module$exports$eeapiclient$ee_api_client.RankByAttributeRule.prototype.getPartialClassMetadata = - function () { - return { keys: ["attributeName"] }; - }; + function () { + return { keys: ['attributeName'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.RankByAttributeRule.prototype, - { - attributeName: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("attributeName") - ? this.Serializable$get("attributeName") - : null; - }, - set: function (value) { - this.Serializable$set("attributeName", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.RankByAttributeRule.prototype, + { + attributeName: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('attributeName') + ? this.Serializable$get('attributeName') + : null + }, + set: function (value) { + this.Serializable$set('attributeName', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRuleParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule = function ( - parameters + parameters ) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule + } module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; + function () { + return { keys: [] } + } module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRuleParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule = function ( - parameters + parameters ) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule + } module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; + function () { + return { keys: [] } + } module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRuleParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule = function ( - parameters + parameters ) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule + } module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule.prototype.getPartialClassMetadata = - function () { - return { keys: [] }; - }; + function () { + return { keys: [] } + } module$exports$eeapiclient$ee_api_client.RankByOneThingRuleParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankByOneThingRule = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "rankByAttributeRule", - null == parameters.rankByAttributeRule - ? null - : parameters.rankByAttributeRule - ); - this.Serializable$set( - "rankByMinVisibleLodRule", - null == parameters.rankByMinVisibleLodRule - ? null - : parameters.rankByMinVisibleLodRule - ); - this.Serializable$set( - "rankByGeometryTypeRule", - null == parameters.rankByGeometryTypeRule - ? null - : parameters.rankByGeometryTypeRule - ); - this.Serializable$set( - "rankByMinZoomLevelRule", - null == parameters.rankByMinZoomLevelRule - ? null - : parameters.rankByMinZoomLevelRule - ); - this.Serializable$set( - "direction", - null == parameters.direction ? null : parameters.direction - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'rankByAttributeRule', + null == parameters.rankByAttributeRule + ? null + : parameters.rankByAttributeRule + ) + this.Serializable$set( + 'rankByMinVisibleLodRule', + null == parameters.rankByMinVisibleLodRule + ? null + : parameters.rankByMinVisibleLodRule + ) + this.Serializable$set( + 'rankByGeometryTypeRule', + null == parameters.rankByGeometryTypeRule + ? null + : parameters.rankByGeometryTypeRule + ) + this.Serializable$set( + 'rankByMinZoomLevelRule', + null == parameters.rankByMinZoomLevelRule + ? null + : parameters.rankByMinZoomLevelRule + ) + this.Serializable$set( + 'direction', + null == parameters.direction ? null : parameters.direction + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankByOneThingRule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankByOneThingRule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankByOneThingRule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankByOneThingRule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankByOneThingRule + } module$exports$eeapiclient$ee_api_client.RankByOneThingRule.prototype.getPartialClassMetadata = - function () { - return { - enums: { - direction: - module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum, - }, - keys: [ - "direction", - "rankByAttributeRule", - "rankByGeometryTypeRule", - "rankByMinVisibleLodRule", - "rankByMinZoomLevelRule", - ], - objects: { - rankByAttributeRule: - module$exports$eeapiclient$ee_api_client.RankByAttributeRule, - rankByGeometryTypeRule: - module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule, - rankByMinVisibleLodRule: - module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule, - rankByMinZoomLevelRule: - module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule, - }, - }; - }; + function () { + return { + enums: { + direction: + module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum, + }, + keys: [ + 'direction', + 'rankByAttributeRule', + 'rankByGeometryTypeRule', + 'rankByMinVisibleLodRule', + 'rankByMinZoomLevelRule', + ], + objects: { + rankByAttributeRule: + module$exports$eeapiclient$ee_api_client.RankByAttributeRule, + rankByGeometryTypeRule: + module$exports$eeapiclient$ee_api_client.RankByGeometryTypeRule, + rankByMinVisibleLodRule: + module$exports$eeapiclient$ee_api_client.RankByMinVisibleLodRule, + rankByMinZoomLevelRule: + module$exports$eeapiclient$ee_api_client.RankByMinZoomLevelRule, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.RankByOneThingRule.prototype, - { - direction: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("direction") - ? this.Serializable$get("direction") - : null; - }, - set: function (value) { - this.Serializable$set("direction", value); - }, - }, - rankByAttributeRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rankByAttributeRule") - ? this.Serializable$get("rankByAttributeRule") - : null; - }, - set: function (value) { - this.Serializable$set("rankByAttributeRule", value); - }, - }, - rankByGeometryTypeRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rankByGeometryTypeRule") - ? this.Serializable$get("rankByGeometryTypeRule") - : null; - }, - set: function (value) { - this.Serializable$set("rankByGeometryTypeRule", value); - }, - }, - rankByMinVisibleLodRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rankByMinVisibleLodRule") - ? this.Serializable$get("rankByMinVisibleLodRule") - : null; - }, - set: function (value) { - this.Serializable$set("rankByMinVisibleLodRule", value); - }, - }, - rankByMinZoomLevelRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rankByMinZoomLevelRule") - ? this.Serializable$get("rankByMinZoomLevelRule") - : null; - }, - set: function (value) { - this.Serializable$set("rankByMinZoomLevelRule", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.RankByOneThingRule.prototype, + { + direction: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('direction') + ? this.Serializable$get('direction') + : null + }, + set: function (value) { + this.Serializable$set('direction', value) + }, + }, + rankByAttributeRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rankByAttributeRule') + ? this.Serializable$get('rankByAttributeRule') + : null + }, + set: function (value) { + this.Serializable$set('rankByAttributeRule', value) + }, + }, + rankByGeometryTypeRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rankByGeometryTypeRule') + ? this.Serializable$get('rankByGeometryTypeRule') + : null + }, + set: function (value) { + this.Serializable$set('rankByGeometryTypeRule', value) + }, + }, + rankByMinVisibleLodRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rankByMinVisibleLodRule') + ? this.Serializable$get('rankByMinVisibleLodRule') + : null + }, + set: function (value) { + this.Serializable$set('rankByMinVisibleLodRule', value) + }, + }, + rankByMinZoomLevelRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rankByMinZoomLevelRule') + ? this.Serializable$get('rankByMinZoomLevelRule') + : null + }, + set: function (value) { + this.Serializable$set('rankByMinZoomLevelRule', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.RankByOneThingRule, - { - Direction: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.RankByOneThingRule, + { + Direction: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.RankByOneThingRuleDirectionEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.RankingOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.RankingOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "zOrderRankingRule", - null == parameters.zOrderRankingRule ? null : parameters.zOrderRankingRule - ); - this.Serializable$set( - "thinningRankingRule", - null == parameters.thinningRankingRule - ? null - : parameters.thinningRankingRule - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'zOrderRankingRule', + null == parameters.zOrderRankingRule + ? null + : parameters.zOrderRankingRule + ) + this.Serializable$set( + 'thinningRankingRule', + null == parameters.thinningRankingRule + ? null + : parameters.thinningRankingRule + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankingOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankingOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankingOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankingOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankingOptions + } module$exports$eeapiclient$ee_api_client.RankingOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: ["thinningRankingRule", "zOrderRankingRule"], - objects: { - thinningRankingRule: - module$exports$eeapiclient$ee_api_client.RankingRule, - zOrderRankingRule: module$exports$eeapiclient$ee_api_client.RankingRule, - }, - }; - }; + function () { + return { + keys: ['thinningRankingRule', 'zOrderRankingRule'], + objects: { + thinningRankingRule: + module$exports$eeapiclient$ee_api_client.RankingRule, + zOrderRankingRule: + module$exports$eeapiclient$ee_api_client.RankingRule, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.RankingOptions.prototype, - { - thinningRankingRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("thinningRankingRule") - ? this.Serializable$get("thinningRankingRule") - : null; - }, - set: function (value) { - this.Serializable$set("thinningRankingRule", value); - }, - }, - zOrderRankingRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("zOrderRankingRule") - ? this.Serializable$get("zOrderRankingRule") - : null; - }, - set: function (value) { - this.Serializable$set("zOrderRankingRule", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.RankingRuleParameters = function () {}; + module$exports$eeapiclient$ee_api_client.RankingOptions.prototype, + { + thinningRankingRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('thinningRankingRule') + ? this.Serializable$get('thinningRankingRule') + : null + }, + set: function (value) { + this.Serializable$set('thinningRankingRule', value) + }, + }, + zOrderRankingRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('zOrderRankingRule') + ? this.Serializable$get('zOrderRankingRule') + : null + }, + set: function (value) { + this.Serializable$set('zOrderRankingRule', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.RankingRuleParameters = function () {} module$exports$eeapiclient$ee_api_client.RankingRule = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "rankByOneThingRule", - null == parameters.rankByOneThingRule ? null : parameters.rankByOneThingRule - ); - this.Serializable$set( - "pseudoRandomTiebreaking", - null == parameters.pseudoRandomTiebreaking - ? null - : parameters.pseudoRandomTiebreaking - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'rankByOneThingRule', + null == parameters.rankByOneThingRule + ? null + : parameters.rankByOneThingRule + ) + this.Serializable$set( + 'pseudoRandomTiebreaking', + null == parameters.pseudoRandomTiebreaking + ? null + : parameters.pseudoRandomTiebreaking + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.RankingRule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.RankingRule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.RankingRule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.RankingRule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.RankingRule + } module$exports$eeapiclient$ee_api_client.RankingRule.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - rankByOneThingRule: - module$exports$eeapiclient$ee_api_client.RankByOneThingRule, - }, - keys: ["pseudoRandomTiebreaking", "rankByOneThingRule"], - }; - }; + function () { + return { + arrays: { + rankByOneThingRule: + module$exports$eeapiclient$ee_api_client.RankByOneThingRule, + }, + keys: ['pseudoRandomTiebreaking', 'rankByOneThingRule'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.RankingRule.prototype, - { - pseudoRandomTiebreaking: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pseudoRandomTiebreaking") - ? this.Serializable$get("pseudoRandomTiebreaking") - : null; - }, - set: function (value) { - this.Serializable$set("pseudoRandomTiebreaking", value); - }, - }, - rankByOneThingRule: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("rankByOneThingRule") - ? this.Serializable$get("rankByOneThingRule") - : null; - }, - set: function (value) { - this.Serializable$set("rankByOneThingRule", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.RuleParameters = function () {}; + module$exports$eeapiclient$ee_api_client.RankingRule.prototype, + { + pseudoRandomTiebreaking: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pseudoRandomTiebreaking') + ? this.Serializable$get('pseudoRandomTiebreaking') + : null + }, + set: function (value) { + this.Serializable$set('pseudoRandomTiebreaking', value) + }, + }, + rankByOneThingRule: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('rankByOneThingRule') + ? this.Serializable$get('rankByOneThingRule') + : null + }, + set: function (value) { + this.Serializable$set('rankByOneThingRule', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.RuleParameters = function () {} module$exports$eeapiclient$ee_api_client.Rule = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "description", - null == parameters.description ? null : parameters.description - ); - this.Serializable$set( - "permissions", - null == parameters.permissions ? null : parameters.permissions - ); - this.Serializable$set( - "action", - null == parameters.action ? null : parameters.action - ); - this.Serializable$set("in", null == parameters.in ? null : parameters.in); - this.Serializable$set( - "notIn", - null == parameters.notIn ? null : parameters.notIn - ); - this.Serializable$set( - "conditions", - null == parameters.conditions ? null : parameters.conditions - ); - this.Serializable$set( - "logConfig", - null == parameters.logConfig ? null : parameters.logConfig - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'description', + null == parameters.description ? null : parameters.description + ) + this.Serializable$set( + 'permissions', + null == parameters.permissions ? null : parameters.permissions + ) + this.Serializable$set( + 'action', + null == parameters.action ? null : parameters.action + ) + this.Serializable$set('in', null == parameters.in ? null : parameters.in) + this.Serializable$set( + 'notIn', + null == parameters.notIn ? null : parameters.notIn + ) + this.Serializable$set( + 'conditions', + null == parameters.conditions ? null : parameters.conditions + ) + this.Serializable$set( + 'logConfig', + null == parameters.logConfig ? null : parameters.logConfig + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Rule, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Rule, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Rule.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Rule; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Rule + } module$exports$eeapiclient$ee_api_client.Rule.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - conditions: module$exports$eeapiclient$ee_api_client.Condition, - logConfig: module$exports$eeapiclient$ee_api_client.LogConfig, - }, - enums: { - action: module$exports$eeapiclient$ee_api_client.RuleActionEnum, - }, - keys: "action conditions description in logConfig notIn permissions".split( - " " - ), - }; - }; + function () { + return { + arrays: { + conditions: module$exports$eeapiclient$ee_api_client.Condition, + logConfig: module$exports$eeapiclient$ee_api_client.LogConfig, + }, + enums: { + action: module$exports$eeapiclient$ee_api_client.RuleActionEnum, + }, + keys: 'action conditions description in logConfig notIn permissions'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Rule.prototype, - { - action: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("action") - ? this.Serializable$get("action") - : null; - }, - set: function (value) { - this.Serializable$set("action", value); - }, - }, - conditions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("conditions") - ? this.Serializable$get("conditions") - : null; - }, - set: function (value) { - this.Serializable$set("conditions", value); - }, - }, - description: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("description") - ? this.Serializable$get("description") - : null; - }, - set: function (value) { - this.Serializable$set("description", value); - }, - }, - in: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("in") ? this.Serializable$get("in") : null; - }, - set: function (value) { - this.Serializable$set("in", value); - }, - }, - logConfig: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("logConfig") - ? this.Serializable$get("logConfig") - : null; - }, - set: function (value) { - this.Serializable$set("logConfig", value); - }, - }, - notIn: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("notIn") - ? this.Serializable$get("notIn") - : null; - }, - set: function (value) { - this.Serializable$set("notIn", value); - }, - }, - permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissions") - ? this.Serializable$get("permissions") - : null; - }, - set: function (value) { - this.Serializable$set("permissions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Rule.prototype, + { + action: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('action') + ? this.Serializable$get('action') + : null + }, + set: function (value) { + this.Serializable$set('action', value) + }, + }, + conditions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('conditions') + ? this.Serializable$get('conditions') + : null + }, + set: function (value) { + this.Serializable$set('conditions', value) + }, + }, + description: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('description') + ? this.Serializable$get('description') + : null + }, + set: function (value) { + this.Serializable$set('description', value) + }, + }, + in: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('in') + ? this.Serializable$get('in') + : null + }, + set: function (value) { + this.Serializable$set('in', value) + }, + }, + logConfig: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('logConfig') + ? this.Serializable$get('logConfig') + : null + }, + set: function (value) { + this.Serializable$set('logConfig', value) + }, + }, + notIn: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('notIn') + ? this.Serializable$get('notIn') + : null + }, + set: function (value) { + this.Serializable$set('notIn', value) + }, + }, + permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissions') + ? this.Serializable$get('permissions') + : null + }, + set: function (value) { + this.Serializable$set('permissions', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Rule, - { - Action: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.RuleActionEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Rule, + { + Action: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.RuleActionEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ScheduledUpdateParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ScheduledUpdate = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "subscriptionUpdateType", - null == parameters.subscriptionUpdateType - ? null - : parameters.subscriptionUpdateType - ); - this.Serializable$set( - "updateChangeType", - null == parameters.updateChangeType ? null : parameters.updateChangeType - ); - this.Serializable$set( - "updateTime", - null == parameters.updateTime ? null : parameters.updateTime - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'subscriptionUpdateType', + null == parameters.subscriptionUpdateType + ? null + : parameters.subscriptionUpdateType + ) + this.Serializable$set( + 'updateChangeType', + null == parameters.updateChangeType ? null : parameters.updateChangeType + ) + this.Serializable$set( + 'updateTime', + null == parameters.updateTime ? null : parameters.updateTime + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ScheduledUpdate, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ScheduledUpdate, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ScheduledUpdate.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ScheduledUpdate; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ScheduledUpdate + } module$exports$eeapiclient$ee_api_client.ScheduledUpdate.prototype.getPartialClassMetadata = - function () { - return { - enums: { - subscriptionUpdateType: - module$exports$eeapiclient$ee_api_client.ScheduledUpdateSubscriptionUpdateTypeEnum, - updateChangeType: - module$exports$eeapiclient$ee_api_client.ScheduledUpdateUpdateChangeTypeEnum, - }, - keys: ["subscriptionUpdateType", "updateChangeType", "updateTime"], - }; - }; + function () { + return { + enums: { + subscriptionUpdateType: + module$exports$eeapiclient$ee_api_client.ScheduledUpdateSubscriptionUpdateTypeEnum, + updateChangeType: + module$exports$eeapiclient$ee_api_client.ScheduledUpdateUpdateChangeTypeEnum, + }, + keys: ['subscriptionUpdateType', 'updateChangeType', 'updateTime'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ScheduledUpdate.prototype, - { - subscriptionUpdateType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("subscriptionUpdateType") - ? this.Serializable$get("subscriptionUpdateType") - : null; - }, - set: function (value) { - this.Serializable$set("subscriptionUpdateType", value); - }, - }, - updateChangeType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("updateChangeType") - ? this.Serializable$get("updateChangeType") - : null; - }, - set: function (value) { - this.Serializable$set("updateChangeType", value); - }, - }, - updateTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("updateTime") - ? this.Serializable$get("updateTime") - : null; - }, - set: function (value) { - this.Serializable$set("updateTime", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ScheduledUpdate.prototype, + { + subscriptionUpdateType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('subscriptionUpdateType') + ? this.Serializable$get('subscriptionUpdateType') + : null + }, + set: function (value) { + this.Serializable$set('subscriptionUpdateType', value) + }, + }, + updateChangeType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('updateChangeType') + ? this.Serializable$get('updateChangeType') + : null + }, + set: function (value) { + this.Serializable$set('updateChangeType', value) + }, + }, + updateTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('updateTime') + ? this.Serializable$get('updateTime') + : null + }, + set: function (value) { + this.Serializable$set('updateTime', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ScheduledUpdate, - { - SubscriptionUpdateType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ScheduledUpdateSubscriptionUpdateTypeEnum; - }, - }, - UpdateChangeType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ScheduledUpdateUpdateChangeTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ScheduledUpdate, + { + SubscriptionUpdateType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ScheduledUpdateSubscriptionUpdateTypeEnum + }, + }, + UpdateChangeType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ScheduledUpdateUpdateChangeTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.SetIamPolicyRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "policy", - null == parameters.policy ? null : parameters.policy - ); - this.Serializable$set( - "updateMask", - null == parameters.updateMask ? null : parameters.updateMask - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'policy', + null == parameters.policy ? null : parameters.policy + ) + this.Serializable$set( + 'updateMask', + null == parameters.updateMask ? null : parameters.updateMask + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest + } module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["policy", "updateMask"], - objects: { policy: module$exports$eeapiclient$ee_api_client.Policy }, - }; - }; + function () { + return { + keys: ['policy', 'updateMask'], + objects: { + policy: module$exports$eeapiclient$ee_api_client.Policy, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest.prototype, - { - policy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("policy") - ? this.Serializable$get("policy") - : null; - }, - set: function (value) { - this.Serializable$set("policy", value); - }, - }, - updateMask: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("updateMask") - ? this.Serializable$get("updateMask") - : null; - }, - set: function (value) { - this.Serializable$set("updateMask", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.StatusParameters = function () {}; + module$exports$eeapiclient$ee_api_client.SetIamPolicyRequest.prototype, + { + policy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('policy') + ? this.Serializable$get('policy') + : null + }, + set: function (value) { + this.Serializable$set('policy', value) + }, + }, + updateMask: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('updateMask') + ? this.Serializable$get('updateMask') + : null + }, + set: function (value) { + this.Serializable$set('updateMask', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.StatusParameters = function () {} module$exports$eeapiclient$ee_api_client.Status = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "code", - null == parameters.code ? null : parameters.code - ); - this.Serializable$set( - "message", - null == parameters.message ? null : parameters.message - ); - this.Serializable$set( - "details", - null == parameters.details ? null : parameters.details - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'code', + null == parameters.code ? null : parameters.code + ) + this.Serializable$set( + 'message', + null == parameters.message ? null : parameters.message + ) + this.Serializable$set( + 'details', + null == parameters.details ? null : parameters.details + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Status, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Status, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Status.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Status; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Status + } module$exports$eeapiclient$ee_api_client.Status.prototype.getPartialClassMetadata = - function () { - return { - keys: ["code", "details", "message"], - objectMaps: { - details: { - ctor: null, - isPropertyArray: !0, - isSerializable: !1, - isValueArray: !1, - }, - }, - }; - }; + function () { + return { + keys: ['code', 'details', 'message'], + objectMaps: { + details: { + ctor: null, + isPropertyArray: !0, + isSerializable: !1, + isValueArray: !1, + }, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Status.prototype, - { - code: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("code") - ? this.Serializable$get("code") - : null; - }, - set: function (value) { - this.Serializable$set("code", value); - }, - }, - details: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("details") - ? this.Serializable$get("details") - : null; - }, - set: function (value) { - this.Serializable$set("details", value); - }, - }, - message: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("message") - ? this.Serializable$get("message") - : null; - }, - set: function (value) { - this.Serializable$set("message", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.SubscriptionParameters = - function () {}; + module$exports$eeapiclient$ee_api_client.Status.prototype, + { + code: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('code') + ? this.Serializable$get('code') + : null + }, + set: function (value) { + this.Serializable$set('code', value) + }, + }, + details: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('details') + ? this.Serializable$get('details') + : null + }, + set: function (value) { + this.Serializable$set('details', value) + }, + }, + message: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('message') + ? this.Serializable$get('message') + : null + }, + set: function (value) { + this.Serializable$set('message', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.SubscriptionParameters = function () {} module$exports$eeapiclient$ee_api_client.Subscription = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "etag", - null == parameters.etag ? null : parameters.etag - ); - this.Serializable$set( - "type", - null == parameters.type ? null : parameters.type - ); - this.Serializable$set( - "state", - null == parameters.state ? null : parameters.state - ); - this.Serializable$set( - "creationTime", - null == parameters.creationTime ? null : parameters.creationTime - ); - this.Serializable$set( - "startTime", - null == parameters.startTime ? null : parameters.startTime - ); - this.Serializable$set( - "periodEndTime", - null == parameters.periodEndTime ? null : parameters.periodEndTime - ); - this.Serializable$set( - "endTime", - null == parameters.endTime ? null : parameters.endTime - ); - this.Serializable$set( - "scheduledUpdate", - null == parameters.scheduledUpdate ? null : parameters.scheduledUpdate - ); - this.Serializable$set( - "trialState", - null == parameters.trialState ? null : parameters.trialState - ); - this.Serializable$set( - "errorDetail", - null == parameters.errorDetail ? null : parameters.errorDetail - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'etag', + null == parameters.etag ? null : parameters.etag + ) + this.Serializable$set( + 'type', + null == parameters.type ? null : parameters.type + ) + this.Serializable$set( + 'state', + null == parameters.state ? null : parameters.state + ) + this.Serializable$set( + 'creationTime', + null == parameters.creationTime ? null : parameters.creationTime + ) + this.Serializable$set( + 'startTime', + null == parameters.startTime ? null : parameters.startTime + ) + this.Serializable$set( + 'periodEndTime', + null == parameters.periodEndTime ? null : parameters.periodEndTime + ) + this.Serializable$set( + 'endTime', + null == parameters.endTime ? null : parameters.endTime + ) + this.Serializable$set( + 'scheduledUpdate', + null == parameters.scheduledUpdate ? null : parameters.scheduledUpdate + ) + this.Serializable$set( + 'trialState', + null == parameters.trialState ? null : parameters.trialState + ) + this.Serializable$set( + 'errorDetail', + null == parameters.errorDetail ? null : parameters.errorDetail + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Subscription, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Subscription, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Subscription.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Subscription; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Subscription + } module$exports$eeapiclient$ee_api_client.Subscription.prototype.getPartialClassMetadata = - function () { - return { - enums: { - state: module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum, - trialState: - module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum, - type: module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum, - }, - keys: "creationTime endTime errorDetail etag name periodEndTime scheduledUpdate startTime state trialState type".split( - " " - ), - objects: { - scheduledUpdate: - module$exports$eeapiclient$ee_api_client.ScheduledUpdate, - }, - }; - }; + function () { + return { + enums: { + state: module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum, + trialState: + module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum, + type: module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum, + }, + keys: 'creationTime endTime errorDetail etag name periodEndTime scheduledUpdate startTime state trialState type'.split( + ' ' + ), + objects: { + scheduledUpdate: + module$exports$eeapiclient$ee_api_client.ScheduledUpdate, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Subscription.prototype, - { - creationTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("creationTime") - ? this.Serializable$get("creationTime") - : null; - }, - set: function (value) { - this.Serializable$set("creationTime", value); - }, - }, - endTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("endTime") - ? this.Serializable$get("endTime") - : null; - }, - set: function (value) { - this.Serializable$set("endTime", value); - }, - }, - errorDetail: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("errorDetail") - ? this.Serializable$get("errorDetail") - : null; - }, - set: function (value) { - this.Serializable$set("errorDetail", value); - }, - }, - etag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("etag") - ? this.Serializable$get("etag") - : null; - }, - set: function (value) { - this.Serializable$set("etag", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - periodEndTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("periodEndTime") - ? this.Serializable$get("periodEndTime") - : null; - }, - set: function (value) { - this.Serializable$set("periodEndTime", value); - }, - }, - scheduledUpdate: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("scheduledUpdate") - ? this.Serializable$get("scheduledUpdate") - : null; - }, - set: function (value) { - this.Serializable$set("scheduledUpdate", value); - }, - }, - startTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startTime") - ? this.Serializable$get("startTime") - : null; - }, - set: function (value) { - this.Serializable$set("startTime", value); - }, - }, - state: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("state") - ? this.Serializable$get("state") - : null; - }, - set: function (value) { - this.Serializable$set("state", value); - }, - }, - trialState: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("trialState") - ? this.Serializable$get("trialState") - : null; - }, - set: function (value) { - this.Serializable$set("trialState", value); - }, - }, - type: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("type") - ? this.Serializable$get("type") - : null; - }, - set: function (value) { - this.Serializable$set("type", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Subscription.prototype, + { + creationTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('creationTime') + ? this.Serializable$get('creationTime') + : null + }, + set: function (value) { + this.Serializable$set('creationTime', value) + }, + }, + endTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('endTime') + ? this.Serializable$get('endTime') + : null + }, + set: function (value) { + this.Serializable$set('endTime', value) + }, + }, + errorDetail: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('errorDetail') + ? this.Serializable$get('errorDetail') + : null + }, + set: function (value) { + this.Serializable$set('errorDetail', value) + }, + }, + etag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('etag') + ? this.Serializable$get('etag') + : null + }, + set: function (value) { + this.Serializable$set('etag', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + periodEndTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('periodEndTime') + ? this.Serializable$get('periodEndTime') + : null + }, + set: function (value) { + this.Serializable$set('periodEndTime', value) + }, + }, + scheduledUpdate: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('scheduledUpdate') + ? this.Serializable$get('scheduledUpdate') + : null + }, + set: function (value) { + this.Serializable$set('scheduledUpdate', value) + }, + }, + startTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startTime') + ? this.Serializable$get('startTime') + : null + }, + set: function (value) { + this.Serializable$set('startTime', value) + }, + }, + state: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('state') + ? this.Serializable$get('state') + : null + }, + set: function (value) { + this.Serializable$set('state', value) + }, + }, + trialState: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('trialState') + ? this.Serializable$get('trialState') + : null + }, + set: function (value) { + this.Serializable$set('trialState', value) + }, + }, + type: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('type') + ? this.Serializable$get('type') + : null + }, + set: function (value) { + this.Serializable$set('type', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Subscription, - { - State: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum; - }, - }, - TrialState: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum; - }, - }, - Type: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TableParameters = function () {}; + module$exports$eeapiclient$ee_api_client.Subscription, + { + State: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.SubscriptionStateEnum + }, + }, + TrialState: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.SubscriptionTrialStateEnum + }, + }, + Type: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.SubscriptionTypeEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TableParameters = function () {} module$exports$eeapiclient$ee_api_client.Table = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "selectors", - null == parameters.selectors ? null : parameters.selectors - ); - this.Serializable$set( - "filename", - null == parameters.filename ? null : parameters.filename - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'selectors', + null == parameters.selectors ? null : parameters.selectors + ) + this.Serializable$set( + 'filename', + null == parameters.filename ? null : parameters.filename + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Table, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Table, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Table.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Table; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Table + } module$exports$eeapiclient$ee_api_client.Table.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.TableFileFormatEnum, - }, - keys: ["expression", "fileFormat", "filename", "name", "selectors"], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.TableFileFormatEnum, + }, + keys: ['expression', 'fileFormat', 'filename', 'name', 'selectors'], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Table.prototype, - { - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - filename: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("filename") - ? this.Serializable$get("filename") - : null; - }, - set: function (value) { - this.Serializable$set("filename", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - selectors: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("selectors") - ? this.Serializable$get("selectors") - : null; - }, - set: function (value) { - this.Serializable$set("selectors", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Table.prototype, + { + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + filename: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('filename') + ? this.Serializable$get('filename') + : null + }, + set: function (value) { + this.Serializable$set('filename', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + selectors: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('selectors') + ? this.Serializable$get('selectors') + : null + }, + set: function (value) { + this.Serializable$set('selectors', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Table, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TableFileFormatEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Table, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TableFileFormatEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TableAssetExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableAssetExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "earthEngineDestination", - null == parameters.earthEngineDestination - ? null - : parameters.earthEngineDestination - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'earthEngineDestination', + null == parameters.earthEngineDestination + ? null + : parameters.earthEngineDestination + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TableAssetExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TableAssetExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TableAssetExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TableAssetExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TableAssetExportOptions + } module$exports$eeapiclient$ee_api_client.TableAssetExportOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: ["earthEngineDestination"], - objects: { - earthEngineDestination: - module$exports$eeapiclient$ee_api_client.EarthEngineDestination, - }, - }; - }; + function () { + return { + keys: ['earthEngineDestination'], + objects: { + earthEngineDestination: + module$exports$eeapiclient$ee_api_client.EarthEngineDestination, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableAssetExportOptions.prototype, - { - earthEngineDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("earthEngineDestination") - ? this.Serializable$get("earthEngineDestination") - : null; - }, - set: function (value) { - this.Serializable$set("earthEngineDestination", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TableAssetExportOptions.prototype, + { + earthEngineDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('earthEngineDestination') + ? this.Serializable$get('earthEngineDestination') + : null + }, + set: function (value) { + this.Serializable$set('earthEngineDestination', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TableFileExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableFileExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "driveDestination", - null == parameters.driveDestination ? null : parameters.driveDestination - ); - this.Serializable$set( - "cloudStorageDestination", - null == parameters.cloudStorageDestination - ? null - : parameters.cloudStorageDestination - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'driveDestination', + null == parameters.driveDestination ? null : parameters.driveDestination + ) + this.Serializable$set( + 'cloudStorageDestination', + null == parameters.cloudStorageDestination + ? null + : parameters.cloudStorageDestination + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TableFileExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TableFileExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TableFileExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TableFileExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TableFileExportOptions + } module$exports$eeapiclient$ee_api_client.TableFileExportOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.TableFileExportOptionsFileFormatEnum, - }, - keys: ["cloudStorageDestination", "driveDestination", "fileFormat"], - objects: { - cloudStorageDestination: - module$exports$eeapiclient$ee_api_client.CloudStorageDestination, - driveDestination: - module$exports$eeapiclient$ee_api_client.DriveDestination, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.TableFileExportOptionsFileFormatEnum, + }, + keys: ['cloudStorageDestination', 'driveDestination', 'fileFormat'], + objects: { + cloudStorageDestination: + module$exports$eeapiclient$ee_api_client.CloudStorageDestination, + driveDestination: + module$exports$eeapiclient$ee_api_client.DriveDestination, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableFileExportOptions.prototype, - { - cloudStorageDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("cloudStorageDestination") - ? this.Serializable$get("cloudStorageDestination") - : null; - }, - set: function (value) { - this.Serializable$set("cloudStorageDestination", value); - }, - }, - driveDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("driveDestination") - ? this.Serializable$get("driveDestination") - : null; - }, - set: function (value) { - this.Serializable$set("driveDestination", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TableFileExportOptions.prototype, + { + cloudStorageDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('cloudStorageDestination') + ? this.Serializable$get('cloudStorageDestination') + : null + }, + set: function (value) { + this.Serializable$set('cloudStorageDestination', value) + }, + }, + driveDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('driveDestination') + ? this.Serializable$get('driveDestination') + : null + }, + set: function (value) { + this.Serializable$set('driveDestination', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableFileExportOptions, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TableFileExportOptionsFileFormatEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TableFileExportOptions, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TableFileExportOptionsFileFormatEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TableLocationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableLocation = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "paths", - null == parameters.paths ? null : parameters.paths - ); - this.Serializable$set( - "sizeBytes", - null == parameters.sizeBytes ? null : parameters.sizeBytes - ); - this.Serializable$set( - "shardCount", - null == parameters.shardCount ? null : parameters.shardCount - ); - this.Serializable$set( - "primaryGeometryColumn", - null == parameters.primaryGeometryColumn - ? null - : parameters.primaryGeometryColumn - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'paths', + null == parameters.paths ? null : parameters.paths + ) + this.Serializable$set( + 'sizeBytes', + null == parameters.sizeBytes ? null : parameters.sizeBytes + ) + this.Serializable$set( + 'shardCount', + null == parameters.shardCount ? null : parameters.shardCount + ) + this.Serializable$set( + 'primaryGeometryColumn', + null == parameters.primaryGeometryColumn + ? null + : parameters.primaryGeometryColumn + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TableLocation, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TableLocation, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TableLocation.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TableLocation; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TableLocation + } module$exports$eeapiclient$ee_api_client.TableLocation.prototype.getPartialClassMetadata = - function () { - return { - keys: ["paths", "primaryGeometryColumn", "shardCount", "sizeBytes"], - }; - }; + function () { + return { + keys: ['paths', 'primaryGeometryColumn', 'shardCount', 'sizeBytes'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableLocation.prototype, - { - paths: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("paths") - ? this.Serializable$get("paths") - : null; - }, - set: function (value) { - this.Serializable$set("paths", value); - }, - }, - primaryGeometryColumn: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("primaryGeometryColumn") - ? this.Serializable$get("primaryGeometryColumn") - : null; - }, - set: function (value) { - this.Serializable$set("primaryGeometryColumn", value); - }, - }, - shardCount: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("shardCount") - ? this.Serializable$get("shardCount") - : null; - }, - set: function (value) { - this.Serializable$set("shardCount", value); - }, - }, - sizeBytes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sizeBytes") - ? this.Serializable$get("sizeBytes") - : null; - }, - set: function (value) { - this.Serializable$set("sizeBytes", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TableLocation.prototype, + { + paths: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('paths') + ? this.Serializable$get('paths') + : null + }, + set: function (value) { + this.Serializable$set('paths', value) + }, + }, + primaryGeometryColumn: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('primaryGeometryColumn') + ? this.Serializable$get('primaryGeometryColumn') + : null + }, + set: function (value) { + this.Serializable$set('primaryGeometryColumn', value) + }, + }, + shardCount: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('shardCount') + ? this.Serializable$get('shardCount') + : null + }, + set: function (value) { + this.Serializable$set('shardCount', value) + }, + }, + sizeBytes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sizeBytes') + ? this.Serializable$get('sizeBytes') + : null + }, + set: function (value) { + this.Serializable$set('sizeBytes', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TableManifestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TableManifest = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "properties", - null == parameters.properties ? null : parameters.properties - ); - this.Serializable$set( - "uriPrefix", - null == parameters.uriPrefix ? null : parameters.uriPrefix - ); - this.Serializable$set( - "sources", - null == parameters.sources ? null : parameters.sources - ); - this.Serializable$set( - "startTime", - null == parameters.startTime ? null : parameters.startTime - ); - this.Serializable$set( - "endTime", - null == parameters.endTime ? null : parameters.endTime - ); - this.Serializable$set( - "csvColumnDataTypeOverrides", - null == parameters.csvColumnDataTypeOverrides - ? null - : parameters.csvColumnDataTypeOverrides - ); - this.Serializable$set( - "policy", - null == parameters.policy ? null : parameters.policy - ); - this.Serializable$set( - "columnDataTypeOverrides", - null == parameters.columnDataTypeOverrides - ? null - : parameters.columnDataTypeOverrides - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'properties', + null == parameters.properties ? null : parameters.properties + ) + this.Serializable$set( + 'uriPrefix', + null == parameters.uriPrefix ? null : parameters.uriPrefix + ) + this.Serializable$set( + 'sources', + null == parameters.sources ? null : parameters.sources + ) + this.Serializable$set( + 'startTime', + null == parameters.startTime ? null : parameters.startTime + ) + this.Serializable$set( + 'endTime', + null == parameters.endTime ? null : parameters.endTime + ) + this.Serializable$set( + 'csvColumnDataTypeOverrides', + null == parameters.csvColumnDataTypeOverrides + ? null + : parameters.csvColumnDataTypeOverrides + ) + this.Serializable$set( + 'policy', + null == parameters.policy ? null : parameters.policy + ) + this.Serializable$set( + 'columnDataTypeOverrides', + null == parameters.columnDataTypeOverrides + ? null + : parameters.columnDataTypeOverrides + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TableManifest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TableManifest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TableManifest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TableManifest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TableManifest + } module$exports$eeapiclient$ee_api_client.TableManifest.prototype.getPartialClassMetadata = - function () { - return { - arrays: { sources: module$exports$eeapiclient$ee_api_client.TableSource }, - enums: { - columnDataTypeOverrides: - module$exports$eeapiclient$ee_api_client.TableManifestColumnDataTypeOverridesEnum, - csvColumnDataTypeOverrides: - module$exports$eeapiclient$ee_api_client.TableManifestCsvColumnDataTypeOverridesEnum, - }, - keys: "columnDataTypeOverrides csvColumnDataTypeOverrides endTime name policy properties sources startTime uriPrefix".split( - " " - ), - objectMaps: { + function () { + return { + arrays: { + sources: module$exports$eeapiclient$ee_api_client.TableSource, + }, + enums: { + columnDataTypeOverrides: + module$exports$eeapiclient$ee_api_client.TableManifestColumnDataTypeOverridesEnum, + csvColumnDataTypeOverrides: + module$exports$eeapiclient$ee_api_client.TableManifestCsvColumnDataTypeOverridesEnum, + }, + keys: 'columnDataTypeOverrides csvColumnDataTypeOverrides endTime name policy properties sources startTime uriPrefix'.split( + ' ' + ), + objectMaps: { + columnDataTypeOverrides: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + csvColumnDataTypeOverrides: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + properties: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { + policy: module$exports$eeapiclient$ee_api_client.Policy, + }, + } + } +$jscomp.global.Object.defineProperties( + module$exports$eeapiclient$ee_api_client.TableManifest.prototype, + { columnDataTypeOverrides: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('columnDataTypeOverrides') + ? this.Serializable$get('columnDataTypeOverrides') + : null + }, + set: function (value) { + this.Serializable$set('columnDataTypeOverrides', value) + }, }, csvColumnDataTypeOverrides: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('csvColumnDataTypeOverrides') + ? this.Serializable$get('csvColumnDataTypeOverrides') + : null + }, + set: function (value) { + this.Serializable$set('csvColumnDataTypeOverrides', value) + }, + }, + endTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('endTime') + ? this.Serializable$get('endTime') + : null + }, + set: function (value) { + this.Serializable$set('endTime', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + policy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('policy') + ? this.Serializable$get('policy') + : null + }, + set: function (value) { + this.Serializable$set('policy', value) + }, }, properties: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { policy: module$exports$eeapiclient$ee_api_client.Policy }, - }; - }; -$jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableManifest.prototype, - { - columnDataTypeOverrides: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("columnDataTypeOverrides") - ? this.Serializable$get("columnDataTypeOverrides") - : null; - }, - set: function (value) { - this.Serializable$set("columnDataTypeOverrides", value); - }, - }, - csvColumnDataTypeOverrides: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("csvColumnDataTypeOverrides") - ? this.Serializable$get("csvColumnDataTypeOverrides") - : null; - }, - set: function (value) { - this.Serializable$set("csvColumnDataTypeOverrides", value); - }, - }, - endTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("endTime") - ? this.Serializable$get("endTime") - : null; - }, - set: function (value) { - this.Serializable$set("endTime", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - policy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("policy") - ? this.Serializable$get("policy") - : null; - }, - set: function (value) { - this.Serializable$set("policy", value); - }, - }, - properties: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("properties") - ? this.Serializable$get("properties") - : null; - }, - set: function (value) { - this.Serializable$set("properties", value); - }, - }, - sources: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sources") - ? this.Serializable$get("sources") - : null; - }, - set: function (value) { - this.Serializable$set("sources", value); - }, - }, - startTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startTime") - ? this.Serializable$get("startTime") - : null; - }, - set: function (value) { - this.Serializable$set("startTime", value); - }, - }, - uriPrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("uriPrefix") - ? this.Serializable$get("uriPrefix") - : null; - }, - set: function (value) { - this.Serializable$set("uriPrefix", value); - }, - }, - } -); + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('properties') + ? this.Serializable$get('properties') + : null + }, + set: function (value) { + this.Serializable$set('properties', value) + }, + }, + sources: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sources') + ? this.Serializable$get('sources') + : null + }, + set: function (value) { + this.Serializable$set('sources', value) + }, + }, + startTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startTime') + ? this.Serializable$get('startTime') + : null + }, + set: function (value) { + this.Serializable$set('startTime', value) + }, + }, + uriPrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('uriPrefix') + ? this.Serializable$get('uriPrefix') + : null + }, + set: function (value) { + this.Serializable$set('uriPrefix', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableManifest, - { - ColumnDataTypeOverrides: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TableManifestColumnDataTypeOverridesEnum; - }, - }, - CsvColumnDataTypeOverrides: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TableManifestCsvColumnDataTypeOverridesEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TableSourceParameters = function () {}; + module$exports$eeapiclient$ee_api_client.TableManifest, + { + ColumnDataTypeOverrides: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TableManifestColumnDataTypeOverridesEnum + }, + }, + CsvColumnDataTypeOverrides: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TableManifestCsvColumnDataTypeOverridesEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TableSourceParameters = function () {} module$exports$eeapiclient$ee_api_client.TableSource = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "uris", - null == parameters.uris ? null : parameters.uris - ); - this.Serializable$set( - "charset", - null == parameters.charset ? null : parameters.charset - ); - this.Serializable$set( - "maxErrorMeters", - null == parameters.maxErrorMeters ? null : parameters.maxErrorMeters - ); - this.Serializable$set( - "maxVertices", - null == parameters.maxVertices ? null : parameters.maxVertices - ); - this.Serializable$set("crs", null == parameters.crs ? null : parameters.crs); - this.Serializable$set( - "geodesic", - null == parameters.geodesic ? null : parameters.geodesic - ); - this.Serializable$set( - "primaryGeometryColumn", - null == parameters.primaryGeometryColumn - ? null - : parameters.primaryGeometryColumn - ); - this.Serializable$set( - "xColumn", - null == parameters.xColumn ? null : parameters.xColumn - ); - this.Serializable$set( - "yColumn", - null == parameters.yColumn ? null : parameters.yColumn - ); - this.Serializable$set( - "dateFormat", - null == parameters.dateFormat ? null : parameters.dateFormat - ); - this.Serializable$set( - "csvDelimiter", - null == parameters.csvDelimiter ? null : parameters.csvDelimiter - ); - this.Serializable$set( - "csvQualifier", - null == parameters.csvQualifier ? null : parameters.csvQualifier - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'uris', + null == parameters.uris ? null : parameters.uris + ) + this.Serializable$set( + 'charset', + null == parameters.charset ? null : parameters.charset + ) + this.Serializable$set( + 'maxErrorMeters', + null == parameters.maxErrorMeters ? null : parameters.maxErrorMeters + ) + this.Serializable$set( + 'maxVertices', + null == parameters.maxVertices ? null : parameters.maxVertices + ) + this.Serializable$set('crs', null == parameters.crs ? null : parameters.crs) + this.Serializable$set( + 'geodesic', + null == parameters.geodesic ? null : parameters.geodesic + ) + this.Serializable$set( + 'primaryGeometryColumn', + null == parameters.primaryGeometryColumn + ? null + : parameters.primaryGeometryColumn + ) + this.Serializable$set( + 'xColumn', + null == parameters.xColumn ? null : parameters.xColumn + ) + this.Serializable$set( + 'yColumn', + null == parameters.yColumn ? null : parameters.yColumn + ) + this.Serializable$set( + 'dateFormat', + null == parameters.dateFormat ? null : parameters.dateFormat + ) + this.Serializable$set( + 'csvDelimiter', + null == parameters.csvDelimiter ? null : parameters.csvDelimiter + ) + this.Serializable$set( + 'csvQualifier', + null == parameters.csvQualifier ? null : parameters.csvQualifier + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TableSource, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TableSource, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TableSource.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TableSource; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TableSource + } module$exports$eeapiclient$ee_api_client.TableSource.prototype.getPartialClassMetadata = - function () { - return { - keys: "charset crs csvDelimiter csvQualifier dateFormat geodesic maxErrorMeters maxVertices primaryGeometryColumn uris xColumn yColumn".split( - " " - ), - }; - }; + function () { + return { + keys: 'charset crs csvDelimiter csvQualifier dateFormat geodesic maxErrorMeters maxVertices primaryGeometryColumn uris xColumn yColumn'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TableSource.prototype, - { - charset: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("charset") - ? this.Serializable$get("charset") - : null; - }, - set: function (value) { - this.Serializable$set("charset", value); - }, - }, - crs: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("crs") - ? this.Serializable$get("crs") - : null; - }, - set: function (value) { - this.Serializable$set("crs", value); - }, - }, - csvDelimiter: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("csvDelimiter") - ? this.Serializable$get("csvDelimiter") - : null; - }, - set: function (value) { - this.Serializable$set("csvDelimiter", value); - }, - }, - csvQualifier: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("csvQualifier") - ? this.Serializable$get("csvQualifier") - : null; - }, - set: function (value) { - this.Serializable$set("csvQualifier", value); - }, - }, - dateFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dateFormat") - ? this.Serializable$get("dateFormat") - : null; - }, - set: function (value) { - this.Serializable$set("dateFormat", value); - }, - }, - geodesic: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("geodesic") - ? this.Serializable$get("geodesic") - : null; - }, - set: function (value) { - this.Serializable$set("geodesic", value); - }, - }, - maxErrorMeters: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxErrorMeters") - ? this.Serializable$get("maxErrorMeters") - : null; - }, - set: function (value) { - this.Serializable$set("maxErrorMeters", value); - }, - }, - maxVertices: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxVertices") - ? this.Serializable$get("maxVertices") - : null; - }, - set: function (value) { - this.Serializable$set("maxVertices", value); - }, - }, - primaryGeometryColumn: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("primaryGeometryColumn") - ? this.Serializable$get("primaryGeometryColumn") - : null; - }, - set: function (value) { - this.Serializable$set("primaryGeometryColumn", value); - }, - }, - uris: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("uris") - ? this.Serializable$get("uris") - : null; - }, - set: function (value) { - this.Serializable$set("uris", value); - }, - }, - xColumn: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("xColumn") - ? this.Serializable$get("xColumn") - : null; - }, - set: function (value) { - this.Serializable$set("xColumn", value); - }, - }, - yColumn: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("yColumn") - ? this.Serializable$get("yColumn") - : null; - }, - set: function (value) { - this.Serializable$set("yColumn", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TableSource.prototype, + { + charset: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('charset') + ? this.Serializable$get('charset') + : null + }, + set: function (value) { + this.Serializable$set('charset', value) + }, + }, + crs: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('crs') + ? this.Serializable$get('crs') + : null + }, + set: function (value) { + this.Serializable$set('crs', value) + }, + }, + csvDelimiter: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('csvDelimiter') + ? this.Serializable$get('csvDelimiter') + : null + }, + set: function (value) { + this.Serializable$set('csvDelimiter', value) + }, + }, + csvQualifier: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('csvQualifier') + ? this.Serializable$get('csvQualifier') + : null + }, + set: function (value) { + this.Serializable$set('csvQualifier', value) + }, + }, + dateFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dateFormat') + ? this.Serializable$get('dateFormat') + : null + }, + set: function (value) { + this.Serializable$set('dateFormat', value) + }, + }, + geodesic: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('geodesic') + ? this.Serializable$get('geodesic') + : null + }, + set: function (value) { + this.Serializable$set('geodesic', value) + }, + }, + maxErrorMeters: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxErrorMeters') + ? this.Serializable$get('maxErrorMeters') + : null + }, + set: function (value) { + this.Serializable$set('maxErrorMeters', value) + }, + }, + maxVertices: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxVertices') + ? this.Serializable$get('maxVertices') + : null + }, + set: function (value) { + this.Serializable$set('maxVertices', value) + }, + }, + primaryGeometryColumn: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('primaryGeometryColumn') + ? this.Serializable$get('primaryGeometryColumn') + : null + }, + set: function (value) { + this.Serializable$set('primaryGeometryColumn', value) + }, + }, + uris: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('uris') + ? this.Serializable$get('uris') + : null + }, + set: function (value) { + this.Serializable$set('uris', value) + }, + }, + xColumn: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('xColumn') + ? this.Serializable$get('xColumn') + : null + }, + set: function (value) { + this.Serializable$set('xColumn', value) + }, + }, + yColumn: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('yColumn') + ? this.Serializable$get('yColumn') + : null + }, + set: function (value) { + this.Serializable$set('yColumn', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest = - function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "terminationType", - null == parameters.terminationType ? null : parameters.terminationType - ); - this.Serializable$set( - "etag", - null == parameters.etag ? null : parameters.etag - ); - }; + function (parameters) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'terminationType', + null == parameters.terminationType + ? null + : parameters.terminationType + ) + this.Serializable$set( + 'etag', + null == parameters.etag ? null : parameters.etag + ) + } $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest + } module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest.prototype.getPartialClassMetadata = - function () { - return { - enums: { - terminationType: - module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequestTerminationTypeEnum, - }, - keys: ["etag", "terminationType"], - }; - }; + function () { + return { + enums: { + terminationType: + module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequestTerminationTypeEnum, + }, + keys: ['etag', 'terminationType'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest - .prototype, - { - etag: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("etag") - ? this.Serializable$get("etag") - : null; - }, - set: function (value) { - this.Serializable$set("etag", value); - }, - }, - terminationType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("terminationType") - ? this.Serializable$get("terminationType") - : null; - }, - set: function (value) { - this.Serializable$set("terminationType", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest + .prototype, + { + etag: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('etag') + ? this.Serializable$get('etag') + : null + }, + set: function (value) { + this.Serializable$set('etag', value) + }, + }, + terminationType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('terminationType') + ? this.Serializable$get('terminationType') + : null + }, + set: function (value) { + this.Serializable$set('terminationType', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest, - { - TerminationType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequestTerminationTypeEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequest, + { + TerminationType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TerminateSubscriptionRequestTerminationTypeEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "permissions", - null == parameters.permissions ? null : parameters.permissions - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'permissions', + null == parameters.permissions ? null : parameters.permissions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest + } module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest.prototype.getPartialClassMetadata = - function () { - return { keys: ["permissions"] }; - }; + function () { + return { keys: ['permissions'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest.prototype, - { - permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissions") - ? this.Serializable$get("permissions") - : null; - }, - set: function (value) { - this.Serializable$set("permissions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TestIamPermissionsRequest + .prototype, + { + permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissions') + ? this.Serializable$get('permissions') + : null + }, + set: function (value) { + this.Serializable$set('permissions', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponseParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "permissions", - null == parameters.permissions ? null : parameters.permissions - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'permissions', + null == parameters.permissions ? null : parameters.permissions + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse + } module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse.prototype.getPartialClassMetadata = - function () { - return { keys: ["permissions"] }; - }; + function () { + return { keys: ['permissions'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse.prototype, - { - permissions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("permissions") - ? this.Serializable$get("permissions") - : null; - }, - set: function (value) { - this.Serializable$set("permissions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse + .prototype, + { + permissions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('permissions') + ? this.Serializable$get('permissions') + : null + }, + set: function (value) { + this.Serializable$set('permissions', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "tileDimensions", - null == parameters.tileDimensions ? null : parameters.tileDimensions - ); - this.Serializable$set( - "marginDimensions", - null == parameters.marginDimensions ? null : parameters.marginDimensions - ); - this.Serializable$set( - "compress", - null == parameters.compress ? null : parameters.compress - ); - this.Serializable$set( - "maxSizeBytes", - null == parameters.maxSizeBytes ? null : parameters.maxSizeBytes - ); - this.Serializable$set( - "defaultValue", - null == parameters.defaultValue ? null : parameters.defaultValue - ); - this.Serializable$set( - "tensorDepths", - null == parameters.tensorDepths ? null : parameters.tensorDepths - ); - this.Serializable$set( - "sequenceData", - null == parameters.sequenceData ? null : parameters.sequenceData - ); - this.Serializable$set( - "collapseBands", - null == parameters.collapseBands ? null : parameters.collapseBands - ); - this.Serializable$set( - "maxMaskedRatio", - null == parameters.maxMaskedRatio ? null : parameters.maxMaskedRatio - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'tileDimensions', + null == parameters.tileDimensions ? null : parameters.tileDimensions + ) + this.Serializable$set( + 'marginDimensions', + null == parameters.marginDimensions ? null : parameters.marginDimensions + ) + this.Serializable$set( + 'compress', + null == parameters.compress ? null : parameters.compress + ) + this.Serializable$set( + 'maxSizeBytes', + null == parameters.maxSizeBytes ? null : parameters.maxSizeBytes + ) + this.Serializable$set( + 'defaultValue', + null == parameters.defaultValue ? null : parameters.defaultValue + ) + this.Serializable$set( + 'tensorDepths', + null == parameters.tensorDepths ? null : parameters.tensorDepths + ) + this.Serializable$set( + 'sequenceData', + null == parameters.sequenceData ? null : parameters.sequenceData + ) + this.Serializable$set( + 'collapseBands', + null == parameters.collapseBands ? null : parameters.collapseBands + ) + this.Serializable$set( + 'maxMaskedRatio', + null == parameters.maxMaskedRatio ? null : parameters.maxMaskedRatio + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions + } module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: "collapseBands compress defaultValue marginDimensions maxMaskedRatio maxSizeBytes sequenceData tensorDepths tileDimensions".split( - " " - ), - objectMaps: { - tensorDepths: { - ctor: null, - isPropertyArray: !1, - isSerializable: !1, - isValueArray: !1, - }, - }, - objects: { - marginDimensions: - module$exports$eeapiclient$ee_api_client.GridDimensions, - tileDimensions: module$exports$eeapiclient$ee_api_client.GridDimensions, - }, - }; - }; + function () { + return { + keys: 'collapseBands compress defaultValue marginDimensions maxMaskedRatio maxSizeBytes sequenceData tensorDepths tileDimensions'.split( + ' ' + ), + objectMaps: { + tensorDepths: { + ctor: null, + isPropertyArray: !1, + isSerializable: !1, + isValueArray: !1, + }, + }, + objects: { + marginDimensions: + module$exports$eeapiclient$ee_api_client.GridDimensions, + tileDimensions: + module$exports$eeapiclient$ee_api_client.GridDimensions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions.prototype, - { - collapseBands: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("collapseBands") - ? this.Serializable$get("collapseBands") - : null; - }, - set: function (value) { - this.Serializable$set("collapseBands", value); - }, - }, - compress: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("compress") - ? this.Serializable$get("compress") - : null; - }, - set: function (value) { - this.Serializable$set("compress", value); - }, - }, - defaultValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("defaultValue") - ? this.Serializable$get("defaultValue") - : null; - }, - set: function (value) { - this.Serializable$set("defaultValue", value); - }, - }, - marginDimensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("marginDimensions") - ? this.Serializable$get("marginDimensions") - : null; - }, - set: function (value) { - this.Serializable$set("marginDimensions", value); - }, - }, - maxMaskedRatio: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxMaskedRatio") - ? this.Serializable$get("maxMaskedRatio") - : null; - }, - set: function (value) { - this.Serializable$set("maxMaskedRatio", value); - }, - }, - maxSizeBytes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxSizeBytes") - ? this.Serializable$get("maxSizeBytes") - : null; - }, - set: function (value) { - this.Serializable$set("maxSizeBytes", value); - }, - }, - sequenceData: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sequenceData") - ? this.Serializable$get("sequenceData") - : null; - }, - set: function (value) { - this.Serializable$set("sequenceData", value); - }, - }, - tensorDepths: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tensorDepths") - ? this.Serializable$get("tensorDepths") - : null; - }, - set: function (value) { - this.Serializable$set("tensorDepths", value); - }, - }, - tileDimensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tileDimensions") - ? this.Serializable$get("tileDimensions") - : null; - }, - set: function (value) { - this.Serializable$set("tileDimensions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TfRecordImageExportOptions + .prototype, + { + collapseBands: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('collapseBands') + ? this.Serializable$get('collapseBands') + : null + }, + set: function (value) { + this.Serializable$set('collapseBands', value) + }, + }, + compress: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('compress') + ? this.Serializable$get('compress') + : null + }, + set: function (value) { + this.Serializable$set('compress', value) + }, + }, + defaultValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('defaultValue') + ? this.Serializable$get('defaultValue') + : null + }, + set: function (value) { + this.Serializable$set('defaultValue', value) + }, + }, + marginDimensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('marginDimensions') + ? this.Serializable$get('marginDimensions') + : null + }, + set: function (value) { + this.Serializable$set('marginDimensions', value) + }, + }, + maxMaskedRatio: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxMaskedRatio') + ? this.Serializable$get('maxMaskedRatio') + : null + }, + set: function (value) { + this.Serializable$set('maxMaskedRatio', value) + }, + }, + maxSizeBytes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxSizeBytes') + ? this.Serializable$get('maxSizeBytes') + : null + }, + set: function (value) { + this.Serializable$set('maxSizeBytes', value) + }, + }, + sequenceData: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sequenceData') + ? this.Serializable$get('sequenceData') + : null + }, + set: function (value) { + this.Serializable$set('sequenceData', value) + }, + }, + tensorDepths: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tensorDepths') + ? this.Serializable$get('tensorDepths') + : null + }, + set: function (value) { + this.Serializable$set('tensorDepths', value) + }, + }, + tileDimensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tileDimensions') + ? this.Serializable$get('tileDimensions') + : null + }, + set: function (value) { + this.Serializable$set('tileDimensions', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.ThinningOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ThinningOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "maxFeaturesPerTile", - null == parameters.maxFeaturesPerTile ? null : parameters.maxFeaturesPerTile - ); - this.Serializable$set( - "thinningStrategy", - null == parameters.thinningStrategy ? null : parameters.thinningStrategy - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'maxFeaturesPerTile', + null == parameters.maxFeaturesPerTile + ? null + : parameters.maxFeaturesPerTile + ) + this.Serializable$set( + 'thinningStrategy', + null == parameters.thinningStrategy ? null : parameters.thinningStrategy + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ThinningOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ThinningOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ThinningOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ThinningOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ThinningOptions + } module$exports$eeapiclient$ee_api_client.ThinningOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - thinningStrategy: - module$exports$eeapiclient$ee_api_client.ThinningOptionsThinningStrategyEnum, - }, - keys: ["maxFeaturesPerTile", "thinningStrategy"], - }; - }; + function () { + return { + enums: { + thinningStrategy: + module$exports$eeapiclient$ee_api_client.ThinningOptionsThinningStrategyEnum, + }, + keys: ['maxFeaturesPerTile', 'thinningStrategy'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ThinningOptions.prototype, - { - maxFeaturesPerTile: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxFeaturesPerTile") - ? this.Serializable$get("maxFeaturesPerTile") - : null; - }, - set: function (value) { - this.Serializable$set("maxFeaturesPerTile", value); - }, - }, - thinningStrategy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("thinningStrategy") - ? this.Serializable$get("thinningStrategy") - : null; - }, - set: function (value) { - this.Serializable$set("thinningStrategy", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ThinningOptions.prototype, + { + maxFeaturesPerTile: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxFeaturesPerTile') + ? this.Serializable$get('maxFeaturesPerTile') + : null + }, + set: function (value) { + this.Serializable$set('maxFeaturesPerTile', value) + }, + }, + thinningStrategy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('thinningStrategy') + ? this.Serializable$get('thinningStrategy') + : null + }, + set: function (value) { + this.Serializable$set('thinningStrategy', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ThinningOptions, - { - ThinningStrategy: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ThinningOptionsThinningStrategyEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ThumbnailParameters = function () {}; + module$exports$eeapiclient$ee_api_client.ThinningOptions, + { + ThinningStrategy: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ThinningOptionsThinningStrategyEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ThumbnailParameters = function () {} module$exports$eeapiclient$ee_api_client.Thumbnail = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "bandIds", - null == parameters.bandIds ? null : parameters.bandIds - ); - this.Serializable$set( - "visualizationOptions", - null == parameters.visualizationOptions - ? null - : parameters.visualizationOptions - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); - this.Serializable$set( - "filenamePrefix", - null == parameters.filenamePrefix ? null : parameters.filenamePrefix - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'bandIds', + null == parameters.bandIds ? null : parameters.bandIds + ) + this.Serializable$set( + 'visualizationOptions', + null == parameters.visualizationOptions + ? null + : parameters.visualizationOptions + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) + this.Serializable$set( + 'filenamePrefix', + null == parameters.filenamePrefix ? null : parameters.filenamePrefix + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Thumbnail, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Thumbnail, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Thumbnail.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Thumbnail; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Thumbnail + } module$exports$eeapiclient$ee_api_client.Thumbnail.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum, - }, - keys: "bandIds expression fileFormat filenamePrefix grid name visualizationOptions".split( - " " - ), - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - visualizationOptions: - module$exports$eeapiclient$ee_api_client.VisualizationOptions, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum, + }, + keys: 'bandIds expression fileFormat filenamePrefix grid name visualizationOptions'.split( + ' ' + ), + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + visualizationOptions: + module$exports$eeapiclient$ee_api_client.VisualizationOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Thumbnail.prototype, - { - bandIds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandIds") - ? this.Serializable$get("bandIds") - : null; - }, - set: function (value) { - this.Serializable$set("bandIds", value); - }, - }, - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - filenamePrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("filenamePrefix") - ? this.Serializable$get("filenamePrefix") - : null; - }, - set: function (value) { - this.Serializable$set("filenamePrefix", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - visualizationOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("visualizationOptions") - ? this.Serializable$get("visualizationOptions") - : null; - }, - set: function (value) { - this.Serializable$set("visualizationOptions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Thumbnail.prototype, + { + bandIds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandIds') + ? this.Serializable$get('bandIds') + : null + }, + set: function (value) { + this.Serializable$set('bandIds', value) + }, + }, + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + filenamePrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('filenamePrefix') + ? this.Serializable$get('filenamePrefix') + : null + }, + set: function (value) { + this.Serializable$set('filenamePrefix', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + visualizationOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('visualizationOptions') + ? this.Serializable$get('visualizationOptions') + : null + }, + set: function (value) { + this.Serializable$set('visualizationOptions', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Thumbnail, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TileLimitingParameters = - function () {}; + module$exports$eeapiclient$ee_api_client.Thumbnail, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.ThumbnailFileFormatEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TileLimitingParameters = function () {} module$exports$eeapiclient$ee_api_client.TileLimiting = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "maxPrerenderZoom", - null == parameters.maxPrerenderZoom ? null : parameters.maxPrerenderZoom - ); - this.Serializable$set( - "minVerticesPerTile", - null == parameters.minVerticesPerTile ? null : parameters.minVerticesPerTile - ); - this.Serializable$set( - "neighborDepth", - null == parameters.neighborDepth ? null : parameters.neighborDepth - ); - this.Serializable$set( - "minFeaturesPerTile", - null == parameters.minFeaturesPerTile ? null : parameters.minFeaturesPerTile - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'maxPrerenderZoom', + null == parameters.maxPrerenderZoom ? null : parameters.maxPrerenderZoom + ) + this.Serializable$set( + 'minVerticesPerTile', + null == parameters.minVerticesPerTile + ? null + : parameters.minVerticesPerTile + ) + this.Serializable$set( + 'neighborDepth', + null == parameters.neighborDepth ? null : parameters.neighborDepth + ) + this.Serializable$set( + 'minFeaturesPerTile', + null == parameters.minFeaturesPerTile + ? null + : parameters.minFeaturesPerTile + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TileLimiting, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TileLimiting, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TileLimiting.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TileLimiting; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TileLimiting + } module$exports$eeapiclient$ee_api_client.TileLimiting.prototype.getPartialClassMetadata = - function () { - return { - keys: [ - "maxPrerenderZoom", - "minFeaturesPerTile", - "minVerticesPerTile", - "neighborDepth", - ], - }; - }; + function () { + return { + keys: [ + 'maxPrerenderZoom', + 'minFeaturesPerTile', + 'minVerticesPerTile', + 'neighborDepth', + ], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TileLimiting.prototype, - { - maxPrerenderZoom: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxPrerenderZoom") - ? this.Serializable$get("maxPrerenderZoom") - : null; - }, - set: function (value) { - this.Serializable$set("maxPrerenderZoom", value); - }, - }, - minFeaturesPerTile: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("minFeaturesPerTile") - ? this.Serializable$get("minFeaturesPerTile") - : null; - }, - set: function (value) { - this.Serializable$set("minFeaturesPerTile", value); - }, - }, - minVerticesPerTile: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("minVerticesPerTile") - ? this.Serializable$get("minVerticesPerTile") - : null; - }, - set: function (value) { - this.Serializable$set("minVerticesPerTile", value); - }, - }, - neighborDepth: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("neighborDepth") - ? this.Serializable$get("neighborDepth") - : null; - }, - set: function (value) { - this.Serializable$set("neighborDepth", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TileOptionsParameters = function () {}; + module$exports$eeapiclient$ee_api_client.TileLimiting.prototype, + { + maxPrerenderZoom: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxPrerenderZoom') + ? this.Serializable$get('maxPrerenderZoom') + : null + }, + set: function (value) { + this.Serializable$set('maxPrerenderZoom', value) + }, + }, + minFeaturesPerTile: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('minFeaturesPerTile') + ? this.Serializable$get('minFeaturesPerTile') + : null + }, + set: function (value) { + this.Serializable$set('minFeaturesPerTile', value) + }, + }, + minVerticesPerTile: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('minVerticesPerTile') + ? this.Serializable$get('minVerticesPerTile') + : null + }, + set: function (value) { + this.Serializable$set('minVerticesPerTile', value) + }, + }, + neighborDepth: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('neighborDepth') + ? this.Serializable$get('neighborDepth') + : null + }, + set: function (value) { + this.Serializable$set('neighborDepth', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TileOptionsParameters = function () {} module$exports$eeapiclient$ee_api_client.TileOptions = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "endZoom", - null == parameters.endZoom ? null : parameters.endZoom - ); - this.Serializable$set( - "scale", - null == parameters.scale ? null : parameters.scale - ); - this.Serializable$set( - "startZoom", - null == parameters.startZoom ? null : parameters.startZoom - ); - this.Serializable$set( - "skipEmpty", - null == parameters.skipEmpty ? null : parameters.skipEmpty - ); - this.Serializable$set( - "mapsApiKey", - null == parameters.mapsApiKey ? null : parameters.mapsApiKey - ); - this.Serializable$set( - "dimensions", - null == parameters.dimensions ? null : parameters.dimensions - ); - this.Serializable$set( - "stride", - null == parameters.stride ? null : parameters.stride - ); - this.Serializable$set( - "zoomSubset", - null == parameters.zoomSubset ? null : parameters.zoomSubset - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'endZoom', + null == parameters.endZoom ? null : parameters.endZoom + ) + this.Serializable$set( + 'scale', + null == parameters.scale ? null : parameters.scale + ) + this.Serializable$set( + 'startZoom', + null == parameters.startZoom ? null : parameters.startZoom + ) + this.Serializable$set( + 'skipEmpty', + null == parameters.skipEmpty ? null : parameters.skipEmpty + ) + this.Serializable$set( + 'mapsApiKey', + null == parameters.mapsApiKey ? null : parameters.mapsApiKey + ) + this.Serializable$set( + 'dimensions', + null == parameters.dimensions ? null : parameters.dimensions + ) + this.Serializable$set( + 'stride', + null == parameters.stride ? null : parameters.stride + ) + this.Serializable$set( + 'zoomSubset', + null == parameters.zoomSubset ? null : parameters.zoomSubset + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TileOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TileOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TileOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TileOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TileOptions + } module$exports$eeapiclient$ee_api_client.TileOptions.prototype.getPartialClassMetadata = - function () { - return { - keys: "dimensions endZoom mapsApiKey scale skipEmpty startZoom stride zoomSubset".split( - " " - ), - objects: { - dimensions: module$exports$eeapiclient$ee_api_client.GridDimensions, - zoomSubset: module$exports$eeapiclient$ee_api_client.ZoomSubset, - }, - }; - }; + function () { + return { + keys: 'dimensions endZoom mapsApiKey scale skipEmpty startZoom stride zoomSubset'.split( + ' ' + ), + objects: { + dimensions: + module$exports$eeapiclient$ee_api_client.GridDimensions, + zoomSubset: module$exports$eeapiclient$ee_api_client.ZoomSubset, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TileOptions.prototype, - { - dimensions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dimensions") - ? this.Serializable$get("dimensions") - : null; - }, - set: function (value) { - this.Serializable$set("dimensions", value); - }, - }, - endZoom: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("endZoom") - ? this.Serializable$get("endZoom") - : null; - }, - set: function (value) { - this.Serializable$set("endZoom", value); - }, - }, - mapsApiKey: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("mapsApiKey") - ? this.Serializable$get("mapsApiKey") - : null; - }, - set: function (value) { - this.Serializable$set("mapsApiKey", value); - }, - }, - scale: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("scale") - ? this.Serializable$get("scale") - : null; - }, - set: function (value) { - this.Serializable$set("scale", value); - }, - }, - skipEmpty: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("skipEmpty") - ? this.Serializable$get("skipEmpty") - : null; - }, - set: function (value) { - this.Serializable$set("skipEmpty", value); - }, - }, - startZoom: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startZoom") - ? this.Serializable$get("startZoom") - : null; - }, - set: function (value) { - this.Serializable$set("startZoom", value); - }, - }, - stride: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("stride") - ? this.Serializable$get("stride") - : null; - }, - set: function (value) { - this.Serializable$set("stride", value); - }, - }, - zoomSubset: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("zoomSubset") - ? this.Serializable$get("zoomSubset") - : null; - }, - set: function (value) { - this.Serializable$set("zoomSubset", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TilesetParameters = function () {}; + module$exports$eeapiclient$ee_api_client.TileOptions.prototype, + { + dimensions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dimensions') + ? this.Serializable$get('dimensions') + : null + }, + set: function (value) { + this.Serializable$set('dimensions', value) + }, + }, + endZoom: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('endZoom') + ? this.Serializable$get('endZoom') + : null + }, + set: function (value) { + this.Serializable$set('endZoom', value) + }, + }, + mapsApiKey: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('mapsApiKey') + ? this.Serializable$get('mapsApiKey') + : null + }, + set: function (value) { + this.Serializable$set('mapsApiKey', value) + }, + }, + scale: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('scale') + ? this.Serializable$get('scale') + : null + }, + set: function (value) { + this.Serializable$set('scale', value) + }, + }, + skipEmpty: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('skipEmpty') + ? this.Serializable$get('skipEmpty') + : null + }, + set: function (value) { + this.Serializable$set('skipEmpty', value) + }, + }, + startZoom: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startZoom') + ? this.Serializable$get('startZoom') + : null + }, + set: function (value) { + this.Serializable$set('startZoom', value) + }, + }, + stride: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('stride') + ? this.Serializable$get('stride') + : null + }, + set: function (value) { + this.Serializable$set('stride', value) + }, + }, + zoomSubset: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('zoomSubset') + ? this.Serializable$get('zoomSubset') + : null + }, + set: function (value) { + this.Serializable$set('zoomSubset', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TilesetParameters = function () {} module$exports$eeapiclient$ee_api_client.Tileset = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set("id", null == parameters.id ? null : parameters.id); - this.Serializable$set( - "sources", - null == parameters.sources ? null : parameters.sources - ); - this.Serializable$set( - "dataType", - null == parameters.dataType ? null : parameters.dataType - ); - this.Serializable$set("crs", null == parameters.crs ? null : parameters.crs); - this.Serializable$set( - "subdatasetPrefix", - null == parameters.subdatasetPrefix ? null : parameters.subdatasetPrefix - ); - this.Serializable$set( - "subdatasetSuffix", - null == parameters.subdatasetSuffix ? null : parameters.subdatasetSuffix - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set('id', null == parameters.id ? null : parameters.id) + this.Serializable$set( + 'sources', + null == parameters.sources ? null : parameters.sources + ) + this.Serializable$set( + 'dataType', + null == parameters.dataType ? null : parameters.dataType + ) + this.Serializable$set('crs', null == parameters.crs ? null : parameters.crs) + this.Serializable$set( + 'subdatasetPrefix', + null == parameters.subdatasetPrefix ? null : parameters.subdatasetPrefix + ) + this.Serializable$set( + 'subdatasetSuffix', + null == parameters.subdatasetSuffix ? null : parameters.subdatasetSuffix + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.Tileset, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.Tileset, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.Tileset.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.Tileset; - }; + function () { + return module$exports$eeapiclient$ee_api_client.Tileset + } module$exports$eeapiclient$ee_api_client.Tileset.prototype.getPartialClassMetadata = - function () { - return { - arrays: { sources: module$exports$eeapiclient$ee_api_client.ImageSource }, - enums: { - dataType: module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum, - }, - keys: "crs dataType id sources subdatasetPrefix subdatasetSuffix".split( - " " - ), - }; - }; + function () { + return { + arrays: { + sources: module$exports$eeapiclient$ee_api_client.ImageSource, + }, + enums: { + dataType: + module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum, + }, + keys: 'crs dataType id sources subdatasetPrefix subdatasetSuffix'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Tileset.prototype, - { - crs: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("crs") - ? this.Serializable$get("crs") - : null; - }, - set: function (value) { - this.Serializable$set("crs", value); - }, - }, - dataType: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dataType") - ? this.Serializable$get("dataType") - : null; - }, - set: function (value) { - this.Serializable$set("dataType", value); - }, - }, - id: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("id") ? this.Serializable$get("id") : null; - }, - set: function (value) { - this.Serializable$set("id", value); - }, - }, - sources: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sources") - ? this.Serializable$get("sources") - : null; - }, - set: function (value) { - this.Serializable$set("sources", value); - }, - }, - subdatasetPrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("subdatasetPrefix") - ? this.Serializable$get("subdatasetPrefix") - : null; - }, - set: function (value) { - this.Serializable$set("subdatasetPrefix", value); - }, - }, - subdatasetSuffix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("subdatasetSuffix") - ? this.Serializable$get("subdatasetSuffix") - : null; - }, - set: function (value) { - this.Serializable$set("subdatasetSuffix", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.Tileset.prototype, + { + crs: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('crs') + ? this.Serializable$get('crs') + : null + }, + set: function (value) { + this.Serializable$set('crs', value) + }, + }, + dataType: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dataType') + ? this.Serializable$get('dataType') + : null + }, + set: function (value) { + this.Serializable$set('dataType', value) + }, + }, + id: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('id') + ? this.Serializable$get('id') + : null + }, + set: function (value) { + this.Serializable$set('id', value) + }, + }, + sources: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sources') + ? this.Serializable$get('sources') + : null + }, + set: function (value) { + this.Serializable$set('sources', value) + }, + }, + subdatasetPrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('subdatasetPrefix') + ? this.Serializable$get('subdatasetPrefix') + : null + }, + set: function (value) { + this.Serializable$set('subdatasetPrefix', value) + }, + }, + subdatasetSuffix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('subdatasetSuffix') + ? this.Serializable$get('subdatasetSuffix') + : null + }, + set: function (value) { + this.Serializable$set('subdatasetSuffix', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.Tileset, - { - DataType: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TilesetBandParameters = function () {}; + module$exports$eeapiclient$ee_api_client.Tileset, + { + DataType: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TilesetBandParameters = function () {} module$exports$eeapiclient$ee_api_client.TilesetBand = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set("id", null == parameters.id ? null : parameters.id); - this.Serializable$set( - "tilesetId", - null == parameters.tilesetId ? null : parameters.tilesetId - ); - this.Serializable$set( - "tilesetBandIndex", - null == parameters.tilesetBandIndex ? null : parameters.tilesetBandIndex - ); - this.Serializable$set( - "missingData", - null == parameters.missingData ? null : parameters.missingData - ); - this.Serializable$set( - "pyramidingPolicy", - null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set('id', null == parameters.id ? null : parameters.id) + this.Serializable$set( + 'tilesetId', + null == parameters.tilesetId ? null : parameters.tilesetId + ) + this.Serializable$set( + 'tilesetBandIndex', + null == parameters.tilesetBandIndex ? null : parameters.tilesetBandIndex + ) + this.Serializable$set( + 'missingData', + null == parameters.missingData ? null : parameters.missingData + ) + this.Serializable$set( + 'pyramidingPolicy', + null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TilesetBand, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TilesetBand, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TilesetBand.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TilesetBand; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TilesetBand + } module$exports$eeapiclient$ee_api_client.TilesetBand.prototype.getPartialClassMetadata = - function () { - return { - enums: { - pyramidingPolicy: - module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum, - }, - keys: [ - "id", - "missingData", - "pyramidingPolicy", - "tilesetBandIndex", - "tilesetId", - ], - objects: { - missingData: module$exports$eeapiclient$ee_api_client.MissingData, - }, - }; - }; + function () { + return { + enums: { + pyramidingPolicy: + module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum, + }, + keys: [ + 'id', + 'missingData', + 'pyramidingPolicy', + 'tilesetBandIndex', + 'tilesetId', + ], + objects: { + missingData: + module$exports$eeapiclient$ee_api_client.MissingData, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TilesetBand.prototype, - { - id: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("id") ? this.Serializable$get("id") : null; - }, - set: function (value) { - this.Serializable$set("id", value); - }, - }, - missingData: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("missingData") - ? this.Serializable$get("missingData") - : null; - }, - set: function (value) { - this.Serializable$set("missingData", value); - }, - }, - pyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pyramidingPolicy") - ? this.Serializable$get("pyramidingPolicy") - : null; - }, - set: function (value) { - this.Serializable$set("pyramidingPolicy", value); - }, - }, - tilesetBandIndex: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesetBandIndex") - ? this.Serializable$get("tilesetBandIndex") - : null; - }, - set: function (value) { - this.Serializable$set("tilesetBandIndex", value); - }, - }, - tilesetId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesetId") - ? this.Serializable$get("tilesetId") - : null; - }, - set: function (value) { - this.Serializable$set("tilesetId", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TilesetBand.prototype, + { + id: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('id') + ? this.Serializable$get('id') + : null + }, + set: function (value) { + this.Serializable$set('id', value) + }, + }, + missingData: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('missingData') + ? this.Serializable$get('missingData') + : null + }, + set: function (value) { + this.Serializable$set('missingData', value) + }, + }, + pyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pyramidingPolicy') + ? this.Serializable$get('pyramidingPolicy') + : null + }, + set: function (value) { + this.Serializable$set('pyramidingPolicy', value) + }, + }, + tilesetBandIndex: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesetBandIndex') + ? this.Serializable$get('tilesetBandIndex') + : null + }, + set: function (value) { + this.Serializable$set('tilesetBandIndex', value) + }, + }, + tilesetId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesetId') + ? this.Serializable$get('tilesetId') + : null + }, + set: function (value) { + this.Serializable$set('tilesetId', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TilesetBand, - { - PyramidingPolicy: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TilesetBand, + { + PyramidingPolicy: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TilesetBandPyramidingPolicyEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TilesetMaskBandParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TilesetMaskBand = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "tilesetId", - null == parameters.tilesetId ? null : parameters.tilesetId - ); - this.Serializable$set( - "bandIds", - null == parameters.bandIds ? null : parameters.bandIds - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'tilesetId', + null == parameters.tilesetId ? null : parameters.tilesetId + ) + this.Serializable$set( + 'bandIds', + null == parameters.bandIds ? null : parameters.bandIds + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TilesetMaskBand, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TilesetMaskBand, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TilesetMaskBand.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TilesetMaskBand; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TilesetMaskBand + } module$exports$eeapiclient$ee_api_client.TilesetMaskBand.prototype.getPartialClassMetadata = - function () { - return { keys: ["bandIds", "tilesetId"] }; - }; + function () { + return { keys: ['bandIds', 'tilesetId'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TilesetMaskBand.prototype, - { - bandIds: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bandIds") - ? this.Serializable$get("bandIds") - : null; - }, - set: function (value) { - this.Serializable$set("bandIds", value); - }, - }, - tilesetId: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesetId") - ? this.Serializable$get("tilesetId") - : null; - }, - set: function (value) { - this.Serializable$set("tilesetId", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TilesetMaskBand.prototype, + { + bandIds: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bandIds') + ? this.Serializable$get('bandIds') + : null + }, + set: function (value) { + this.Serializable$set('bandIds', value) + }, + }, + tilesetId: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesetId') + ? this.Serializable$get('tilesetId') + : null + }, + set: function (value) { + this.Serializable$set('tilesetId', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TilestoreLocationParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TilestoreLocation = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "sources", - null == parameters.sources ? null : parameters.sources - ); - this.Serializable$set( - "pathPrefix", - null == parameters.pathPrefix ? null : parameters.pathPrefix - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'sources', + null == parameters.sources ? null : parameters.sources + ) + this.Serializable$set( + 'pathPrefix', + null == parameters.pathPrefix ? null : parameters.pathPrefix + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TilestoreLocation, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TilestoreLocation, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TilestoreLocation.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TilestoreLocation; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TilestoreLocation + } module$exports$eeapiclient$ee_api_client.TilestoreLocation.prototype.getPartialClassMetadata = - function () { - return { - arrays: { - sources: module$exports$eeapiclient$ee_api_client.TilestoreSource, - }, - keys: ["pathPrefix", "sources"], - }; - }; + function () { + return { + arrays: { + sources: + module$exports$eeapiclient$ee_api_client.TilestoreSource, + }, + keys: ['pathPrefix', 'sources'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TilestoreLocation.prototype, - { - pathPrefix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pathPrefix") - ? this.Serializable$get("pathPrefix") - : null; - }, - set: function (value) { - this.Serializable$set("pathPrefix", value); - }, - }, - sources: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("sources") - ? this.Serializable$get("sources") - : null; - }, - set: function (value) { - this.Serializable$set("sources", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TilestoreLocation.prototype, + { + pathPrefix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pathPrefix') + ? this.Serializable$get('pathPrefix') + : null + }, + set: function (value) { + this.Serializable$set('pathPrefix', value) + }, + }, + sources: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('sources') + ? this.Serializable$get('sources') + : null + }, + set: function (value) { + this.Serializable$set('sources', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TilestoreSourceParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TilestoreSource = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "pathSuffix", - null == parameters.pathSuffix ? null : parameters.pathSuffix - ); - this.Serializable$set( - "headerSizeBytes", - null == parameters.headerSizeBytes ? null : parameters.headerSizeBytes - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'pathSuffix', + null == parameters.pathSuffix ? null : parameters.pathSuffix + ) + this.Serializable$set( + 'headerSizeBytes', + null == parameters.headerSizeBytes ? null : parameters.headerSizeBytes + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TilestoreSource, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TilestoreSource, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TilestoreSource.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TilestoreSource; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TilestoreSource + } module$exports$eeapiclient$ee_api_client.TilestoreSource.prototype.getPartialClassMetadata = - function () { - return { keys: ["headerSizeBytes", "pathSuffix"] }; - }; + function () { + return { keys: ['headerSizeBytes', 'pathSuffix'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TilestoreSource.prototype, - { - headerSizeBytes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("headerSizeBytes") - ? this.Serializable$get("headerSizeBytes") - : null; - }, - set: function (value) { - this.Serializable$set("headerSizeBytes", value); - }, - }, - pathSuffix: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("pathSuffix") - ? this.Serializable$get("pathSuffix") - : null; - }, - set: function (value) { - this.Serializable$set("pathSuffix", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TilestoreSource.prototype, + { + headerSizeBytes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('headerSizeBytes') + ? this.Serializable$get('headerSizeBytes') + : null + }, + set: function (value) { + this.Serializable$set('headerSizeBytes', value) + }, + }, + pathSuffix: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('pathSuffix') + ? this.Serializable$get('pathSuffix') + : null + }, + set: function (value) { + this.Serializable$set('pathSuffix', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.TilestoreTilesetParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.TilestoreTileset = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "fileIndexes", - null == parameters.fileIndexes ? null : parameters.fileIndexes - ); - this.Serializable$set( - "firstTileIndex", - null == parameters.firstTileIndex ? null : parameters.firstTileIndex - ); - this.Serializable$set( - "tilesPerFile", - null == parameters.tilesPerFile ? null : parameters.tilesPerFile - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'fileIndexes', + null == parameters.fileIndexes ? null : parameters.fileIndexes + ) + this.Serializable$set( + 'firstTileIndex', + null == parameters.firstTileIndex ? null : parameters.firstTileIndex + ) + this.Serializable$set( + 'tilesPerFile', + null == parameters.tilesPerFile ? null : parameters.tilesPerFile + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TilestoreTileset, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TilestoreTileset, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TilestoreTileset.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TilestoreTileset; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TilestoreTileset + } module$exports$eeapiclient$ee_api_client.TilestoreTileset.prototype.getPartialClassMetadata = - function () { - return { keys: ["fileIndexes", "firstTileIndex", "tilesPerFile"] }; - }; + function () { + return { keys: ['fileIndexes', 'firstTileIndex', 'tilesPerFile'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TilestoreTileset.prototype, - { - fileIndexes: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileIndexes") - ? this.Serializable$get("fileIndexes") - : null; - }, - set: function (value) { - this.Serializable$set("fileIndexes", value); - }, - }, - firstTileIndex: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("firstTileIndex") - ? this.Serializable$get("firstTileIndex") - : null; - }, - set: function (value) { - this.Serializable$set("firstTileIndex", value); - }, - }, - tilesPerFile: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("tilesPerFile") - ? this.Serializable$get("tilesPerFile") - : null; - }, - set: function (value) { - this.Serializable$set("tilesPerFile", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.TrialStatusParameters = function () {}; + module$exports$eeapiclient$ee_api_client.TilestoreTileset.prototype, + { + fileIndexes: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileIndexes') + ? this.Serializable$get('fileIndexes') + : null + }, + set: function (value) { + this.Serializable$set('fileIndexes', value) + }, + }, + firstTileIndex: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('firstTileIndex') + ? this.Serializable$get('firstTileIndex') + : null + }, + set: function (value) { + this.Serializable$set('firstTileIndex', value) + }, + }, + tilesPerFile: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('tilesPerFile') + ? this.Serializable$get('tilesPerFile') + : null + }, + set: function (value) { + this.Serializable$set('tilesPerFile', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.TrialStatusParameters = function () {} module$exports$eeapiclient$ee_api_client.TrialStatus = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "billingAccount", - null == parameters.billingAccount ? null : parameters.billingAccount - ); - this.Serializable$set( - "eligibility", - null == parameters.eligibility ? null : parameters.eligibility - ); - this.Serializable$set( - "state", - null == parameters.state ? null : parameters.state - ); - this.Serializable$set( - "startTime", - null == parameters.startTime ? null : parameters.startTime - ); - this.Serializable$set( - "expiryTime", - null == parameters.expiryTime ? null : parameters.expiryTime - ); - this.Serializable$set( - "subscription", - null == parameters.subscription ? null : parameters.subscription - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'billingAccount', + null == parameters.billingAccount ? null : parameters.billingAccount + ) + this.Serializable$set( + 'eligibility', + null == parameters.eligibility ? null : parameters.eligibility + ) + this.Serializable$set( + 'state', + null == parameters.state ? null : parameters.state + ) + this.Serializable$set( + 'startTime', + null == parameters.startTime ? null : parameters.startTime + ) + this.Serializable$set( + 'expiryTime', + null == parameters.expiryTime ? null : parameters.expiryTime + ) + this.Serializable$set( + 'subscription', + null == parameters.subscription ? null : parameters.subscription + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.TrialStatus, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.TrialStatus, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.TrialStatus.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.TrialStatus; - }; + function () { + return module$exports$eeapiclient$ee_api_client.TrialStatus + } module$exports$eeapiclient$ee_api_client.TrialStatus.prototype.getPartialClassMetadata = - function () { - return { - enums: { - eligibility: - module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum, - state: module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum, - }, - keys: "billingAccount eligibility expiryTime startTime state subscription".split( - " " - ), - }; - }; + function () { + return { + enums: { + eligibility: + module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum, + state: module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum, + }, + keys: 'billingAccount eligibility expiryTime startTime state subscription'.split( + ' ' + ), + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TrialStatus.prototype, - { - billingAccount: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("billingAccount") - ? this.Serializable$get("billingAccount") - : null; - }, - set: function (value) { - this.Serializable$set("billingAccount", value); - }, - }, - eligibility: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("eligibility") - ? this.Serializable$get("eligibility") - : null; - }, - set: function (value) { - this.Serializable$set("eligibility", value); - }, - }, - expiryTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expiryTime") - ? this.Serializable$get("expiryTime") - : null; - }, - set: function (value) { - this.Serializable$set("expiryTime", value); - }, - }, - startTime: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("startTime") - ? this.Serializable$get("startTime") - : null; - }, - set: function (value) { - this.Serializable$set("startTime", value); - }, - }, - state: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("state") - ? this.Serializable$get("state") - : null; - }, - set: function (value) { - this.Serializable$set("state", value); - }, - }, - subscription: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("subscription") - ? this.Serializable$get("subscription") - : null; - }, - set: function (value) { - this.Serializable$set("subscription", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TrialStatus.prototype, + { + billingAccount: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('billingAccount') + ? this.Serializable$get('billingAccount') + : null + }, + set: function (value) { + this.Serializable$set('billingAccount', value) + }, + }, + eligibility: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('eligibility') + ? this.Serializable$get('eligibility') + : null + }, + set: function (value) { + this.Serializable$set('eligibility', value) + }, + }, + expiryTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expiryTime') + ? this.Serializable$get('expiryTime') + : null + }, + set: function (value) { + this.Serializable$set('expiryTime', value) + }, + }, + startTime: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('startTime') + ? this.Serializable$get('startTime') + : null + }, + set: function (value) { + this.Serializable$set('startTime', value) + }, + }, + state: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('state') + ? this.Serializable$get('state') + : null + }, + set: function (value) { + this.Serializable$set('state', value) + }, + }, + subscription: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('subscription') + ? this.Serializable$get('subscription') + : null + }, + set: function (value) { + this.Serializable$set('subscription', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.TrialStatus, - { - Eligibility: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum; - }, - }, - State: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.TrialStatus, + { + Eligibility: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum + }, + }, + State: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.UpdateAssetRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.UpdateAssetRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "asset", - null == parameters.asset ? null : parameters.asset - ); - this.Serializable$set( - "updateMask", - null == parameters.updateMask ? null : parameters.updateMask - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'asset', + null == parameters.asset ? null : parameters.asset + ) + this.Serializable$set( + 'updateMask', + null == parameters.updateMask ? null : parameters.updateMask + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.UpdateAssetRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.UpdateAssetRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.UpdateAssetRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.UpdateAssetRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.UpdateAssetRequest + } module$exports$eeapiclient$ee_api_client.UpdateAssetRequest.prototype.getPartialClassMetadata = - function () { - return { - keys: ["asset", "updateMask"], - objects: { - asset: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }, - }; - }; + function () { + return { + keys: ['asset', 'updateMask'], + objects: { + asset: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.UpdateAssetRequest.prototype, - { - asset: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("asset") - ? this.Serializable$get("asset") - : null; - }, - set: function (value) { - this.Serializable$set("asset", value); - }, - }, - updateMask: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("updateMask") - ? this.Serializable$get("updateMask") - : null; - }, - set: function (value) { - this.Serializable$set("updateMask", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ValueNodeParameters = function () {}; + module$exports$eeapiclient$ee_api_client.UpdateAssetRequest.prototype, + { + asset: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('asset') + ? this.Serializable$get('asset') + : null + }, + set: function (value) { + this.Serializable$set('asset', value) + }, + }, + updateMask: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('updateMask') + ? this.Serializable$get('updateMask') + : null + }, + set: function (value) { + this.Serializable$set('updateMask', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ValueNodeParameters = function () {} module$exports$eeapiclient$ee_api_client.ValueNode = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "constantValue", - null == parameters.constantValue ? null : parameters.constantValue - ); - this.Serializable$set( - "integerValue", - null == parameters.integerValue ? null : parameters.integerValue - ); - this.Serializable$set( - "bytesValue", - null == parameters.bytesValue ? null : parameters.bytesValue - ); - this.Serializable$set( - "arrayValue", - null == parameters.arrayValue ? null : parameters.arrayValue - ); - this.Serializable$set( - "dictionaryValue", - null == parameters.dictionaryValue ? null : parameters.dictionaryValue - ); - this.Serializable$set( - "functionDefinitionValue", - null == parameters.functionDefinitionValue - ? null - : parameters.functionDefinitionValue - ); - this.Serializable$set( - "functionInvocationValue", - null == parameters.functionInvocationValue - ? null - : parameters.functionInvocationValue - ); - this.Serializable$set( - "argumentReference", - null == parameters.argumentReference ? null : parameters.argumentReference - ); - this.Serializable$set( - "valueReference", - null == parameters.valueReference ? null : parameters.valueReference - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'constantValue', + null == parameters.constantValue ? null : parameters.constantValue + ) + this.Serializable$set( + 'integerValue', + null == parameters.integerValue ? null : parameters.integerValue + ) + this.Serializable$set( + 'bytesValue', + null == parameters.bytesValue ? null : parameters.bytesValue + ) + this.Serializable$set( + 'arrayValue', + null == parameters.arrayValue ? null : parameters.arrayValue + ) + this.Serializable$set( + 'dictionaryValue', + null == parameters.dictionaryValue ? null : parameters.dictionaryValue + ) + this.Serializable$set( + 'functionDefinitionValue', + null == parameters.functionDefinitionValue + ? null + : parameters.functionDefinitionValue + ) + this.Serializable$set( + 'functionInvocationValue', + null == parameters.functionInvocationValue + ? null + : parameters.functionInvocationValue + ) + this.Serializable$set( + 'argumentReference', + null == parameters.argumentReference + ? null + : parameters.argumentReference + ) + this.Serializable$set( + 'valueReference', + null == parameters.valueReference ? null : parameters.valueReference + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ValueNode, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ValueNode, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ValueNode.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ValueNode; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ValueNode + } module$exports$eeapiclient$ee_api_client.ValueNode.prototype.getPartialClassMetadata = - function () { - return { - keys: "argumentReference arrayValue bytesValue constantValue dictionaryValue functionDefinitionValue functionInvocationValue integerValue valueReference".split( - " " - ), - objects: { - arrayValue: module$exports$eeapiclient$ee_api_client.ArrayValue, - dictionaryValue: - module$exports$eeapiclient$ee_api_client.DictionaryValue, - functionDefinitionValue: - module$exports$eeapiclient$ee_api_client.FunctionDefinition, - functionInvocationValue: - module$exports$eeapiclient$ee_api_client.FunctionInvocation, - }, - }; - }; + function () { + return { + keys: 'argumentReference arrayValue bytesValue constantValue dictionaryValue functionDefinitionValue functionInvocationValue integerValue valueReference'.split( + ' ' + ), + objects: { + arrayValue: module$exports$eeapiclient$ee_api_client.ArrayValue, + dictionaryValue: + module$exports$eeapiclient$ee_api_client.DictionaryValue, + functionDefinitionValue: + module$exports$eeapiclient$ee_api_client.FunctionDefinition, + functionInvocationValue: + module$exports$eeapiclient$ee_api_client.FunctionInvocation, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ValueNode.prototype, - { - argumentReference: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("argumentReference") - ? this.Serializable$get("argumentReference") - : null; - }, - set: function (value) { - this.Serializable$set("argumentReference", value); - }, - }, - arrayValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("arrayValue") - ? this.Serializable$get("arrayValue") - : null; - }, - set: function (value) { - this.Serializable$set("arrayValue", value); - }, - }, - bytesValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("bytesValue") - ? this.Serializable$get("bytesValue") - : null; - }, - set: function (value) { - this.Serializable$set("bytesValue", value); - }, - }, - constantValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("constantValue") - ? this.Serializable$get("constantValue") - : null; - }, - set: function (value) { - this.Serializable$set("constantValue", value); - }, - }, - dictionaryValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("dictionaryValue") - ? this.Serializable$get("dictionaryValue") - : null; - }, - set: function (value) { - this.Serializable$set("dictionaryValue", value); - }, - }, - functionDefinitionValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("functionDefinitionValue") - ? this.Serializable$get("functionDefinitionValue") - : null; - }, - set: function (value) { - this.Serializable$set("functionDefinitionValue", value); - }, - }, - functionInvocationValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("functionInvocationValue") - ? this.Serializable$get("functionInvocationValue") - : null; - }, - set: function (value) { - this.Serializable$set("functionInvocationValue", value); - }, - }, - integerValue: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("integerValue") - ? this.Serializable$get("integerValue") - : null; - }, - set: function (value) { - this.Serializable$set("integerValue", value); - }, - }, - valueReference: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("valueReference") - ? this.Serializable$get("valueReference") - : null; - }, - set: function (value) { - this.Serializable$set("valueReference", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ValueNode.prototype, + { + argumentReference: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('argumentReference') + ? this.Serializable$get('argumentReference') + : null + }, + set: function (value) { + this.Serializable$set('argumentReference', value) + }, + }, + arrayValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('arrayValue') + ? this.Serializable$get('arrayValue') + : null + }, + set: function (value) { + this.Serializable$set('arrayValue', value) + }, + }, + bytesValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('bytesValue') + ? this.Serializable$get('bytesValue') + : null + }, + set: function (value) { + this.Serializable$set('bytesValue', value) + }, + }, + constantValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('constantValue') + ? this.Serializable$get('constantValue') + : null + }, + set: function (value) { + this.Serializable$set('constantValue', value) + }, + }, + dictionaryValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('dictionaryValue') + ? this.Serializable$get('dictionaryValue') + : null + }, + set: function (value) { + this.Serializable$set('dictionaryValue', value) + }, + }, + functionDefinitionValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('functionDefinitionValue') + ? this.Serializable$get('functionDefinitionValue') + : null + }, + set: function (value) { + this.Serializable$set('functionDefinitionValue', value) + }, + }, + functionInvocationValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('functionInvocationValue') + ? this.Serializable$get('functionInvocationValue') + : null + }, + set: function (value) { + this.Serializable$set('functionInvocationValue', value) + }, + }, + integerValue: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('integerValue') + ? this.Serializable$get('integerValue') + : null + }, + set: function (value) { + this.Serializable$set('integerValue', value) + }, + }, + valueReference: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('valueReference') + ? this.Serializable$get('valueReference') + : null + }, + set: function (value) { + this.Serializable$set('valueReference', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.VideoFileExportOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "driveDestination", - null == parameters.driveDestination ? null : parameters.driveDestination - ); - this.Serializable$set( - "cloudStorageDestination", - null == parameters.cloudStorageDestination - ? null - : parameters.cloudStorageDestination - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'driveDestination', + null == parameters.driveDestination ? null : parameters.driveDestination + ) + this.Serializable$set( + 'cloudStorageDestination', + null == parameters.cloudStorageDestination + ? null + : parameters.cloudStorageDestination + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.VideoFileExportOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.VideoFileExportOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.VideoFileExportOptions + } module$exports$eeapiclient$ee_api_client.VideoFileExportOptions.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum, - }, - keys: ["cloudStorageDestination", "driveDestination", "fileFormat"], - objects: { - cloudStorageDestination: - module$exports$eeapiclient$ee_api_client.CloudStorageDestination, - driveDestination: - module$exports$eeapiclient$ee_api_client.DriveDestination, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum, + }, + keys: ['cloudStorageDestination', 'driveDestination', 'fileFormat'], + objects: { + cloudStorageDestination: + module$exports$eeapiclient$ee_api_client.CloudStorageDestination, + driveDestination: + module$exports$eeapiclient$ee_api_client.DriveDestination, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.VideoFileExportOptions.prototype, - { - cloudStorageDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("cloudStorageDestination") - ? this.Serializable$get("cloudStorageDestination") - : null; - }, - set: function (value) { - this.Serializable$set("cloudStorageDestination", value); - }, - }, - driveDestination: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("driveDestination") - ? this.Serializable$get("driveDestination") - : null; - }, - set: function (value) { - this.Serializable$set("driveDestination", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.VideoFileExportOptions.prototype, + { + cloudStorageDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('cloudStorageDestination') + ? this.Serializable$get('cloudStorageDestination') + : null + }, + set: function (value) { + this.Serializable$set('cloudStorageDestination', value) + }, + }, + driveDestination: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('driveDestination') + ? this.Serializable$get('driveDestination') + : null + }, + set: function (value) { + this.Serializable$set('driveDestination', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum; - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.VideoOptionsParameters = - function () {}; + module$exports$eeapiclient$ee_api_client.VideoFileExportOptions, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.VideoOptionsParameters = function () {} module$exports$eeapiclient$ee_api_client.VideoOptions = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "framesPerSecond", - null == parameters.framesPerSecond ? null : parameters.framesPerSecond - ); - this.Serializable$set( - "maxFrames", - null == parameters.maxFrames ? null : parameters.maxFrames - ); - this.Serializable$set( - "maxPixelsPerFrame", - null == parameters.maxPixelsPerFrame ? null : parameters.maxPixelsPerFrame - ); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'framesPerSecond', + null == parameters.framesPerSecond ? null : parameters.framesPerSecond + ) + this.Serializable$set( + 'maxFrames', + null == parameters.maxFrames ? null : parameters.maxFrames + ) + this.Serializable$set( + 'maxPixelsPerFrame', + null == parameters.maxPixelsPerFrame + ? null + : parameters.maxPixelsPerFrame + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.VideoOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.VideoOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.VideoOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.VideoOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.VideoOptions + } module$exports$eeapiclient$ee_api_client.VideoOptions.prototype.getPartialClassMetadata = - function () { - return { keys: ["framesPerSecond", "maxFrames", "maxPixelsPerFrame"] }; - }; + function () { + return { keys: ['framesPerSecond', 'maxFrames', 'maxPixelsPerFrame'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.VideoOptions.prototype, - { - framesPerSecond: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("framesPerSecond") - ? this.Serializable$get("framesPerSecond") - : null; - }, - set: function (value) { - this.Serializable$set("framesPerSecond", value); - }, - }, - maxFrames: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxFrames") - ? this.Serializable$get("maxFrames") - : null; - }, - set: function (value) { - this.Serializable$set("maxFrames", value); - }, - }, - maxPixelsPerFrame: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("maxPixelsPerFrame") - ? this.Serializable$get("maxPixelsPerFrame") - : null; - }, - set: function (value) { - this.Serializable$set("maxPixelsPerFrame", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.VideoOptions.prototype, + { + framesPerSecond: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('framesPerSecond') + ? this.Serializable$get('framesPerSecond') + : null + }, + set: function (value) { + this.Serializable$set('framesPerSecond', value) + }, + }, + maxFrames: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxFrames') + ? this.Serializable$get('maxFrames') + : null + }, + set: function (value) { + this.Serializable$set('maxFrames', value) + }, + }, + maxPixelsPerFrame: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('maxPixelsPerFrame') + ? this.Serializable$get('maxPixelsPerFrame') + : null + }, + set: function (value) { + this.Serializable$set('maxPixelsPerFrame', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.VideoThumbnailParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.VideoThumbnail = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "name", - null == parameters.name ? null : parameters.name - ); - this.Serializable$set( - "expression", - null == parameters.expression ? null : parameters.expression - ); - this.Serializable$set( - "videoOptions", - null == parameters.videoOptions ? null : parameters.videoOptions - ); - this.Serializable$set( - "fileFormat", - null == parameters.fileFormat ? null : parameters.fileFormat - ); - this.Serializable$set( - "grid", - null == parameters.grid ? null : parameters.grid - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'name', + null == parameters.name ? null : parameters.name + ) + this.Serializable$set( + 'expression', + null == parameters.expression ? null : parameters.expression + ) + this.Serializable$set( + 'videoOptions', + null == parameters.videoOptions ? null : parameters.videoOptions + ) + this.Serializable$set( + 'fileFormat', + null == parameters.fileFormat ? null : parameters.fileFormat + ) + this.Serializable$set( + 'grid', + null == parameters.grid ? null : parameters.grid + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.VideoThumbnail, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.VideoThumbnail, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.VideoThumbnail.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.VideoThumbnail; - }; + function () { + return module$exports$eeapiclient$ee_api_client.VideoThumbnail + } module$exports$eeapiclient$ee_api_client.VideoThumbnail.prototype.getPartialClassMetadata = - function () { - return { - enums: { - fileFormat: - module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum, - }, - keys: ["expression", "fileFormat", "grid", "name", "videoOptions"], - objects: { - expression: module$exports$eeapiclient$ee_api_client.Expression, - grid: module$exports$eeapiclient$ee_api_client.PixelGrid, - videoOptions: module$exports$eeapiclient$ee_api_client.VideoOptions, - }, - }; - }; + function () { + return { + enums: { + fileFormat: + module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum, + }, + keys: ['expression', 'fileFormat', 'grid', 'name', 'videoOptions'], + objects: { + expression: module$exports$eeapiclient$ee_api_client.Expression, + grid: module$exports$eeapiclient$ee_api_client.PixelGrid, + videoOptions: + module$exports$eeapiclient$ee_api_client.VideoOptions, + }, + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.VideoThumbnail.prototype, - { - expression: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("expression") - ? this.Serializable$get("expression") - : null; - }, - set: function (value) { - this.Serializable$set("expression", value); - }, - }, - fileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("fileFormat") - ? this.Serializable$get("fileFormat") - : null; - }, - set: function (value) { - this.Serializable$set("fileFormat", value); - }, - }, - grid: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("grid") - ? this.Serializable$get("grid") - : null; - }, - set: function (value) { - this.Serializable$set("grid", value); - }, - }, - name: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("name") - ? this.Serializable$get("name") - : null; - }, - set: function (value) { - this.Serializable$set("name", value); - }, - }, - videoOptions: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("videoOptions") - ? this.Serializable$get("videoOptions") - : null; - }, - set: function (value) { - this.Serializable$set("videoOptions", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.VideoThumbnail.prototype, + { + expression: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('expression') + ? this.Serializable$get('expression') + : null + }, + set: function (value) { + this.Serializable$set('expression', value) + }, + }, + fileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('fileFormat') + ? this.Serializable$get('fileFormat') + : null + }, + set: function (value) { + this.Serializable$set('fileFormat', value) + }, + }, + grid: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('grid') + ? this.Serializable$get('grid') + : null + }, + set: function (value) { + this.Serializable$set('grid', value) + }, + }, + name: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('name') + ? this.Serializable$get('name') + : null + }, + set: function (value) { + this.Serializable$set('name', value) + }, + }, + videoOptions: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('videoOptions') + ? this.Serializable$get('videoOptions') + : null + }, + set: function (value) { + this.Serializable$set('videoOptions', value) + }, + }, + } +) $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.VideoThumbnail, - { - FileFormat: { - configurable: !0, - enumerable: !0, - get: function () { - return module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum; - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.VideoThumbnail, + { + FileFormat: { + configurable: !0, + enumerable: !0, + get: function () { + return module$exports$eeapiclient$ee_api_client.VideoThumbnailFileFormatEnum + }, + }, + } +) module$exports$eeapiclient$ee_api_client.VisualizationOptionsParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.VisualizationOptions = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "ranges", - null == parameters.ranges ? null : parameters.ranges - ); - this.Serializable$set( - "paletteColors", - null == parameters.paletteColors ? null : parameters.paletteColors - ); - this.Serializable$set( - "gamma", - null == parameters.gamma ? null : parameters.gamma - ); - this.Serializable$set( - "opacity", - null == parameters.opacity ? null : parameters.opacity - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'ranges', + null == parameters.ranges ? null : parameters.ranges + ) + this.Serializable$set( + 'paletteColors', + null == parameters.paletteColors ? null : parameters.paletteColors + ) + this.Serializable$set( + 'gamma', + null == parameters.gamma ? null : parameters.gamma + ) + this.Serializable$set( + 'opacity', + null == parameters.opacity ? null : parameters.opacity + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.VisualizationOptions, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.VisualizationOptions, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.VisualizationOptions.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.VisualizationOptions; - }; + function () { + return module$exports$eeapiclient$ee_api_client.VisualizationOptions + } module$exports$eeapiclient$ee_api_client.VisualizationOptions.prototype.getPartialClassMetadata = - function () { - return { - arrays: { ranges: module$exports$eeapiclient$ee_api_client.DoubleRange }, - keys: ["gamma", "opacity", "paletteColors", "ranges"], - }; - }; + function () { + return { + arrays: { + ranges: module$exports$eeapiclient$ee_api_client.DoubleRange, + }, + keys: ['gamma', 'opacity', 'paletteColors', 'ranges'], + } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.VisualizationOptions.prototype, - { - gamma: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("gamma") - ? this.Serializable$get("gamma") - : null; - }, - set: function (value) { - this.Serializable$set("gamma", value); - }, - }, - opacity: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("opacity") - ? this.Serializable$get("opacity") - : null; - }, - set: function (value) { - this.Serializable$set("opacity", value); - }, - }, - paletteColors: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("paletteColors") - ? this.Serializable$get("paletteColors") - : null; - }, - set: function (value) { - this.Serializable$set("paletteColors", value); - }, - }, - ranges: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("ranges") - ? this.Serializable$get("ranges") - : null; - }, - set: function (value) { - this.Serializable$set("ranges", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.VisualizationOptions.prototype, + { + gamma: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('gamma') + ? this.Serializable$get('gamma') + : null + }, + set: function (value) { + this.Serializable$set('gamma', value) + }, + }, + opacity: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('opacity') + ? this.Serializable$get('opacity') + : null + }, + set: function (value) { + this.Serializable$set('opacity', value) + }, + }, + paletteColors: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('paletteColors') + ? this.Serializable$get('paletteColors') + : null + }, + set: function (value) { + this.Serializable$set('paletteColors', value) + }, + }, + ranges: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('ranges') + ? this.Serializable$get('ranges') + : null + }, + set: function (value) { + this.Serializable$set('ranges', value) + }, + }, + } +) module$exports$eeapiclient$ee_api_client.WaitOperationRequestParameters = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.WaitOperationRequest = function ( - parameters -) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "timeout", - null == parameters.timeout ? null : parameters.timeout - ); -}; + parameters +) { + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'timeout', + null == parameters.timeout ? null : parameters.timeout + ) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.WaitOperationRequest, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.WaitOperationRequest, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.WaitOperationRequest.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.WaitOperationRequest; - }; + function () { + return module$exports$eeapiclient$ee_api_client.WaitOperationRequest + } module$exports$eeapiclient$ee_api_client.WaitOperationRequest.prototype.getPartialClassMetadata = - function () { - return { keys: ["timeout"] }; - }; + function () { + return { keys: ['timeout'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.WaitOperationRequest.prototype, - { - timeout: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("timeout") - ? this.Serializable$get("timeout") - : null; - }, - set: function (value) { - this.Serializable$set("timeout", value); - }, - }, - } -); -module$exports$eeapiclient$ee_api_client.ZoomSubsetParameters = function () {}; + module$exports$eeapiclient$ee_api_client.WaitOperationRequest.prototype, + { + timeout: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('timeout') + ? this.Serializable$get('timeout') + : null + }, + set: function (value) { + this.Serializable$set('timeout', value) + }, + }, + } +) +module$exports$eeapiclient$ee_api_client.ZoomSubsetParameters = function () {} module$exports$eeapiclient$ee_api_client.ZoomSubset = function (parameters) { - parameters = void 0 === parameters ? {} : parameters; - module$exports$eeapiclient$domain_object.Serializable.call(this); - this.Serializable$set( - "start", - null == parameters.start ? null : parameters.start - ); - this.Serializable$set("end", null == parameters.end ? null : parameters.end); -}; + parameters = void 0 === parameters ? {} : parameters + module$exports$eeapiclient$domain_object.Serializable.call(this) + this.Serializable$set( + 'start', + null == parameters.start ? null : parameters.start + ) + this.Serializable$set('end', null == parameters.end ? null : parameters.end) +} $jscomp.inherits( - module$exports$eeapiclient$ee_api_client.ZoomSubset, - module$exports$eeapiclient$domain_object.Serializable -); + module$exports$eeapiclient$ee_api_client.ZoomSubset, + module$exports$eeapiclient$domain_object.Serializable +) module$exports$eeapiclient$ee_api_client.ZoomSubset.prototype.getConstructor = - function () { - return module$exports$eeapiclient$ee_api_client.ZoomSubset; - }; + function () { + return module$exports$eeapiclient$ee_api_client.ZoomSubset + } module$exports$eeapiclient$ee_api_client.ZoomSubset.prototype.getPartialClassMetadata = - function () { - return { keys: ["end", "start"] }; - }; + function () { + return { keys: ['end', 'start'] } + } $jscomp.global.Object.defineProperties( - module$exports$eeapiclient$ee_api_client.ZoomSubset.prototype, - { - end: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("end") - ? this.Serializable$get("end") - : null; - }, - set: function (value) { - this.Serializable$set("end", value); - }, - }, - start: { - configurable: !0, - enumerable: !0, - get: function () { - return this.Serializable$has("start") - ? this.Serializable$get("start") - : null; - }, - set: function (value) { - this.Serializable$set("start", value); - }, - }, - } -); + module$exports$eeapiclient$ee_api_client.ZoomSubset.prototype, + { + end: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('end') + ? this.Serializable$get('end') + : null + }, + set: function (value) { + this.Serializable$set('end', value) + }, + }, + start: { + configurable: !0, + enumerable: !0, + get: function () { + return this.Serializable$has('start') + ? this.Serializable$get('start') + : null + }, + set: function (value) { + this.Serializable$set('start', value) + }, + }, + } +) var module$contents$eeapiclient$ee_api_client_PARAM_MAP_0 = { - $Xgafv: "$.xgafv", - access_token: "access_token", - alt: "alt", - assetId: "assetId", - callback: "callback", - fields: "fields", - filter: "filter", - key: "key", - oauth_token: "oauth_token", - overwrite: "overwrite", - pageSize: "pageSize", - pageToken: "pageToken", - parent: "parent", - prettyPrint: "prettyPrint", - quotaUser: "quotaUser", - region: "region", - updateMask: "updateMask", - uploadType: "uploadType", - upload_protocol: "upload_protocol", - view: "view", - workloadTag: "workloadTag", -}; + $Xgafv: '$.xgafv', + access_token: 'access_token', + alt: 'alt', + assetId: 'assetId', + callback: 'callback', + fields: 'fields', + filter: 'filter', + key: 'key', + oauth_token: 'oauth_token', + overwrite: 'overwrite', + pageSize: 'pageSize', + pageToken: 'pageToken', + parent: 'parent', + prettyPrint: 'prettyPrint', + quotaUser: 'quotaUser', + region: 'region', + updateMask: 'updateMask', + uploadType: 'uploadType', + upload_protocol: 'upload_protocol', + view: 'view', + workloadTag: 'workloadTag', +} module$exports$eeapiclient$ee_api_client.IBillingAccountsSubscriptionsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .BillingAccountsSubscriptionsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .BillingAccountsSubscriptionsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .BillingAccountsSubscriptionsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .BillingAccountsSubscriptionsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IBillingAccountsSubscriptionsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .BillingAccountsSubscriptionsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .BillingAccountsSubscriptionsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .BillingAccountsSubscriptionsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .BillingAccountsSubscriptionsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .BillingAccountsSubscriptionsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .BillingAccountsSubscriptionsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClientImpl.prototype.changeType = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^billingAccounts/[^/]+/subscriptions/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.billingAccounts.subscriptions.changeType", - path: "/" + this.gapiVersion + "/" + name + ":changeType", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Subscription, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^billingAccounts/[^/]+/subscriptions/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.billingAccounts.subscriptions.changeType', + path: '/' + this.gapiVersion + '/' + name + ':changeType', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Subscription, + }) + } module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^billingAccounts/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.billingAccounts.subscriptions.create", - path: "/" + this.gapiVersion + "/" + parent + "/subscriptions", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Subscription, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^billingAccounts/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.billingAccounts.subscriptions.create', + path: '/' + this.gapiVersion + '/' + parent + '/subscriptions', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Subscription, + }) + } module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClientImpl.prototype.list = - function (parent, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^billingAccounts/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.billingAccounts.subscriptions.list", - path: "/" + this.gapiVersion + "/" + parent + "/subscriptions", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse, - }); - }; + function (parent, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^billingAccounts/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.billingAccounts.subscriptions.list', + path: '/' + this.gapiVersion + '/' + parent + '/subscriptions', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ListSubscriptionsResponse, + }) + } module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClientImpl.prototype.terminate = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^billingAccounts/[^/]+/subscriptions/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.billingAccounts.subscriptions.terminate", - path: "/" + this.gapiVersion + "/" + name + ":terminate", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Subscription, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^billingAccounts/[^/]+/subscriptions/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.billingAccounts.subscriptions.terminate', + path: '/' + this.gapiVersion + '/' + name + ':terminate', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Subscription, + }) + } module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ICapabilitiesApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CapabilitiesApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .CapabilitiesApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .CapabilitiesApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .CapabilitiesApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .CapabilitiesApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.ICapabilitiesApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.CapabilitiesApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.CapabilitiesApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.CapabilitiesApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.CapabilitiesApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .CapabilitiesApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .CapabilitiesApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .CapabilitiesApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.CapabilitiesApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.CapabilitiesApiClientImpl.prototype.appealRestriction = - function ($requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.capabilities.appealRestriction", - path: "/" + this.gapiVersion + "/capabilities:appealRestriction", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Empty, - }); - }; -module$exports$eeapiclient$ee_api_client.CapabilitiesApiClient = function () {}; + function ($requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.capabilities.appealRestriction', + path: '/' + this.gapiVersion + '/capabilities:appealRestriction', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Empty, + }) + } +module$exports$eeapiclient$ee_api_client.CapabilitiesApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsAlgorithmsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsAlgorithmsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsAlgorithmsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsAlgorithmsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsAlgorithmsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsAlgorithmsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsAlgorithmsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsAlgorithmsApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsAlgorithmsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsAlgorithmsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsAlgorithmsApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsAlgorithmsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsAlgorithmsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsAlgorithmsApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsAlgorithmsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsAlgorithmsApiClientImpl.prototype.list = - function (parent, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.algorithms.list", - path: "/" + this.gapiVersion + "/" + parent + "/algorithms", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse, - }); - }; + function (parent, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.algorithms.list', + path: '/' + this.gapiVersion + '/' + parent + '/algorithms', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ListAlgorithmsResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAlgorithmsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client.ProjectsApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum + .JSON, + module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum + .MEDIA, + module$exports$eeapiclient$ee_api_client.ProjectsApiClientAltEnum + .PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsApiClientViewEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum = { - BASIC: "BASIC", - BASIC_SYNC: "BASIC_SYNC", - EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED: "EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED", - FULL: "FULL", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum - .EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum.FULL, - module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum.BASIC, - module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum - .BASIC_SYNC, - ]; - }, -}; + BASIC: 'BASIC', + BASIC_SYNC: 'BASIC_SYNC', + EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED: 'EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED', + FULL: 'FULL', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum + .EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum + .FULL, + module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum + .BASIC, + module$exports$eeapiclient$ee_api_client.ProjectsApiClientViewEnum + .BASIC_SYNC, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsApiClientImpl.prototype.getCapabilities = - function (parent, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.getCapabilities", - path: "/" + this.gapiVersion + "/" + parent + "/capabilities", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Capabilities, - }); - }; + function (parent, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.getCapabilities', + path: '/' + this.gapiVersion + '/' + parent + '/capabilities', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Capabilities, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsApiClientImpl.prototype.getConfig = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/config$")); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.getConfig", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.ProjectConfig, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/config$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.getConfig', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ProjectConfig, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsApiClientImpl.prototype.listAssets = - function (parent, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.listAssets", - path: "/" + this.gapiVersion + "/" + parent + ":listAssets", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.ListAssetsResponse, - }); - }; + function (parent, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.listAssets', + path: '/' + this.gapiVersion + '/' + parent + ':listAssets', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ListAssetsResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsApiClientImpl.prototype.updateConfig = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/config$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "PATCH", - methodId: "earthengine.projects.updateConfig", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.ProjectConfig, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsApiClient = function () {}; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/config$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'PATCH', + methodId: 'earthengine.projects.updateConfig', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ProjectConfig, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsAssetsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsAssetsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsAssetsApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsAssetsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsAssetsApiClientViewEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientViewEnum = { - BASIC: "BASIC", - BASIC_SYNC: "BASIC_SYNC", - EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED: "EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED", - FULL: "FULL", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientViewEnum - .EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED, - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientViewEnum - .FULL, - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientViewEnum - .BASIC, - module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientViewEnum - .BASIC_SYNC, - ]; - }, -}; + BASIC: 'BASIC', + BASIC_SYNC: 'BASIC_SYNC', + EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED: 'EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED', + FULL: 'FULL', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientViewEnum + .EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED, + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientViewEnum.FULL, + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientViewEnum.BASIC, + module$exports$eeapiclient$ee_api_client + .ProjectsAssetsApiClientViewEnum.BASIC_SYNC, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.copy = - function ( - sourceName, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - sourceName, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.copy", - path: "/" + this.gapiVersion + "/" + sourceName + ":copy", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + sourceName, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + sourceName, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.copy', + path: '/' + this.gapiVersion + '/' + sourceName + ':copy', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.create", - path: "/" + this.gapiVersion + "/" + parent + "/assets", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.create', + path: '/' + this.gapiVersion + '/' + parent + '/assets', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.createInternal = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.createInternal", - path: "/" + this.gapiVersion + "/" + parent + "/assets:createInternal", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.createInternal', + path: + '/' + + this.gapiVersion + + '/' + + parent + + '/assets:createInternal', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.delete = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "DELETE", - methodId: "earthengine.projects.assets.delete", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Empty, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'DELETE', + methodId: 'earthengine.projects.assets.delete', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Empty, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.get = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.assets.get", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.assets.get', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.getIamPolicy = - function ( - resource, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - resource, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.getIamPolicy", - path: "/" + this.gapiVersion + "/" + resource + ":getIamPolicy", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + resource, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Policy, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + resource, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.getIamPolicy', + path: '/' + this.gapiVersion + '/' + resource + ':getIamPolicy', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Policy, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.getLinked = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.getLinked", - path: "/" + this.gapiVersion + "/" + name + ":getLinked", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.getLinked', + path: '/' + this.gapiVersion + '/' + name + ':getLinked', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.getPixels = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.getPixels", - path: "/" + this.gapiVersion + "/" + name + ":getPixels", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.getPixels', + path: '/' + this.gapiVersion + '/' + name + ':getPixels', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.link = - function ( - sourceName, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - sourceName, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.link", - path: "/" + this.gapiVersion + "/" + sourceName + ":link", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + sourceName, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + sourceName, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.link', + path: '/' + this.gapiVersion + '/' + sourceName + ':link', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.listAssets = - function (parent, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.assets.listAssets", - path: "/" + this.gapiVersion + "/" + parent + ":listAssets", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.ListAssetsResponse, - }); - }; + function (parent, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.assets.listAssets', + path: '/' + this.gapiVersion + '/' + parent + ':listAssets', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ListAssetsResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.listFeatures = - function (asset, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - asset, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.assets.listFeatures", - path: "/" + this.gapiVersion + "/" + asset + ":listFeatures", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ListFeaturesResponse, - }); - }; + function (asset, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + asset, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.assets.listFeatures', + path: '/' + this.gapiVersion + '/' + asset + ':listFeatures', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ListFeaturesResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.move = - function ( - sourceName, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - sourceName, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.move", - path: "/" + this.gapiVersion + "/" + sourceName + ":move", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + sourceName, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + sourceName, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.move', + path: '/' + this.gapiVersion + '/' + sourceName + ':move', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.patch = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "PATCH", - methodId: "earthengine.projects.assets.patch", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'PATCH', + methodId: 'earthengine.projects.assets.patch', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.setIamPolicy = - function ( - resource, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - resource, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.setIamPolicy", - path: "/" + this.gapiVersion + "/" + resource + ":setIamPolicy", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + resource, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Policy, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + resource, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.setIamPolicy', + path: '/' + this.gapiVersion + '/' + resource + ':setIamPolicy', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Policy, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientImpl.prototype.testIamPermissions = - function ( - resource, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - resource, - RegExp("^projects/[^/]+/assets/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.assets.testIamPermissions", - path: "/" + this.gapiVersion + "/" + resource + ":testIamPermissions", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + resource, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + resource, + RegExp('^projects/[^/]+/assets/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.assets.testIamPermissions', + path: + '/' + this.gapiVersion + '/' + resource + ':testIamPermissions', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.TestIamPermissionsResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsClassifierApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsClassifierApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsClassifierApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsClassifierApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsClassifierApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsClassifierApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsClassifierApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsClassifierApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsClassifierApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsClassifierApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsClassifierApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsClassifierApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsClassifierApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsClassifierApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsClassifierApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsClassifierApiClientImpl.prototype.export = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.classifier.export", - path: "/" + this.gapiVersion + "/" + project + "/classifier:export", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.classifier.export', + path: '/' + this.gapiVersion + '/' + project + '/classifier:export', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsClassifierApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsFeatureViewApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsFeatureViewApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.featureView.create", - path: "/" + this.gapiVersion + "/" + parent + "/featureView", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.FeatureView, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.featureView.create', + path: '/' + this.gapiVersion + '/' + parent + '/featureView', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.FeatureView, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsFeatureViewsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsFeatureViewsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.featureViews.create", - path: "/" + this.gapiVersion + "/" + parent + "/featureViews", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.FeatureView, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.featureViews.create', + path: '/' + this.gapiVersion + '/' + parent + '/featureViews', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.FeatureView, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsFeatureViewsTilesApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsTilesApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsTilesApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsTilesApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsTilesApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsTilesApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsFeatureViewsTilesApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsTilesApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsTilesApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsTilesApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsFeatureViewsTilesApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsTilesApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsTilesApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsFeatureViewsTilesApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsTilesApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsTilesApiClientImpl.prototype.get = - function (parent, zoom, x, y, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/featureViews/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.featureViews.tiles.get", - path: - "/" + - this.gapiVersion + - "/" + - parent + - "/tiles/" + - zoom + - "/" + - x + - "/" + - y, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (parent, zoom, x, y, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/featureViews/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.featureViews.tiles.get', + path: + '/' + + this.gapiVersion + + '/' + + parent + + '/tiles/' + + zoom + + '/' + + x + + '/' + + y, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsFeatureViewsTilesApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsFilmstripThumbnailsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFilmstripThumbnailsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFilmstripThumbnailsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsFilmstripThumbnailsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFilmstripThumbnailsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsFilmstripThumbnailsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsFilmstripThumbnailsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsFilmstripThumbnailsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsFilmstripThumbnailsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsFilmstripThumbnailsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsFilmstripThumbnailsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsFilmstripThumbnailsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsFilmstripThumbnailsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsFilmstripThumbnailsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsFilmstripThumbnailsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsFilmstripThumbnailsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.filmstripThumbnails.create", - path: "/" + this.gapiVersion + "/" + parent + "/filmstripThumbnails", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.filmstripThumbnails.create', + path: + '/' + this.gapiVersion + '/' + parent + '/filmstripThumbnails', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsFilmstripThumbnailsApiClientImpl.prototype.getPixels = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/filmstripThumbnails/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.filmstripThumbnails.getPixels", - path: "/" + this.gapiVersion + "/" + name + ":getPixels", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/filmstripThumbnails/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.filmstripThumbnails.getPixels', + path: '/' + this.gapiVersion + '/' + name + ':getPixels', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsFilmstripThumbnailsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsImageApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsImageApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsImageApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsImageApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsImageApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsImageApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsImageApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsImageApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsImageApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsImageApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientImpl.prototype.computePixels = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.image.computePixels", - path: "/" + this.gapiVersion + "/" + project + "/image:computePixels", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.image.computePixels', + path: + '/' + this.gapiVersion + '/' + project + '/image:computePixels', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientImpl.prototype.export = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.image.export", - path: "/" + this.gapiVersion + "/" + project + "/image:export", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.image.export', + path: '/' + this.gapiVersion + '/' + project + '/image:export', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientImpl.prototype.import = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.image.import", - path: "/" + this.gapiVersion + "/" + project + "/image:import", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsImageApiClient = - function () {}; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.image.import', + path: '/' + this.gapiVersion + '/' + project + '/image:import', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsImageApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsImageCollectionApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsImageCollectionApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsImageCollectionApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsImageCollectionApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsImageCollectionApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsImageCollectionApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsImageCollectionApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsImageCollectionApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsImageCollectionApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsImageCollectionApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsImageCollectionApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsImageCollectionApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsImageCollectionApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsImageCollectionApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsImageCollectionApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsImageCollectionApiClientImpl.prototype.computeImages = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.imageCollection.computeImages", - path: - "/" + - this.gapiVersion + - "/" + - project + - "/imageCollection:computeImages", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ComputeImagesResponse, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.imageCollection.computeImages', + path: + '/' + + this.gapiVersion + + '/' + + project + + '/imageCollection:computeImages', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ComputeImagesResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsImageCollectionApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsLocationsAssetsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsAssetsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsAssetsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsAssetsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsAssetsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsAssetsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsLocationsAssetsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsAssetsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsAssetsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsAssetsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsAssetsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsAssetsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsAssetsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsAssetsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsAssetsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsAssetsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.assets.create", - path: "/" + this.gapiVersion + "/" + parent + "/assets", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.locations.assets.create', + path: '/' + this.gapiVersion + '/' + parent + '/assets', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsAssetsApiClientImpl.prototype.createInernal = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.assets.createInernal", - path: "/" + this.gapiVersion + "/" + parent + "/assets:createInernal", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineAsset, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.locations.assets.createInernal', + path: + '/' + this.gapiVersion + '/' + parent + '/assets:createInernal', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineAsset, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsAssetsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsLocationsFilmstripThumbnailsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsFilmstripThumbnailsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsFilmstripThumbnailsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsFilmstripThumbnailsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsFilmstripThumbnailsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsFilmstripThumbnailsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsLocationsFilmstripThumbnailsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsFilmstripThumbnailsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsFilmstripThumbnailsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsFilmstripThumbnailsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsFilmstripThumbnailsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsFilmstripThumbnailsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsFilmstripThumbnailsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsFilmstripThumbnailsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsFilmstripThumbnailsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsFilmstripThumbnailsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.filmstripThumbnails.create", - path: "/" + this.gapiVersion + "/" + parent + "/filmstripThumbnails", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: + 'earthengine.projects.locations.filmstripThumbnails.create', + path: + '/' + this.gapiVersion + '/' + parent + '/filmstripThumbnails', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.FilmstripThumbnail, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsFilmstripThumbnailsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsLocationsMapsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsMapsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsMapsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsMapsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsMapsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsMapsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsLocationsMapsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsMapsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsMapsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsMapsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsMapsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsMapsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsMapsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsMapsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsMapsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsMapsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.maps.create", - path: "/" + this.gapiVersion + "/" + parent + "/maps", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineMap, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.locations.maps.create', + path: '/' + this.gapiVersion + '/' + parent + '/maps', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineMap, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsMapsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsLocationsTablesApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsTablesApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsTablesApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsTablesApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsTablesApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsTablesApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsLocationsTablesApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsTablesApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsTablesApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsTablesApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsTablesApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsTablesApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsTablesApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsTablesApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsTablesApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsTablesApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.tables.create", - path: "/" + this.gapiVersion + "/" + parent + "/tables", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Table, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.locations.tables.create', + path: '/' + this.gapiVersion + '/' + parent + '/tables', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Table, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsTablesApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsLocationsThumbnailsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsThumbnailsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsThumbnailsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsThumbnailsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsThumbnailsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsThumbnailsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsLocationsThumbnailsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsThumbnailsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsThumbnailsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsThumbnailsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsThumbnailsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsThumbnailsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsThumbnailsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsThumbnailsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsThumbnailsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsThumbnailsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.thumbnails.create", - path: "/" + this.gapiVersion + "/" + parent + "/thumbnails", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Thumbnail, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.locations.thumbnails.create', + path: '/' + this.gapiVersion + '/' + parent + '/thumbnails', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Thumbnail, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsThumbnailsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsLocationsVideoThumbnailsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsLocationsVideoThumbnailsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsVideoThumbnailsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsVideoThumbnailsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsVideoThumbnailsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsVideoThumbnailsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsLocationsVideoThumbnailsApiClientAltEnum = - function () {}; -module$exports$eeapiclient$ee_api_client.ProjectsLocationsVideoThumbnailsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsVideoThumbnailsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsVideoThumbnailsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsLocationsVideoThumbnailsApiClientAltEnum.PROTO, - ]; - }, - }; + function () {} +module$exports$eeapiclient$ee_api_client.ProjectsLocationsVideoThumbnailsApiClientAltEnum = + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsVideoThumbnailsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsVideoThumbnailsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsLocationsVideoThumbnailsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsVideoThumbnailsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsVideoThumbnailsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/locations/[^/]+$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.locations.videoThumbnails.create", - path: "/" + this.gapiVersion + "/" + parent + "/videoThumbnails", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.VideoThumbnail, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/locations/[^/]+$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.locations.videoThumbnails.create', + path: '/' + this.gapiVersion + '/' + parent + '/videoThumbnails', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.VideoThumbnail, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsLocationsVideoThumbnailsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsMapApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsMapApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsMapApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsMapApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsMapApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsMapApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsMapApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum + .JSON, + module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum + .MEDIA, + module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientAltEnum + .PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsMapApiClientImpl.prototype.export = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.map.export", - path: "/" + this.gapiVersion + "/" + project + "/map:export", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsMapApiClient = function () {}; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.map.export', + path: '/' + this.gapiVersion + '/' + project + '/map:export', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsMapApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsMapsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsMapsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsMapsApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsMapsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsMapsApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsMapsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsMapsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsMapsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsMapsApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.maps.create", - path: "/" + this.gapiVersion + "/" + parent + "/maps", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.EarthEngineMap, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClient = function () {}; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.maps.create', + path: '/' + this.gapiVersion + '/' + parent + '/maps', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.EarthEngineMap, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsMapsApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsMapsTilesApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsMapsTilesApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsMapsTilesApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsMapsTilesApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsMapsTilesApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsMapsTilesApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsMapsTilesApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsMapsTilesApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsMapsTilesApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClientImpl.prototype.get = - function (parent, zoom, x, y, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - parent, - RegExp("^projects/[^/]+/maps/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.maps.tiles.get", - path: - "/" + - this.gapiVersion + - "/" + - parent + - "/tiles/" + - zoom + - "/" + - x + - "/" + - y, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (parent, zoom, x, y, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + parent, + RegExp('^projects/[^/]+/maps/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.maps.tiles.get', + path: + '/' + + this.gapiVersion + + '/' + + parent + + '/tiles/' + + zoom + + '/' + + x + + '/' + + y, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsMapsTilesApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsOperationsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsOperationsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsOperationsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsOperationsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsOperationsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsOperationsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsOperationsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsOperationsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsOperationsApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsOperationsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsOperationsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsOperationsApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientImpl.prototype.cancel = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/operations/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.operations.cancel", - path: "/" + this.gapiVersion + "/" + name + ":cancel", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Empty, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/operations/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.operations.cancel', + path: '/' + this.gapiVersion + '/' + name + ':cancel', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Empty, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientImpl.prototype.delete = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/operations/.*$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "DELETE", - methodId: "earthengine.projects.operations.delete", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Empty, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/operations/.*$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'DELETE', + methodId: 'earthengine.projects.operations.delete', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Empty, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientImpl.prototype.get = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/operations/.*$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.operations.get", - path: "/" + this.gapiVersion + "/" + name, - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/operations/.*$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.operations.get', + path: '/' + this.gapiVersion + '/' + name, + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientImpl.prototype.list = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.operations.list", - path: "/" + this.gapiVersion + "/" + name + "/operations", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ListOperationsResponse, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(name, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.operations.list', + path: '/' + this.gapiVersion + '/' + name + '/operations', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ListOperationsResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClientImpl.prototype.wait = - function (name, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/operations/.*$") - ); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.operations.wait", - path: "/" + this.gapiVersion + "/" + name + ":wait", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; + function (name, $requestBody, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/operations/.*$') + ) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.operations.wait', + path: '/' + this.gapiVersion + '/' + name + ':wait', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsOperationsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsTableApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsTableApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsTableApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsTableApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsTableApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsTableApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsTableApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsTableApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsTableApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsTableApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientImpl.prototype.computeFeatures = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.table.computeFeatures", - path: "/" + this.gapiVersion + "/" + project + "/table:computeFeatures", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.table.computeFeatures', + path: + '/' + + this.gapiVersion + + '/' + + project + + '/table:computeFeatures', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientImpl.prototype.export = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.table.export", - path: "/" + this.gapiVersion + "/" + project + "/table:export", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.table.export', + path: '/' + this.gapiVersion + '/' + project + '/table:export', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsTableApiClientImpl.prototype.import = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.table.import", - path: "/" + this.gapiVersion + "/" + project + "/table:import", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsTableApiClient = - function () {}; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.table.import', + path: '/' + this.gapiVersion + '/' + project + '/table:import', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsTableApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsTablesApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsTablesApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsTablesApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsTablesApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsTablesApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsTablesApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsTablesApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsTablesApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsTablesApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.tables.create", - path: "/" + this.gapiVersion + "/" + parent + "/tables", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Table, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.tables.create', + path: '/' + this.gapiVersion + '/' + parent + '/tables', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Table, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl.prototype.getFeatures = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/tables/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.tables.getFeatures", - path: "/" + this.gapiVersion + "/" + name + ":getFeatures", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/tables/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.tables.getFeatures', + path: '/' + this.gapiVersion + '/' + name + ':getFeatures', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsThumbnailsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsThumbnailsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsThumbnailsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsThumbnailsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsThumbnailsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsThumbnailsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsThumbnailsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsThumbnailsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsThumbnailsApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsThumbnailsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsThumbnailsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsThumbnailsApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.thumbnails.create", - path: "/" + this.gapiVersion + "/" + parent + "/thumbnails", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Thumbnail, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.thumbnails.create', + path: '/' + this.gapiVersion + '/' + parent + '/thumbnails', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Thumbnail, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl.prototype.getPixels = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/thumbnails/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.thumbnails.getPixels", - path: "/" + this.gapiVersion + "/" + name + ":getPixels", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/thumbnails/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.thumbnails.getPixels', + path: '/' + this.gapiVersion + '/' + name + ':getPixels', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsValueApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsValueApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsValueApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsValueApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsValueApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsValueApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsValueApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsValueApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsValueApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl.prototype.compute = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.value.compute", - path: "/" + this.gapiVersion + "/" + project + "/value:compute", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: - module$exports$eeapiclient$ee_api_client.ComputeValueResponse, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient = - function () {}; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.value.compute', + path: '/' + this.gapiVersion + '/' + project + '/value:compute', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.ComputeValueResponse, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsVideoApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsVideoApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsVideoApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsVideoApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsVideoApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsVideoApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsVideoApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsVideoApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsVideoApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientImpl.prototype.export = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.video.export", - path: "/" + this.gapiVersion + "/" + project + "/video:export", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; -module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient = - function () {}; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.video.export', + path: '/' + this.gapiVersion + '/' + project + '/video:export', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } +module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient = function () {} module$exports$eeapiclient$ee_api_client.IProjectsVideoMapApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsVideoMapApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsVideoMapApiClient$XgafvEnum[2], - ]; - }, -}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsVideoMapApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsVideoMapApiClient$XgafvEnum[2], + ] + }, +} module$exports$eeapiclient$ee_api_client.IProjectsVideoMapApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum - .JSON, - module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum - .MEDIA, - module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum - .PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsVideoMapApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsVideoMapApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsVideoMapApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientImpl.prototype.export = - function ( - project, - $requestBody, - namedParameters, - passthroughNamedParameters - ) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.videoMap.export", - path: "/" + this.gapiVersion + "/" + project + "/videoMap:export", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + project, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Operation, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(project, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.videoMap.export', + path: '/' + this.gapiVersion + '/' + project + '/videoMap:export', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Operation, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.IProjectsVideoThumbnailsApiClient$XgafvEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum = - { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsVideoThumbnailsApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client - .ProjectsVideoThumbnailsApiClient$XgafvEnum[2], - ]; - }, - }; + { + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsVideoThumbnailsApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client + .ProjectsVideoThumbnailsApiClient$XgafvEnum[2], + ] + }, + } module$exports$eeapiclient$ee_api_client.IProjectsVideoThumbnailsApiClientAltEnum = - function () {}; + function () {} module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum = - { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client - .ProjectsVideoThumbnailsApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client - .ProjectsVideoThumbnailsApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client - .ProjectsVideoThumbnailsApiClientAltEnum.PROTO, - ]; - }, - }; + { + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client + .ProjectsVideoThumbnailsApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client + .ProjectsVideoThumbnailsApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client + .ProjectsVideoThumbnailsApiClientAltEnum.PROTO, + ] + }, + } module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl = - function (gapiVersion, gapiRequestService, apiClientHookFactory) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); - }; + function (gapiVersion, gapiRequestService, apiClientHookFactory) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) + } module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl.prototype.create = - function (parent, $requestBody, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$")); - return this.$apiClient.$request({ - body: $requestBody, - httpMethod: "POST", - methodId: "earthengine.projects.videoThumbnails.create", - path: "/" + this.gapiVersion + "/" + parent + "/videoThumbnails", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( + function ( + parent, + $requestBody, namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.VideoThumbnail, - }); - }; + ) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter(parent, RegExp('^projects/[^/]+$')) + return this.$apiClient.$request({ + body: $requestBody, + httpMethod: 'POST', + methodId: 'earthengine.projects.videoThumbnails.create', + path: '/' + this.gapiVersion + '/' + parent + '/videoThumbnails', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: + module$exports$eeapiclient$ee_api_client.VideoThumbnail, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl.prototype.getPixels = - function (name, namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - this.$apiClient.$validateParameter( - name, - RegExp("^projects/[^/]+/videoThumbnails/[^/]+$") - ); - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.projects.videoThumbnails.getPixels", - path: "/" + this.gapiVersion + "/" + name + ":getPixels", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, - }); - }; + function (name, namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + this.$apiClient.$validateParameter( + name, + RegExp('^projects/[^/]+/videoThumbnails/[^/]+$') + ) + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.projects.videoThumbnails.getPixels', + path: '/' + this.gapiVersion + '/' + name + ':getPixels', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.HttpBody, + }) + } module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient = - function () {}; -module$exports$eeapiclient$ee_api_client.IV1ApiClient$XgafvEnum = - function () {}; + function () {} +module$exports$eeapiclient$ee_api_client.IV1ApiClient$XgafvEnum = function () {} module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum = { - 1: "1", - 2: "2", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[1], - module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[2], - ]; - }, -}; -module$exports$eeapiclient$ee_api_client.IV1ApiClientAltEnum = function () {}; + 1: '1', + 2: '2', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[1], + module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[2], + ] + }, +} +module$exports$eeapiclient$ee_api_client.IV1ApiClientAltEnum = function () {} module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum = { - JSON: "json", - MEDIA: "media", - PROTO: "proto", - values: function () { - return [ - module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.JSON, - module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.MEDIA, - module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.PROTO, - ]; - }, -}; + JSON: 'json', + MEDIA: 'media', + PROTO: 'proto', + values: function () { + return [ + module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.JSON, + module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.MEDIA, + module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.PROTO, + ] + }, +} module$exports$eeapiclient$ee_api_client.V1ApiClientImpl = function ( - gapiVersion, - gapiRequestService, - apiClientHookFactory -) { - this.gapiVersion = gapiVersion; - this.$apiClient = - new module$exports$eeapiclient$promise_api_client.PromiseApiClient( - gapiRequestService, - void 0 === apiClientHookFactory ? null : apiClientHookFactory - ); -}; + gapiVersion, + gapiRequestService, + apiClientHookFactory +) { + this.gapiVersion = gapiVersion + this.$apiClient = + new module$exports$eeapiclient$promise_api_client.PromiseApiClient( + gapiRequestService, + void 0 === apiClientHookFactory ? null : apiClientHookFactory + ) +} module$exports$eeapiclient$ee_api_client.V1ApiClientImpl.prototype.getCapabilities = - function (namedParameters, passthroughNamedParameters) { - namedParameters = void 0 === namedParameters ? {} : namedParameters; - passthroughNamedParameters = - void 0 === passthroughNamedParameters ? {} : passthroughNamedParameters; - return this.$apiClient.$request({ - body: null, - httpMethod: "GET", - methodId: "earthengine.getCapabilities", - path: "/" + this.gapiVersion + "/capabilities", - queryParams: module$contents$eeapiclient$request_params_buildQueryParams( - namedParameters, - module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, - passthroughNamedParameters - ), - responseCtor: module$exports$eeapiclient$ee_api_client.Capabilities, - }); - }; -module$exports$eeapiclient$ee_api_client.V1ApiClient = function () {}; -ee.api = module$exports$eeapiclient$ee_api_client; -var module$exports$ee$apiVersion = { V1ALPHA: "v1alpha", V1: "v1" }; -module$exports$ee$apiVersion.VERSION = module$exports$ee$apiVersion.V1; + function (namedParameters, passthroughNamedParameters) { + namedParameters = void 0 === namedParameters ? {} : namedParameters + passthroughNamedParameters = + void 0 === passthroughNamedParameters + ? {} + : passthroughNamedParameters + return this.$apiClient.$request({ + body: null, + httpMethod: 'GET', + methodId: 'earthengine.getCapabilities', + path: '/' + this.gapiVersion + '/capabilities', + queryParams: + module$contents$eeapiclient$request_params_buildQueryParams( + namedParameters, + module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, + passthroughNamedParameters + ), + responseCtor: module$exports$eeapiclient$ee_api_client.Capabilities, + }) + } +module$exports$eeapiclient$ee_api_client.V1ApiClient = function () {} +ee.api = module$exports$eeapiclient$ee_api_client +var module$exports$ee$apiVersion = { V1ALPHA: 'v1alpha', V1: 'v1' } +module$exports$ee$apiVersion.VERSION = module$exports$ee$apiVersion.V1 var module$exports$eeapiclient$promise_request_service = {}, - module$contents$eeapiclient$promise_request_service_module = - module$contents$eeapiclient$promise_request_service_module || { - id: "javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js", - }; + module$contents$eeapiclient$promise_request_service_module = + module$contents$eeapiclient$promise_request_service_module || { + id: 'javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js', + } module$exports$eeapiclient$promise_request_service.PromiseRequestService = - function () {}; + function () {} module$exports$eeapiclient$promise_request_service.PromiseRequestService.prototype.send = - function (params, responseCtor) { - module$contents$eeapiclient$request_params_processParams(params); - return this.makeRequest(params).then(function (response) { - return responseCtor - ? module$contents$eeapiclient$domain_object_deserialize( - responseCtor, - response - ) - : response; - }); - }; -goog.async = {}; + function (params, responseCtor) { + module$contents$eeapiclient$request_params_processParams(params) + return this.makeRequest(params).then(function (response) { + return responseCtor + ? module$contents$eeapiclient$domain_object_deserialize( + responseCtor, + response + ) + : response + }) + } +goog.async = {} var module$contents$goog$async$FreeList_FreeList = function ( - create, - reset, - limit -) { - this.limit_ = limit; - this.create_ = create; - this.reset_ = reset; - this.occupants_ = 0; - this.head_ = null; -}; + create, + reset, + limit +) { + this.limit_ = limit + this.create_ = create + this.reset_ = reset + this.occupants_ = 0 + this.head_ = null +} module$contents$goog$async$FreeList_FreeList.prototype.get = function () { - if (0 < this.occupants_) { - this.occupants_--; - var item = this.head_; - this.head_ = item.next; - item.next = null; - } else { - item = this.create_(); - } - return item; -}; + if (0 < this.occupants_) { + this.occupants_-- + var item = this.head_ + this.head_ = item.next + item.next = null + } else { + item = this.create_() + } + return item +} module$contents$goog$async$FreeList_FreeList.prototype.put = function (item) { - this.reset_(item); - this.occupants_ < this.limit_ && - (this.occupants_++, (item.next = this.head_), (this.head_ = item)); -}; + this.reset_(item) + this.occupants_ < this.limit_ && + (this.occupants_++, (item.next = this.head_), (this.head_ = item)) +} module$contents$goog$async$FreeList_FreeList.prototype.occupants = function () { - return this.occupants_; -}; -goog.async.FreeList = module$contents$goog$async$FreeList_FreeList; -goog.dom.BrowserFeature = {}; -goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS = !1; -goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS = !1; + return this.occupants_ +} +goog.async.FreeList = module$contents$goog$async$FreeList_FreeList +goog.dom.BrowserFeature = {} +goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS = !1 +goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS = !1 goog.dom.BrowserFeature.detectOffscreenCanvas_ = function (contextName) { - try { - return !!new self.OffscreenCanvas(0, 0).getContext(contextName); - } catch (ex) {} - return !1; -}; + try { + return !!new self.OffscreenCanvas(0, 0).getContext(contextName) + } catch (ex) {} + return !1 +} goog.dom.BrowserFeature.OFFSCREEN_CANVAS_2D = - !goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS && - (goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS || - goog.dom.BrowserFeature.detectOffscreenCanvas_("2d")); -goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES = !0; -goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE = !0; -goog.dom.BrowserFeature.CAN_USE_INNER_TEXT = !1; + !goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS && + (goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS || + goog.dom.BrowserFeature.detectOffscreenCanvas_('2d')) +goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES = !0 +goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE = !0 +goog.dom.BrowserFeature.CAN_USE_INNER_TEXT = !1 goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = - goog.userAgent.IE || goog.userAgent.WEBKIT; -goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT = goog.userAgent.IE; + goog.userAgent.IE || goog.userAgent.WEBKIT +goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT = goog.userAgent.IE goog.math.Coordinate = function (opt_x, opt_y) { - this.x = void 0 !== opt_x ? opt_x : 0; - this.y = void 0 !== opt_y ? opt_y : 0; -}; + this.x = void 0 !== opt_x ? opt_x : 0 + this.y = void 0 !== opt_y ? opt_y : 0 +} goog.math.Coordinate.prototype.clone = function () { - return new goog.math.Coordinate(this.x, this.y); -}; + return new goog.math.Coordinate(this.x, this.y) +} goog.DEBUG && - (goog.math.Coordinate.prototype.toString = function () { - return "(" + this.x + ", " + this.y + ")"; - }); + (goog.math.Coordinate.prototype.toString = function () { + return '(' + this.x + ', ' + this.y + ')' + }) goog.math.Coordinate.prototype.equals = function (other) { - return ( - other instanceof goog.math.Coordinate && - goog.math.Coordinate.equals(this, other) - ); -}; + return ( + other instanceof goog.math.Coordinate && + goog.math.Coordinate.equals(this, other) + ) +} goog.math.Coordinate.equals = function (a, b) { - return a == b ? !0 : a && b ? a.x == b.x && a.y == b.y : !1; -}; + return a == b ? !0 : a && b ? a.x == b.x && a.y == b.y : !1 +} goog.math.Coordinate.distance = function (a, b) { - var dx = a.x - b.x, - dy = a.y - b.y; - return Math.sqrt(dx * dx + dy * dy); -}; + var dx = a.x - b.x, + dy = a.y - b.y + return Math.sqrt(dx * dx + dy * dy) +} goog.math.Coordinate.magnitude = function (a) { - return Math.sqrt(a.x * a.x + a.y * a.y); -}; + return Math.sqrt(a.x * a.x + a.y * a.y) +} goog.math.Coordinate.azimuth = function (a) { - return goog.math.angle(0, 0, a.x, a.y); -}; + return goog.math.angle(0, 0, a.x, a.y) +} goog.math.Coordinate.squaredDistance = function (a, b) { - var dx = a.x - b.x, - dy = a.y - b.y; - return dx * dx + dy * dy; -}; + var dx = a.x - b.x, + dy = a.y - b.y + return dx * dx + dy * dy +} goog.math.Coordinate.difference = function (a, b) { - return new goog.math.Coordinate(a.x - b.x, a.y - b.y); -}; + return new goog.math.Coordinate(a.x - b.x, a.y - b.y) +} goog.math.Coordinate.sum = function (a, b) { - return new goog.math.Coordinate(a.x + b.x, a.y + b.y); -}; + return new goog.math.Coordinate(a.x + b.x, a.y + b.y) +} goog.math.Coordinate.prototype.ceil = function () { - this.x = Math.ceil(this.x); - this.y = Math.ceil(this.y); - return this; -}; + this.x = Math.ceil(this.x) + this.y = Math.ceil(this.y) + return this +} goog.math.Coordinate.prototype.floor = function () { - this.x = Math.floor(this.x); - this.y = Math.floor(this.y); - return this; -}; + this.x = Math.floor(this.x) + this.y = Math.floor(this.y) + return this +} goog.math.Coordinate.prototype.round = function () { - this.x = Math.round(this.x); - this.y = Math.round(this.y); - return this; -}; + this.x = Math.round(this.x) + this.y = Math.round(this.y) + return this +} goog.math.Coordinate.prototype.translate = function (tx, opt_ty) { - tx instanceof goog.math.Coordinate - ? ((this.x += tx.x), (this.y += tx.y)) - : ((this.x += Number(tx)), - "number" === typeof opt_ty && (this.y += opt_ty)); - return this; -}; + tx instanceof goog.math.Coordinate + ? ((this.x += tx.x), (this.y += tx.y)) + : ((this.x += Number(tx)), + 'number' === typeof opt_ty && (this.y += opt_ty)) + return this +} goog.math.Coordinate.prototype.scale = function (sx, opt_sy) { - var sy; - this.x *= sx; - this.y *= "number" === typeof opt_sy ? opt_sy : sx; - return this; -}; + var sy + this.x *= sx + this.y *= 'number' === typeof opt_sy ? opt_sy : sx + return this +} goog.math.Coordinate.prototype.rotateRadians = function (radians, opt_center) { - var center = opt_center || new goog.math.Coordinate(0, 0), - x = this.x, - y = this.y, - cos = Math.cos(radians), - sin = Math.sin(radians); - this.x = (x - center.x) * cos - (y - center.y) * sin + center.x; - this.y = (x - center.x) * sin + (y - center.y) * cos + center.y; -}; + var center = opt_center || new goog.math.Coordinate(0, 0), + x = this.x, + y = this.y, + cos = Math.cos(radians), + sin = Math.sin(radians) + this.x = (x - center.x) * cos - (y - center.y) * sin + center.x + this.y = (x - center.x) * sin + (y - center.y) * cos + center.y +} goog.math.Coordinate.prototype.rotateDegrees = function (degrees, opt_center) { - this.rotateRadians(goog.math.toRadians(degrees), opt_center); -}; + this.rotateRadians(goog.math.toRadians(degrees), opt_center) +} goog.math.Size = function (width, height) { - this.width = width; - this.height = height; -}; + this.width = width + this.height = height +} goog.math.Size.equals = function (a, b) { - return a == b ? !0 : a && b ? a.width == b.width && a.height == b.height : !1; -}; + return a == b + ? !0 + : a && b + ? a.width == b.width && a.height == b.height + : !1 +} goog.math.Size.prototype.clone = function () { - return new goog.math.Size(this.width, this.height); -}; + return new goog.math.Size(this.width, this.height) +} goog.DEBUG && - (goog.math.Size.prototype.toString = function () { - return "(" + this.width + " x " + this.height + ")"; - }); + (goog.math.Size.prototype.toString = function () { + return '(' + this.width + ' x ' + this.height + ')' + }) goog.math.Size.prototype.getLongest = function () { - return Math.max(this.width, this.height); -}; + return Math.max(this.width, this.height) +} goog.math.Size.prototype.getShortest = function () { - return Math.min(this.width, this.height); -}; + return Math.min(this.width, this.height) +} goog.math.Size.prototype.area = function () { - return this.width * this.height; -}; + return this.width * this.height +} goog.math.Size.prototype.perimeter = function () { - return 2 * (this.width + this.height); -}; + return 2 * (this.width + this.height) +} goog.math.Size.prototype.aspectRatio = function () { - return this.width / this.height; -}; + return this.width / this.height +} goog.math.Size.prototype.isEmpty = function () { - return !this.area(); -}; + return !this.area() +} goog.math.Size.prototype.ceil = function () { - this.width = Math.ceil(this.width); - this.height = Math.ceil(this.height); - return this; -}; + this.width = Math.ceil(this.width) + this.height = Math.ceil(this.height) + return this +} goog.math.Size.prototype.fitsInside = function (target) { - return this.width <= target.width && this.height <= target.height; -}; + return this.width <= target.width && this.height <= target.height +} goog.math.Size.prototype.floor = function () { - this.width = Math.floor(this.width); - this.height = Math.floor(this.height); - return this; -}; + this.width = Math.floor(this.width) + this.height = Math.floor(this.height) + return this +} goog.math.Size.prototype.round = function () { - this.width = Math.round(this.width); - this.height = Math.round(this.height); - return this; -}; + this.width = Math.round(this.width) + this.height = Math.round(this.height) + return this +} goog.math.Size.prototype.scale = function (sx, opt_sy) { - var sy; - this.width *= sx; - this.height *= "number" === typeof opt_sy ? opt_sy : sx; - return this; -}; + var sy + this.width *= sx + this.height *= 'number' === typeof opt_sy ? opt_sy : sx + return this +} goog.math.Size.prototype.scaleToCover = function (target) { - var s = - this.aspectRatio() <= target.aspectRatio() - ? target.width / this.width - : target.height / this.height; - return this.scale(s); -}; + var s = + this.aspectRatio() <= target.aspectRatio() + ? target.width / this.width + : target.height / this.height + return this.scale(s) +} goog.math.Size.prototype.scaleToFit = function (target) { - var s = - this.aspectRatio() > target.aspectRatio() - ? target.width / this.width - : target.height / this.height; - return this.scale(s); -}; -goog.dom.Appendable = {}; -goog.dom.ASSUME_QUIRKS_MODE = !1; -goog.dom.ASSUME_STANDARDS_MODE = !1; + var s = + this.aspectRatio() > target.aspectRatio() + ? target.width / this.width + : target.height / this.height + return this.scale(s) +} +goog.dom.Appendable = {} +goog.dom.ASSUME_QUIRKS_MODE = !1 +goog.dom.ASSUME_STANDARDS_MODE = !1 goog.dom.COMPAT_MODE_KNOWN_ = - goog.dom.ASSUME_QUIRKS_MODE || goog.dom.ASSUME_STANDARDS_MODE; + goog.dom.ASSUME_QUIRKS_MODE || goog.dom.ASSUME_STANDARDS_MODE goog.dom.getDomHelper = function (opt_element) { - return opt_element - ? new goog.dom.DomHelper(goog.dom.getOwnerDocument(opt_element)) - : goog.dom.defaultDomHelper_ || - (goog.dom.defaultDomHelper_ = new goog.dom.DomHelper()); -}; + return opt_element + ? new goog.dom.DomHelper(goog.dom.getOwnerDocument(opt_element)) + : goog.dom.defaultDomHelper_ || + (goog.dom.defaultDomHelper_ = new goog.dom.DomHelper()) +} goog.dom.getDocument = function () { - return document; -}; + return document +} goog.dom.getElement = function (element) { - return goog.dom.getElementHelper_(document, element); -}; + return goog.dom.getElementHelper_(document, element) +} goog.dom.getHTMLElement = function (id) { - var element = goog.dom.getElement(id); - return element - ? module$contents$goog$asserts$dom_assertIsHtmlElement(element) - : null; -}; + var element = goog.dom.getElement(id) + return element + ? module$contents$goog$asserts$dom_assertIsHtmlElement(element) + : null +} goog.dom.getElementHelper_ = function (doc, element) { - return "string" === typeof element ? doc.getElementById(element) : element; -}; + return 'string' === typeof element ? doc.getElementById(element) : element +} goog.dom.getRequiredElement = function (id) { - return goog.dom.getRequiredElementHelper_(document, id); -}; + return goog.dom.getRequiredElementHelper_(document, id) +} goog.dom.getRequiredHTMLElement = function (id) { - return module$contents$goog$asserts$dom_assertIsHtmlElement( - goog.dom.getRequiredElementHelper_(document, id) - ); -}; + return module$contents$goog$asserts$dom_assertIsHtmlElement( + goog.dom.getRequiredElementHelper_(document, id) + ) +} goog.dom.getRequiredElementHelper_ = function (doc, id) { - goog.asserts.assertString(id); - var element = goog.dom.getElementHelper_(doc, id); - return goog.asserts.assert(element, "No element found with id: " + id); -}; -goog.dom.$ = goog.dom.getElement; + goog.asserts.assertString(id) + var element = goog.dom.getElementHelper_(doc, id) + return goog.asserts.assert(element, 'No element found with id: ' + id) +} +goog.dom.$ = goog.dom.getElement goog.dom.getElementsByTagName = function (tagName, opt_parent) { - return (opt_parent || document).getElementsByTagName(String(tagName)); -}; + return (opt_parent || document).getElementsByTagName(String(tagName)) +} goog.dom.getElementsByTagNameAndClass = function (opt_tag, opt_class, opt_el) { - return goog.dom.getElementsByTagNameAndClass_( - document, - opt_tag, - opt_class, - opt_el - ); -}; + return goog.dom.getElementsByTagNameAndClass_( + document, + opt_tag, + opt_class, + opt_el + ) +} goog.dom.getElementByTagNameAndClass = function (opt_tag, opt_class, opt_el) { - return goog.dom.getElementByTagNameAndClass_( - document, - opt_tag, - opt_class, - opt_el - ); -}; + return goog.dom.getElementByTagNameAndClass_( + document, + opt_tag, + opt_class, + opt_el + ) +} goog.dom.getElementsByClass = function (className, opt_el) { - var parent = opt_el || document; - return goog.dom.canUseQuerySelector_(parent) - ? parent.querySelectorAll("." + className) - : goog.dom.getElementsByTagNameAndClass_(document, "*", className, opt_el); -}; + var parent = opt_el || document + return goog.dom.canUseQuerySelector_(parent) + ? parent.querySelectorAll('.' + className) + : goog.dom.getElementsByTagNameAndClass_( + document, + '*', + className, + opt_el + ) +} goog.dom.getElementByClass = function (className, opt_el) { - var parent = opt_el || document, - retVal = null; - return ( - (retVal = parent.getElementsByClassName - ? parent.getElementsByClassName(className)[0] - : goog.dom.getElementByTagNameAndClass_( - document, - "*", - className, - opt_el - )) || null - ); -}; + var parent = opt_el || document, + retVal = null + return ( + (retVal = parent.getElementsByClassName + ? parent.getElementsByClassName(className)[0] + : goog.dom.getElementByTagNameAndClass_( + document, + '*', + className, + opt_el + )) || null + ) +} goog.dom.getHTMLElementByClass = function (className, opt_parent) { - var element = goog.dom.getElementByClass(className, opt_parent); - return element - ? module$contents$goog$asserts$dom_assertIsHtmlElement(element) - : null; -}; + var element = goog.dom.getElementByClass(className, opt_parent) + return element + ? module$contents$goog$asserts$dom_assertIsHtmlElement(element) + : null +} goog.dom.getRequiredElementByClass = function (className, opt_root) { - var retValue = goog.dom.getElementByClass(className, opt_root); - return goog.asserts.assert( - retValue, - "No element found with className: " + className - ); -}; + var retValue = goog.dom.getElementByClass(className, opt_root) + return goog.asserts.assert( + retValue, + 'No element found with className: ' + className + ) +} goog.dom.getRequiredHTMLElementByClass = function (className, opt_parent) { - var retValue = goog.dom.getElementByClass(className, opt_parent); - goog.asserts.assert( - retValue, - "No HTMLElement found with className: " + className - ); - return module$contents$goog$asserts$dom_assertIsHtmlElement(retValue); -}; + var retValue = goog.dom.getElementByClass(className, opt_parent) + goog.asserts.assert( + retValue, + 'No HTMLElement found with className: ' + className + ) + return module$contents$goog$asserts$dom_assertIsHtmlElement(retValue) +} goog.dom.canUseQuerySelector_ = function (parent) { - return !(!parent.querySelectorAll || !parent.querySelector); -}; + return !(!parent.querySelectorAll || !parent.querySelector) +} goog.dom.getElementsByTagNameAndClass_ = function ( - doc, - opt_tag, - opt_class, - opt_el -) { - var parent = opt_el || doc, - tagName = opt_tag && "*" != opt_tag ? String(opt_tag).toUpperCase() : ""; - if (goog.dom.canUseQuerySelector_(parent) && (tagName || opt_class)) { - return parent.querySelectorAll( - tagName + (opt_class ? "." + opt_class : "") - ); - } - if (opt_class && parent.getElementsByClassName) { - var els = parent.getElementsByClassName(opt_class); - if (tagName) { - for (var arrayLike = {}, len = 0, i = 0, el; (el = els[i]); i++) { - tagName == el.nodeName && (arrayLike[len++] = el); - } - arrayLike.length = len; - return arrayLike; - } - return els; - } - els = parent.getElementsByTagName(tagName || "*"); - if (opt_class) { - arrayLike = {}; - for (i = len = 0; (el = els[i]); i++) { - var className = el.className; - "function" == typeof className.split && - module$contents$goog$array_contains( - className.split(/\s+/), - opt_class - ) && - (arrayLike[len++] = el); + doc, + opt_tag, + opt_class, + opt_el +) { + var parent = opt_el || doc, + tagName = opt_tag && '*' != opt_tag ? String(opt_tag).toUpperCase() : '' + if (goog.dom.canUseQuerySelector_(parent) && (tagName || opt_class)) { + return parent.querySelectorAll( + tagName + (opt_class ? '.' + opt_class : '') + ) + } + if (opt_class && parent.getElementsByClassName) { + var els = parent.getElementsByClassName(opt_class) + if (tagName) { + for (var arrayLike = {}, len = 0, i = 0, el; (el = els[i]); i++) { + tagName == el.nodeName && (arrayLike[len++] = el) + } + arrayLike.length = len + return arrayLike + } + return els + } + els = parent.getElementsByTagName(tagName || '*') + if (opt_class) { + arrayLike = {} + for (i = len = 0; (el = els[i]); i++) { + var className = el.className + 'function' == typeof className.split && + module$contents$goog$array_contains( + className.split(/\s+/), + opt_class + ) && + (arrayLike[len++] = el) + } + arrayLike.length = len + return arrayLike } - arrayLike.length = len; - return arrayLike; - } - return els; -}; + return els +} goog.dom.getElementByTagNameAndClass_ = function ( - doc, - opt_tag, - opt_class, - opt_el -) { - var parent = opt_el || doc, - tag = opt_tag && "*" != opt_tag ? String(opt_tag).toUpperCase() : ""; - return goog.dom.canUseQuerySelector_(parent) && (tag || opt_class) - ? parent.querySelector(tag + (opt_class ? "." + opt_class : "")) - : goog.dom.getElementsByTagNameAndClass_( - doc, - opt_tag, - opt_class, - opt_el - )[0] || null; -}; -goog.dom.$$ = goog.dom.getElementsByTagNameAndClass; + doc, + opt_tag, + opt_class, + opt_el +) { + var parent = opt_el || doc, + tag = opt_tag && '*' != opt_tag ? String(opt_tag).toUpperCase() : '' + return goog.dom.canUseQuerySelector_(parent) && (tag || opt_class) + ? parent.querySelector(tag + (opt_class ? '.' + opt_class : '')) + : goog.dom.getElementsByTagNameAndClass_( + doc, + opt_tag, + opt_class, + opt_el + )[0] || null +} +goog.dom.$$ = goog.dom.getElementsByTagNameAndClass goog.dom.setProperties = function (element, properties) { - module$contents$goog$object_forEach(properties, function (val, key) { - val && - "object" == typeof val && - val.implementsGoogStringTypedString && - (val = val.getTypedStringValue()); - "style" == key - ? (element.style.cssText = val) - : "class" == key - ? (element.className = val) - : "for" == key - ? (element.htmlFor = val) - : goog.dom.DIRECT_ATTRIBUTE_MAP_.hasOwnProperty(key) - ? element.setAttribute(goog.dom.DIRECT_ATTRIBUTE_MAP_[key], val) - : goog.string.startsWith(key, "aria-") || - goog.string.startsWith(key, "data-") - ? element.setAttribute(key, val) - : (element[key] = val); - }); -}; + module$contents$goog$object_forEach(properties, function (val, key) { + val && + 'object' == typeof val && + val.implementsGoogStringTypedString && + (val = val.getTypedStringValue()) + 'style' == key + ? (element.style.cssText = val) + : 'class' == key + ? (element.className = val) + : 'for' == key + ? (element.htmlFor = val) + : goog.dom.DIRECT_ATTRIBUTE_MAP_.hasOwnProperty(key) + ? element.setAttribute(goog.dom.DIRECT_ATTRIBUTE_MAP_[key], val) + : goog.string.startsWith(key, 'aria-') || + goog.string.startsWith(key, 'data-') + ? element.setAttribute(key, val) + : (element[key] = val) + }) +} goog.dom.DIRECT_ATTRIBUTE_MAP_ = { - cellpadding: "cellPadding", - cellspacing: "cellSpacing", - colspan: "colSpan", - frameborder: "frameBorder", - height: "height", - maxlength: "maxLength", - nonce: "nonce", - role: "role", - rowspan: "rowSpan", - type: "type", - usemap: "useMap", - valign: "vAlign", - width: "width", -}; + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing', + colspan: 'colSpan', + frameborder: 'frameBorder', + height: 'height', + maxlength: 'maxLength', + nonce: 'nonce', + role: 'role', + rowspan: 'rowSpan', + type: 'type', + usemap: 'useMap', + valign: 'vAlign', + width: 'width', +} goog.dom.getViewportSize = function (opt_window) { - return goog.dom.getViewportSize_(opt_window || window); -}; + return goog.dom.getViewportSize_(opt_window || window) +} goog.dom.getViewportSize_ = function (win) { - var doc = win.document, - el = goog.dom.isCss1CompatMode_(doc) ? doc.documentElement : doc.body; - return new goog.math.Size(el.clientWidth, el.clientHeight); -}; + var doc = win.document, + el = goog.dom.isCss1CompatMode_(doc) ? doc.documentElement : doc.body + return new goog.math.Size(el.clientWidth, el.clientHeight) +} goog.dom.getDocumentHeight = function () { - return goog.dom.getDocumentHeight_(window); -}; + return goog.dom.getDocumentHeight_(window) +} goog.dom.getDocumentHeightForWindow = function (win) { - return goog.dom.getDocumentHeight_(win); -}; + return goog.dom.getDocumentHeight_(win) +} goog.dom.getDocumentHeight_ = function (win) { - var doc = win.document, - height = 0; - if (doc) { - var body = doc.body, - docEl = doc.documentElement; - if (!docEl || !body) { - return 0; - } - var vh = goog.dom.getViewportSize_(win).height; - if (goog.dom.isCss1CompatMode_(doc) && docEl.scrollHeight) { - height = - docEl.scrollHeight != vh ? docEl.scrollHeight : docEl.offsetHeight; - } else { - var sh = docEl.scrollHeight, - oh = docEl.offsetHeight; - docEl.clientHeight != oh && - ((sh = body.scrollHeight), (oh = body.offsetHeight)); - height = sh > vh ? (sh > oh ? sh : oh) : sh < oh ? sh : oh; - } - } - return height; -}; + var doc = win.document, + height = 0 + if (doc) { + var body = doc.body, + docEl = doc.documentElement + if (!docEl || !body) { + return 0 + } + var vh = goog.dom.getViewportSize_(win).height + if (goog.dom.isCss1CompatMode_(doc) && docEl.scrollHeight) { + height = + docEl.scrollHeight != vh + ? docEl.scrollHeight + : docEl.offsetHeight + } else { + var sh = docEl.scrollHeight, + oh = docEl.offsetHeight + docEl.clientHeight != oh && + ((sh = body.scrollHeight), (oh = body.offsetHeight)) + height = sh > vh ? (sh > oh ? sh : oh) : sh < oh ? sh : oh + } + } + return height +} goog.dom.getPageScroll = function (opt_window) { - return goog.dom - .getDomHelper((opt_window || goog.global || window).document) - .getDocumentScroll(); -}; + return goog.dom + .getDomHelper((opt_window || goog.global || window).document) + .getDocumentScroll() +} goog.dom.getDocumentScroll = function () { - return goog.dom.getDocumentScroll_(document); -}; + return goog.dom.getDocumentScroll_(document) +} goog.dom.getDocumentScroll_ = function (doc) { - var el = goog.dom.getDocumentScrollElement_(doc), - win = goog.dom.getWindow_(doc); - return goog.userAgent.IE && win.pageYOffset != el.scrollTop - ? new goog.math.Coordinate(el.scrollLeft, el.scrollTop) - : new goog.math.Coordinate( - win.pageXOffset || el.scrollLeft, - win.pageYOffset || el.scrollTop - ); -}; + var el = goog.dom.getDocumentScrollElement_(doc), + win = goog.dom.getWindow_(doc) + return goog.userAgent.IE && win.pageYOffset != el.scrollTop + ? new goog.math.Coordinate(el.scrollLeft, el.scrollTop) + : new goog.math.Coordinate( + win.pageXOffset || el.scrollLeft, + win.pageYOffset || el.scrollTop + ) +} goog.dom.getDocumentScrollElement = function () { - return goog.dom.getDocumentScrollElement_(document); -}; + return goog.dom.getDocumentScrollElement_(document) +} goog.dom.getDocumentScrollElement_ = function (doc) { - return doc.scrollingElement - ? doc.scrollingElement - : !goog.userAgent.WEBKIT && goog.dom.isCss1CompatMode_(doc) - ? doc.documentElement - : doc.body || doc.documentElement; -}; + return doc.scrollingElement + ? doc.scrollingElement + : !goog.userAgent.WEBKIT && goog.dom.isCss1CompatMode_(doc) + ? doc.documentElement + : doc.body || doc.documentElement +} goog.dom.getWindow = function (opt_doc) { - return opt_doc ? goog.dom.getWindow_(opt_doc) : window; -}; + return opt_doc ? goog.dom.getWindow_(opt_doc) : window +} goog.dom.getWindow_ = function (doc) { - return doc.parentWindow || doc.defaultView; -}; + return doc.parentWindow || doc.defaultView +} goog.dom.createDom = function (tagName, opt_attributes, var_args) { - return goog.dom.createDom_(document, arguments); -}; + return goog.dom.createDom_(document, arguments) +} goog.dom.createDom_ = function (doc, args) { - var attributes = args[1], - element = goog.dom.createElement_(doc, String(args[0])); - attributes && - ("string" === typeof attributes - ? (element.className = attributes) - : Array.isArray(attributes) - ? (element.className = attributes.join(" ")) - : goog.dom.setProperties(element, attributes)); - 2 < args.length && goog.dom.append_(doc, element, args, 2); - return element; -}; + var attributes = args[1], + element = goog.dom.createElement_(doc, String(args[0])) + attributes && + ('string' === typeof attributes + ? (element.className = attributes) + : Array.isArray(attributes) + ? (element.className = attributes.join(' ')) + : goog.dom.setProperties(element, attributes)) + 2 < args.length && goog.dom.append_(doc, element, args, 2) + return element +} goog.dom.append_ = function (doc, parent, args, startIndex) { - function childHandler(child) { - child && - parent.appendChild( - "string" === typeof child ? doc.createTextNode(child) : child - ); - } - for (var i = startIndex; i < args.length; i++) { - var arg = args[i]; - goog.isArrayLike(arg) && !goog.dom.isNodeLike(arg) - ? module$contents$goog$array_forEach( - goog.dom.isNodeList(arg) - ? module$contents$goog$array_toArray(arg) - : arg, - childHandler - ) - : childHandler(arg); - } -}; -goog.dom.$dom = goog.dom.createDom; + function childHandler(child) { + child && + parent.appendChild( + 'string' === typeof child ? doc.createTextNode(child) : child + ) + } + for (var i = startIndex; i < args.length; i++) { + var arg = args[i] + goog.isArrayLike(arg) && !goog.dom.isNodeLike(arg) + ? module$contents$goog$array_forEach( + goog.dom.isNodeList(arg) + ? module$contents$goog$array_toArray(arg) + : arg, + childHandler + ) + : childHandler(arg) + } +} +goog.dom.$dom = goog.dom.createDom goog.dom.createElement = function (name) { - return goog.dom.createElement_(document, name); -}; + return goog.dom.createElement_(document, name) +} goog.dom.createElement_ = function (doc, name) { - name = String(name); - "application/xhtml+xml" === doc.contentType && (name = name.toLowerCase()); - return doc.createElement(name); -}; + name = String(name) + 'application/xhtml+xml' === doc.contentType && (name = name.toLowerCase()) + return doc.createElement(name) +} goog.dom.createTextNode = function (content) { - return document.createTextNode(String(content)); -}; + return document.createTextNode(String(content)) +} goog.dom.createTable = function (rows, columns, opt_fillWithNbsp) { - return goog.dom.createTable_(document, rows, columns, !!opt_fillWithNbsp); -}; + return goog.dom.createTable_(document, rows, columns, !!opt_fillWithNbsp) +} goog.dom.createTable_ = function (doc, rows, columns, fillWithNbsp) { - for ( - var table = goog.dom.createElement_(doc, goog.dom.TagName.TABLE), - tbody = table.appendChild( - goog.dom.createElement_(doc, goog.dom.TagName.TBODY) - ), - i = 0; - i < rows; - i++ - ) { for ( - var tr = goog.dom.createElement_(doc, goog.dom.TagName.TR), j = 0; - j < columns; - j++ + var table = goog.dom.createElement_(doc, goog.dom.TagName.TABLE), + tbody = table.appendChild( + goog.dom.createElement_(doc, goog.dom.TagName.TBODY) + ), + i = 0; + i < rows; + i++ ) { - var td = goog.dom.createElement_(doc, goog.dom.TagName.TD); - fillWithNbsp && goog.dom.setTextContent(td, goog.string.Unicode.NBSP); - tr.appendChild(td); - } - tbody.appendChild(tr); - } - return table; -}; + for ( + var tr = goog.dom.createElement_(doc, goog.dom.TagName.TR), j = 0; + j < columns; + j++ + ) { + var td = goog.dom.createElement_(doc, goog.dom.TagName.TD) + fillWithNbsp && + goog.dom.setTextContent(td, goog.string.Unicode.NBSP) + tr.appendChild(td) + } + tbody.appendChild(tr) + } + return table +} goog.dom.constHtmlToNode = function (var_args) { - var stringArray = Array.prototype.map.call( - arguments, - goog.string.Const.unwrap - ), - safeHtml = module$contents$safevalues$restricted$reviewed_htmlSafeByReview( - stringArray.join(""), - "Constant HTML string, that gets turned into a Node later, so it will be automatically balanced." - ); - return goog.dom.safeHtmlToNode(safeHtml); -}; + var stringArray = Array.prototype.map.call( + arguments, + goog.string.Const.unwrap + ), + safeHtml = + module$contents$safevalues$restricted$reviewed_htmlSafeByReview( + stringArray.join(''), + 'Constant HTML string, that gets turned into a Node later, so it will be automatically balanced.' + ) + return goog.dom.safeHtmlToNode(safeHtml) +} goog.dom.safeHtmlToNode = function (html) { - return goog.dom.safeHtmlToNode_(document, html); -}; + return goog.dom.safeHtmlToNode_(document, html) +} goog.dom.safeHtmlToNode_ = function (doc, html) { - var tempDiv = goog.dom.createElement_(doc, goog.dom.TagName.DIV); - goog.userAgent.IE - ? (goog.dom.safe.setInnerHtml( - tempDiv, - module$contents$goog$html$SafeHtml_SafeHtml.concat( - module$contents$goog$html$SafeHtml_SafeHtml.BR, - html - ) - ), - tempDiv.removeChild(goog.asserts.assert(tempDiv.firstChild))) - : goog.dom.safe.setInnerHtml(tempDiv, html); - return goog.dom.childrenToNode_(doc, tempDiv); -}; + var tempDiv = goog.dom.createElement_(doc, goog.dom.TagName.DIV) + goog.userAgent.IE + ? (goog.dom.safe.setInnerHtml( + tempDiv, + module$contents$goog$html$SafeHtml_SafeHtml.concat( + module$contents$goog$html$SafeHtml_SafeHtml.BR, + html + ) + ), + tempDiv.removeChild(goog.asserts.assert(tempDiv.firstChild))) + : goog.dom.safe.setInnerHtml(tempDiv, html) + return goog.dom.childrenToNode_(doc, tempDiv) +} goog.dom.childrenToNode_ = function (doc, tempDiv) { - if (1 == tempDiv.childNodes.length) { - return tempDiv.removeChild(goog.asserts.assert(tempDiv.firstChild)); - } - for (var fragment = doc.createDocumentFragment(); tempDiv.firstChild; ) { - fragment.appendChild(tempDiv.firstChild); - } - return fragment; -}; + if (1 == tempDiv.childNodes.length) { + return tempDiv.removeChild(goog.asserts.assert(tempDiv.firstChild)) + } + for (var fragment = doc.createDocumentFragment(); tempDiv.firstChild; ) { + fragment.appendChild(tempDiv.firstChild) + } + return fragment +} goog.dom.isCss1CompatMode = function () { - return goog.dom.isCss1CompatMode_(document); -}; + return goog.dom.isCss1CompatMode_(document) +} goog.dom.isCss1CompatMode_ = function (doc) { - return goog.dom.COMPAT_MODE_KNOWN_ - ? goog.dom.ASSUME_STANDARDS_MODE - : "CSS1Compat" == doc.compatMode; -}; + return goog.dom.COMPAT_MODE_KNOWN_ + ? goog.dom.ASSUME_STANDARDS_MODE + : 'CSS1Compat' == doc.compatMode +} goog.dom.canHaveChildren = function (node) { - if (node.nodeType != goog.dom.NodeType.ELEMENT) { - return !1; - } - switch (node.tagName) { - case String(goog.dom.TagName.APPLET): - case String(goog.dom.TagName.AREA): - case String(goog.dom.TagName.BASE): - case String(goog.dom.TagName.BR): - case String(goog.dom.TagName.COL): - case String(goog.dom.TagName.COMMAND): - case String(goog.dom.TagName.EMBED): - case String(goog.dom.TagName.FRAME): - case String(goog.dom.TagName.HR): - case String(goog.dom.TagName.IMG): - case String(goog.dom.TagName.INPUT): - case String(goog.dom.TagName.IFRAME): - case String(goog.dom.TagName.ISINDEX): - case String(goog.dom.TagName.KEYGEN): - case String(goog.dom.TagName.LINK): - case String(goog.dom.TagName.NOFRAMES): - case String(goog.dom.TagName.NOSCRIPT): - case String(goog.dom.TagName.META): - case String(goog.dom.TagName.OBJECT): - case String(goog.dom.TagName.PARAM): - case String(goog.dom.TagName.SCRIPT): - case String(goog.dom.TagName.SOURCE): - case String(goog.dom.TagName.STYLE): - case String(goog.dom.TagName.TRACK): - case String(goog.dom.TagName.WBR): - return !1; - } - return !0; -}; + if (node.nodeType != goog.dom.NodeType.ELEMENT) { + return !1 + } + switch (node.tagName) { + case String(goog.dom.TagName.APPLET): + case String(goog.dom.TagName.AREA): + case String(goog.dom.TagName.BASE): + case String(goog.dom.TagName.BR): + case String(goog.dom.TagName.COL): + case String(goog.dom.TagName.COMMAND): + case String(goog.dom.TagName.EMBED): + case String(goog.dom.TagName.FRAME): + case String(goog.dom.TagName.HR): + case String(goog.dom.TagName.IMG): + case String(goog.dom.TagName.INPUT): + case String(goog.dom.TagName.IFRAME): + case String(goog.dom.TagName.ISINDEX): + case String(goog.dom.TagName.KEYGEN): + case String(goog.dom.TagName.LINK): + case String(goog.dom.TagName.NOFRAMES): + case String(goog.dom.TagName.NOSCRIPT): + case String(goog.dom.TagName.META): + case String(goog.dom.TagName.OBJECT): + case String(goog.dom.TagName.PARAM): + case String(goog.dom.TagName.SCRIPT): + case String(goog.dom.TagName.SOURCE): + case String(goog.dom.TagName.STYLE): + case String(goog.dom.TagName.TRACK): + case String(goog.dom.TagName.WBR): + return !1 + } + return !0 +} goog.dom.appendChild = function (parent, child) { - goog.asserts.assert( - null != parent && null != child, - "goog.dom.appendChild expects non-null arguments" - ); - parent.appendChild(child); -}; + goog.asserts.assert( + null != parent && null != child, + 'goog.dom.appendChild expects non-null arguments' + ) + parent.appendChild(child) +} goog.dom.append = function (parent, var_args) { - goog.dom.append_(goog.dom.getOwnerDocument(parent), parent, arguments, 1); -}; + goog.dom.append_(goog.dom.getOwnerDocument(parent), parent, arguments, 1) +} goog.dom.removeChildren = function (node) { - for (var child; (child = node.firstChild); ) { - node.removeChild(child); - } -}; + for (var child; (child = node.firstChild); ) { + node.removeChild(child) + } +} goog.dom.insertSiblingBefore = function (newNode, refNode) { - goog.asserts.assert( - null != newNode && null != refNode, - "goog.dom.insertSiblingBefore expects non-null arguments" - ); - refNode.parentNode && refNode.parentNode.insertBefore(newNode, refNode); -}; + goog.asserts.assert( + null != newNode && null != refNode, + 'goog.dom.insertSiblingBefore expects non-null arguments' + ) + refNode.parentNode && refNode.parentNode.insertBefore(newNode, refNode) +} goog.dom.insertSiblingAfter = function (newNode, refNode) { - goog.asserts.assert( - null != newNode && null != refNode, - "goog.dom.insertSiblingAfter expects non-null arguments" - ); - refNode.parentNode && - refNode.parentNode.insertBefore(newNode, refNode.nextSibling); -}; + goog.asserts.assert( + null != newNode && null != refNode, + 'goog.dom.insertSiblingAfter expects non-null arguments' + ) + refNode.parentNode && + refNode.parentNode.insertBefore(newNode, refNode.nextSibling) +} goog.dom.insertChildAt = function (parent, child, index) { - goog.asserts.assert( - null != parent, - "goog.dom.insertChildAt expects a non-null parent" - ); - parent.insertBefore(child, parent.childNodes[index] || null); -}; + goog.asserts.assert( + null != parent, + 'goog.dom.insertChildAt expects a non-null parent' + ) + parent.insertBefore(child, parent.childNodes[index] || null) +} goog.dom.removeNode = function (node) { - return node && node.parentNode ? node.parentNode.removeChild(node) : null; -}; + return node && node.parentNode ? node.parentNode.removeChild(node) : null +} goog.dom.replaceNode = function (newNode, oldNode) { - goog.asserts.assert( - null != newNode && null != oldNode, - "goog.dom.replaceNode expects non-null arguments" - ); - var parent = oldNode.parentNode; - parent && parent.replaceChild(newNode, oldNode); -}; + goog.asserts.assert( + null != newNode && null != oldNode, + 'goog.dom.replaceNode expects non-null arguments' + ) + var parent = oldNode.parentNode + parent && parent.replaceChild(newNode, oldNode) +} goog.dom.copyContents = function (target, source) { - goog.asserts.assert( - null != target && null != source, - "goog.dom.copyContents expects non-null arguments" - ); - var childNodes = source.cloneNode(!0).childNodes; - for (goog.dom.removeChildren(target); childNodes.length; ) { - target.appendChild(childNodes[0]); - } -}; + goog.asserts.assert( + null != target && null != source, + 'goog.dom.copyContents expects non-null arguments' + ) + var childNodes = source.cloneNode(!0).childNodes + for (goog.dom.removeChildren(target); childNodes.length; ) { + target.appendChild(childNodes[0]) + } +} goog.dom.flattenElement = function (element) { - var child, - parent = element.parentNode; - if (parent && parent.nodeType != goog.dom.NodeType.DOCUMENT_FRAGMENT) { - if (element.removeNode) { - return element.removeNode(!1); - } - for (; (child = element.firstChild); ) { - parent.insertBefore(child, element); - } - return goog.dom.removeNode(element); - } -}; + var child, + parent = element.parentNode + if (parent && parent.nodeType != goog.dom.NodeType.DOCUMENT_FRAGMENT) { + if (element.removeNode) { + return element.removeNode(!1) + } + for (; (child = element.firstChild); ) { + parent.insertBefore(child, element) + } + return goog.dom.removeNode(element) + } +} goog.dom.getChildren = function (element) { - return void 0 != element.children - ? element.children - : Array.prototype.filter.call(element.childNodes, function (node) { - return node.nodeType == goog.dom.NodeType.ELEMENT; - }); -}; + return void 0 != element.children + ? element.children + : Array.prototype.filter.call(element.childNodes, function (node) { + return node.nodeType == goog.dom.NodeType.ELEMENT + }) +} goog.dom.getFirstElementChild = function (node) { - return void 0 !== node.firstElementChild - ? node.firstElementChild - : goog.dom.getNextElementNode_(node.firstChild, !0); -}; + return void 0 !== node.firstElementChild + ? node.firstElementChild + : goog.dom.getNextElementNode_(node.firstChild, !0) +} goog.dom.getLastElementChild = function (node) { - return void 0 !== node.lastElementChild - ? node.lastElementChild - : goog.dom.getNextElementNode_(node.lastChild, !1); -}; + return void 0 !== node.lastElementChild + ? node.lastElementChild + : goog.dom.getNextElementNode_(node.lastChild, !1) +} goog.dom.getNextElementSibling = function (node) { - return void 0 !== node.nextElementSibling - ? node.nextElementSibling - : goog.dom.getNextElementNode_(node.nextSibling, !0); -}; + return void 0 !== node.nextElementSibling + ? node.nextElementSibling + : goog.dom.getNextElementNode_(node.nextSibling, !0) +} goog.dom.getPreviousElementSibling = function (node) { - return void 0 !== node.previousElementSibling - ? node.previousElementSibling - : goog.dom.getNextElementNode_(node.previousSibling, !1); -}; + return void 0 !== node.previousElementSibling + ? node.previousElementSibling + : goog.dom.getNextElementNode_(node.previousSibling, !1) +} goog.dom.getNextElementNode_ = function (node, forward) { - for (; node && node.nodeType != goog.dom.NodeType.ELEMENT; ) { - node = forward ? node.nextSibling : node.previousSibling; - } - return node; -}; + for (; node && node.nodeType != goog.dom.NodeType.ELEMENT; ) { + node = forward ? node.nextSibling : node.previousSibling + } + return node +} goog.dom.getNextNode = function (node) { - if (!node) { - return null; - } - if (node.firstChild) { - return node.firstChild; - } - for (; node && !node.nextSibling; ) { - node = node.parentNode; - } - return node ? node.nextSibling : null; -}; + if (!node) { + return null + } + if (node.firstChild) { + return node.firstChild + } + for (; node && !node.nextSibling; ) { + node = node.parentNode + } + return node ? node.nextSibling : null +} goog.dom.getPreviousNode = function (node) { - if (!node) { - return null; - } - if (!node.previousSibling) { - return node.parentNode; - } - for (node = node.previousSibling; node && node.lastChild; ) { - node = node.lastChild; - } - return node; -}; + if (!node) { + return null + } + if (!node.previousSibling) { + return node.parentNode + } + for (node = node.previousSibling; node && node.lastChild; ) { + node = node.lastChild + } + return node +} goog.dom.isNodeLike = function (obj) { - return goog.isObject(obj) && 0 < obj.nodeType; -}; + return goog.isObject(obj) && 0 < obj.nodeType +} goog.dom.isElement = function (obj) { - return goog.isObject(obj) && obj.nodeType == goog.dom.NodeType.ELEMENT; -}; + return goog.isObject(obj) && obj.nodeType == goog.dom.NodeType.ELEMENT +} goog.dom.isWindow = function (obj) { - return goog.isObject(obj) && obj.window == obj; -}; + return goog.isObject(obj) && obj.window == obj +} goog.dom.getParentElement = function (element) { - var parent; - if ( - goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY && - (parent = element.parentElement) - ) { - return parent; - } - parent = element.parentNode; - return goog.dom.isElement(parent) ? parent : null; -}; + var parent + if ( + goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY && + (parent = element.parentElement) + ) { + return parent + } + parent = element.parentNode + return goog.dom.isElement(parent) ? parent : null +} goog.dom.contains = function (parent, descendant) { - if (!parent || !descendant) { - return !1; - } - if (parent.contains && descendant.nodeType == goog.dom.NodeType.ELEMENT) { - return parent == descendant || parent.contains(descendant); - } - if ("undefined" != typeof parent.compareDocumentPosition) { - return ( - parent == descendant || - !!(parent.compareDocumentPosition(descendant) & 16) - ); - } - for (; descendant && parent != descendant; ) { - descendant = descendant.parentNode; - } - return descendant == parent; -}; + if (!parent || !descendant) { + return !1 + } + if (parent.contains && descendant.nodeType == goog.dom.NodeType.ELEMENT) { + return parent == descendant || parent.contains(descendant) + } + if ('undefined' != typeof parent.compareDocumentPosition) { + return ( + parent == descendant || + !!(parent.compareDocumentPosition(descendant) & 16) + ) + } + for (; descendant && parent != descendant; ) { + descendant = descendant.parentNode + } + return descendant == parent +} goog.dom.compareNodeOrder = function (node1, node2) { - if (node1 == node2) { - return 0; - } - if (node1.compareDocumentPosition) { - return node1.compareDocumentPosition(node2) & 2 ? 1 : -1; - } - if (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(9)) { - if (node1.nodeType == goog.dom.NodeType.DOCUMENT) { - return -1; - } - if (node2.nodeType == goog.dom.NodeType.DOCUMENT) { - return 1; - } - } - if ( - "sourceIndex" in node1 || - (node1.parentNode && "sourceIndex" in node1.parentNode) - ) { - var isElement1 = node1.nodeType == goog.dom.NodeType.ELEMENT, - isElement2 = node2.nodeType == goog.dom.NodeType.ELEMENT; - if (isElement1 && isElement2) { - return node1.sourceIndex - node2.sourceIndex; - } - var parent1 = node1.parentNode, - parent2 = node2.parentNode; - return parent1 == parent2 - ? goog.dom.compareSiblingOrder_(node1, node2) - : !isElement1 && goog.dom.contains(parent1, node2) - ? -1 * goog.dom.compareParentsDescendantNodeIe_(node1, node2) - : !isElement2 && goog.dom.contains(parent2, node1) - ? goog.dom.compareParentsDescendantNodeIe_(node2, node1) - : (isElement1 ? node1.sourceIndex : parent1.sourceIndex) - - (isElement2 ? node2.sourceIndex : parent2.sourceIndex); - } - var doc = goog.dom.getOwnerDocument(node1); - var range1 = doc.createRange(); - range1.selectNode(node1); - range1.collapse(!0); - var range2 = doc.createRange(); - range2.selectNode(node2); - range2.collapse(!0); - return range1.compareBoundaryPoints(goog.global.Range.START_TO_END, range2); -}; + if (node1 == node2) { + return 0 + } + if (node1.compareDocumentPosition) { + return node1.compareDocumentPosition(node2) & 2 ? 1 : -1 + } + if (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(9)) { + if (node1.nodeType == goog.dom.NodeType.DOCUMENT) { + return -1 + } + if (node2.nodeType == goog.dom.NodeType.DOCUMENT) { + return 1 + } + } + if ( + 'sourceIndex' in node1 || + (node1.parentNode && 'sourceIndex' in node1.parentNode) + ) { + var isElement1 = node1.nodeType == goog.dom.NodeType.ELEMENT, + isElement2 = node2.nodeType == goog.dom.NodeType.ELEMENT + if (isElement1 && isElement2) { + return node1.sourceIndex - node2.sourceIndex + } + var parent1 = node1.parentNode, + parent2 = node2.parentNode + return parent1 == parent2 + ? goog.dom.compareSiblingOrder_(node1, node2) + : !isElement1 && goog.dom.contains(parent1, node2) + ? -1 * goog.dom.compareParentsDescendantNodeIe_(node1, node2) + : !isElement2 && goog.dom.contains(parent2, node1) + ? goog.dom.compareParentsDescendantNodeIe_(node2, node1) + : (isElement1 ? node1.sourceIndex : parent1.sourceIndex) - + (isElement2 ? node2.sourceIndex : parent2.sourceIndex) + } + var doc = goog.dom.getOwnerDocument(node1) + var range1 = doc.createRange() + range1.selectNode(node1) + range1.collapse(!0) + var range2 = doc.createRange() + range2.selectNode(node2) + range2.collapse(!0) + return range1.compareBoundaryPoints(goog.global.Range.START_TO_END, range2) +} goog.dom.compareParentsDescendantNodeIe_ = function (textNode, node) { - var parent = textNode.parentNode; - if (parent == node) { - return -1; - } - for (var sibling = node; sibling.parentNode != parent; ) { - sibling = sibling.parentNode; - } - return goog.dom.compareSiblingOrder_(sibling, textNode); -}; + var parent = textNode.parentNode + if (parent == node) { + return -1 + } + for (var sibling = node; sibling.parentNode != parent; ) { + sibling = sibling.parentNode + } + return goog.dom.compareSiblingOrder_(sibling, textNode) +} goog.dom.compareSiblingOrder_ = function (node1, node2) { - for (var s = node2; (s = s.previousSibling); ) { - if (s == node1) { - return -1; + for (var s = node2; (s = s.previousSibling); ) { + if (s == node1) { + return -1 + } } - } - return 1; -}; + return 1 +} goog.dom.findCommonAncestor = function (var_args) { - var i, - count = arguments.length; - if (!count) { - return null; - } - if (1 == count) { - return arguments[0]; - } - var paths = [], - minLength = Infinity; - for (i = 0; i < count; i++) { - for (var ancestors = [], node = arguments[i]; node; ) { - ancestors.unshift(node), (node = node.parentNode); - } - paths.push(ancestors); - minLength = Math.min(minLength, ancestors.length); - } - var output = null; - for (i = 0; i < minLength; i++) { - for (var first = paths[0][i], j = 1; j < count; j++) { - if (first != paths[j][i]) { - return output; - } + var i, + count = arguments.length + if (!count) { + return null + } + if (1 == count) { + return arguments[0] + } + var paths = [], + minLength = Infinity + for (i = 0; i < count; i++) { + for (var ancestors = [], node = arguments[i]; node; ) { + ancestors.unshift(node), (node = node.parentNode) + } + paths.push(ancestors) + minLength = Math.min(minLength, ancestors.length) + } + var output = null + for (i = 0; i < minLength; i++) { + for (var first = paths[0][i], j = 1; j < count; j++) { + if (first != paths[j][i]) { + return output + } + } + output = first } - output = first; - } - return output; -}; + return output +} goog.dom.isInDocument = function (node) { - return 16 == (node.ownerDocument.compareDocumentPosition(node) & 16); -}; + return 16 == (node.ownerDocument.compareDocumentPosition(node) & 16) +} goog.dom.getOwnerDocument = function (node) { - goog.asserts.assert(node, "Node cannot be null or undefined."); - return node.nodeType == goog.dom.NodeType.DOCUMENT - ? node - : node.ownerDocument || node.document; -}; + goog.asserts.assert(node, 'Node cannot be null or undefined.') + return node.nodeType == goog.dom.NodeType.DOCUMENT + ? node + : node.ownerDocument || node.document +} goog.dom.getFrameContentDocument = function (frame) { - return frame.contentDocument || frame.contentWindow.document; -}; + return frame.contentDocument || frame.contentWindow.document +} goog.dom.getFrameContentWindow = function (frame) { - try { - return ( - frame.contentWindow || - (frame.contentDocument ? goog.dom.getWindow(frame.contentDocument) : null) - ); - } catch (e) {} - return null; -}; + try { + return ( + frame.contentWindow || + (frame.contentDocument + ? goog.dom.getWindow(frame.contentDocument) + : null) + ) + } catch (e) {} + return null +} goog.dom.setTextContent = function (node, text) { - goog.asserts.assert( - null != node, - "goog.dom.setTextContent expects a non-null value for node" - ); - if ("textContent" in node) { - node.textContent = text; - } else if (node.nodeType == goog.dom.NodeType.TEXT) { - node.data = String(text); - } else if ( - node.firstChild && - node.firstChild.nodeType == goog.dom.NodeType.TEXT - ) { - for (; node.lastChild != node.firstChild; ) { - node.removeChild(goog.asserts.assert(node.lastChild)); - } - node.firstChild.data = String(text); - } else { - goog.dom.removeChildren(node); - var doc = goog.dom.getOwnerDocument(node); - node.appendChild(doc.createTextNode(String(text))); - } -}; + goog.asserts.assert( + null != node, + 'goog.dom.setTextContent expects a non-null value for node' + ) + if ('textContent' in node) { + node.textContent = text + } else if (node.nodeType == goog.dom.NodeType.TEXT) { + node.data = String(text) + } else if ( + node.firstChild && + node.firstChild.nodeType == goog.dom.NodeType.TEXT + ) { + for (; node.lastChild != node.firstChild; ) { + node.removeChild(goog.asserts.assert(node.lastChild)) + } + node.firstChild.data = String(text) + } else { + goog.dom.removeChildren(node) + var doc = goog.dom.getOwnerDocument(node) + node.appendChild(doc.createTextNode(String(text))) + } +} goog.dom.getOuterHtml = function (element) { - goog.asserts.assert( - null !== element, - "goog.dom.getOuterHtml expects a non-null value for element" - ); - if ("outerHTML" in element) { - return element.outerHTML; - } - var doc = goog.dom.getOwnerDocument(element), - div = goog.dom.createElement_(doc, goog.dom.TagName.DIV); - div.appendChild(element.cloneNode(!0)); - return div.innerHTML; -}; + goog.asserts.assert( + null !== element, + 'goog.dom.getOuterHtml expects a non-null value for element' + ) + if ('outerHTML' in element) { + return element.outerHTML + } + var doc = goog.dom.getOwnerDocument(element), + div = goog.dom.createElement_(doc, goog.dom.TagName.DIV) + div.appendChild(element.cloneNode(!0)) + return div.innerHTML +} goog.dom.findNode = function (root, p) { - var rv = []; - return goog.dom.findNodes_(root, p, rv, !0) ? rv[0] : void 0; -}; + var rv = [] + return goog.dom.findNodes_(root, p, rv, !0) ? rv[0] : void 0 +} goog.dom.findNodes = function (root, p) { - var rv = []; - goog.dom.findNodes_(root, p, rv, !1); - return rv; -}; + var rv = [] + goog.dom.findNodes_(root, p, rv, !1) + return rv +} goog.dom.findNodes_ = function (root, p, rv, findOne) { - if (null != root) { - for (var child = root.firstChild; child; ) { - if ( - (p(child) && (rv.push(child), findOne)) || - goog.dom.findNodes_(child, p, rv, findOne) - ) { - return !0; - } - child = child.nextSibling; + if (null != root) { + for (var child = root.firstChild; child; ) { + if ( + (p(child) && (rv.push(child), findOne)) || + goog.dom.findNodes_(child, p, rv, findOne) + ) { + return !0 + } + child = child.nextSibling + } } - } - return !1; -}; + return !1 +} goog.dom.findElement = function (root, pred) { - for (var stack = goog.dom.getChildrenReverse_(root); 0 < stack.length; ) { - var next = stack.pop(); - if (pred(next)) { - return next; - } - for (var c = next.lastElementChild; c; c = c.previousElementSibling) { - stack.push(c); + for (var stack = goog.dom.getChildrenReverse_(root); 0 < stack.length; ) { + var next = stack.pop() + if (pred(next)) { + return next + } + for (var c = next.lastElementChild; c; c = c.previousElementSibling) { + stack.push(c) + } } - } - return null; -}; + return null +} goog.dom.findElements = function (root, pred) { - for ( - var result = [], stack = goog.dom.getChildrenReverse_(root); - 0 < stack.length; + for ( + var result = [], stack = goog.dom.getChildrenReverse_(root); + 0 < stack.length; - ) { - var next = stack.pop(); - pred(next) && result.push(next); - for (var c = next.lastElementChild; c; c = c.previousElementSibling) { - stack.push(c); - } - } - return result; -}; + ) { + var next = stack.pop() + pred(next) && result.push(next) + for (var c = next.lastElementChild; c; c = c.previousElementSibling) { + stack.push(c) + } + } + return result +} goog.dom.getChildrenReverse_ = function (node) { - if (node.nodeType == goog.dom.NodeType.DOCUMENT) { - return [node.documentElement]; - } - for ( - var children = [], c = node.lastElementChild; - c; - c = c.previousElementSibling - ) { - children.push(c); - } - return children; -}; + if (node.nodeType == goog.dom.NodeType.DOCUMENT) { + return [node.documentElement] + } + for ( + var children = [], c = node.lastElementChild; + c; + c = c.previousElementSibling + ) { + children.push(c) + } + return children +} goog.dom.TAGS_TO_IGNORE_ = { - SCRIPT: 1, - STYLE: 1, - HEAD: 1, - IFRAME: 1, - OBJECT: 1, -}; -goog.dom.PREDEFINED_TAG_VALUES_ = { IMG: " ", BR: "\n" }; + SCRIPT: 1, + STYLE: 1, + HEAD: 1, + IFRAME: 1, + OBJECT: 1, +} +goog.dom.PREDEFINED_TAG_VALUES_ = { IMG: ' ', BR: '\n' } goog.dom.isFocusableTabIndex = function (element) { - return ( - goog.dom.hasSpecifiedTabIndex_(element) && - goog.dom.isTabIndexFocusable_(element) - ); -}; + return ( + goog.dom.hasSpecifiedTabIndex_(element) && + goog.dom.isTabIndexFocusable_(element) + ) +} goog.dom.setFocusableTabIndex = function (element, enable) { - enable - ? (element.tabIndex = 0) - : ((element.tabIndex = -1), element.removeAttribute("tabIndex")); -}; + enable + ? (element.tabIndex = 0) + : ((element.tabIndex = -1), element.removeAttribute('tabIndex')) +} goog.dom.isFocusable = function (element) { - var focusable; - return (focusable = goog.dom.nativelySupportsFocus_(element) - ? !element.disabled && - (!goog.dom.hasSpecifiedTabIndex_(element) || - goog.dom.isTabIndexFocusable_(element)) - : goog.dom.isFocusableTabIndex(element)) && goog.userAgent.IE - ? goog.dom.hasNonZeroBoundingRect_(element) - : focusable; -}; + var focusable + return (focusable = goog.dom.nativelySupportsFocus_(element) + ? !element.disabled && + (!goog.dom.hasSpecifiedTabIndex_(element) || + goog.dom.isTabIndexFocusable_(element)) + : goog.dom.isFocusableTabIndex(element)) && goog.userAgent.IE + ? goog.dom.hasNonZeroBoundingRect_(element) + : focusable +} goog.dom.hasSpecifiedTabIndex_ = function (element) { - return element.hasAttribute("tabindex"); -}; + return element.hasAttribute('tabindex') +} goog.dom.isTabIndexFocusable_ = function (element) { - var index = element.tabIndex; - return "number" === typeof index && 0 <= index && 32768 > index; -}; + var index = element.tabIndex + return 'number' === typeof index && 0 <= index && 32768 > index +} goog.dom.nativelySupportsFocus_ = function (element) { - return ( - (element.tagName == goog.dom.TagName.A && element.hasAttribute("href")) || - element.tagName == goog.dom.TagName.INPUT || - element.tagName == goog.dom.TagName.TEXTAREA || - element.tagName == goog.dom.TagName.SELECT || - element.tagName == goog.dom.TagName.BUTTON - ); -}; + return ( + (element.tagName == goog.dom.TagName.A && + element.hasAttribute('href')) || + element.tagName == goog.dom.TagName.INPUT || + element.tagName == goog.dom.TagName.TEXTAREA || + element.tagName == goog.dom.TagName.SELECT || + element.tagName == goog.dom.TagName.BUTTON + ) +} goog.dom.hasNonZeroBoundingRect_ = function (element) { - var rect = - "function" !== typeof element.getBoundingClientRect || - (goog.userAgent.IE && null == element.parentElement) - ? { height: element.offsetHeight, width: element.offsetWidth } - : element.getBoundingClientRect(); - return null != rect && 0 < rect.height && 0 < rect.width; -}; + var rect = + 'function' !== typeof element.getBoundingClientRect || + (goog.userAgent.IE && null == element.parentElement) + ? { height: element.offsetHeight, width: element.offsetWidth } + : element.getBoundingClientRect() + return null != rect && 0 < rect.height && 0 < rect.width +} goog.dom.getTextContent = function (node) { - var buf = []; - goog.dom.getTextContent_(node, buf, !0); - var textContent = buf.join(""); - textContent = textContent.replace(/ \xAD /g, " ").replace(/\xAD/g, ""); - textContent = textContent.replace(/\u200B/g, ""); - textContent = textContent.replace(/ +/g, " "); - " " != textContent && (textContent = textContent.replace(/^\s*/, "")); - return textContent; -}; + var buf = [] + goog.dom.getTextContent_(node, buf, !0) + var textContent = buf.join('') + textContent = textContent.replace(/ \xAD /g, ' ').replace(/\xAD/g, '') + textContent = textContent.replace(/\u200B/g, '') + textContent = textContent.replace(/ +/g, ' ') + ' ' != textContent && (textContent = textContent.replace(/^\s*/, '')) + return textContent +} goog.dom.getRawTextContent = function (node) { - var buf = []; - goog.dom.getTextContent_(node, buf, !1); - return buf.join(""); -}; + var buf = [] + goog.dom.getTextContent_(node, buf, !1) + return buf.join('') +} goog.dom.getTextContent_ = function (node, buf, normalizeWhitespace) { - if (!(node.nodeName in goog.dom.TAGS_TO_IGNORE_)) { - if (node.nodeType == goog.dom.NodeType.TEXT) { - normalizeWhitespace - ? buf.push(String(node.nodeValue).replace(/(\r\n|\r|\n)/g, "")) - : buf.push(node.nodeValue); - } else if (node.nodeName in goog.dom.PREDEFINED_TAG_VALUES_) { - buf.push(goog.dom.PREDEFINED_TAG_VALUES_[node.nodeName]); - } else { - for (var child = node.firstChild; child; ) { - goog.dom.getTextContent_(child, buf, normalizeWhitespace), - (child = child.nextSibling); - } + if (!(node.nodeName in goog.dom.TAGS_TO_IGNORE_)) { + if (node.nodeType == goog.dom.NodeType.TEXT) { + normalizeWhitespace + ? buf.push(String(node.nodeValue).replace(/(\r\n|\r|\n)/g, '')) + : buf.push(node.nodeValue) + } else if (node.nodeName in goog.dom.PREDEFINED_TAG_VALUES_) { + buf.push(goog.dom.PREDEFINED_TAG_VALUES_[node.nodeName]) + } else { + for (var child = node.firstChild; child; ) { + goog.dom.getTextContent_(child, buf, normalizeWhitespace), + (child = child.nextSibling) + } + } } - } -}; +} goog.dom.getNodeTextLength = function (node) { - return goog.dom.getTextContent(node).length; -}; + return goog.dom.getTextContent(node).length +} goog.dom.getNodeTextOffset = function (node, opt_offsetParent) { - for ( - var root = opt_offsetParent || goog.dom.getOwnerDocument(node).body, - buf = []; - node && node != root; + for ( + var root = opt_offsetParent || goog.dom.getOwnerDocument(node).body, + buf = []; + node && node != root; - ) { - for (var cur = node; (cur = cur.previousSibling); ) { - buf.unshift(goog.dom.getTextContent(cur)); - } - node = node.parentNode; - } - return goog.string.trimLeft(buf.join("")).replace(/ +/g, " ").length; -}; + ) { + for (var cur = node; (cur = cur.previousSibling); ) { + buf.unshift(goog.dom.getTextContent(cur)) + } + node = node.parentNode + } + return goog.string.trimLeft(buf.join('')).replace(/ +/g, ' ').length +} goog.dom.getNodeAtOffset = function (parent, offset, opt_result) { - for ( - var stack = [parent], pos = 0, cur = null; - 0 < stack.length && pos < offset; + for ( + var stack = [parent], pos = 0, cur = null; + 0 < stack.length && pos < offset; - ) { - if (((cur = stack.pop()), !(cur.nodeName in goog.dom.TAGS_TO_IGNORE_))) { - if (cur.nodeType == goog.dom.NodeType.TEXT) { - var text = cur.nodeValue - .replace(/(\r\n|\r|\n)/g, "") - .replace(/ +/g, " "); - pos += text.length; - } else if (cur.nodeName in goog.dom.PREDEFINED_TAG_VALUES_) { - pos += goog.dom.PREDEFINED_TAG_VALUES_[cur.nodeName].length; - } else { - for (var i = cur.childNodes.length - 1; 0 <= i; i--) { - stack.push(cur.childNodes[i]); + ) { + if ( + ((cur = stack.pop()), !(cur.nodeName in goog.dom.TAGS_TO_IGNORE_)) + ) { + if (cur.nodeType == goog.dom.NodeType.TEXT) { + var text = cur.nodeValue + .replace(/(\r\n|\r|\n)/g, '') + .replace(/ +/g, ' ') + pos += text.length + } else if (cur.nodeName in goog.dom.PREDEFINED_TAG_VALUES_) { + pos += goog.dom.PREDEFINED_TAG_VALUES_[cur.nodeName].length + } else { + for (var i = cur.childNodes.length - 1; 0 <= i; i--) { + stack.push(cur.childNodes[i]) + } + } } - } } - } - goog.isObject(opt_result) && - ((opt_result.remainder = cur ? cur.nodeValue.length + offset - pos - 1 : 0), - (opt_result.node = cur)); - return cur; -}; + goog.isObject(opt_result) && + ((opt_result.remainder = cur + ? cur.nodeValue.length + offset - pos - 1 + : 0), + (opt_result.node = cur)) + return cur +} goog.dom.isNodeList = function (val) { - if (val && "number" == typeof val.length) { - if (goog.isObject(val)) { - return "function" == typeof val.item || "string" == typeof val.item; - } - if ("function" === typeof val) { - return "function" == typeof val.item; + if (val && 'number' == typeof val.length) { + if (goog.isObject(val)) { + return 'function' == typeof val.item || 'string' == typeof val.item + } + if ('function' === typeof val) { + return 'function' == typeof val.item + } } - } - return !1; -}; + return !1 +} goog.dom.getAncestorByTagNameAndClass = function ( - element, - opt_tag, - opt_class, - opt_maxSearchSteps -) { - if (!opt_tag && !opt_class) { - return null; - } - var tagName = opt_tag ? String(opt_tag).toUpperCase() : null; - return goog.dom.getAncestor( element, - function (node) { - return ( - (!tagName || node.nodeName == tagName) && - (!opt_class || - ("string" === typeof node.className && - module$contents$goog$array_contains( - node.className.split(/\s+/), - opt_class - ))) - ); - }, - !0, + opt_tag, + opt_class, opt_maxSearchSteps - ); -}; -goog.dom.getAncestorByClass = function ( - element, - className, - opt_maxSearchSteps ) { - return goog.dom.getAncestorByTagNameAndClass( + if (!opt_tag && !opt_class) { + return null + } + var tagName = opt_tag ? String(opt_tag).toUpperCase() : null + return goog.dom.getAncestor( + element, + function (node) { + return ( + (!tagName || node.nodeName == tagName) && + (!opt_class || + ('string' === typeof node.className && + module$contents$goog$array_contains( + node.className.split(/\s+/), + opt_class + ))) + ) + }, + !0, + opt_maxSearchSteps + ) +} +goog.dom.getAncestorByClass = function ( element, - null, className, opt_maxSearchSteps - ); -}; +) { + return goog.dom.getAncestorByTagNameAndClass( + element, + null, + className, + opt_maxSearchSteps + ) +} goog.dom.getAncestor = function ( - element, - matcher, - opt_includeNode, - opt_maxSearchSteps -) { - element && !opt_includeNode && (element = element.parentNode); - for ( - var steps = 0; - element && (null == opt_maxSearchSteps || steps <= opt_maxSearchSteps); + element, + matcher, + opt_includeNode, + opt_maxSearchSteps +) { + element && !opt_includeNode && (element = element.parentNode) + for ( + var steps = 0; + element && (null == opt_maxSearchSteps || steps <= opt_maxSearchSteps); - ) { - goog.asserts.assert("parentNode" != element.name); - if (matcher(element)) { - return element; - } - element = element.parentNode; - steps++; - } - return null; -}; + ) { + goog.asserts.assert('parentNode' != element.name) + if (matcher(element)) { + return element + } + element = element.parentNode + steps++ + } + return null +} goog.dom.getActiveElement = function (doc) { - try { - var activeElement = doc && doc.activeElement; - return activeElement && activeElement.nodeName ? activeElement : null; - } catch (e) { - return null; - } -}; + try { + var activeElement = doc && doc.activeElement + return activeElement && activeElement.nodeName ? activeElement : null + } catch (e) { + return null + } +} goog.dom.getPixelRatio = function () { - var win = goog.dom.getWindow(); - return void 0 !== win.devicePixelRatio - ? win.devicePixelRatio - : win.matchMedia - ? goog.dom.matchesPixelRatio_(3) || - goog.dom.matchesPixelRatio_(2) || - goog.dom.matchesPixelRatio_(1.5) || - goog.dom.matchesPixelRatio_(1) || - 0.75 - : 1; -}; + var win = goog.dom.getWindow() + return void 0 !== win.devicePixelRatio + ? win.devicePixelRatio + : win.matchMedia + ? goog.dom.matchesPixelRatio_(3) || + goog.dom.matchesPixelRatio_(2) || + goog.dom.matchesPixelRatio_(1.5) || + goog.dom.matchesPixelRatio_(1) || + 0.75 + : 1 +} goog.dom.matchesPixelRatio_ = function (pixelRatio) { - return goog.dom - .getWindow() - .matchMedia( - "(min-resolution: " + - pixelRatio + - "dppx),(min--moz-device-pixel-ratio: " + - pixelRatio + - "),(min-resolution: " + - 96 * pixelRatio + - "dpi)" - ).matches - ? pixelRatio - : 0; -}; + return goog.dom + .getWindow() + .matchMedia( + '(min-resolution: ' + + pixelRatio + + 'dppx),(min--moz-device-pixel-ratio: ' + + pixelRatio + + '),(min-resolution: ' + + 96 * pixelRatio + + 'dpi)' + ).matches + ? pixelRatio + : 0 +} goog.dom.getCanvasContext2D = function (canvas) { - return canvas.getContext("2d"); -}; + return canvas.getContext('2d') +} goog.dom.DomHelper = function (opt_document) { - this.document_ = opt_document || goog.global.document || document; -}; -goog.dom.DomHelper.prototype.getDomHelper = goog.dom.getDomHelper; + this.document_ = opt_document || goog.global.document || document +} +goog.dom.DomHelper.prototype.getDomHelper = goog.dom.getDomHelper goog.dom.DomHelper.prototype.setDocument = function (document) { - this.document_ = document; -}; + this.document_ = document +} goog.dom.DomHelper.prototype.getDocument = function () { - return this.document_; -}; + return this.document_ +} goog.dom.DomHelper.prototype.getElement = function (element) { - return goog.dom.getElementHelper_(this.document_, element); -}; + return goog.dom.getElementHelper_(this.document_, element) +} goog.dom.DomHelper.prototype.getRequiredElement = function (id) { - return goog.dom.getRequiredElementHelper_(this.document_, id); -}; -goog.dom.DomHelper.prototype.$ = goog.dom.DomHelper.prototype.getElement; + return goog.dom.getRequiredElementHelper_(this.document_, id) +} +goog.dom.DomHelper.prototype.$ = goog.dom.DomHelper.prototype.getElement goog.dom.DomHelper.prototype.getElementsByTagName = function ( - tagName, - opt_parent + tagName, + opt_parent ) { - return (opt_parent || this.document_).getElementsByTagName(String(tagName)); -}; + return (opt_parent || this.document_).getElementsByTagName(String(tagName)) +} goog.dom.DomHelper.prototype.getElementsByTagNameAndClass = function ( - opt_tag, - opt_class, - opt_el -) { - return goog.dom.getElementsByTagNameAndClass_( - this.document_, opt_tag, opt_class, opt_el - ); -}; -goog.dom.DomHelper.prototype.getElementByTagNameAndClass = function ( - opt_tag, - opt_class, - opt_el ) { - return goog.dom.getElementByTagNameAndClass_( - this.document_, + return goog.dom.getElementsByTagNameAndClass_( + this.document_, + opt_tag, + opt_class, + opt_el + ) +} +goog.dom.DomHelper.prototype.getElementByTagNameAndClass = function ( opt_tag, opt_class, opt_el - ); -}; +) { + return goog.dom.getElementByTagNameAndClass_( + this.document_, + opt_tag, + opt_class, + opt_el + ) +} goog.dom.DomHelper.prototype.getElementsByClass = function (className, opt_el) { - return goog.dom.getElementsByClass(className, opt_el || this.document_); -}; + return goog.dom.getElementsByClass(className, opt_el || this.document_) +} goog.dom.DomHelper.prototype.getElementByClass = function (className, opt_el) { - return goog.dom.getElementByClass(className, opt_el || this.document_); -}; + return goog.dom.getElementByClass(className, opt_el || this.document_) +} goog.dom.DomHelper.prototype.getRequiredElementByClass = function ( - className, - opt_root -) { - return goog.dom.getRequiredElementByClass( className, - opt_root || this.document_ - ); -}; + opt_root +) { + return goog.dom.getRequiredElementByClass( + className, + opt_root || this.document_ + ) +} goog.dom.DomHelper.prototype.$$ = - goog.dom.DomHelper.prototype.getElementsByTagNameAndClass; -goog.dom.DomHelper.prototype.setProperties = goog.dom.setProperties; + goog.dom.DomHelper.prototype.getElementsByTagNameAndClass +goog.dom.DomHelper.prototype.setProperties = goog.dom.setProperties goog.dom.DomHelper.prototype.getViewportSize = function (opt_window) { - return goog.dom.getViewportSize(opt_window || this.getWindow()); -}; + return goog.dom.getViewportSize(opt_window || this.getWindow()) +} goog.dom.DomHelper.prototype.getDocumentHeight = function () { - return goog.dom.getDocumentHeight_(this.getWindow()); -}; + return goog.dom.getDocumentHeight_(this.getWindow()) +} goog.dom.DomHelper.prototype.createDom = function ( - tagName, - opt_attributes, - var_args + tagName, + opt_attributes, + var_args ) { - return goog.dom.createDom_(this.document_, arguments); -}; -goog.dom.DomHelper.prototype.$dom = goog.dom.DomHelper.prototype.createDom; + return goog.dom.createDom_(this.document_, arguments) +} +goog.dom.DomHelper.prototype.$dom = goog.dom.DomHelper.prototype.createDom goog.dom.DomHelper.prototype.createElement = function (name) { - return goog.dom.createElement_(this.document_, name); -}; + return goog.dom.createElement_(this.document_, name) +} goog.dom.DomHelper.prototype.createTextNode = function (content) { - return this.document_.createTextNode(String(content)); -}; + return this.document_.createTextNode(String(content)) +} goog.dom.DomHelper.prototype.createTable = function ( - rows, - columns, - opt_fillWithNbsp -) { - return goog.dom.createTable_( - this.document_, rows, columns, - !!opt_fillWithNbsp - ); -}; + opt_fillWithNbsp +) { + return goog.dom.createTable_( + this.document_, + rows, + columns, + !!opt_fillWithNbsp + ) +} goog.dom.DomHelper.prototype.safeHtmlToNode = function (html) { - return goog.dom.safeHtmlToNode_(this.document_, html); -}; + return goog.dom.safeHtmlToNode_(this.document_, html) +} goog.dom.DomHelper.prototype.isCss1CompatMode = function () { - return goog.dom.isCss1CompatMode_(this.document_); -}; + return goog.dom.isCss1CompatMode_(this.document_) +} goog.dom.DomHelper.prototype.getWindow = function () { - return goog.dom.getWindow_(this.document_); -}; + return goog.dom.getWindow_(this.document_) +} goog.dom.DomHelper.prototype.getDocumentScrollElement = function () { - return goog.dom.getDocumentScrollElement_(this.document_); -}; + return goog.dom.getDocumentScrollElement_(this.document_) +} goog.dom.DomHelper.prototype.getDocumentScroll = function () { - return goog.dom.getDocumentScroll_(this.document_); -}; + return goog.dom.getDocumentScroll_(this.document_) +} goog.dom.DomHelper.prototype.getActiveElement = function (opt_doc) { - return goog.dom.getActiveElement(opt_doc || this.document_); -}; -goog.dom.DomHelper.prototype.appendChild = goog.dom.appendChild; -goog.dom.DomHelper.prototype.append = goog.dom.append; -goog.dom.DomHelper.prototype.canHaveChildren = goog.dom.canHaveChildren; -goog.dom.DomHelper.prototype.removeChildren = goog.dom.removeChildren; -goog.dom.DomHelper.prototype.insertSiblingBefore = goog.dom.insertSiblingBefore; -goog.dom.DomHelper.prototype.insertSiblingAfter = goog.dom.insertSiblingAfter; -goog.dom.DomHelper.prototype.insertChildAt = goog.dom.insertChildAt; -goog.dom.DomHelper.prototype.removeNode = goog.dom.removeNode; -goog.dom.DomHelper.prototype.replaceNode = goog.dom.replaceNode; -goog.dom.DomHelper.prototype.copyContents = goog.dom.copyContents; -goog.dom.DomHelper.prototype.flattenElement = goog.dom.flattenElement; -goog.dom.DomHelper.prototype.getChildren = goog.dom.getChildren; + return goog.dom.getActiveElement(opt_doc || this.document_) +} +goog.dom.DomHelper.prototype.appendChild = goog.dom.appendChild +goog.dom.DomHelper.prototype.append = goog.dom.append +goog.dom.DomHelper.prototype.canHaveChildren = goog.dom.canHaveChildren +goog.dom.DomHelper.prototype.removeChildren = goog.dom.removeChildren +goog.dom.DomHelper.prototype.insertSiblingBefore = goog.dom.insertSiblingBefore +goog.dom.DomHelper.prototype.insertSiblingAfter = goog.dom.insertSiblingAfter +goog.dom.DomHelper.prototype.insertChildAt = goog.dom.insertChildAt +goog.dom.DomHelper.prototype.removeNode = goog.dom.removeNode +goog.dom.DomHelper.prototype.replaceNode = goog.dom.replaceNode +goog.dom.DomHelper.prototype.copyContents = goog.dom.copyContents +goog.dom.DomHelper.prototype.flattenElement = goog.dom.flattenElement +goog.dom.DomHelper.prototype.getChildren = goog.dom.getChildren goog.dom.DomHelper.prototype.getFirstElementChild = - goog.dom.getFirstElementChild; -goog.dom.DomHelper.prototype.getLastElementChild = goog.dom.getLastElementChild; + goog.dom.getFirstElementChild +goog.dom.DomHelper.prototype.getLastElementChild = goog.dom.getLastElementChild goog.dom.DomHelper.prototype.getNextElementSibling = - goog.dom.getNextElementSibling; + goog.dom.getNextElementSibling goog.dom.DomHelper.prototype.getPreviousElementSibling = - goog.dom.getPreviousElementSibling; -goog.dom.DomHelper.prototype.getNextNode = goog.dom.getNextNode; -goog.dom.DomHelper.prototype.getPreviousNode = goog.dom.getPreviousNode; -goog.dom.DomHelper.prototype.isNodeLike = goog.dom.isNodeLike; -goog.dom.DomHelper.prototype.isElement = goog.dom.isElement; -goog.dom.DomHelper.prototype.isWindow = goog.dom.isWindow; -goog.dom.DomHelper.prototype.getParentElement = goog.dom.getParentElement; -goog.dom.DomHelper.prototype.contains = goog.dom.contains; -goog.dom.DomHelper.prototype.compareNodeOrder = goog.dom.compareNodeOrder; -goog.dom.DomHelper.prototype.findCommonAncestor = goog.dom.findCommonAncestor; -goog.dom.DomHelper.prototype.getOwnerDocument = goog.dom.getOwnerDocument; + goog.dom.getPreviousElementSibling +goog.dom.DomHelper.prototype.getNextNode = goog.dom.getNextNode +goog.dom.DomHelper.prototype.getPreviousNode = goog.dom.getPreviousNode +goog.dom.DomHelper.prototype.isNodeLike = goog.dom.isNodeLike +goog.dom.DomHelper.prototype.isElement = goog.dom.isElement +goog.dom.DomHelper.prototype.isWindow = goog.dom.isWindow +goog.dom.DomHelper.prototype.getParentElement = goog.dom.getParentElement +goog.dom.DomHelper.prototype.contains = goog.dom.contains +goog.dom.DomHelper.prototype.compareNodeOrder = goog.dom.compareNodeOrder +goog.dom.DomHelper.prototype.findCommonAncestor = goog.dom.findCommonAncestor +goog.dom.DomHelper.prototype.getOwnerDocument = goog.dom.getOwnerDocument goog.dom.DomHelper.prototype.getFrameContentDocument = - goog.dom.getFrameContentDocument; + goog.dom.getFrameContentDocument goog.dom.DomHelper.prototype.getFrameContentWindow = - goog.dom.getFrameContentWindow; -goog.dom.DomHelper.prototype.setTextContent = goog.dom.setTextContent; -goog.dom.DomHelper.prototype.getOuterHtml = goog.dom.getOuterHtml; -goog.dom.DomHelper.prototype.findNode = goog.dom.findNode; -goog.dom.DomHelper.prototype.findNodes = goog.dom.findNodes; -goog.dom.DomHelper.prototype.isFocusableTabIndex = goog.dom.isFocusableTabIndex; + goog.dom.getFrameContentWindow +goog.dom.DomHelper.prototype.setTextContent = goog.dom.setTextContent +goog.dom.DomHelper.prototype.getOuterHtml = goog.dom.getOuterHtml +goog.dom.DomHelper.prototype.findNode = goog.dom.findNode +goog.dom.DomHelper.prototype.findNodes = goog.dom.findNodes +goog.dom.DomHelper.prototype.isFocusableTabIndex = goog.dom.isFocusableTabIndex goog.dom.DomHelper.prototype.setFocusableTabIndex = - goog.dom.setFocusableTabIndex; -goog.dom.DomHelper.prototype.isFocusable = goog.dom.isFocusable; -goog.dom.DomHelper.prototype.getTextContent = goog.dom.getTextContent; -goog.dom.DomHelper.prototype.getNodeTextLength = goog.dom.getNodeTextLength; -goog.dom.DomHelper.prototype.getNodeTextOffset = goog.dom.getNodeTextOffset; -goog.dom.DomHelper.prototype.getNodeAtOffset = goog.dom.getNodeAtOffset; -goog.dom.DomHelper.prototype.isNodeList = goog.dom.isNodeList; + goog.dom.setFocusableTabIndex +goog.dom.DomHelper.prototype.isFocusable = goog.dom.isFocusable +goog.dom.DomHelper.prototype.getTextContent = goog.dom.getTextContent +goog.dom.DomHelper.prototype.getNodeTextLength = goog.dom.getNodeTextLength +goog.dom.DomHelper.prototype.getNodeTextOffset = goog.dom.getNodeTextOffset +goog.dom.DomHelper.prototype.getNodeAtOffset = goog.dom.getNodeAtOffset +goog.dom.DomHelper.prototype.isNodeList = goog.dom.isNodeList goog.dom.DomHelper.prototype.getAncestorByTagNameAndClass = - goog.dom.getAncestorByTagNameAndClass; -goog.dom.DomHelper.prototype.getAncestorByClass = goog.dom.getAncestorByClass; -goog.dom.DomHelper.prototype.getAncestor = goog.dom.getAncestor; -goog.dom.DomHelper.prototype.getCanvasContext2D = goog.dom.getCanvasContext2D; + goog.dom.getAncestorByTagNameAndClass +goog.dom.DomHelper.prototype.getAncestorByClass = goog.dom.getAncestorByClass +goog.dom.DomHelper.prototype.getAncestor = goog.dom.getAncestor +goog.dom.DomHelper.prototype.getCanvasContext2D = goog.dom.getCanvasContext2D goog.async.nextTick = function (callback, opt_context, opt_useSetImmediate) { - var cb = callback; - opt_context && (cb = goog.bind(callback, opt_context)); - cb = goog.async.nextTick.wrapCallback_(cb); - "function" === typeof goog.global.setImmediate && - (opt_useSetImmediate || goog.async.nextTick.useSetImmediate_()) - ? goog.global.setImmediate(cb) - : (goog.async.nextTick.nextTickImpl || - (goog.async.nextTick.nextTickImpl = - goog.async.nextTick.getNextTickImpl_()), - goog.async.nextTick.nextTickImpl(cb)); -}; + var cb = callback + opt_context && (cb = goog.bind(callback, opt_context)) + cb = goog.async.nextTick.wrapCallback_(cb) + 'function' === typeof goog.global.setImmediate && + (opt_useSetImmediate || goog.async.nextTick.useSetImmediate_()) + ? goog.global.setImmediate(cb) + : (goog.async.nextTick.nextTickImpl || + (goog.async.nextTick.nextTickImpl = + goog.async.nextTick.getNextTickImpl_()), + goog.async.nextTick.nextTickImpl(cb)) +} goog.async.nextTick.useSetImmediate_ = function () { - return goog.global.Window && - goog.global.Window.prototype && - !module$contents$goog$labs$userAgent$browser_matchEdgeHtml() && - goog.global.Window.prototype.setImmediate == goog.global.setImmediate - ? !1 - : !0; -}; + return goog.global.Window && + goog.global.Window.prototype && + !module$contents$goog$labs$userAgent$browser_matchEdgeHtml() && + goog.global.Window.prototype.setImmediate == goog.global.setImmediate + ? !1 + : !0 +} goog.async.nextTick.getNextTickImpl_ = function () { - var Channel = goog.global.MessageChannel; - "undefined" === typeof Channel && - "undefined" !== typeof window && - window.postMessage && - window.addEventListener && - !module$contents$goog$labs$userAgent$engine_isPresto() && - (Channel = function () { - var iframe = goog.dom.createElement(goog.dom.TagName.IFRAME); - iframe.style.display = "none"; - document.documentElement.appendChild(iframe); - var win = iframe.contentWindow, - doc = win.document; - doc.open(); - doc.close(); - var message = "callImmediate" + Math.random(), - origin = - "file:" == win.location.protocol - ? "*" - : win.location.protocol + "//" + win.location.host, - onmessage = goog.bind(function (e) { - if (("*" == origin || e.origin == origin) && e.data == message) { - this.port1.onmessage(); - } - }, this); - win.addEventListener("message", onmessage, !1); - this.port1 = {}; - this.port2 = { - postMessage: function () { - win.postMessage(message, origin); - }, - }; - }); - if ( - "undefined" !== typeof Channel && - !module$contents$goog$labs$userAgent$browser_matchIE() - ) { - var channel = new Channel(), - head = {}, - tail = head; - channel.port1.onmessage = function () { - if (void 0 !== head.next) { - head = head.next; - var cb = head.cb; - head.cb = null; - cb(); - } - }; + var Channel = goog.global.MessageChannel + 'undefined' === typeof Channel && + 'undefined' !== typeof window && + window.postMessage && + window.addEventListener && + !module$contents$goog$labs$userAgent$engine_isPresto() && + (Channel = function () { + var iframe = goog.dom.createElement(goog.dom.TagName.IFRAME) + iframe.style.display = 'none' + document.documentElement.appendChild(iframe) + var win = iframe.contentWindow, + doc = win.document + doc.open() + doc.close() + var message = 'callImmediate' + Math.random(), + origin = + 'file:' == win.location.protocol + ? '*' + : win.location.protocol + '//' + win.location.host, + onmessage = goog.bind(function (e) { + if ( + ('*' == origin || e.origin == origin) && + e.data == message + ) { + this.port1.onmessage() + } + }, this) + win.addEventListener('message', onmessage, !1) + this.port1 = {} + this.port2 = { + postMessage: function () { + win.postMessage(message, origin) + }, + } + }) + if ( + 'undefined' !== typeof Channel && + !module$contents$goog$labs$userAgent$browser_matchIE() + ) { + var channel = new Channel(), + head = {}, + tail = head + channel.port1.onmessage = function () { + if (void 0 !== head.next) { + head = head.next + var cb = head.cb + head.cb = null + cb() + } + } + return function (cb) { + tail.next = { cb: cb } + tail = tail.next + channel.port2.postMessage(0) + } + } return function (cb) { - tail.next = { cb: cb }; - tail = tail.next; - channel.port2.postMessage(0); - }; - } - return function (cb) { - goog.global.setTimeout(cb, 0); - }; -}; -goog.async.nextTick.wrapCallback_ = goog.functions.identity; + goog.global.setTimeout(cb, 0) + } +} +goog.async.nextTick.wrapCallback_ = goog.functions.identity goog.debug.entryPointRegistry.register(function (transformer) { - goog.async.nextTick.wrapCallback_ = transformer; -}); + goog.async.nextTick.wrapCallback_ = transformer +}) function module$contents$goog$async$throwException_throwException(exception) { - goog.global.setTimeout(function () { - throw exception; - }, 0); + goog.global.setTimeout(function () { + throw exception + }, 0) } goog.async.throwException = - module$contents$goog$async$throwException_throwException; + module$contents$goog$async$throwException_throwException var module$contents$goog$async$WorkQueue_WorkQueue = function () { - this.workTail_ = this.workHead_ = null; -}; + this.workTail_ = this.workHead_ = null +} module$contents$goog$async$WorkQueue_WorkQueue.prototype.add = function ( - fn, - scope -) { - var item = this.getUnusedItem_(); - item.set(fn, scope); - this.workTail_ - ? (this.workTail_.next = item) - : ((0, goog.asserts.assert)(!this.workHead_), (this.workHead_ = item)); - this.workTail_ = item; -}; + fn, + scope +) { + var item = this.getUnusedItem_() + item.set(fn, scope) + this.workTail_ + ? (this.workTail_.next = item) + : ((0, goog.asserts.assert)(!this.workHead_), (this.workHead_ = item)) + this.workTail_ = item +} module$contents$goog$async$WorkQueue_WorkQueue.prototype.remove = function () { - var item = null; - this.workHead_ && - ((item = this.workHead_), - (this.workHead_ = this.workHead_.next), - this.workHead_ || (this.workTail_ = null), - (item.next = null)); - return item; -}; + var item = null + this.workHead_ && + ((item = this.workHead_), + (this.workHead_ = this.workHead_.next), + this.workHead_ || (this.workTail_ = null), + (item.next = null)) + return item +} module$contents$goog$async$WorkQueue_WorkQueue.prototype.returnUnused = - function (item) { - module$contents$goog$async$WorkQueue_WorkQueue.freelist_.put(item); - }; + function (item) { + module$contents$goog$async$WorkQueue_WorkQueue.freelist_.put(item) + } module$contents$goog$async$WorkQueue_WorkQueue.prototype.getUnusedItem_ = - function () { - return module$contents$goog$async$WorkQueue_WorkQueue.freelist_.get(); - }; -module$contents$goog$async$WorkQueue_WorkQueue.DEFAULT_MAX_UNUSED = 100; -module$contents$goog$async$WorkQueue_WorkQueue.freelist_ = - new module$contents$goog$async$FreeList_FreeList( function () { - return new module$contents$goog$async$WorkQueue_WorkItem(); - }, - function (item) { - return item.reset(); - }, - module$contents$goog$async$WorkQueue_WorkQueue.DEFAULT_MAX_UNUSED - ); + return module$contents$goog$async$WorkQueue_WorkQueue.freelist_.get() + } +module$contents$goog$async$WorkQueue_WorkQueue.DEFAULT_MAX_UNUSED = 100 +module$contents$goog$async$WorkQueue_WorkQueue.freelist_ = + new module$contents$goog$async$FreeList_FreeList( + function () { + return new module$contents$goog$async$WorkQueue_WorkItem() + }, + function (item) { + return item.reset() + }, + module$contents$goog$async$WorkQueue_WorkQueue.DEFAULT_MAX_UNUSED + ) var module$contents$goog$async$WorkQueue_WorkItem = function () { - this.next = this.scope = this.fn = null; -}; + this.next = this.scope = this.fn = null +} module$contents$goog$async$WorkQueue_WorkItem.prototype.set = function ( - fn, - scope + fn, + scope ) { - this.fn = fn; - this.scope = scope; - this.next = null; -}; + this.fn = fn + this.scope = scope + this.next = null +} module$contents$goog$async$WorkQueue_WorkItem.prototype.reset = function () { - this.next = this.scope = this.fn = null; -}; -goog.async.WorkQueue = module$contents$goog$async$WorkQueue_WorkQueue; -goog.debug.asyncStackTag = {}; + this.next = this.scope = this.fn = null +} +goog.async.WorkQueue = module$contents$goog$async$WorkQueue_WorkQueue +goog.debug.asyncStackTag = {} var module$contents$goog$debug$asyncStackTag_createTask = - goog.DEBUG && goog.global.console && goog.global.console.createTask - ? goog.global.console.createTask.bind(goog.global.console) - : void 0, - module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL = - module$contents$goog$debug$asyncStackTag_createTask - ? Symbol("consoleTask") - : void 0; + goog.DEBUG && goog.global.console && goog.global.console.createTask + ? goog.global.console.createTask.bind(goog.global.console) + : void 0, + module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL = + module$contents$goog$debug$asyncStackTag_createTask + ? Symbol('consoleTask') + : void 0 function module$contents$goog$debug$asyncStackTag_wrap(fn, name) { - function wrappedFn() { - var args = $jscomp.getRestArguments.apply(0, arguments), - $jscomp$this = this; - return consoleTask.run(function () { - return fn.call.apply( - fn, - [$jscomp$this].concat($jscomp.arrayFromIterable(args)) - ); - }); - } - name = void 0 === name ? "anonymous" : name; - if ( - !goog.DEBUG || - !module$contents$goog$debug$asyncStackTag_createTask || - fn[ - (0, goog.asserts.assertExists)( - module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL - ) - ] - ) { - return fn; - } - var consoleTask = module$contents$goog$debug$asyncStackTag_createTask( - fn.name || name - ); - wrappedFn[ - (0, goog.asserts.assertExists)( - module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL - ) - ] = consoleTask; - return wrappedFn; -} -goog.debug.asyncStackTag.wrap = module$contents$goog$debug$asyncStackTag_wrap; -goog.ASSUME_NATIVE_PROMISE = !1; -var module$contents$goog$async$run_schedule, - module$contents$goog$async$run_workQueueScheduled = !1, - module$contents$goog$async$run_workQueue = - new module$contents$goog$async$WorkQueue_WorkQueue(), - module$contents$goog$async$run_run = function (callback, context) { - module$contents$goog$async$run_schedule || - module$contents$goog$async$run_initializeRunner(); - module$contents$goog$async$run_workQueueScheduled || - (module$contents$goog$async$run_schedule(), - (module$contents$goog$async$run_workQueueScheduled = !0)); - callback = module$contents$goog$debug$asyncStackTag_wrap( - callback, - "goog.async.run" - ); - module$contents$goog$async$run_workQueue.add(callback, context); - }, - module$contents$goog$async$run_initializeRunner = function () { + function wrappedFn() { + var args = $jscomp.getRestArguments.apply(0, arguments), + $jscomp$this = this + return consoleTask.run(function () { + return fn.call.apply( + fn, + [$jscomp$this].concat($jscomp.arrayFromIterable(args)) + ) + }) + } + name = void 0 === name ? 'anonymous' : name if ( - goog.ASSUME_NATIVE_PROMISE || - (goog.global.Promise && goog.global.Promise.resolve) + !goog.DEBUG || + !module$contents$goog$debug$asyncStackTag_createTask || + fn[ + (0, goog.asserts.assertExists)( + module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL + ) + ] ) { - var promise = goog.global.Promise.resolve(void 0); - module$contents$goog$async$run_schedule = function () { - promise.then(module$contents$goog$async$run_run.processWorkQueue); - }; - } else { - module$contents$goog$async$run_schedule = function () { - (0, goog.async.nextTick)( - module$contents$goog$async$run_run.processWorkQueue - ); - }; + return fn + } + var consoleTask = module$contents$goog$debug$asyncStackTag_createTask( + fn.name || name + ) + wrappedFn[ + (0, goog.asserts.assertExists)( + module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL + ) + ] = consoleTask + return wrappedFn +} +goog.debug.asyncStackTag.wrap = module$contents$goog$debug$asyncStackTag_wrap +goog.ASSUME_NATIVE_PROMISE = !1 +var module$contents$goog$async$run_schedule, + module$contents$goog$async$run_workQueueScheduled = !1, + module$contents$goog$async$run_workQueue = + new module$contents$goog$async$WorkQueue_WorkQueue(), + module$contents$goog$async$run_run = function (callback, context) { + module$contents$goog$async$run_schedule || + module$contents$goog$async$run_initializeRunner() + module$contents$goog$async$run_workQueueScheduled || + (module$contents$goog$async$run_schedule(), + (module$contents$goog$async$run_workQueueScheduled = !0)) + callback = module$contents$goog$debug$asyncStackTag_wrap( + callback, + 'goog.async.run' + ) + module$contents$goog$async$run_workQueue.add(callback, context) + }, + module$contents$goog$async$run_initializeRunner = function () { + if ( + goog.ASSUME_NATIVE_PROMISE || + (goog.global.Promise && goog.global.Promise.resolve) + ) { + var promise = goog.global.Promise.resolve(void 0) + module$contents$goog$async$run_schedule = function () { + promise.then( + module$contents$goog$async$run_run.processWorkQueue + ) + } + } else { + module$contents$goog$async$run_schedule = function () { + ;(0, goog.async.nextTick)( + module$contents$goog$async$run_run.processWorkQueue + ) + } + } } - }; module$contents$goog$async$run_run.forceNextTick = function (realSetTimeout) { - module$contents$goog$async$run_schedule = function () { - (0, goog.async.nextTick)( - module$contents$goog$async$run_run.processWorkQueue - ); - realSetTimeout && - realSetTimeout(module$contents$goog$async$run_run.processWorkQueue); - }; -}; + module$contents$goog$async$run_schedule = function () { + ;(0, goog.async.nextTick)( + module$contents$goog$async$run_run.processWorkQueue + ) + realSetTimeout && + realSetTimeout(module$contents$goog$async$run_run.processWorkQueue) + } +} goog.DEBUG && - ((module$contents$goog$async$run_run.resetQueue = function () { - module$contents$goog$async$run_workQueueScheduled = !1; - module$contents$goog$async$run_workQueue = - new module$contents$goog$async$WorkQueue_WorkQueue(); - }), - (module$contents$goog$async$run_run.resetSchedulerForTest = function () { - module$contents$goog$async$run_initializeRunner(); - })); + ((module$contents$goog$async$run_run.resetQueue = function () { + module$contents$goog$async$run_workQueueScheduled = !1 + module$contents$goog$async$run_workQueue = + new module$contents$goog$async$WorkQueue_WorkQueue() + }), + (module$contents$goog$async$run_run.resetSchedulerForTest = function () { + module$contents$goog$async$run_initializeRunner() + })) module$contents$goog$async$run_run.processWorkQueue = function () { - for ( - var item = null; - (item = module$contents$goog$async$run_workQueue.remove()); + for ( + var item = null; + (item = module$contents$goog$async$run_workQueue.remove()); - ) { - try { - item.fn.call(item.scope); - } catch (e) { - module$contents$goog$async$throwException_throwException(e); - } - module$contents$goog$async$run_workQueue.returnUnused(item); - } - module$contents$goog$async$run_workQueueScheduled = !1; -}; -goog.async.run = module$contents$goog$async$run_run; -goog.promise = {}; -goog.promise.Resolver = function () {}; + ) { + try { + item.fn.call(item.scope) + } catch (e) { + module$contents$goog$async$throwException_throwException(e) + } + module$contents$goog$async$run_workQueue.returnUnused(item) + } + module$contents$goog$async$run_workQueueScheduled = !1 +} +goog.async.run = module$contents$goog$async$run_run +goog.promise = {} +goog.promise.Resolver = function () {} function module$contents$goog$Thenable_Thenable() {} module$contents$goog$Thenable_Thenable.prototype.then = function ( - opt_onFulfilled, - opt_onRejected, - opt_context -) {}; -module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP = "$goog_Thenable"; + opt_onFulfilled, + opt_onRejected, + opt_context +) {} +module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP = '$goog_Thenable' module$contents$goog$Thenable_Thenable.addImplementation = function (ctor) { - ctor.prototype[module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP] = - !0; -}; + ctor.prototype[module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP] = + !0 +} module$contents$goog$Thenable_Thenable.isImplementedBy = function (object) { - if (!object) { - return !1; - } - try { - return !!object[module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP]; - return !!object.$goog_Thenable; - } catch (e) { - return !1; - } -}; -goog.Thenable = module$contents$goog$Thenable_Thenable; -goog.Promise = function (resolver, opt_context) { - this.state_ = goog.Promise.State_.PENDING; - this.result_ = void 0; - this.callbackEntriesTail_ = this.callbackEntries_ = this.parent_ = null; - this.executing_ = !1; - 0 < goog.Promise.UNHANDLED_REJECTION_DELAY - ? (this.unhandledRejectionId_ = 0) - : 0 == goog.Promise.UNHANDLED_REJECTION_DELAY && - (this.hadUnhandledRejection_ = !1); - goog.Promise.LONG_STACK_TRACES && - ((this.stack_ = []), - this.addStackTrace_(Error("created")), - (this.currentStep_ = 0)); - if (resolver != goog.functions.UNDEFINED) { + if (!object) { + return !1 + } try { - var self = this; - resolver.call( - opt_context, - function (value) { - self.resolve_(goog.Promise.State_.FULFILLED, value); - }, - function (reason) { - if ( - goog.DEBUG && - !(reason instanceof goog.Promise.CancellationError) - ) { - try { - if (reason instanceof Error) { - throw reason; - } - throw Error("Promise rejected."); - } catch (e) {} - } - self.resolve_(goog.Promise.State_.REJECTED, reason); - } - ); + return !!object[ + module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP + ] + return !!object.$goog_Thenable } catch (e) { - this.resolve_(goog.Promise.State_.REJECTED, e); + return !1 + } +} +goog.Thenable = module$contents$goog$Thenable_Thenable +goog.Promise = function (resolver, opt_context) { + this.state_ = goog.Promise.State_.PENDING + this.result_ = void 0 + this.callbackEntriesTail_ = this.callbackEntries_ = this.parent_ = null + this.executing_ = !1 + 0 < goog.Promise.UNHANDLED_REJECTION_DELAY + ? (this.unhandledRejectionId_ = 0) + : 0 == goog.Promise.UNHANDLED_REJECTION_DELAY && + (this.hadUnhandledRejection_ = !1) + goog.Promise.LONG_STACK_TRACES && + ((this.stack_ = []), + this.addStackTrace_(Error('created')), + (this.currentStep_ = 0)) + if (resolver != goog.functions.UNDEFINED) { + try { + var self = this + resolver.call( + opt_context, + function (value) { + self.resolve_(goog.Promise.State_.FULFILLED, value) + }, + function (reason) { + if ( + goog.DEBUG && + !(reason instanceof goog.Promise.CancellationError) + ) { + try { + if (reason instanceof Error) { + throw reason + } + throw Error('Promise rejected.') + } catch (e) {} + } + self.resolve_(goog.Promise.State_.REJECTED, reason) + } + ) + } catch (e) { + this.resolve_(goog.Promise.State_.REJECTED, e) + } } - } -}; -goog.Promise.LONG_STACK_TRACES = !1; -goog.Promise.UNHANDLED_REJECTION_DELAY = 0; -goog.Promise.State_ = { PENDING: 0, BLOCKED: 1, FULFILLED: 2, REJECTED: 3 }; +} +goog.Promise.LONG_STACK_TRACES = !1 +goog.Promise.UNHANDLED_REJECTION_DELAY = 0 +goog.Promise.State_ = { PENDING: 0, BLOCKED: 1, FULFILLED: 2, REJECTED: 3 } goog.Promise.CallbackEntry_ = function () { - this.next = - this.context = - this.onRejected = - this.onFulfilled = - this.child = - null; - this.always = !1; -}; + this.next = + this.context = + this.onRejected = + this.onFulfilled = + this.child = + null + this.always = !1 +} goog.Promise.CallbackEntry_.prototype.reset = function () { - this.context = this.onRejected = this.onFulfilled = this.child = null; - this.always = !1; -}; -goog.Promise.DEFAULT_MAX_UNUSED = 100; + this.context = this.onRejected = this.onFulfilled = this.child = null + this.always = !1 +} +goog.Promise.DEFAULT_MAX_UNUSED = 100 goog.Promise.freelist_ = new module$contents$goog$async$FreeList_FreeList( - function () { - return new goog.Promise.CallbackEntry_(); - }, - function (item) { - item.reset(); - }, - goog.Promise.DEFAULT_MAX_UNUSED -); + function () { + return new goog.Promise.CallbackEntry_() + }, + function (item) { + item.reset() + }, + goog.Promise.DEFAULT_MAX_UNUSED +) goog.Promise.getCallbackEntry_ = function (onFulfilled, onRejected, context) { - var entry = goog.Promise.freelist_.get(); - entry.onFulfilled = onFulfilled; - entry.onRejected = onRejected; - entry.context = context; - return entry; -}; + var entry = goog.Promise.freelist_.get() + entry.onFulfilled = onFulfilled + entry.onRejected = onRejected + entry.context = context + return entry +} goog.Promise.returnEntry_ = function (entry) { - goog.Promise.freelist_.put(entry); -}; + goog.Promise.freelist_.put(entry) +} goog.Promise.resolve = function (opt_value) { - if (opt_value instanceof goog.Promise) { - return opt_value; - } - var promise = new goog.Promise(goog.functions.UNDEFINED); - promise.resolve_(goog.Promise.State_.FULFILLED, opt_value); - return promise; -}; + if (opt_value instanceof goog.Promise) { + return opt_value + } + var promise = new goog.Promise(goog.functions.UNDEFINED) + promise.resolve_(goog.Promise.State_.FULFILLED, opt_value) + return promise +} goog.Promise.reject = function (opt_reason) { - return new goog.Promise(function (resolve, reject) { - reject(opt_reason); - }); -}; + return new goog.Promise(function (resolve, reject) { + reject(opt_reason) + }) +} goog.Promise.resolveThen_ = function (value, onFulfilled, onRejected) { - goog.Promise.maybeThen_(value, onFulfilled, onRejected, null) || - module$contents$goog$async$run_run(goog.partial(onFulfilled, value)); -}; + goog.Promise.maybeThen_(value, onFulfilled, onRejected, null) || + module$contents$goog$async$run_run(goog.partial(onFulfilled, value)) +} goog.Promise.race = function (promises) { - return new goog.Promise(function (resolve, reject) { - promises.length || resolve(void 0); - for (var i = 0, promise; i < promises.length; i++) { - (promise = promises[i]), - goog.Promise.resolveThen_(promise, resolve, reject); - } - }); -}; + return new goog.Promise(function (resolve, reject) { + promises.length || resolve(void 0) + for (var i = 0, promise; i < promises.length; i++) { + ;(promise = promises[i]), + goog.Promise.resolveThen_(promise, resolve, reject) + } + }) +} goog.Promise.all = function (promises) { - return new goog.Promise(function (resolve, reject) { - var toFulfill = promises.length, - values = []; - if (toFulfill) { - for ( - var onFulfill = function (index, value) { - toFulfill--; - values[index] = value; - 0 == toFulfill && resolve(values); - }, - onReject = function (reason) { - reject(reason); - }, - i = 0, - promise; - i < promises.length; - i++ - ) { - (promise = promises[i]), - goog.Promise.resolveThen_( - promise, - goog.partial(onFulfill, i), - onReject - ); - } - } else { - resolve(values); - } - }); -}; + return new goog.Promise(function (resolve, reject) { + var toFulfill = promises.length, + values = [] + if (toFulfill) { + for ( + var onFulfill = function (index, value) { + toFulfill-- + values[index] = value + 0 == toFulfill && resolve(values) + }, + onReject = function (reason) { + reject(reason) + }, + i = 0, + promise; + i < promises.length; + i++ + ) { + ;(promise = promises[i]), + goog.Promise.resolveThen_( + promise, + goog.partial(onFulfill, i), + onReject + ) + } + } else { + resolve(values) + } + }) +} goog.Promise.allSettled = function (promises) { - return new goog.Promise(function (resolve, reject) { - var toSettle = promises.length, - results = []; - if (toSettle) { - for ( - var onSettled = function (index, fulfilled, result) { - toSettle--; - results[index] = fulfilled - ? { fulfilled: !0, value: result } - : { fulfilled: !1, reason: result }; - 0 == toSettle && resolve(results); - }, - i = 0, - promise; - i < promises.length; - i++ - ) { - (promise = promises[i]), - goog.Promise.resolveThen_( - promise, - goog.partial(onSettled, i, !0), - goog.partial(onSettled, i, !1) - ); - } - } else { - resolve(results); - } - }); -}; + return new goog.Promise(function (resolve, reject) { + var toSettle = promises.length, + results = [] + if (toSettle) { + for ( + var onSettled = function (index, fulfilled, result) { + toSettle-- + results[index] = fulfilled + ? { fulfilled: !0, value: result } + : { fulfilled: !1, reason: result } + 0 == toSettle && resolve(results) + }, + i = 0, + promise; + i < promises.length; + i++ + ) { + ;(promise = promises[i]), + goog.Promise.resolveThen_( + promise, + goog.partial(onSettled, i, !0), + goog.partial(onSettled, i, !1) + ) + } + } else { + resolve(results) + } + }) +} goog.Promise.firstFulfilled = function (promises) { - return new goog.Promise(function (resolve, reject) { - var toReject = promises.length, - reasons = []; - if (toReject) { - for ( - var onFulfill = function (value) { - resolve(value); - }, - onReject = function (index, reason) { - toReject--; - reasons[index] = reason; - 0 == toReject && reject(reasons); - }, - i = 0, - promise; - i < promises.length; - i++ - ) { - (promise = promises[i]), - goog.Promise.resolveThen_( - promise, - onFulfill, - goog.partial(onReject, i) - ); - } - } else { - resolve(void 0); - } - }); -}; + return new goog.Promise(function (resolve, reject) { + var toReject = promises.length, + reasons = [] + if (toReject) { + for ( + var onFulfill = function (value) { + resolve(value) + }, + onReject = function (index, reason) { + toReject-- + reasons[index] = reason + 0 == toReject && reject(reasons) + }, + i = 0, + promise; + i < promises.length; + i++ + ) { + ;(promise = promises[i]), + goog.Promise.resolveThen_( + promise, + onFulfill, + goog.partial(onReject, i) + ) + } + } else { + resolve(void 0) + } + }) +} goog.Promise.withResolver = function () { - var resolve, - reject, - promise = new goog.Promise(function (rs, rj) { - resolve = rs; - reject = rj; - }); - return new goog.Promise.Resolver_(promise, resolve, reject); -}; + var resolve, + reject, + promise = new goog.Promise(function (rs, rj) { + resolve = rs + reject = rj + }) + return new goog.Promise.Resolver_(promise, resolve, reject) +} goog.Promise.prototype.then = function ( - opt_onFulfilled, - opt_onRejected, - opt_context -) { - null != opt_onFulfilled && - goog.asserts.assertFunction( - opt_onFulfilled, - "opt_onFulfilled should be a function." - ); - null != opt_onRejected && - goog.asserts.assertFunction( - opt_onRejected, - "opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?" - ); - goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("then")); - return this.addChildPromise_( - "function" === typeof opt_onFulfilled ? opt_onFulfilled : null, - "function" === typeof opt_onRejected ? opt_onRejected : null, + opt_onFulfilled, + opt_onRejected, opt_context - ); -}; -module$contents$goog$Thenable_Thenable.addImplementation(goog.Promise); +) { + null != opt_onFulfilled && + goog.asserts.assertFunction( + opt_onFulfilled, + 'opt_onFulfilled should be a function.' + ) + null != opt_onRejected && + goog.asserts.assertFunction( + opt_onRejected, + 'opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?' + ) + goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error('then')) + return this.addChildPromise_( + 'function' === typeof opt_onFulfilled ? opt_onFulfilled : null, + 'function' === typeof opt_onRejected ? opt_onRejected : null, + opt_context + ) +} +module$contents$goog$Thenable_Thenable.addImplementation(goog.Promise) goog.Promise.prototype.thenVoid = function ( - opt_onFulfilled, - opt_onRejected, - opt_context -) { - null != opt_onFulfilled && - goog.asserts.assertFunction( - opt_onFulfilled, - "opt_onFulfilled should be a function." - ); - null != opt_onRejected && - goog.asserts.assertFunction( - opt_onRejected, - "opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?" - ); - goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("then")); - this.addCallbackEntry_( - goog.Promise.getCallbackEntry_( - opt_onFulfilled || goog.functions.UNDEFINED, - opt_onRejected || null, - opt_context - ) - ); -}; + opt_onFulfilled, + opt_onRejected, + opt_context +) { + null != opt_onFulfilled && + goog.asserts.assertFunction( + opt_onFulfilled, + 'opt_onFulfilled should be a function.' + ) + null != opt_onRejected && + goog.asserts.assertFunction( + opt_onRejected, + 'opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?' + ) + goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error('then')) + this.addCallbackEntry_( + goog.Promise.getCallbackEntry_( + opt_onFulfilled || goog.functions.UNDEFINED, + opt_onRejected || null, + opt_context + ) + ) +} goog.Promise.prototype.thenAlways = function (onSettled, opt_context) { - goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("thenAlways")); - var entry = goog.Promise.getCallbackEntry_(onSettled, onSettled, opt_context); - entry.always = !0; - this.addCallbackEntry_(entry); - return this; -}; + goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error('thenAlways')) + var entry = goog.Promise.getCallbackEntry_( + onSettled, + onSettled, + opt_context + ) + entry.always = !0 + this.addCallbackEntry_(entry) + return this +} goog.Promise.prototype.thenCatch = function (onRejected, opt_context) { - goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("thenCatch")); - return this.addChildPromise_(null, onRejected, opt_context); -}; -goog.Promise.prototype.catch = goog.Promise.prototype.thenCatch; + goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error('thenCatch')) + return this.addChildPromise_(null, onRejected, opt_context) +} +goog.Promise.prototype.catch = goog.Promise.prototype.thenCatch goog.Promise.prototype.cancel = function (opt_message) { - if (this.state_ == goog.Promise.State_.PENDING) { - var err = new goog.Promise.CancellationError(opt_message); - module$contents$goog$async$run_run(function () { - this.cancelInternal_(err); - }, this); - } -}; + if (this.state_ == goog.Promise.State_.PENDING) { + var err = new goog.Promise.CancellationError(opt_message) + module$contents$goog$async$run_run(function () { + this.cancelInternal_(err) + }, this) + } +} goog.Promise.prototype.cancelInternal_ = function (err) { - this.state_ == goog.Promise.State_.PENDING && - (this.parent_ - ? (this.parent_.cancelChild_(this, err), (this.parent_ = null)) - : this.resolve_(goog.Promise.State_.REJECTED, err)); -}; + this.state_ == goog.Promise.State_.PENDING && + (this.parent_ + ? (this.parent_.cancelChild_(this, err), (this.parent_ = null)) + : this.resolve_(goog.Promise.State_.REJECTED, err)) +} goog.Promise.prototype.cancelChild_ = function (childPromise, err) { - if (this.callbackEntries_) { - for ( - var childCount = 0, - childEntry = null, - beforeChildEntry = null, - entry = this.callbackEntries_; - entry && - (entry.always || - (childCount++, - entry.child == childPromise && (childEntry = entry), - !(childEntry && 1 < childCount))); - entry = entry.next - ) { - childEntry || (beforeChildEntry = entry); - } - childEntry && - (this.state_ == goog.Promise.State_.PENDING && 1 == childCount - ? this.cancelInternal_(err) - : (beforeChildEntry - ? this.removeEntryAfter_(beforeChildEntry) - : this.popEntry_(), - this.executeCallback_( - childEntry, - goog.Promise.State_.REJECTED, - err - ))); - } -}; + if (this.callbackEntries_) { + for ( + var childCount = 0, + childEntry = null, + beforeChildEntry = null, + entry = this.callbackEntries_; + entry && + (entry.always || + (childCount++, + entry.child == childPromise && (childEntry = entry), + !(childEntry && 1 < childCount))); + entry = entry.next + ) { + childEntry || (beforeChildEntry = entry) + } + childEntry && + (this.state_ == goog.Promise.State_.PENDING && 1 == childCount + ? this.cancelInternal_(err) + : (beforeChildEntry + ? this.removeEntryAfter_(beforeChildEntry) + : this.popEntry_(), + this.executeCallback_( + childEntry, + goog.Promise.State_.REJECTED, + err + ))) + } +} goog.Promise.prototype.addCallbackEntry_ = function (callbackEntry) { - this.hasEntry_() || - (this.state_ != goog.Promise.State_.FULFILLED && - this.state_ != goog.Promise.State_.REJECTED) || - this.scheduleCallbacks_(); - this.queueEntry_(callbackEntry); -}; + this.hasEntry_() || + (this.state_ != goog.Promise.State_.FULFILLED && + this.state_ != goog.Promise.State_.REJECTED) || + this.scheduleCallbacks_() + this.queueEntry_(callbackEntry) +} goog.Promise.prototype.addChildPromise_ = function ( - onFulfilled, - onRejected, - opt_context -) { - onFulfilled && - (onFulfilled = module$contents$goog$debug$asyncStackTag_wrap( - onFulfilled, - "goog.Promise.then" - )); - onRejected && - (onRejected = module$contents$goog$debug$asyncStackTag_wrap( - onRejected, - "goog.Promise.then" - )); - var callbackEntry = goog.Promise.getCallbackEntry_(null, null, null); - callbackEntry.child = new goog.Promise(function (resolve, reject) { - callbackEntry.onFulfilled = onFulfilled - ? function (value) { - try { - var result = onFulfilled.call(opt_context, value); - resolve(result); - } catch (err) { - reject(err); - } - } - : resolve; - callbackEntry.onRejected = onRejected - ? function (reason) { - try { - var result = onRejected.call(opt_context, reason); - void 0 === result && - reason instanceof goog.Promise.CancellationError - ? reject(reason) - : resolve(result); - } catch (err) { - reject(err); - } - } - : reject; - }); - callbackEntry.child.parent_ = this; - this.addCallbackEntry_(callbackEntry); - return callbackEntry.child; -}; + onFulfilled, + onRejected, + opt_context +) { + onFulfilled && + (onFulfilled = module$contents$goog$debug$asyncStackTag_wrap( + onFulfilled, + 'goog.Promise.then' + )) + onRejected && + (onRejected = module$contents$goog$debug$asyncStackTag_wrap( + onRejected, + 'goog.Promise.then' + )) + var callbackEntry = goog.Promise.getCallbackEntry_(null, null, null) + callbackEntry.child = new goog.Promise(function (resolve, reject) { + callbackEntry.onFulfilled = onFulfilled + ? function (value) { + try { + var result = onFulfilled.call(opt_context, value) + resolve(result) + } catch (err) { + reject(err) + } + } + : resolve + callbackEntry.onRejected = onRejected + ? function (reason) { + try { + var result = onRejected.call(opt_context, reason) + void 0 === result && + reason instanceof goog.Promise.CancellationError + ? reject(reason) + : resolve(result) + } catch (err) { + reject(err) + } + } + : reject + }) + callbackEntry.child.parent_ = this + this.addCallbackEntry_(callbackEntry) + return callbackEntry.child +} goog.Promise.prototype.unblockAndFulfill_ = function (value) { - goog.asserts.assert(this.state_ == goog.Promise.State_.BLOCKED); - this.state_ = goog.Promise.State_.PENDING; - this.resolve_(goog.Promise.State_.FULFILLED, value); -}; + goog.asserts.assert(this.state_ == goog.Promise.State_.BLOCKED) + this.state_ = goog.Promise.State_.PENDING + this.resolve_(goog.Promise.State_.FULFILLED, value) +} goog.Promise.prototype.unblockAndReject_ = function (reason) { - goog.asserts.assert(this.state_ == goog.Promise.State_.BLOCKED); - this.state_ = goog.Promise.State_.PENDING; - this.resolve_(goog.Promise.State_.REJECTED, reason); -}; + goog.asserts.assert(this.state_ == goog.Promise.State_.BLOCKED) + this.state_ = goog.Promise.State_.PENDING + this.resolve_(goog.Promise.State_.REJECTED, reason) +} goog.Promise.prototype.resolve_ = function (state, x) { - this.state_ == goog.Promise.State_.PENDING && - (this === x && - ((state = goog.Promise.State_.REJECTED), - (x = new TypeError("Promise cannot resolve to itself"))), - (this.state_ = goog.Promise.State_.BLOCKED), - goog.Promise.maybeThen_( - x, - this.unblockAndFulfill_, - this.unblockAndReject_, - this - ) || - ((this.result_ = x), - (this.state_ = state), - (this.parent_ = null), - this.scheduleCallbacks_(), - state != goog.Promise.State_.REJECTED || - x instanceof goog.Promise.CancellationError || - goog.Promise.addUnhandledRejection_(this, x))); -}; + this.state_ == goog.Promise.State_.PENDING && + (this === x && + ((state = goog.Promise.State_.REJECTED), + (x = new TypeError('Promise cannot resolve to itself'))), + (this.state_ = goog.Promise.State_.BLOCKED), + goog.Promise.maybeThen_( + x, + this.unblockAndFulfill_, + this.unblockAndReject_, + this + ) || + ((this.result_ = x), + (this.state_ = state), + (this.parent_ = null), + this.scheduleCallbacks_(), + state != goog.Promise.State_.REJECTED || + x instanceof goog.Promise.CancellationError || + goog.Promise.addUnhandledRejection_(this, x))) +} goog.Promise.maybeThen_ = function (value, onFulfilled, onRejected, context) { - if (value instanceof goog.Promise) { - return value.thenVoid(onFulfilled, onRejected, context), !0; - } - if (module$contents$goog$Thenable_Thenable.isImplementedBy(value)) { - return value.then(onFulfilled, onRejected, context), !0; - } - if (goog.isObject(value)) { + if (value instanceof goog.Promise) { + return value.thenVoid(onFulfilled, onRejected, context), !0 + } + if (module$contents$goog$Thenable_Thenable.isImplementedBy(value)) { + return value.then(onFulfilled, onRejected, context), !0 + } + if (goog.isObject(value)) { + try { + var then = value.then + if ('function' === typeof then) { + return ( + goog.Promise.tryThen_( + value, + then, + onFulfilled, + onRejected, + context + ), + !0 + ) + } + } catch (e) { + return onRejected.call(context, e), !0 + } + } + return !1 +} +goog.Promise.tryThen_ = function ( + thenable, + then, + onFulfilled, + onRejected, + context +) { + var called = !1, + resolve = function (value) { + called || ((called = !0), onFulfilled.call(context, value)) + }, + reject = function (reason) { + called || ((called = !0), onRejected.call(context, reason)) + } try { - var then = value.then; - if ("function" === typeof then) { - return ( - goog.Promise.tryThen_(value, then, onFulfilled, onRejected, context), - !0 - ); - } + then.call(thenable, resolve, reject) } catch (e) { - return onRejected.call(context, e), !0; + reject(e) } - } - return !1; -}; -goog.Promise.tryThen_ = function ( - thenable, - then, - onFulfilled, - onRejected, - context -) { - var called = !1, - resolve = function (value) { - called || ((called = !0), onFulfilled.call(context, value)); - }, - reject = function (reason) { - called || ((called = !0), onRejected.call(context, reason)); - }; - try { - then.call(thenable, resolve, reject); - } catch (e) { - reject(e); - } -}; +} goog.Promise.prototype.scheduleCallbacks_ = function () { - this.executing_ || - ((this.executing_ = !0), - module$contents$goog$async$run_run(this.executeCallbacks_, this)); -}; + this.executing_ || + ((this.executing_ = !0), + module$contents$goog$async$run_run(this.executeCallbacks_, this)) +} goog.Promise.prototype.hasEntry_ = function () { - return !!this.callbackEntries_; -}; + return !!this.callbackEntries_ +} goog.Promise.prototype.queueEntry_ = function (entry) { - goog.asserts.assert(null != entry.onFulfilled); - this.callbackEntriesTail_ - ? (this.callbackEntriesTail_.next = entry) - : (this.callbackEntries_ = entry); - this.callbackEntriesTail_ = entry; -}; + goog.asserts.assert(null != entry.onFulfilled) + this.callbackEntriesTail_ + ? (this.callbackEntriesTail_.next = entry) + : (this.callbackEntries_ = entry) + this.callbackEntriesTail_ = entry +} goog.Promise.prototype.popEntry_ = function () { - var entry = null; - this.callbackEntries_ && - ((entry = this.callbackEntries_), - (this.callbackEntries_ = entry.next), - (entry.next = null)); - this.callbackEntries_ || (this.callbackEntriesTail_ = null); - null != entry && goog.asserts.assert(null != entry.onFulfilled); - return entry; -}; + var entry = null + this.callbackEntries_ && + ((entry = this.callbackEntries_), + (this.callbackEntries_ = entry.next), + (entry.next = null)) + this.callbackEntries_ || (this.callbackEntriesTail_ = null) + null != entry && goog.asserts.assert(null != entry.onFulfilled) + return entry +} goog.Promise.prototype.removeEntryAfter_ = function (previous) { - goog.asserts.assert(this.callbackEntries_); - goog.asserts.assert(null != previous); - previous.next == this.callbackEntriesTail_ && - (this.callbackEntriesTail_ = previous); - previous.next = previous.next.next; -}; + goog.asserts.assert(this.callbackEntries_) + goog.asserts.assert(null != previous) + previous.next == this.callbackEntriesTail_ && + (this.callbackEntriesTail_ = previous) + previous.next = previous.next.next +} goog.Promise.prototype.executeCallbacks_ = function () { - for (var entry = null; (entry = this.popEntry_()); ) { - goog.Promise.LONG_STACK_TRACES && this.currentStep_++, - this.executeCallback_(entry, this.state_, this.result_); - } - this.executing_ = !1; -}; + for (var entry = null; (entry = this.popEntry_()); ) { + goog.Promise.LONG_STACK_TRACES && this.currentStep_++, + this.executeCallback_(entry, this.state_, this.result_) + } + this.executing_ = !1 +} goog.Promise.prototype.executeCallback_ = function ( - callbackEntry, - state, - result -) { - state == goog.Promise.State_.REJECTED && - callbackEntry.onRejected && - !callbackEntry.always && - this.removeUnhandledRejection_(); - if (callbackEntry.child) { - (callbackEntry.child.parent_ = null), - goog.Promise.invokeCallback_(callbackEntry, state, result); - } else { - try { - callbackEntry.always - ? callbackEntry.onFulfilled.call(callbackEntry.context) - : goog.Promise.invokeCallback_(callbackEntry, state, result); - } catch (err) { - goog.Promise.handleRejection_.call(null, err); + callbackEntry, + state, + result +) { + state == goog.Promise.State_.REJECTED && + callbackEntry.onRejected && + !callbackEntry.always && + this.removeUnhandledRejection_() + if (callbackEntry.child) { + ;(callbackEntry.child.parent_ = null), + goog.Promise.invokeCallback_(callbackEntry, state, result) + } else { + try { + callbackEntry.always + ? callbackEntry.onFulfilled.call(callbackEntry.context) + : goog.Promise.invokeCallback_(callbackEntry, state, result) + } catch (err) { + goog.Promise.handleRejection_.call(null, err) + } } - } - goog.Promise.returnEntry_(callbackEntry); -}; + goog.Promise.returnEntry_(callbackEntry) +} goog.Promise.invokeCallback_ = function (callbackEntry, state, result) { - state == goog.Promise.State_.FULFILLED - ? callbackEntry.onFulfilled.call(callbackEntry.context, result) - : callbackEntry.onRejected && - callbackEntry.onRejected.call(callbackEntry.context, result); -}; + state == goog.Promise.State_.FULFILLED + ? callbackEntry.onFulfilled.call(callbackEntry.context, result) + : callbackEntry.onRejected && + callbackEntry.onRejected.call(callbackEntry.context, result) +} goog.Promise.prototype.addStackTrace_ = function (err) { - if (goog.Promise.LONG_STACK_TRACES && "string" === typeof err.stack) { - var trace = err.stack.split("\n", 4)[3], - message = err.message; - message += Array(11 - message.length).join(" "); - this.stack_.push(message + trace); - } -}; + if (goog.Promise.LONG_STACK_TRACES && 'string' === typeof err.stack) { + var trace = err.stack.split('\n', 4)[3], + message = err.message + message += Array(11 - message.length).join(' ') + this.stack_.push(message + trace) + } +} goog.Promise.prototype.appendLongStack_ = function (err) { - if ( - goog.Promise.LONG_STACK_TRACES && - err && - "string" === typeof err.stack && - this.stack_.length - ) { - for ( - var longTrace = ["Promise trace:"], promise = this; - promise; - promise = promise.parent_ + if ( + goog.Promise.LONG_STACK_TRACES && + err && + 'string' === typeof err.stack && + this.stack_.length ) { - for (var i = this.currentStep_; 0 <= i; i--) { - longTrace.push(promise.stack_[i]); - } - longTrace.push( - "Value: [" + - (promise.state_ == goog.Promise.State_.REJECTED - ? "REJECTED" - : "FULFILLED") + - "] <" + - String(promise.result_) + - ">" - ); - } - err.stack += "\n\n" + longTrace.join("\n"); - } -}; -goog.Promise.prototype.removeUnhandledRejection_ = function () { - if (0 < goog.Promise.UNHANDLED_REJECTION_DELAY) { - for (var p = this; p && p.unhandledRejectionId_; p = p.parent_) { - goog.global.clearTimeout(p.unhandledRejectionId_), - (p.unhandledRejectionId_ = 0); + for ( + var longTrace = ['Promise trace:'], promise = this; + promise; + promise = promise.parent_ + ) { + for (var i = this.currentStep_; 0 <= i; i--) { + longTrace.push(promise.stack_[i]) + } + longTrace.push( + 'Value: [' + + (promise.state_ == goog.Promise.State_.REJECTED + ? 'REJECTED' + : 'FULFILLED') + + '] <' + + String(promise.result_) + + '>' + ) + } + err.stack += '\n\n' + longTrace.join('\n') } - } else if (0 == goog.Promise.UNHANDLED_REJECTION_DELAY) { - for (p = this; p && p.hadUnhandledRejection_; p = p.parent_) { - p.hadUnhandledRejection_ = !1; +} +goog.Promise.prototype.removeUnhandledRejection_ = function () { + if (0 < goog.Promise.UNHANDLED_REJECTION_DELAY) { + for (var p = this; p && p.unhandledRejectionId_; p = p.parent_) { + goog.global.clearTimeout(p.unhandledRejectionId_), + (p.unhandledRejectionId_ = 0) + } + } else if (0 == goog.Promise.UNHANDLED_REJECTION_DELAY) { + for (p = this; p && p.hadUnhandledRejection_; p = p.parent_) { + p.hadUnhandledRejection_ = !1 + } } - } -}; +} goog.Promise.addUnhandledRejection_ = function (promise, reason) { - 0 < goog.Promise.UNHANDLED_REJECTION_DELAY - ? (promise.unhandledRejectionId_ = goog.global.setTimeout(function () { - promise.appendLongStack_(reason); - goog.Promise.handleRejection_.call(null, reason); - }, goog.Promise.UNHANDLED_REJECTION_DELAY)) - : 0 == goog.Promise.UNHANDLED_REJECTION_DELAY && - ((promise.hadUnhandledRejection_ = !0), - module$contents$goog$async$run_run(function () { - promise.hadUnhandledRejection_ && - (promise.appendLongStack_(reason), - goog.Promise.handleRejection_.call(null, reason)); - })); -}; + 0 < goog.Promise.UNHANDLED_REJECTION_DELAY + ? (promise.unhandledRejectionId_ = goog.global.setTimeout(function () { + promise.appendLongStack_(reason) + goog.Promise.handleRejection_.call(null, reason) + }, goog.Promise.UNHANDLED_REJECTION_DELAY)) + : 0 == goog.Promise.UNHANDLED_REJECTION_DELAY && + ((promise.hadUnhandledRejection_ = !0), + module$contents$goog$async$run_run(function () { + promise.hadUnhandledRejection_ && + (promise.appendLongStack_(reason), + goog.Promise.handleRejection_.call(null, reason)) + })) +} goog.Promise.handleRejection_ = - module$contents$goog$async$throwException_throwException; + module$contents$goog$async$throwException_throwException goog.Promise.setUnhandledRejectionHandler = function (handler) { - goog.Promise.handleRejection_ = handler; -}; + goog.Promise.handleRejection_ = handler +} goog.Promise.CancellationError = function (opt_message) { - module$contents$goog$debug$Error_DebugError.call(this, opt_message); - this.reportErrorToServer = !1; -}; + module$contents$goog$debug$Error_DebugError.call(this, opt_message) + this.reportErrorToServer = !1 +} goog.inherits( - goog.Promise.CancellationError, - module$contents$goog$debug$Error_DebugError -); -goog.Promise.CancellationError.prototype.name = "cancel"; + goog.Promise.CancellationError, + module$contents$goog$debug$Error_DebugError +) +goog.Promise.CancellationError.prototype.name = 'cancel' goog.Promise.Resolver_ = function (promise, resolve, reject) { - this.promise = promise; - this.resolve = resolve; - this.reject = reject; -}; + this.promise = promise + this.resolve = resolve + this.reject = reject +} goog.Timer = function (opt_interval, opt_timerObject) { - goog.events.EventTarget.call(this); - this.interval_ = opt_interval || 1; - this.timerObject_ = opt_timerObject || goog.Timer.defaultTimerObject; - this.boundTick_ = goog.bind(this.tick_, this); - this.last_ = goog.now(); -}; -goog.inherits(goog.Timer, goog.events.EventTarget); -goog.Timer.MAX_TIMEOUT_ = 2147483647; -goog.Timer.INVALID_TIMEOUT_ID_ = -1; -goog.Timer.prototype.enabled = !1; -goog.Timer.defaultTimerObject = goog.global; -goog.Timer.intervalScale = 0.8; -goog.Timer.prototype.timer_ = null; + goog.events.EventTarget.call(this) + this.interval_ = opt_interval || 1 + this.timerObject_ = opt_timerObject || goog.Timer.defaultTimerObject + this.boundTick_ = goog.bind(this.tick_, this) + this.last_ = goog.now() +} +goog.inherits(goog.Timer, goog.events.EventTarget) +goog.Timer.MAX_TIMEOUT_ = 2147483647 +goog.Timer.INVALID_TIMEOUT_ID_ = -1 +goog.Timer.prototype.enabled = !1 +goog.Timer.defaultTimerObject = goog.global +goog.Timer.intervalScale = 0.8 +goog.Timer.prototype.timer_ = null goog.Timer.prototype.getInterval = function () { - return this.interval_; -}; + return this.interval_ +} goog.Timer.prototype.setInterval = function (interval) { - this.interval_ = interval; - this.timer_ && this.enabled - ? (this.stop(), this.start()) - : this.timer_ && this.stop(); -}; + this.interval_ = interval + this.timer_ && this.enabled + ? (this.stop(), this.start()) + : this.timer_ && this.stop() +} goog.Timer.prototype.tick_ = function () { - if (this.enabled) { - var elapsed = goog.now() - this.last_; - 0 < elapsed && elapsed < this.interval_ * goog.Timer.intervalScale - ? (this.timer_ = this.timerObject_.setTimeout( - this.boundTick_, - this.interval_ - elapsed - )) - : (this.timer_ && - (this.timerObject_.clearTimeout(this.timer_), (this.timer_ = null)), - this.dispatchTick(), - this.enabled && (this.stop(), this.start())); - } -}; + if (this.enabled) { + var elapsed = goog.now() - this.last_ + 0 < elapsed && elapsed < this.interval_ * goog.Timer.intervalScale + ? (this.timer_ = this.timerObject_.setTimeout( + this.boundTick_, + this.interval_ - elapsed + )) + : (this.timer_ && + (this.timerObject_.clearTimeout(this.timer_), + (this.timer_ = null)), + this.dispatchTick(), + this.enabled && (this.stop(), this.start())) + } +} goog.Timer.prototype.dispatchTick = function () { - this.dispatchEvent(goog.Timer.TICK); -}; + this.dispatchEvent(goog.Timer.TICK) +} goog.Timer.prototype.start = function () { - this.enabled = !0; - this.timer_ || - ((this.timer_ = this.timerObject_.setTimeout( - this.boundTick_, - this.interval_ - )), - (this.last_ = goog.now())); -}; + this.enabled = !0 + this.timer_ || + ((this.timer_ = this.timerObject_.setTimeout( + this.boundTick_, + this.interval_ + )), + (this.last_ = goog.now())) +} goog.Timer.prototype.stop = function () { - this.enabled = !1; - this.timer_ && - (this.timerObject_.clearTimeout(this.timer_), (this.timer_ = null)); -}; + this.enabled = !1 + this.timer_ && + (this.timerObject_.clearTimeout(this.timer_), (this.timer_ = null)) +} goog.Timer.prototype.disposeInternal = function () { - goog.Timer.superClass_.disposeInternal.call(this); - this.stop(); - delete this.timerObject_; -}; -goog.Timer.TICK = "tick"; + goog.Timer.superClass_.disposeInternal.call(this) + this.stop() + delete this.timerObject_ +} +goog.Timer.TICK = 'tick' goog.Timer.callOnce = function (listener, opt_delay, opt_handler) { - if ("function" === typeof listener) { - opt_handler && (listener = goog.bind(listener, opt_handler)); - } else if (listener && "function" == typeof listener.handleEvent) { - listener = goog.bind(listener.handleEvent, listener); - } else { - throw Error("Invalid listener argument"); - } - return Number(opt_delay) > goog.Timer.MAX_TIMEOUT_ - ? goog.Timer.INVALID_TIMEOUT_ID_ - : goog.Timer.defaultTimerObject.setTimeout(listener, opt_delay || 0); -}; + if ('function' === typeof listener) { + opt_handler && (listener = goog.bind(listener, opt_handler)) + } else if (listener && 'function' == typeof listener.handleEvent) { + listener = goog.bind(listener.handleEvent, listener) + } else { + throw Error('Invalid listener argument') + } + return Number(opt_delay) > goog.Timer.MAX_TIMEOUT_ + ? goog.Timer.INVALID_TIMEOUT_ID_ + : goog.Timer.defaultTimerObject.setTimeout(listener, opt_delay || 0) +} goog.Timer.clear = function (timerId) { - goog.Timer.defaultTimerObject.clearTimeout(timerId); -}; + goog.Timer.defaultTimerObject.clearTimeout(timerId) +} goog.Timer.promise = function (delay, opt_result) { - var timerKey = null; - return new goog.Promise(function (resolve, reject) { - timerKey = goog.Timer.callOnce(function () { - resolve(opt_result); - }, delay); - timerKey == goog.Timer.INVALID_TIMEOUT_ID_ && - reject(Error("Failed to schedule timer.")); - }).thenCatch(function (error) { - goog.Timer.clear(timerKey); - throw error; - }); -}; + var timerKey = null + return new goog.Promise(function (resolve, reject) { + timerKey = goog.Timer.callOnce(function () { + resolve(opt_result) + }, delay) + timerKey == goog.Timer.INVALID_TIMEOUT_ID_ && + reject(Error('Failed to schedule timer.')) + }).thenCatch(function (error) { + goog.Timer.clear(timerKey) + throw error + }) +} var module$contents$goog$async$Throttle_Throttle = function ( - listener, - interval, - handler -) { - goog.Disposable.call(this); - this.listener_ = null != handler ? listener.bind(handler) : listener; - this.interval_ = interval; - this.args_ = null; - this.shouldFire_ = !1; - this.pauseCount_ = 0; - this.timer_ = null; -}; -$jscomp.inherits(module$contents$goog$async$Throttle_Throttle, goog.Disposable); + listener, + interval, + handler +) { + goog.Disposable.call(this) + this.listener_ = null != handler ? listener.bind(handler) : listener + this.interval_ = interval + this.args_ = null + this.shouldFire_ = !1 + this.pauseCount_ = 0 + this.timer_ = null +} +$jscomp.inherits(module$contents$goog$async$Throttle_Throttle, goog.Disposable) module$contents$goog$async$Throttle_Throttle.prototype.fire = function ( - var_args + var_args ) { - this.args_ = arguments; - this.timer_ || this.pauseCount_ ? (this.shouldFire_ = !0) : this.doAction_(); -}; + this.args_ = arguments + this.timer_ || this.pauseCount_ ? (this.shouldFire_ = !0) : this.doAction_() +} module$contents$goog$async$Throttle_Throttle.prototype.stop = function () { - this.timer_ && - (goog.Timer.clear(this.timer_), - (this.timer_ = null), - (this.shouldFire_ = !1), - (this.args_ = null)); -}; + this.timer_ && + (goog.Timer.clear(this.timer_), + (this.timer_ = null), + (this.shouldFire_ = !1), + (this.args_ = null)) +} module$contents$goog$async$Throttle_Throttle.prototype.pause = function () { - this.pauseCount_++; -}; + this.pauseCount_++ +} module$contents$goog$async$Throttle_Throttle.prototype.resume = function () { - this.pauseCount_--; - this.pauseCount_ || - !this.shouldFire_ || - this.timer_ || - ((this.shouldFire_ = !1), this.doAction_()); -}; + this.pauseCount_-- + this.pauseCount_ || + !this.shouldFire_ || + this.timer_ || + ((this.shouldFire_ = !1), this.doAction_()) +} module$contents$goog$async$Throttle_Throttle.prototype.disposeInternal = - function () { - goog.Disposable.prototype.disposeInternal.call(this); - this.stop(); - }; + function () { + goog.Disposable.prototype.disposeInternal.call(this) + this.stop() + } module$contents$goog$async$Throttle_Throttle.prototype.onTimer_ = function () { - this.timer_ = null; - this.shouldFire_ && - !this.pauseCount_ && - ((this.shouldFire_ = !1), this.doAction_()); -}; + this.timer_ = null + this.shouldFire_ && + !this.pauseCount_ && + ((this.shouldFire_ = !1), this.doAction_()) +} module$contents$goog$async$Throttle_Throttle.prototype.doAction_ = function () { - var $jscomp$this = this; - this.timer_ = goog.Timer.callOnce(function () { - return $jscomp$this.onTimer_(); - }, this.interval_); - var args = this.args_; - this.args_ = null; - this.listener_.apply(null, args); -}; -goog.async.Throttle = module$contents$goog$async$Throttle_Throttle; -goog.promise.deferredBase = {}; + var $jscomp$this = this + this.timer_ = goog.Timer.callOnce(function () { + return $jscomp$this.onTimer_() + }, this.interval_) + var args = this.args_ + this.args_ = null + this.listener_.apply(null, args) +} +goog.async.Throttle = module$contents$goog$async$Throttle_Throttle +goog.promise.deferredBase = {} function module$contents$goog$promise$deferredBase_DeferredBaseDoNotUse() {} goog.promise.deferredBase.DeferredBaseDoNotUse = - module$contents$goog$promise$deferredBase_DeferredBaseDoNotUse; + module$contents$goog$promise$deferredBase_DeferredBaseDoNotUse /* Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. @@ -33314,18297 +34258,18821 @@ goog.promise.deferredBase.DeferredBaseDoNotUse = SPDX-License-Identifier: MIT */ goog.async.Deferred = function (opt_onCancelFunction, opt_defaultScope) { - this.sequence_ = []; - this.onCancelFunction_ = opt_onCancelFunction; - this.defaultScope_ = opt_defaultScope || null; - this.hadError_ = this.fired_ = !1; - this.result_ = void 0; - this.silentlyCanceled_ = this.blocking_ = this.blocked_ = !1; - this.unhandledErrorId_ = 0; - this.parent_ = null; - this.branches_ = 0; - if ( - goog.async.Deferred.LONG_STACK_TRACES && - ((this.constructorStack_ = null), Error.captureStackTrace) - ) { - var target = { stack: "" }; - Error.captureStackTrace(target, goog.async.Deferred); - "string" == typeof target.stack && - (this.constructorStack_ = target.stack.replace(/^[^\n]*\n/, "")); - } -}; + this.sequence_ = [] + this.onCancelFunction_ = opt_onCancelFunction + this.defaultScope_ = opt_defaultScope || null + this.hadError_ = this.fired_ = !1 + this.result_ = void 0 + this.silentlyCanceled_ = this.blocking_ = this.blocked_ = !1 + this.unhandledErrorId_ = 0 + this.parent_ = null + this.branches_ = 0 + if ( + goog.async.Deferred.LONG_STACK_TRACES && + ((this.constructorStack_ = null), Error.captureStackTrace) + ) { + var target = { stack: '' } + Error.captureStackTrace(target, goog.async.Deferred) + 'string' == typeof target.stack && + (this.constructorStack_ = target.stack.replace(/^[^\n]*\n/, '')) + } +} goog.inherits( - goog.async.Deferred, - module$contents$goog$promise$deferredBase_DeferredBaseDoNotUse -); -goog.async.Deferred.STRICT_ERRORS = !1; -goog.async.Deferred.LONG_STACK_TRACES = !1; + goog.async.Deferred, + module$contents$goog$promise$deferredBase_DeferredBaseDoNotUse +) +goog.async.Deferred.STRICT_ERRORS = !1 +goog.async.Deferred.LONG_STACK_TRACES = !1 goog.async.Deferred.prototype.cancel = function (opt_deepCancel) { - if (this.hasFired()) { - this.result_ instanceof goog.async.Deferred && this.result_.cancel(); - } else { - if (this.parent_) { - var parent = this.parent_; - delete this.parent_; - opt_deepCancel ? parent.cancel(opt_deepCancel) : parent.branchCancel_(); - } - this.onCancelFunction_ - ? this.onCancelFunction_.call(this.defaultScope_, this) - : (this.silentlyCanceled_ = !0); - this.hasFired() || - this.errback(new goog.async.Deferred.CanceledError(this)); - } -}; + if (this.hasFired()) { + this.result_ instanceof goog.async.Deferred && this.result_.cancel() + } else { + if (this.parent_) { + var parent = this.parent_ + delete this.parent_ + opt_deepCancel + ? parent.cancel(opt_deepCancel) + : parent.branchCancel_() + } + this.onCancelFunction_ + ? this.onCancelFunction_.call(this.defaultScope_, this) + : (this.silentlyCanceled_ = !0) + this.hasFired() || + this.errback(new goog.async.Deferred.CanceledError(this)) + } +} goog.async.Deferred.prototype.branchCancel_ = function () { - this.branches_--; - 0 >= this.branches_ && this.cancel(); -}; + this.branches_-- + 0 >= this.branches_ && this.cancel() +} goog.async.Deferred.prototype.continue_ = function (isSuccess, res) { - this.blocked_ = !1; - this.updateResult_(isSuccess, res); -}; + this.blocked_ = !1 + this.updateResult_(isSuccess, res) +} goog.async.Deferred.prototype.updateResult_ = function (isSuccess, res) { - this.fired_ = !0; - this.result_ = res; - this.hadError_ = !isSuccess; - this.fire_(); -}; + this.fired_ = !0 + this.result_ = res + this.hadError_ = !isSuccess + this.fire_() +} goog.async.Deferred.prototype.check_ = function () { - if (this.hasFired()) { - if (!this.silentlyCanceled_) { - throw new goog.async.Deferred.AlreadyCalledError(this); + if (this.hasFired()) { + if (!this.silentlyCanceled_) { + throw new goog.async.Deferred.AlreadyCalledError(this) + } + this.silentlyCanceled_ = !1 } - this.silentlyCanceled_ = !1; - } -}; +} goog.async.Deferred.prototype.callback = function (opt_result) { - this.check_(); - this.assertNotDeferred_(opt_result); - this.updateResult_(!0, opt_result); -}; + this.check_() + this.assertNotDeferred_(opt_result) + this.updateResult_(!0, opt_result) +} goog.async.Deferred.prototype.errback = function (opt_result) { - this.check_(); - this.assertNotDeferred_(opt_result); - this.makeStackTraceLong_(opt_result); - this.updateResult_(!1, opt_result); -}; + this.check_() + this.assertNotDeferred_(opt_result) + this.makeStackTraceLong_(opt_result) + this.updateResult_(!1, opt_result) +} goog.async.Deferred.unhandledErrorHandler_ = function (e) { - throw e; -}; + throw e +} goog.async.Deferred.setUnhandledErrorHandler = function (handler) { - goog.async.Deferred.unhandledErrorHandler_ = handler; -}; + goog.async.Deferred.unhandledErrorHandler_ = handler +} goog.async.Deferred.prototype.makeStackTraceLong_ = function (error) { - goog.async.Deferred.LONG_STACK_TRACES && - this.constructorStack_ && - goog.isObject(error) && - error.stack && - /^[^\n]+(\n [^\n]+)+/.test(error.stack) && - (error.stack = - error.stack + "\nDEFERRED OPERATION:\n" + this.constructorStack_); -}; + goog.async.Deferred.LONG_STACK_TRACES && + this.constructorStack_ && + goog.isObject(error) && + error.stack && + /^[^\n]+(\n [^\n]+)+/.test(error.stack) && + (error.stack = + error.stack + '\nDEFERRED OPERATION:\n' + this.constructorStack_) +} goog.async.Deferred.prototype.assertNotDeferred_ = function (obj) { - goog.asserts.assert( - !(obj instanceof goog.async.Deferred), - "An execution sequence may not be initiated with a blocking Deferred." - ); -}; + goog.asserts.assert( + !(obj instanceof goog.async.Deferred), + 'An execution sequence may not be initiated with a blocking Deferred.' + ) +} goog.async.Deferred.prototype.addCallback = function (cb, opt_scope) { - return this.addCallbacks(cb, null, opt_scope); -}; + return this.addCallbacks(cb, null, opt_scope) +} goog.async.Deferred.prototype.addErrback = function (eb, opt_scope) { - return this.addCallbacks(null, eb, opt_scope); -}; + return this.addCallbacks(null, eb, opt_scope) +} goog.async.Deferred.prototype.addBoth = function (f, opt_scope) { - return this.addCallbacks(f, f, opt_scope); -}; + return this.addCallbacks(f, f, opt_scope) +} goog.async.Deferred.prototype.addFinally = function (f, opt_scope) { - return this.addCallbacks( - f, - function (err) { - var result = f.call(this, err); - if (void 0 === result) { - throw err; - } - return result; - }, - opt_scope - ); -}; + return this.addCallbacks( + f, + function (err) { + var result = f.call(this, err) + if (void 0 === result) { + throw err + } + return result + }, + opt_scope + ) +} goog.async.Deferred.prototype.addCallbacks = function (cb, eb, opt_scope) { - goog.asserts.assert(!this.blocking_, "Blocking Deferreds can not be re-used"); - this.sequence_.push([cb, eb, opt_scope]); - this.hasFired() && this.fire_(); - return this; -}; + goog.asserts.assert( + !this.blocking_, + 'Blocking Deferreds can not be re-used' + ) + this.sequence_.push([cb, eb, opt_scope]) + this.hasFired() && this.fire_() + return this +} goog.async.Deferred.prototype.then = function ( - opt_onFulfilled, - opt_onRejected, - opt_context -) { - var reject, - resolve, - promise = new goog.Promise(function (res, rej) { - resolve = res; - reject = rej; - }); - this.addCallbacks( - resolve, - function (reason) { - reason instanceof goog.async.Deferred.CanceledError - ? promise.cancel() - : reject(reason); - return goog.async.Deferred.CONVERTED_TO_PROMISE_; - }, - this - ); - return promise.then(opt_onFulfilled, opt_onRejected, opt_context); -}; -module$contents$goog$Thenable_Thenable.addImplementation(goog.async.Deferred); + opt_onFulfilled, + opt_onRejected, + opt_context +) { + var reject, + resolve, + promise = new goog.Promise(function (res, rej) { + resolve = res + reject = rej + }) + this.addCallbacks( + resolve, + function (reason) { + reason instanceof goog.async.Deferred.CanceledError + ? promise.cancel() + : reject(reason) + return goog.async.Deferred.CONVERTED_TO_PROMISE_ + }, + this + ) + return promise.then(opt_onFulfilled, opt_onRejected, opt_context) +} +module$contents$goog$Thenable_Thenable.addImplementation(goog.async.Deferred) goog.async.Deferred.prototype.chainDeferred = function (otherDeferred) { - this.addCallbacks( - otherDeferred.callback, - otherDeferred.errback, - otherDeferred - ); - return this; -}; + this.addCallbacks( + otherDeferred.callback, + otherDeferred.errback, + otherDeferred + ) + return this +} goog.async.Deferred.prototype.awaitDeferred = function (otherDeferred) { - return otherDeferred instanceof goog.async.Deferred - ? this.addCallback(goog.bind(otherDeferred.branch, otherDeferred)) - : this.addCallback(function () { - return otherDeferred; - }); -}; + return otherDeferred instanceof goog.async.Deferred + ? this.addCallback(goog.bind(otherDeferred.branch, otherDeferred)) + : this.addCallback(function () { + return otherDeferred + }) +} goog.async.Deferred.prototype.branch = function (opt_propagateCancel) { - var d = new goog.async.Deferred(); - this.chainDeferred(d); - opt_propagateCancel && ((d.parent_ = this), this.branches_++); - return d; -}; + var d = new goog.async.Deferred() + this.chainDeferred(d) + opt_propagateCancel && ((d.parent_ = this), this.branches_++) + return d +} goog.async.Deferred.prototype.hasFired = function () { - return this.fired_; -}; + return this.fired_ +} goog.async.Deferred.prototype.isError = function (res) { - return res instanceof Error; -}; + return res instanceof Error +} goog.async.Deferred.prototype.hasErrback_ = function () { - return module$contents$goog$array_some( - this.sequence_, - function (sequenceRow) { - return "function" === typeof sequenceRow[1]; - } - ); -}; + return module$contents$goog$array_some( + this.sequence_, + function (sequenceRow) { + return 'function' === typeof sequenceRow[1] + } + ) +} goog.async.Deferred.prototype.getLastValueForMigration = function () { - return this.hasFired() && !this.hadError_ ? this.result_ : void 0; -}; -goog.async.Deferred.CONVERTED_TO_PROMISE_ = {}; + return this.hasFired() && !this.hadError_ ? this.result_ : void 0 +} +goog.async.Deferred.CONVERTED_TO_PROMISE_ = {} goog.async.Deferred.prototype.fire_ = function () { - this.unhandledErrorId_ && - this.hasFired() && - this.hasErrback_() && - (goog.async.Deferred.unscheduleError_(this.unhandledErrorId_), - (this.unhandledErrorId_ = 0)); - this.parent_ && (this.parent_.branches_--, delete this.parent_); - for ( - var res = this.result_, - unhandledException = !1, - isNewlyBlocked = !1, - wasConvertedToPromise = !1; - this.sequence_.length && !this.blocked_; + this.unhandledErrorId_ && + this.hasFired() && + this.hasErrback_() && + (goog.async.Deferred.unscheduleError_(this.unhandledErrorId_), + (this.unhandledErrorId_ = 0)) + this.parent_ && (this.parent_.branches_--, delete this.parent_) + for ( + var res = this.result_, + unhandledException = !1, + isNewlyBlocked = !1, + wasConvertedToPromise = !1; + this.sequence_.length && !this.blocked_; - ) { - wasConvertedToPromise = !1; - var sequenceEntry = this.sequence_.shift(), - callback = sequenceEntry[0], - errback = sequenceEntry[1], - scope = sequenceEntry[2], - f = this.hadError_ ? errback : callback; - if (f) { - try { - var ret = f.call(scope || this.defaultScope_, res); - ret === goog.async.Deferred.CONVERTED_TO_PROMISE_ && - ((wasConvertedToPromise = !0), (ret = void 0)); - void 0 !== ret && - ((this.hadError_ = - this.hadError_ && (ret == res || this.isError(ret))), - (this.result_ = res = ret)); - if ( - module$contents$goog$Thenable_Thenable.isImplementedBy(res) || - ("function" === typeof goog.global.Promise && - res instanceof goog.global.Promise) - ) { - this.blocked_ = isNewlyBlocked = !0; + ) { + wasConvertedToPromise = !1 + var sequenceEntry = this.sequence_.shift(), + callback = sequenceEntry[0], + errback = sequenceEntry[1], + scope = sequenceEntry[2], + f = this.hadError_ ? errback : callback + if (f) { + try { + var ret = f.call(scope || this.defaultScope_, res) + ret === goog.async.Deferred.CONVERTED_TO_PROMISE_ && + ((wasConvertedToPromise = !0), (ret = void 0)) + void 0 !== ret && + ((this.hadError_ = + this.hadError_ && (ret == res || this.isError(ret))), + (this.result_ = res = ret)) + if ( + module$contents$goog$Thenable_Thenable.isImplementedBy( + res + ) || + ('function' === typeof goog.global.Promise && + res instanceof goog.global.Promise) + ) { + this.blocked_ = isNewlyBlocked = !0 + } + } catch (ex) { + ;(res = ex), + (this.hadError_ = !0), + this.makeStackTraceLong_(res), + this.hasErrback_() || (unhandledException = !0) + } } - } catch (ex) { - (res = ex), - (this.hadError_ = !0), - this.makeStackTraceLong_(res), - this.hasErrback_() || (unhandledException = !0); - } } - } - this.result_ = res; - if (isNewlyBlocked) { - var onCallback = goog.bind(this.continue_, this, !0), - onErrback = goog.bind(this.continue_, this, !1); - res instanceof goog.async.Deferred - ? (res.addCallbacks(onCallback, onErrback), (res.blocking_ = !0)) - : res.then(onCallback, onErrback); - } else { - !goog.async.Deferred.STRICT_ERRORS || - wasConvertedToPromise || - !this.isError(res) || - res instanceof goog.async.Deferred.CanceledError || - (unhandledException = this.hadError_ = !0); - } - unhandledException && - (this.unhandledErrorId_ = goog.async.Deferred.scheduleError_(res)); -}; + this.result_ = res + if (isNewlyBlocked) { + var onCallback = goog.bind(this.continue_, this, !0), + onErrback = goog.bind(this.continue_, this, !1) + res instanceof goog.async.Deferred + ? (res.addCallbacks(onCallback, onErrback), (res.blocking_ = !0)) + : res.then(onCallback, onErrback) + } else { + !goog.async.Deferred.STRICT_ERRORS || + wasConvertedToPromise || + !this.isError(res) || + res instanceof goog.async.Deferred.CanceledError || + (unhandledException = this.hadError_ = !0) + } + unhandledException && + (this.unhandledErrorId_ = goog.async.Deferred.scheduleError_(res)) +} goog.async.Deferred.succeed = function (opt_result) { - var d = new goog.async.Deferred(); - d.callback(opt_result); - return d; -}; + var d = new goog.async.Deferred() + d.callback(opt_result) + return d +} goog.async.Deferred.fromPromise = function (promise) { - var d = new goog.async.Deferred(); - promise.then( - function (value) { - d.callback(value); - }, - function (error) { - d.errback(error); - } - ); - return d; -}; + var d = new goog.async.Deferred() + promise.then( + function (value) { + d.callback(value) + }, + function (error) { + d.errback(error) + } + ) + return d +} goog.async.Deferred.fail = function (res) { - var d = new goog.async.Deferred(); - d.errback(res); - return d; -}; + var d = new goog.async.Deferred() + d.errback(res) + return d +} goog.async.Deferred.canceled = function () { - var d = new goog.async.Deferred(); - d.cancel(); - return d; -}; + var d = new goog.async.Deferred() + d.cancel() + return d +} goog.async.Deferred.when = function (value, callback, opt_scope) { - return value instanceof goog.async.Deferred - ? value.branch(!0).addCallback(callback, opt_scope) - : goog.async.Deferred.succeed(value).addCallback(callback, opt_scope); -}; + return value instanceof goog.async.Deferred + ? value.branch(!0).addCallback(callback, opt_scope) + : goog.async.Deferred.succeed(value).addCallback(callback, opt_scope) +} goog.async.Deferred.AlreadyCalledError = function (deferred) { - module$contents$goog$debug$Error_DebugError.call(this); - this.deferred = deferred; -}; + module$contents$goog$debug$Error_DebugError.call(this) + this.deferred = deferred +} goog.inherits( - goog.async.Deferred.AlreadyCalledError, - module$contents$goog$debug$Error_DebugError -); + goog.async.Deferred.AlreadyCalledError, + module$contents$goog$debug$Error_DebugError +) goog.async.Deferred.AlreadyCalledError.prototype.message = - "Deferred has already fired"; -goog.async.Deferred.AlreadyCalledError.prototype.name = "AlreadyCalledError"; + 'Deferred has already fired' +goog.async.Deferred.AlreadyCalledError.prototype.name = 'AlreadyCalledError' goog.async.Deferred.CanceledError = function (deferred) { - module$contents$goog$debug$Error_DebugError.call(this); - this.deferred = deferred; -}; + module$contents$goog$debug$Error_DebugError.call(this) + this.deferred = deferred +} goog.inherits( - goog.async.Deferred.CanceledError, - module$contents$goog$debug$Error_DebugError -); -goog.async.Deferred.CanceledError.prototype.message = "Deferred was canceled"; -goog.async.Deferred.CanceledError.prototype.name = "CanceledError"; + goog.async.Deferred.CanceledError, + module$contents$goog$debug$Error_DebugError +) +goog.async.Deferred.CanceledError.prototype.message = 'Deferred was canceled' +goog.async.Deferred.CanceledError.prototype.name = 'CanceledError' goog.async.Deferred.Error_ = function (error) { - this.id_ = goog.global.setTimeout(goog.bind(this.throwError, this), 0); - this.error_ = error; -}; + this.id_ = goog.global.setTimeout(goog.bind(this.throwError, this), 0) + this.error_ = error +} goog.async.Deferred.Error_.prototype.throwError = function () { - goog.asserts.assert( - goog.async.Deferred.errorMap_[this.id_], - "Cannot throw an error that is not scheduled." - ); - delete goog.async.Deferred.errorMap_[this.id_]; - goog.async.Deferred.unhandledErrorHandler_(this.error_); -}; + goog.asserts.assert( + goog.async.Deferred.errorMap_[this.id_], + 'Cannot throw an error that is not scheduled.' + ) + delete goog.async.Deferred.errorMap_[this.id_] + goog.async.Deferred.unhandledErrorHandler_(this.error_) +} goog.async.Deferred.Error_.prototype.resetTimer = function () { - goog.global.clearTimeout(this.id_); -}; -goog.async.Deferred.errorMap_ = {}; + goog.global.clearTimeout(this.id_) +} +goog.async.Deferred.errorMap_ = {} goog.async.Deferred.scheduleError_ = function (error) { - var deferredError = new goog.async.Deferred.Error_(error); - goog.async.Deferred.errorMap_[deferredError.id_] = deferredError; - return deferredError.id_; -}; + var deferredError = new goog.async.Deferred.Error_(error) + goog.async.Deferred.errorMap_[deferredError.id_] = deferredError + return deferredError.id_ +} goog.async.Deferred.unscheduleError_ = function (id) { - var error = goog.async.Deferred.errorMap_[id]; - error && (error.resetTimer(), delete goog.async.Deferred.errorMap_[id]); -}; + var error = goog.async.Deferred.errorMap_[id] + error && (error.resetTimer(), delete goog.async.Deferred.errorMap_[id]) +} goog.async.Deferred.assertNoErrors = function () { - var map = goog.async.Deferred.errorMap_, - key; - for (key in map) { - var error = map[key]; - error.resetTimer(); - error.throwError(); - } -}; -goog.net = {}; -goog.net.jsloader = {}; -goog.net.jsloader.Options = {}; -goog.net.jsloader.GLOBAL_VERIFY_OBJS_ = "closure_verification"; -goog.net.jsloader.DEFAULT_TIMEOUT = 5e3; -goog.net.jsloader.scriptsToLoad_ = []; + var map = goog.async.Deferred.errorMap_, + key + for (key in map) { + var error = map[key] + error.resetTimer() + error.throwError() + } +} +goog.net = {} +goog.net.jsloader = {} +goog.net.jsloader.Options = {} +goog.net.jsloader.GLOBAL_VERIFY_OBJS_ = 'closure_verification' +goog.net.jsloader.DEFAULT_TIMEOUT = 5e3 +goog.net.jsloader.scriptsToLoad_ = [] goog.net.jsloader.safeLoadMany = function (trustedUris, opt_options) { - if (!trustedUris.length) { - return goog.async.Deferred.succeed(null); - } - var isAnotherModuleLoading = goog.net.jsloader.scriptsToLoad_.length; - module$contents$goog$array_extend( - goog.net.jsloader.scriptsToLoad_, - trustedUris - ); - if (isAnotherModuleLoading) { - return goog.net.jsloader.scriptLoadingDeferred_; - } - trustedUris = goog.net.jsloader.scriptsToLoad_; - var popAndLoadNextScript = function () { - var trustedUri = trustedUris.shift(), - deferred = goog.net.jsloader.safeLoad(trustedUri, opt_options); - trustedUris.length && deferred.addBoth(popAndLoadNextScript); - return deferred; - }; - goog.net.jsloader.scriptLoadingDeferred_ = popAndLoadNextScript(); - return goog.net.jsloader.scriptLoadingDeferred_; -}; + if (!trustedUris.length) { + return goog.async.Deferred.succeed(null) + } + var isAnotherModuleLoading = goog.net.jsloader.scriptsToLoad_.length + module$contents$goog$array_extend( + goog.net.jsloader.scriptsToLoad_, + trustedUris + ) + if (isAnotherModuleLoading) { + return goog.net.jsloader.scriptLoadingDeferred_ + } + trustedUris = goog.net.jsloader.scriptsToLoad_ + var popAndLoadNextScript = function () { + var trustedUri = trustedUris.shift(), + deferred = goog.net.jsloader.safeLoad(trustedUri, opt_options) + trustedUris.length && deferred.addBoth(popAndLoadNextScript) + return deferred + } + goog.net.jsloader.scriptLoadingDeferred_ = popAndLoadNextScript() + return goog.net.jsloader.scriptLoadingDeferred_ +} goog.net.jsloader.safeLoad = function (trustedUri, opt_options) { - var options = opt_options || {}, - doc = options.document || document, - uri = goog.html.TrustedResourceUrl.unwrap(trustedUri), - script = new goog.dom.DomHelper(doc).createElement(goog.dom.TagName.SCRIPT), - request = { script_: script, timeout_: void 0 }, - deferred = new goog.async.Deferred(goog.net.jsloader.cancel_, request), - timeout = null, - timeoutDuration = - null != options.timeout - ? options.timeout - : goog.net.jsloader.DEFAULT_TIMEOUT; - 0 < timeoutDuration && - ((timeout = window.setTimeout(function () { - goog.net.jsloader.cleanup_(script, !0); - deferred.errback( - new goog.net.jsloader.Error( - goog.net.jsloader.ErrorCode.TIMEOUT, - "Timeout reached for loading script " + uri - ) - ); - }, timeoutDuration)), - (request.timeout_ = timeout)); - script.onload = script.onreadystatechange = function () { - (script.readyState && - "loaded" != script.readyState && - "complete" != script.readyState) || - (goog.net.jsloader.cleanup_( - script, - options.cleanupWhenDone || !1, - timeout - ), - deferred.callback(null)); - }; - script.onerror = function () { - goog.net.jsloader.cleanup_(script, !0, timeout); - deferred.errback( - new goog.net.jsloader.Error( - goog.net.jsloader.ErrorCode.LOAD_ERROR, - "Error while loading script " + uri - ) - ); - }; - var properties = options.attributes || {}; - module$contents$goog$object_extend(properties, { - type: "text/javascript", - charset: "UTF-8", - }); - goog.dom.setProperties(script, properties); - goog.dom.safe.setScriptSrc(script, trustedUri); - goog.net.jsloader.getScriptParentElement_(doc).appendChild(script); - return deferred; -}; + var options = opt_options || {}, + doc = options.document || document, + uri = goog.html.TrustedResourceUrl.unwrap(trustedUri), + script = new goog.dom.DomHelper(doc).createElement( + goog.dom.TagName.SCRIPT + ), + request = { script_: script, timeout_: void 0 }, + deferred = new goog.async.Deferred(goog.net.jsloader.cancel_, request), + timeout = null, + timeoutDuration = + null != options.timeout + ? options.timeout + : goog.net.jsloader.DEFAULT_TIMEOUT + 0 < timeoutDuration && + ((timeout = window.setTimeout(function () { + goog.net.jsloader.cleanup_(script, !0) + deferred.errback( + new goog.net.jsloader.Error( + goog.net.jsloader.ErrorCode.TIMEOUT, + 'Timeout reached for loading script ' + uri + ) + ) + }, timeoutDuration)), + (request.timeout_ = timeout)) + script.onload = script.onreadystatechange = function () { + ;(script.readyState && + 'loaded' != script.readyState && + 'complete' != script.readyState) || + (goog.net.jsloader.cleanup_( + script, + options.cleanupWhenDone || !1, + timeout + ), + deferred.callback(null)) + } + script.onerror = function () { + goog.net.jsloader.cleanup_(script, !0, timeout) + deferred.errback( + new goog.net.jsloader.Error( + goog.net.jsloader.ErrorCode.LOAD_ERROR, + 'Error while loading script ' + uri + ) + ) + } + var properties = options.attributes || {} + module$contents$goog$object_extend(properties, { + type: 'text/javascript', + charset: 'UTF-8', + }) + goog.dom.setProperties(script, properties) + goog.dom.safe.setScriptSrc(script, trustedUri) + goog.net.jsloader.getScriptParentElement_(doc).appendChild(script) + return deferred +} goog.net.jsloader.safeLoadAndVerify = function ( - trustedUri, - verificationObjName, - options -) { - goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] || - (goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] = {}); - var verifyObjs = goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_], - uri = goog.html.TrustedResourceUrl.unwrap(trustedUri); - if (void 0 !== verifyObjs[verificationObjName]) { - return goog.async.Deferred.fail( - new goog.net.jsloader.Error( - goog.net.jsloader.ErrorCode.VERIFY_OBJECT_ALREADY_EXISTS, - "Verification object " + verificationObjName + " already defined." - ) - ); - } - var sendDeferred = goog.net.jsloader.safeLoad(trustedUri, options), - deferred = new goog.async.Deferred( - goog.bind(sendDeferred.cancel, sendDeferred) - ); - sendDeferred.addCallback(function () { - var result = verifyObjs[verificationObjName]; - void 0 !== result - ? (deferred.callback(result), delete verifyObjs[verificationObjName]) - : deferred.errback( - new goog.net.jsloader.Error( - goog.net.jsloader.ErrorCode.VERIFY_ERROR, - "Script " + - uri + - " loaded, but verification object " + - verificationObjName + - " was not defined." - ) - ); - }); - sendDeferred.addErrback(function (error) { - void 0 !== verifyObjs[verificationObjName] && - delete verifyObjs[verificationObjName]; - deferred.errback(error); - }); - return deferred; -}; + trustedUri, + verificationObjName, + options +) { + goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] || + (goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] = {}) + var verifyObjs = goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_], + uri = goog.html.TrustedResourceUrl.unwrap(trustedUri) + if (void 0 !== verifyObjs[verificationObjName]) { + return goog.async.Deferred.fail( + new goog.net.jsloader.Error( + goog.net.jsloader.ErrorCode.VERIFY_OBJECT_ALREADY_EXISTS, + 'Verification object ' + + verificationObjName + + ' already defined.' + ) + ) + } + var sendDeferred = goog.net.jsloader.safeLoad(trustedUri, options), + deferred = new goog.async.Deferred( + goog.bind(sendDeferred.cancel, sendDeferred) + ) + sendDeferred.addCallback(function () { + var result = verifyObjs[verificationObjName] + void 0 !== result + ? (deferred.callback(result), + delete verifyObjs[verificationObjName]) + : deferred.errback( + new goog.net.jsloader.Error( + goog.net.jsloader.ErrorCode.VERIFY_ERROR, + 'Script ' + + uri + + ' loaded, but verification object ' + + verificationObjName + + ' was not defined.' + ) + ) + }) + sendDeferred.addErrback(function (error) { + void 0 !== verifyObjs[verificationObjName] && + delete verifyObjs[verificationObjName] + deferred.errback(error) + }) + return deferred +} goog.net.jsloader.getScriptParentElement_ = function (doc) { - var headElements = goog.dom.getElementsByTagName(goog.dom.TagName.HEAD, doc); - return headElements && 0 !== headElements.length - ? headElements[0] - : doc.documentElement; -}; + var headElements = goog.dom.getElementsByTagName(goog.dom.TagName.HEAD, doc) + return headElements && 0 !== headElements.length + ? headElements[0] + : doc.documentElement +} goog.net.jsloader.cancel_ = function () { - if (this && this.script_) { - var scriptNode = this.script_; - scriptNode && - scriptNode.tagName == goog.dom.TagName.SCRIPT && - goog.net.jsloader.cleanup_(scriptNode, !0, this.timeout_); - } -}; + if (this && this.script_) { + var scriptNode = this.script_ + scriptNode && + scriptNode.tagName == goog.dom.TagName.SCRIPT && + goog.net.jsloader.cleanup_(scriptNode, !0, this.timeout_) + } +} goog.net.jsloader.cleanup_ = function ( - scriptNode, - removeScriptNode, - opt_timeout -) { - null != opt_timeout && goog.global.clearTimeout(opt_timeout); - scriptNode.onload = function () {}; - scriptNode.onerror = function () {}; - scriptNode.onreadystatechange = function () {}; - removeScriptNode && - window.setTimeout(function () { - goog.dom.removeNode(scriptNode); - }, 0); -}; + scriptNode, + removeScriptNode, + opt_timeout +) { + null != opt_timeout && goog.global.clearTimeout(opt_timeout) + scriptNode.onload = function () {} + scriptNode.onerror = function () {} + scriptNode.onreadystatechange = function () {} + removeScriptNode && + window.setTimeout(function () { + goog.dom.removeNode(scriptNode) + }, 0) +} goog.net.jsloader.ErrorCode = { - LOAD_ERROR: 0, - TIMEOUT: 1, - VERIFY_ERROR: 2, - VERIFY_OBJECT_ALREADY_EXISTS: 3, -}; + LOAD_ERROR: 0, + TIMEOUT: 1, + VERIFY_ERROR: 2, + VERIFY_OBJECT_ALREADY_EXISTS: 3, +} goog.net.jsloader.Error = function (code, opt_message) { - var msg = "Jsloader error (code #" + code + ")"; - opt_message && (msg += ": " + opt_message); - module$contents$goog$debug$Error_DebugError.call(this, msg); - this.code = code; -}; + var msg = 'Jsloader error (code #' + code + ')' + opt_message && (msg += ': ' + opt_message) + module$contents$goog$debug$Error_DebugError.call(this, msg) + this.code = code +} goog.inherits( - goog.net.jsloader.Error, - module$contents$goog$debug$Error_DebugError -); -goog.json = {}; -goog.json.Replacer = {}; -goog.json.Reviver = {}; -goog.json.USE_NATIVE_JSON = !1; + goog.net.jsloader.Error, + module$contents$goog$debug$Error_DebugError +) +goog.json = {} +goog.json.Replacer = {} +goog.json.Reviver = {} +goog.json.USE_NATIVE_JSON = !1 goog.json.isValid = function (s) { - return /^\s*$/.test(s) - ? !1 - : /^[\],:{}\s\u2028\u2029]*$/.test( - s - .replace(/\\["\\\/bfnrtu]/g, "@") - .replace( - /(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g, - "]" + return /^\s*$/.test(s) + ? !1 + : /^[\],:{}\s\u2028\u2029]*$/.test( + s + .replace(/\\["\\\/bfnrtu]/g, '@') + .replace( + /(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g, + ']' + ) + .replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, '') ) - .replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, "") - ); -}; -goog.json.errorLogger_ = function () {}; +} +goog.json.errorLogger_ = function () {} goog.json.setErrorLogger = function (errorLogger) { - goog.json.errorLogger_ = errorLogger; -}; + goog.json.errorLogger_ = errorLogger +} goog.json.parse = goog.json.USE_NATIVE_JSON - ? goog.global.JSON.parse - : function (s) { - try { - return goog.global.JSON.parse(s); - } catch (ex) { - var error = ex; - } - var o = String(s); - if (goog.json.isValid(o)) { - try { - var result = eval("(" + o + ")"); - error && goog.json.errorLogger_("Invalid JSON: " + o, error); - return result; - } catch (ex) {} + ? goog.global.JSON.parse + : function (s) { + try { + return goog.global.JSON.parse(s) + } catch (ex) { + var error = ex + } + var o = String(s) + if (goog.json.isValid(o)) { + try { + var result = eval('(' + o + ')') + error && goog.json.errorLogger_('Invalid JSON: ' + o, error) + return result + } catch (ex) {} + } + throw Error('Invalid JSON string: ' + o) } - throw Error("Invalid JSON string: " + o); - }; goog.json.serialize = goog.json.USE_NATIVE_JSON - ? goog.global.JSON.stringify - : function (object, opt_replacer) { - return new goog.json.Serializer(opt_replacer).serialize(object); - }; + ? goog.global.JSON.stringify + : function (object, opt_replacer) { + return new goog.json.Serializer(opt_replacer).serialize(object) + } goog.json.Serializer = function (opt_replacer) { - this.replacer_ = opt_replacer; -}; + this.replacer_ = opt_replacer +} goog.json.Serializer.prototype.serialize = function (object) { - var sb = []; - this.serializeInternal(object, sb); - return sb.join(""); -}; + var sb = [] + this.serializeInternal(object, sb) + return sb.join('') +} goog.json.Serializer.prototype.serializeInternal = function (object, sb) { - if (null == object) { - sb.push("null"); - } else { - if ("object" == typeof object) { - if (Array.isArray(object)) { - this.serializeArray(object, sb); - return; - } - if ( - object instanceof String || - object instanceof Number || - object instanceof Boolean - ) { - object = object.valueOf(); - } else { - this.serializeObject_(object, sb); - return; - } + if (null == object) { + sb.push('null') + } else { + if ('object' == typeof object) { + if (Array.isArray(object)) { + this.serializeArray(object, sb) + return + } + if ( + object instanceof String || + object instanceof Number || + object instanceof Boolean + ) { + object = object.valueOf() + } else { + this.serializeObject_(object, sb) + return + } + } + switch (typeof object) { + case 'string': + this.serializeString_(object, sb) + break + case 'number': + this.serializeNumber_(object, sb) + break + case 'boolean': + sb.push(String(object)) + break + case 'function': + sb.push('null') + break + default: + throw Error('Unknown type: ' + typeof object) + } } - switch (typeof object) { - case "string": - this.serializeString_(object, sb); - break; - case "number": - this.serializeNumber_(object, sb); - break; - case "boolean": - sb.push(String(object)); - break; - case "function": - sb.push("null"); - break; - default: - throw Error("Unknown type: " + typeof object); - } - } -}; +} goog.json.Serializer.charToJsonCharCache_ = { - '"': '\\"', - "\\": "\\\\", - "/": "\\/", - "\b": "\\b", - "\f": "\\f", - "\n": "\\n", - "\r": "\\r", - "\t": "\\t", - "\v": "\\u000b", -}; -goog.json.Serializer.charsToReplace_ = /\uffff/.test("\uffff") - ? /[\\"\x00-\x1f\x7f-\uffff]/g - : /[\\"\x00-\x1f\x7f-\xff]/g; + '"': '\\"', + '\\': '\\\\', + '/': '\\/', + '\b': '\\b', + '\f': '\\f', + '\n': '\\n', + '\r': '\\r', + '\t': '\\t', + '\v': '\\u000b', +} +goog.json.Serializer.charsToReplace_ = /\uffff/.test('\uffff') + ? /[\\"\x00-\x1f\x7f-\uffff]/g + : /[\\"\x00-\x1f\x7f-\xff]/g goog.json.Serializer.prototype.serializeString_ = function (s, sb) { - sb.push( - '"', - s.replace(goog.json.Serializer.charsToReplace_, function (c) { - var rv = goog.json.Serializer.charToJsonCharCache_[c]; - rv || - ((rv = "\\u" + (c.charCodeAt(0) | 65536).toString(16).slice(1)), - (goog.json.Serializer.charToJsonCharCache_[c] = rv)); - return rv; - }), - '"' - ); -}; + sb.push( + '"', + s.replace(goog.json.Serializer.charsToReplace_, function (c) { + var rv = goog.json.Serializer.charToJsonCharCache_[c] + rv || + ((rv = '\\u' + (c.charCodeAt(0) | 65536).toString(16).slice(1)), + (goog.json.Serializer.charToJsonCharCache_[c] = rv)) + return rv + }), + '"' + ) +} goog.json.Serializer.prototype.serializeNumber_ = function (n, sb) { - sb.push(isFinite(n) && !isNaN(n) ? String(n) : "null"); -}; + sb.push(isFinite(n) && !isNaN(n) ? String(n) : 'null') +} goog.json.Serializer.prototype.serializeArray = function (arr, sb) { - var l = arr.length; - sb.push("["); - for (var sep = "", i = 0; i < l; i++) { - sb.push(sep); - var value = arr[i]; - this.serializeInternal( - this.replacer_ ? this.replacer_.call(arr, String(i), value) : value, - sb - ); - sep = ","; - } - sb.push("]"); -}; -goog.json.Serializer.prototype.serializeObject_ = function (obj, sb) { - sb.push("{"); - var sep = "", - key; - for (key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - var value = obj[key]; - "function" != typeof value && - (sb.push(sep), - this.serializeString_(key, sb), - sb.push(":"), + var l = arr.length + sb.push('[') + for (var sep = '', i = 0; i < l; i++) { + sb.push(sep) + var value = arr[i] this.serializeInternal( - this.replacer_ ? this.replacer_.call(obj, key, value) : value, - sb - ), - (sep = ",")); + this.replacer_ ? this.replacer_.call(arr, String(i), value) : value, + sb + ) + sep = ',' + } + sb.push(']') +} +goog.json.Serializer.prototype.serializeObject_ = function (obj, sb) { + sb.push('{') + var sep = '', + key + for (key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + var value = obj[key] + 'function' != typeof value && + (sb.push(sep), + this.serializeString_(key, sb), + sb.push(':'), + this.serializeInternal( + this.replacer_ + ? this.replacer_.call(obj, key, value) + : value, + sb + ), + (sep = ',')) + } } - } - sb.push("}"); -}; -goog.json.hybrid = {}; + sb.push('}') +} +goog.json.hybrid = {} goog.json.hybrid.stringify = goog.json.USE_NATIVE_JSON - ? goog.global.JSON.stringify - : function (obj) { - if (goog.global.JSON) { - try { - return goog.global.JSON.stringify(obj); - } catch (e) {} + ? goog.global.JSON.stringify + : function (obj) { + if (goog.global.JSON) { + try { + return goog.global.JSON.stringify(obj) + } catch (e) {} + } + return goog.json.serialize(obj) } - return goog.json.serialize(obj); - }; goog.json.hybrid.parse_ = function (jsonString, fallbackParser) { - if (goog.global.JSON) { - try { - var obj = goog.global.JSON.parse(jsonString); - goog.asserts.assert("object" == typeof obj); - return obj; - } catch (e) {} - } - return fallbackParser(jsonString); -}; + if (goog.global.JSON) { + try { + var obj = goog.global.JSON.parse(jsonString) + goog.asserts.assert('object' == typeof obj) + return obj + } catch (e) {} + } + return fallbackParser(jsonString) +} goog.json.hybrid.parse = goog.json.USE_NATIVE_JSON - ? goog.global.JSON.parse - : function (jsonString) { - return goog.json.hybrid.parse_(jsonString, goog.json.parse); - }; -goog.log = {}; -goog.log.ENABLED = goog.debug.LOGGING_ENABLED; -goog.log.ROOT_LOGGER_NAME = ""; + ? goog.global.JSON.parse + : function (jsonString) { + return goog.json.hybrid.parse_(jsonString, goog.json.parse) + } +goog.log = {} +goog.log.ENABLED = goog.debug.LOGGING_ENABLED +goog.log.ROOT_LOGGER_NAME = '' var third_party$javascript$closure$log$log$classdecl$var0 = function ( - name, - value + name, + value ) { - this.name = name; - this.value = value; -}; + this.name = name + this.value = value +} third_party$javascript$closure$log$log$classdecl$var0.prototype.toString = - function () { - return this.name; - }; -goog.log.Level = third_party$javascript$closure$log$log$classdecl$var0; -goog.log.Level.OFF = new goog.log.Level("OFF", Infinity); -goog.log.Level.SHOUT = new goog.log.Level("SHOUT", 1200); -goog.log.Level.SEVERE = new goog.log.Level("SEVERE", 1e3); -goog.log.Level.WARNING = new goog.log.Level("WARNING", 900); -goog.log.Level.INFO = new goog.log.Level("INFO", 800); -goog.log.Level.CONFIG = new goog.log.Level("CONFIG", 700); -goog.log.Level.FINE = new goog.log.Level("FINE", 500); -goog.log.Level.FINER = new goog.log.Level("FINER", 400); -goog.log.Level.FINEST = new goog.log.Level("FINEST", 300); -goog.log.Level.ALL = new goog.log.Level("ALL", 0); + function () { + return this.name + } +goog.log.Level = third_party$javascript$closure$log$log$classdecl$var0 +goog.log.Level.OFF = new goog.log.Level('OFF', Infinity) +goog.log.Level.SHOUT = new goog.log.Level('SHOUT', 1200) +goog.log.Level.SEVERE = new goog.log.Level('SEVERE', 1e3) +goog.log.Level.WARNING = new goog.log.Level('WARNING', 900) +goog.log.Level.INFO = new goog.log.Level('INFO', 800) +goog.log.Level.CONFIG = new goog.log.Level('CONFIG', 700) +goog.log.Level.FINE = new goog.log.Level('FINE', 500) +goog.log.Level.FINER = new goog.log.Level('FINER', 400) +goog.log.Level.FINEST = new goog.log.Level('FINEST', 300) +goog.log.Level.ALL = new goog.log.Level('ALL', 0) goog.log.Level.PREDEFINED_LEVELS = [ - goog.log.Level.OFF, - goog.log.Level.SHOUT, - goog.log.Level.SEVERE, - goog.log.Level.WARNING, - goog.log.Level.INFO, - goog.log.Level.CONFIG, - goog.log.Level.FINE, - goog.log.Level.FINER, - goog.log.Level.FINEST, - goog.log.Level.ALL, -]; -goog.log.Level.predefinedLevelsCache_ = null; + goog.log.Level.OFF, + goog.log.Level.SHOUT, + goog.log.Level.SEVERE, + goog.log.Level.WARNING, + goog.log.Level.INFO, + goog.log.Level.CONFIG, + goog.log.Level.FINE, + goog.log.Level.FINER, + goog.log.Level.FINEST, + goog.log.Level.ALL, +] +goog.log.Level.predefinedLevelsCache_ = null goog.log.Level.createPredefinedLevelsCache_ = function () { - goog.log.Level.predefinedLevelsCache_ = {}; - for ( - var i = 0, level = void 0; - (level = goog.log.Level.PREDEFINED_LEVELS[i]); - i++ - ) { - (goog.log.Level.predefinedLevelsCache_[level.value] = level), - (goog.log.Level.predefinedLevelsCache_[level.name] = level); - } -}; + goog.log.Level.predefinedLevelsCache_ = {} + for ( + var i = 0, level = void 0; + (level = goog.log.Level.PREDEFINED_LEVELS[i]); + i++ + ) { + ;(goog.log.Level.predefinedLevelsCache_[level.value] = level), + (goog.log.Level.predefinedLevelsCache_[level.name] = level) + } +} goog.log.Level.getPredefinedLevel = function (name) { - goog.log.Level.predefinedLevelsCache_ || - goog.log.Level.createPredefinedLevelsCache_(); - return goog.log.Level.predefinedLevelsCache_[name] || null; -}; + goog.log.Level.predefinedLevelsCache_ || + goog.log.Level.createPredefinedLevelsCache_() + return goog.log.Level.predefinedLevelsCache_[name] || null +} goog.log.Level.getPredefinedLevelByValue = function (value) { - goog.log.Level.predefinedLevelsCache_ || - goog.log.Level.createPredefinedLevelsCache_(); - if (value in goog.log.Level.predefinedLevelsCache_) { - return goog.log.Level.predefinedLevelsCache_[value]; - } - for (var i = 0; i < goog.log.Level.PREDEFINED_LEVELS.length; ++i) { - var level = goog.log.Level.PREDEFINED_LEVELS[i]; - if (level.value <= value) { - return level; - } - } - return null; -}; -var third_party$javascript$closure$log$log$classdecl$var1 = function () {}; + goog.log.Level.predefinedLevelsCache_ || + goog.log.Level.createPredefinedLevelsCache_() + if (value in goog.log.Level.predefinedLevelsCache_) { + return goog.log.Level.predefinedLevelsCache_[value] + } + for (var i = 0; i < goog.log.Level.PREDEFINED_LEVELS.length; ++i) { + var level = goog.log.Level.PREDEFINED_LEVELS[i] + if (level.value <= value) { + return level + } + } + return null +} +var third_party$javascript$closure$log$log$classdecl$var1 = function () {} third_party$javascript$closure$log$log$classdecl$var1.prototype.getName = - function () {}; -goog.log.Logger = third_party$javascript$closure$log$log$classdecl$var1; -goog.log.Logger.Level = goog.log.Level; + function () {} +goog.log.Logger = third_party$javascript$closure$log$log$classdecl$var1 +goog.log.Logger.Level = goog.log.Level var third_party$javascript$closure$log$log$classdecl$var2 = function ( - capacity + capacity ) { - this.capacity_ = - "number" === typeof capacity ? capacity : goog.log.LogBuffer.CAPACITY; - this.clear(); -}; + this.capacity_ = + 'number' === typeof capacity ? capacity : goog.log.LogBuffer.CAPACITY + this.clear() +} third_party$javascript$closure$log$log$classdecl$var2.prototype.addRecord = - function (level, msg, loggerName) { - if (!this.isBufferingEnabled()) { - return new goog.log.LogRecord(level, msg, loggerName); - } - var curIndex = (this.curIndex_ + 1) % this.capacity_; - this.curIndex_ = curIndex; - if (this.isFull_) { - var ret = this.buffer_[curIndex]; - ret.reset(level, msg, loggerName); - return ret; - } - this.isFull_ = curIndex == this.capacity_ - 1; - return (this.buffer_[curIndex] = new goog.log.LogRecord( - level, - msg, - loggerName - )); - }; + function (level, msg, loggerName) { + if (!this.isBufferingEnabled()) { + return new goog.log.LogRecord(level, msg, loggerName) + } + var curIndex = (this.curIndex_ + 1) % this.capacity_ + this.curIndex_ = curIndex + if (this.isFull_) { + var ret = this.buffer_[curIndex] + ret.reset(level, msg, loggerName) + return ret + } + this.isFull_ = curIndex == this.capacity_ - 1 + return (this.buffer_[curIndex] = new goog.log.LogRecord( + level, + msg, + loggerName + )) + } third_party$javascript$closure$log$log$classdecl$var2.prototype.forEachRecord = - function (func) { - var buffer = this.buffer_; - if (buffer[0]) { - var curIndex = this.curIndex_, - i = this.isFull_ ? curIndex : -1; - do { - (i = (i + 1) % this.capacity_), func(buffer[i]); - } while (i !== curIndex); - } - }; + function (func) { + var buffer = this.buffer_ + if (buffer[0]) { + var curIndex = this.curIndex_, + i = this.isFull_ ? curIndex : -1 + do { + ;(i = (i + 1) % this.capacity_), func(buffer[i]) + } while (i !== curIndex) + } + } third_party$javascript$closure$log$log$classdecl$var2.prototype.isBufferingEnabled = - function () { - return 0 < this.capacity_; - }; + function () { + return 0 < this.capacity_ + } third_party$javascript$closure$log$log$classdecl$var2.prototype.isFull = - function () { - return this.isFull_; - }; + function () { + return this.isFull_ + } third_party$javascript$closure$log$log$classdecl$var2.prototype.clear = - function () { - this.buffer_ = Array(this.capacity_); - this.curIndex_ = -1; - this.isFull_ = !1; - }; -goog.log.LogBuffer = third_party$javascript$closure$log$log$classdecl$var2; -goog.log.LogBuffer.CAPACITY = 0; + function () { + this.buffer_ = Array(this.capacity_) + this.curIndex_ = -1 + this.isFull_ = !1 + } +goog.log.LogBuffer = third_party$javascript$closure$log$log$classdecl$var2 +goog.log.LogBuffer.CAPACITY = 0 goog.log.LogBuffer.getInstance = function () { - goog.log.LogBuffer.instance_ || - (goog.log.LogBuffer.instance_ = new goog.log.LogBuffer( - goog.log.LogBuffer.CAPACITY - )); - return goog.log.LogBuffer.instance_; -}; + goog.log.LogBuffer.instance_ || + (goog.log.LogBuffer.instance_ = new goog.log.LogBuffer( + goog.log.LogBuffer.CAPACITY + )) + return goog.log.LogBuffer.instance_ +} goog.log.LogBuffer.isBufferingEnabled = function () { - return goog.log.LogBuffer.getInstance().isBufferingEnabled(); -}; + return goog.log.LogBuffer.getInstance().isBufferingEnabled() +} var third_party$javascript$closure$log$log$classdecl$var3 = function ( - level, - msg, - loggerName, - time, - sequenceNumber -) { - this.exception_ = void 0; - this.reset( - level || goog.log.Level.OFF, + level, msg, loggerName, time, sequenceNumber - ); -}; +) { + this.exception_ = void 0 + this.reset( + level || goog.log.Level.OFF, + msg, + loggerName, + time, + sequenceNumber + ) +} third_party$javascript$closure$log$log$classdecl$var3.prototype.reset = - function (level, msg, loggerName, time, sequenceNumber) { - this.time_ = time || goog.now(); - this.level_ = level; - this.msg_ = msg; - this.loggerName_ = loggerName; - this.exception_ = void 0; - this.sequenceNumber_ = - "number" === typeof sequenceNumber - ? sequenceNumber - : goog.log.LogRecord.nextSequenceNumber_; - }; + function (level, msg, loggerName, time, sequenceNumber) { + this.time_ = time || goog.now() + this.level_ = level + this.msg_ = msg + this.loggerName_ = loggerName + this.exception_ = void 0 + this.sequenceNumber_ = + 'number' === typeof sequenceNumber + ? sequenceNumber + : goog.log.LogRecord.nextSequenceNumber_ + } third_party$javascript$closure$log$log$classdecl$var3.prototype.getLoggerName = - function () { - return this.loggerName_; - }; + function () { + return this.loggerName_ + } third_party$javascript$closure$log$log$classdecl$var3.prototype.setLoggerName = - function (name) { - this.loggerName_ = name; - }; + function (name) { + this.loggerName_ = name + } third_party$javascript$closure$log$log$classdecl$var3.prototype.getException = - function () { - return this.exception_; - }; + function () { + return this.exception_ + } third_party$javascript$closure$log$log$classdecl$var3.prototype.setException = - function (exception) { - this.exception_ = exception; - }; + function (exception) { + this.exception_ = exception + } third_party$javascript$closure$log$log$classdecl$var3.prototype.getLevel = - function () { - return this.level_; - }; + function () { + return this.level_ + } third_party$javascript$closure$log$log$classdecl$var3.prototype.setLevel = - function (level) { - this.level_ = level; - }; + function (level) { + this.level_ = level + } third_party$javascript$closure$log$log$classdecl$var3.prototype.getMessage = - function () { - return this.msg_; - }; + function () { + return this.msg_ + } third_party$javascript$closure$log$log$classdecl$var3.prototype.setMessage = - function (msg) { - this.msg_ = msg; - }; + function (msg) { + this.msg_ = msg + } third_party$javascript$closure$log$log$classdecl$var3.prototype.getMillis = - function () { - return this.time_; - }; + function () { + return this.time_ + } third_party$javascript$closure$log$log$classdecl$var3.prototype.setMillis = - function (time) { - this.time_ = time; - }; + function (time) { + this.time_ = time + } third_party$javascript$closure$log$log$classdecl$var3.prototype.getSequenceNumber = - function () { - return this.sequenceNumber_; - }; -goog.log.LogRecord = third_party$javascript$closure$log$log$classdecl$var3; -goog.log.LogRecord.nextSequenceNumber_ = 0; + function () { + return this.sequenceNumber_ + } +goog.log.LogRecord = third_party$javascript$closure$log$log$classdecl$var3 +goog.log.LogRecord.nextSequenceNumber_ = 0 var third_party$javascript$closure$log$log$classdecl$var4 = function ( - name, - parent -) { - this.level = null; - this.handlers = []; - this.parent = (void 0 === parent ? null : parent) || null; - this.children = []; - this.logger = { - getName: function () { - return name; - }, - }; -}; -third_party$javascript$closure$log$log$classdecl$var4.prototype.getEffectiveLevel = - function () { - if (this.level) { - return this.level; + name, + parent +) { + this.level = null + this.handlers = [] + this.parent = (void 0 === parent ? null : parent) || null + this.children = [] + this.logger = { + getName: function () { + return name + }, } - if (this.parent) { - return this.parent.getEffectiveLevel(); +} +third_party$javascript$closure$log$log$classdecl$var4.prototype.getEffectiveLevel = + function () { + if (this.level) { + return this.level + } + if (this.parent) { + return this.parent.getEffectiveLevel() + } + goog.asserts.fail('Root logger has no level set.') + return goog.log.Level.OFF } - goog.asserts.fail("Root logger has no level set."); - return goog.log.Level.OFF; - }; third_party$javascript$closure$log$log$classdecl$var4.prototype.publish = - function (logRecord) { - for (var target = this; target; ) { - target.handlers.forEach(function (handler) { - handler(logRecord); - }), - (target = target.parent); - } - }; + function (logRecord) { + for (var target = this; target; ) { + target.handlers.forEach(function (handler) { + handler(logRecord) + }), + (target = target.parent) + } + } goog.log.LogRegistryEntry_ = - third_party$javascript$closure$log$log$classdecl$var4; + third_party$javascript$closure$log$log$classdecl$var4 var third_party$javascript$closure$log$log$classdecl$var5 = function () { - this.entries = {}; - var rootLogRegistryEntry = new goog.log.LogRegistryEntry_( - goog.log.ROOT_LOGGER_NAME - ); - rootLogRegistryEntry.level = goog.log.Level.CONFIG; - this.entries[goog.log.ROOT_LOGGER_NAME] = rootLogRegistryEntry; -}; + this.entries = {} + var rootLogRegistryEntry = new goog.log.LogRegistryEntry_( + goog.log.ROOT_LOGGER_NAME + ) + rootLogRegistryEntry.level = goog.log.Level.CONFIG + this.entries[goog.log.ROOT_LOGGER_NAME] = rootLogRegistryEntry +} third_party$javascript$closure$log$log$classdecl$var5.prototype.getLogRegistryEntry = - function (name, level) { - var entry = this.entries[name]; - if (entry) { - return void 0 !== level && (entry.level = level), entry; - } - var lastDotIndex = name.lastIndexOf("."), - parentName = name.slice(0, Math.max(lastDotIndex, 0)), - parentLogRegistryEntry = this.getLogRegistryEntry(parentName), - logRegistryEntry = new goog.log.LogRegistryEntry_( - name, - parentLogRegistryEntry - ); - this.entries[name] = logRegistryEntry; - parentLogRegistryEntry.children.push(logRegistryEntry); - void 0 !== level && (logRegistryEntry.level = level); - return logRegistryEntry; - }; + function (name, level) { + var entry = this.entries[name] + if (entry) { + return void 0 !== level && (entry.level = level), entry + } + var lastDotIndex = name.lastIndexOf('.'), + parentName = name.slice(0, Math.max(lastDotIndex, 0)), + parentLogRegistryEntry = this.getLogRegistryEntry(parentName), + logRegistryEntry = new goog.log.LogRegistryEntry_( + name, + parentLogRegistryEntry + ) + this.entries[name] = logRegistryEntry + parentLogRegistryEntry.children.push(logRegistryEntry) + void 0 !== level && (logRegistryEntry.level = level) + return logRegistryEntry + } third_party$javascript$closure$log$log$classdecl$var5.prototype.getAllLoggers = - function () { - var $jscomp$this = this; - return Object.keys(this.entries).map(function (loggerName) { - return $jscomp$this.entries[loggerName].logger; - }); - }; -goog.log.LogRegistry_ = third_party$javascript$closure$log$log$classdecl$var5; + function () { + var $jscomp$this = this + return Object.keys(this.entries).map(function (loggerName) { + return $jscomp$this.entries[loggerName].logger + }) + } +goog.log.LogRegistry_ = third_party$javascript$closure$log$log$classdecl$var5 goog.log.LogRegistry_.getInstance = function () { - goog.log.LogRegistry_.instance_ || - (goog.log.LogRegistry_.instance_ = new goog.log.LogRegistry_()); - return goog.log.LogRegistry_.instance_; -}; + goog.log.LogRegistry_.instance_ || + (goog.log.LogRegistry_.instance_ = new goog.log.LogRegistry_()) + return goog.log.LogRegistry_.instance_ +} goog.log.getLogger = function (name, level) { - return goog.log.ENABLED - ? goog.log.LogRegistry_.getInstance().getLogRegistryEntry(name, level) - .logger - : null; -}; + return goog.log.ENABLED + ? goog.log.LogRegistry_.getInstance().getLogRegistryEntry(name, level) + .logger + : null +} goog.log.getRootLogger = function () { - return goog.log.ENABLED - ? goog.log.LogRegistry_.getInstance().getLogRegistryEntry( - goog.log.ROOT_LOGGER_NAME - ).logger - : null; -}; + return goog.log.ENABLED + ? goog.log.LogRegistry_.getInstance().getLogRegistryEntry( + goog.log.ROOT_LOGGER_NAME + ).logger + : null +} goog.log.addHandler = function (logger, handler) { - goog.log.ENABLED && - logger && - goog.log.LogRegistry_.getInstance() - .getLogRegistryEntry(logger.getName()) - .handlers.push(handler); -}; + goog.log.ENABLED && + logger && + goog.log.LogRegistry_.getInstance() + .getLogRegistryEntry(logger.getName()) + .handlers.push(handler) +} goog.log.removeHandler = function (logger, handler) { - if (goog.log.ENABLED && logger) { - var loggerEntry = goog.log.LogRegistry_.getInstance().getLogRegistryEntry( - logger.getName() - ), - indexOfHandler = loggerEntry.handlers.indexOf(handler); - if (-1 !== indexOfHandler) { - return loggerEntry.handlers.splice(indexOfHandler, 1), !0; - } - } - return !1; -}; + if (goog.log.ENABLED && logger) { + var loggerEntry = + goog.log.LogRegistry_.getInstance().getLogRegistryEntry( + logger.getName() + ), + indexOfHandler = loggerEntry.handlers.indexOf(handler) + if (-1 !== indexOfHandler) { + return loggerEntry.handlers.splice(indexOfHandler, 1), !0 + } + } + return !1 +} goog.log.setLevel = function (logger, level) { - goog.log.ENABLED && - logger && - (goog.log.LogRegistry_.getInstance().getLogRegistryEntry( - logger.getName() - ).level = level); -}; + goog.log.ENABLED && + logger && + (goog.log.LogRegistry_.getInstance().getLogRegistryEntry( + logger.getName() + ).level = level) +} goog.log.getLevel = function (logger) { - return goog.log.ENABLED && logger - ? goog.log.LogRegistry_.getInstance().getLogRegistryEntry(logger.getName()) - .level - : null; -}; + return goog.log.ENABLED && logger + ? goog.log.LogRegistry_.getInstance().getLogRegistryEntry( + logger.getName() + ).level + : null +} goog.log.getEffectiveLevel = function (logger) { - return goog.log.ENABLED && logger - ? goog.log.LogRegistry_.getInstance() - .getLogRegistryEntry(logger.getName()) - .getEffectiveLevel() - : goog.log.Level.OFF; -}; + return goog.log.ENABLED && logger + ? goog.log.LogRegistry_.getInstance() + .getLogRegistryEntry(logger.getName()) + .getEffectiveLevel() + : goog.log.Level.OFF +} goog.log.isLoggable = function (logger, level) { - return goog.log.ENABLED && logger && level - ? level.value >= goog.log.getEffectiveLevel(logger).value - : !1; -}; + return goog.log.ENABLED && logger && level + ? level.value >= goog.log.getEffectiveLevel(logger).value + : !1 +} goog.log.getAllLoggers = function () { - return goog.log.ENABLED - ? goog.log.LogRegistry_.getInstance().getAllLoggers() - : []; -}; + return goog.log.ENABLED + ? goog.log.LogRegistry_.getInstance().getAllLoggers() + : [] +} goog.log.getLogRecord = function (logger, level, msg, exception) { - var logRecord = goog.log.LogBuffer.getInstance().addRecord( - level || goog.log.Level.OFF, - msg, - logger.getName() - ); - logRecord.setException(exception); - return logRecord; -}; + var logRecord = goog.log.LogBuffer.getInstance().addRecord( + level || goog.log.Level.OFF, + msg, + logger.getName() + ) + logRecord.setException(exception) + return logRecord +} goog.log.publishLogRecord = function (logger, logRecord) { - goog.log.ENABLED && - logger && - goog.log.isLoggable(logger, logRecord.getLevel()) && - goog.log.LogRegistry_.getInstance() - .getLogRegistryEntry(logger.getName()) - .publish(logRecord); -}; + goog.log.ENABLED && + logger && + goog.log.isLoggable(logger, logRecord.getLevel()) && + goog.log.LogRegistry_.getInstance() + .getLogRegistryEntry(logger.getName()) + .publish(logRecord) +} goog.log.log = function (logger, level, msg, exception) { - if (goog.log.ENABLED && logger && goog.log.isLoggable(logger, level)) { - level = level || goog.log.Level.OFF; - var loggerEntry = goog.log.LogRegistry_.getInstance().getLogRegistryEntry( - logger.getName() - ); - "function" === typeof msg && (msg = msg()); - var logRecord = goog.log.LogBuffer.getInstance().addRecord( - level, - msg, - logger.getName() - ); - logRecord.setException(exception); - loggerEntry.publish(logRecord); - } -}; + if (goog.log.ENABLED && logger && goog.log.isLoggable(logger, level)) { + level = level || goog.log.Level.OFF + var loggerEntry = + goog.log.LogRegistry_.getInstance().getLogRegistryEntry( + logger.getName() + ) + 'function' === typeof msg && (msg = msg()) + var logRecord = goog.log.LogBuffer.getInstance().addRecord( + level, + msg, + logger.getName() + ) + logRecord.setException(exception) + loggerEntry.publish(logRecord) + } +} goog.log.error = function (logger, msg, exception) { - goog.log.ENABLED && - logger && - goog.log.log(logger, goog.log.Level.SEVERE, msg, exception); -}; + goog.log.ENABLED && + logger && + goog.log.log(logger, goog.log.Level.SEVERE, msg, exception) +} goog.log.warning = function (logger, msg, exception) { - goog.log.ENABLED && - logger && - goog.log.log(logger, goog.log.Level.WARNING, msg, exception); -}; + goog.log.ENABLED && + logger && + goog.log.log(logger, goog.log.Level.WARNING, msg, exception) +} goog.log.info = function (logger, msg, exception) { - goog.log.ENABLED && - logger && - goog.log.log(logger, goog.log.Level.INFO, msg, exception); -}; + goog.log.ENABLED && + logger && + goog.log.log(logger, goog.log.Level.INFO, msg, exception) +} goog.log.fine = function (logger, msg, exception) { - goog.log.ENABLED && - logger && - goog.log.log(logger, goog.log.Level.FINE, msg, exception); -}; + goog.log.ENABLED && + logger && + goog.log.log(logger, goog.log.Level.FINE, msg, exception) +} goog.net.ErrorCode = { - NO_ERROR: 0, - ACCESS_DENIED: 1, - FILE_NOT_FOUND: 2, - FF_SILENT_ERROR: 3, - CUSTOM_ERROR: 4, - EXCEPTION: 5, - HTTP_ERROR: 6, - ABORT: 7, - TIMEOUT: 8, - OFFLINE: 9, -}; + NO_ERROR: 0, + ACCESS_DENIED: 1, + FILE_NOT_FOUND: 2, + FF_SILENT_ERROR: 3, + CUSTOM_ERROR: 4, + EXCEPTION: 5, + HTTP_ERROR: 6, + ABORT: 7, + TIMEOUT: 8, + OFFLINE: 9, +} goog.net.ErrorCode.getDebugMessage = function (errorCode) { - switch (errorCode) { - case goog.net.ErrorCode.NO_ERROR: - return "No Error"; - case goog.net.ErrorCode.ACCESS_DENIED: - return "Access denied to content document"; - case goog.net.ErrorCode.FILE_NOT_FOUND: - return "File not found"; - case goog.net.ErrorCode.FF_SILENT_ERROR: - return "Firefox silently errored"; - case goog.net.ErrorCode.CUSTOM_ERROR: - return "Application custom error"; - case goog.net.ErrorCode.EXCEPTION: - return "An exception occurred"; - case goog.net.ErrorCode.HTTP_ERROR: - return "Http response at 400 or 500 level"; - case goog.net.ErrorCode.ABORT: - return "Request was aborted"; - case goog.net.ErrorCode.TIMEOUT: - return "Request timed out"; - case goog.net.ErrorCode.OFFLINE: - return "The resource is not available offline"; - default: - return "Unrecognized error code"; - } -}; + switch (errorCode) { + case goog.net.ErrorCode.NO_ERROR: + return 'No Error' + case goog.net.ErrorCode.ACCESS_DENIED: + return 'Access denied to content document' + case goog.net.ErrorCode.FILE_NOT_FOUND: + return 'File not found' + case goog.net.ErrorCode.FF_SILENT_ERROR: + return 'Firefox silently errored' + case goog.net.ErrorCode.CUSTOM_ERROR: + return 'Application custom error' + case goog.net.ErrorCode.EXCEPTION: + return 'An exception occurred' + case goog.net.ErrorCode.HTTP_ERROR: + return 'Http response at 400 or 500 level' + case goog.net.ErrorCode.ABORT: + return 'Request was aborted' + case goog.net.ErrorCode.TIMEOUT: + return 'Request timed out' + case goog.net.ErrorCode.OFFLINE: + return 'The resource is not available offline' + default: + return 'Unrecognized error code' + } +} goog.net.EventType = { - COMPLETE: "complete", - SUCCESS: "success", - ERROR: "error", - ABORT: "abort", - READY: "ready", - READY_STATE_CHANGE: "readystatechange", - TIMEOUT: "timeout", - INCREMENTAL_DATA: "incrementaldata", - PROGRESS: "progress", - DOWNLOAD_PROGRESS: "downloadprogress", - UPLOAD_PROGRESS: "uploadprogress", -}; + COMPLETE: 'complete', + SUCCESS: 'success', + ERROR: 'error', + ABORT: 'abort', + READY: 'ready', + READY_STATE_CHANGE: 'readystatechange', + TIMEOUT: 'timeout', + INCREMENTAL_DATA: 'incrementaldata', + PROGRESS: 'progress', + DOWNLOAD_PROGRESS: 'downloadprogress', + UPLOAD_PROGRESS: 'uploadprogress', +} goog.net.HttpStatus = { - CONTINUE: 100, - SWITCHING_PROTOCOLS: 101, - OK: 200, - CREATED: 201, - ACCEPTED: 202, - NON_AUTHORITATIVE_INFORMATION: 203, - NO_CONTENT: 204, - RESET_CONTENT: 205, - PARTIAL_CONTENT: 206, - MULTI_STATUS: 207, - MULTIPLE_CHOICES: 300, - MOVED_PERMANENTLY: 301, - FOUND: 302, - SEE_OTHER: 303, - NOT_MODIFIED: 304, - USE_PROXY: 305, - TEMPORARY_REDIRECT: 307, - PERMANENT_REDIRECT: 308, - BAD_REQUEST: 400, - UNAUTHORIZED: 401, - PAYMENT_REQUIRED: 402, - FORBIDDEN: 403, - NOT_FOUND: 404, - METHOD_NOT_ALLOWED: 405, - NOT_ACCEPTABLE: 406, - PROXY_AUTHENTICATION_REQUIRED: 407, - REQUEST_TIMEOUT: 408, - CONFLICT: 409, - GONE: 410, - LENGTH_REQUIRED: 411, - PRECONDITION_FAILED: 412, - REQUEST_ENTITY_TOO_LARGE: 413, - REQUEST_URI_TOO_LONG: 414, - UNSUPPORTED_MEDIA_TYPE: 415, - REQUEST_RANGE_NOT_SATISFIABLE: 416, - EXPECTATION_FAILED: 417, - UNPROCESSABLE_ENTITY: 422, - LOCKED: 423, - FAILED_DEPENDENCY: 424, - PRECONDITION_REQUIRED: 428, - TOO_MANY_REQUESTS: 429, - REQUEST_HEADER_FIELDS_TOO_LARGE: 431, - CLIENT_CLOSED_REQUEST: 499, - INTERNAL_SERVER_ERROR: 500, - NOT_IMPLEMENTED: 501, - BAD_GATEWAY: 502, - SERVICE_UNAVAILABLE: 503, - GATEWAY_TIMEOUT: 504, - HTTP_VERSION_NOT_SUPPORTED: 505, - INSUFFICIENT_STORAGE: 507, - NETWORK_AUTHENTICATION_REQUIRED: 511, - QUIRK_IE_NO_CONTENT: 1223, -}; + CONTINUE: 100, + SWITCHING_PROTOCOLS: 101, + OK: 200, + CREATED: 201, + ACCEPTED: 202, + NON_AUTHORITATIVE_INFORMATION: 203, + NO_CONTENT: 204, + RESET_CONTENT: 205, + PARTIAL_CONTENT: 206, + MULTI_STATUS: 207, + MULTIPLE_CHOICES: 300, + MOVED_PERMANENTLY: 301, + FOUND: 302, + SEE_OTHER: 303, + NOT_MODIFIED: 304, + USE_PROXY: 305, + TEMPORARY_REDIRECT: 307, + PERMANENT_REDIRECT: 308, + BAD_REQUEST: 400, + UNAUTHORIZED: 401, + PAYMENT_REQUIRED: 402, + FORBIDDEN: 403, + NOT_FOUND: 404, + METHOD_NOT_ALLOWED: 405, + NOT_ACCEPTABLE: 406, + PROXY_AUTHENTICATION_REQUIRED: 407, + REQUEST_TIMEOUT: 408, + CONFLICT: 409, + GONE: 410, + LENGTH_REQUIRED: 411, + PRECONDITION_FAILED: 412, + REQUEST_ENTITY_TOO_LARGE: 413, + REQUEST_URI_TOO_LONG: 414, + UNSUPPORTED_MEDIA_TYPE: 415, + REQUEST_RANGE_NOT_SATISFIABLE: 416, + EXPECTATION_FAILED: 417, + UNPROCESSABLE_ENTITY: 422, + LOCKED: 423, + FAILED_DEPENDENCY: 424, + PRECONDITION_REQUIRED: 428, + TOO_MANY_REQUESTS: 429, + REQUEST_HEADER_FIELDS_TOO_LARGE: 431, + CLIENT_CLOSED_REQUEST: 499, + INTERNAL_SERVER_ERROR: 500, + NOT_IMPLEMENTED: 501, + BAD_GATEWAY: 502, + SERVICE_UNAVAILABLE: 503, + GATEWAY_TIMEOUT: 504, + HTTP_VERSION_NOT_SUPPORTED: 505, + INSUFFICIENT_STORAGE: 507, + NETWORK_AUTHENTICATION_REQUIRED: 511, + QUIRK_IE_NO_CONTENT: 1223, +} goog.net.HttpStatus.isSuccess = function (status) { - switch (status) { - case goog.net.HttpStatus.OK: - case goog.net.HttpStatus.CREATED: - case goog.net.HttpStatus.ACCEPTED: - case goog.net.HttpStatus.NO_CONTENT: - case goog.net.HttpStatus.PARTIAL_CONTENT: - case goog.net.HttpStatus.NOT_MODIFIED: - case goog.net.HttpStatus.QUIRK_IE_NO_CONTENT: - return !0; - default: - return !1; - } -}; -goog.net.XhrLike = function () {}; + switch (status) { + case goog.net.HttpStatus.OK: + case goog.net.HttpStatus.CREATED: + case goog.net.HttpStatus.ACCEPTED: + case goog.net.HttpStatus.NO_CONTENT: + case goog.net.HttpStatus.PARTIAL_CONTENT: + case goog.net.HttpStatus.NOT_MODIFIED: + case goog.net.HttpStatus.QUIRK_IE_NO_CONTENT: + return !0 + default: + return !1 + } +} +goog.net.XhrLike = function () {} goog.net.XhrLike.prototype.open = function ( - method, - url, - opt_async, - opt_user, - opt_password -) {}; -goog.net.XhrLike.prototype.send = function (opt_data) {}; -goog.net.XhrLike.prototype.abort = function () {}; -goog.net.XhrLike.prototype.setRequestHeader = function (header, value) {}; -goog.net.XhrLike.prototype.getResponseHeader = function (header) {}; -goog.net.XhrLike.prototype.getAllResponseHeaders = function () {}; -goog.net.XhrLike.prototype.setTrustToken = function (trustTokenAttribute) {}; -goog.net.XmlHttpFactory = function () {}; -goog.net.XmlHttpFactory.prototype.cachedOptions_ = null; + method, + url, + opt_async, + opt_user, + opt_password +) {} +goog.net.XhrLike.prototype.send = function (opt_data) {} +goog.net.XhrLike.prototype.abort = function () {} +goog.net.XhrLike.prototype.setRequestHeader = function (header, value) {} +goog.net.XhrLike.prototype.getResponseHeader = function (header) {} +goog.net.XhrLike.prototype.getAllResponseHeaders = function () {} +goog.net.XhrLike.prototype.setTrustToken = function (trustTokenAttribute) {} +goog.net.XmlHttpFactory = function () {} +goog.net.XmlHttpFactory.prototype.cachedOptions_ = null goog.net.XmlHttpFactory.prototype.getOptions = function () { - return ( - this.cachedOptions_ || (this.cachedOptions_ = this.internalGetOptions()) - ); -}; + return ( + this.cachedOptions_ || (this.cachedOptions_ = this.internalGetOptions()) + ) +} goog.net.WrapperXmlHttpFactory = function (xhrFactory, optionsFactory) { - this.xhrFactory_ = xhrFactory; - this.optionsFactory_ = optionsFactory; -}; -goog.inherits(goog.net.WrapperXmlHttpFactory, goog.net.XmlHttpFactory); + this.xhrFactory_ = xhrFactory + this.optionsFactory_ = optionsFactory +} +goog.inherits(goog.net.WrapperXmlHttpFactory, goog.net.XmlHttpFactory) goog.net.WrapperXmlHttpFactory.prototype.createInstance = function () { - return this.xhrFactory_(); -}; + return this.xhrFactory_() +} goog.net.WrapperXmlHttpFactory.prototype.getOptions = function () { - return this.optionsFactory_(); -}; + return this.optionsFactory_() +} goog.net.XmlHttp = function () { - return goog.net.XmlHttp.factory_.createInstance(); -}; -goog.net.XmlHttp.ASSUME_NATIVE_XHR = !1; -goog.net.XmlHttpDefines = {}; -goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR = !1; + return goog.net.XmlHttp.factory_.createInstance() +} +goog.net.XmlHttp.ASSUME_NATIVE_XHR = !1 +goog.net.XmlHttpDefines = {} +goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR = !1 goog.net.XmlHttp.getOptions = function () { - return goog.net.XmlHttp.factory_.getOptions(); -}; -goog.net.XmlHttp.OptionType = { USE_NULL_FUNCTION: 0, LOCAL_REQUEST_ERROR: 1 }; + return goog.net.XmlHttp.factory_.getOptions() +} +goog.net.XmlHttp.OptionType = { USE_NULL_FUNCTION: 0, LOCAL_REQUEST_ERROR: 1 } goog.net.XmlHttp.ReadyState = { - UNINITIALIZED: 0, - LOADING: 1, - LOADED: 2, - INTERACTIVE: 3, - COMPLETE: 4, -}; + UNINITIALIZED: 0, + LOADING: 1, + LOADED: 2, + INTERACTIVE: 3, + COMPLETE: 4, +} goog.net.XmlHttp.setFactory = function (factory, optionsFactory) { - goog.net.XmlHttp.setGlobalFactory( - new goog.net.WrapperXmlHttpFactory( - goog.asserts.assert(factory), - goog.asserts.assert(optionsFactory) + goog.net.XmlHttp.setGlobalFactory( + new goog.net.WrapperXmlHttpFactory( + goog.asserts.assert(factory), + goog.asserts.assert(optionsFactory) + ) ) - ); -}; +} goog.net.XmlHttp.setGlobalFactory = function (factory) { - goog.net.XmlHttp.factory_ = factory; -}; -goog.net.DefaultXmlHttpFactory = function () {}; -goog.inherits(goog.net.DefaultXmlHttpFactory, goog.net.XmlHttpFactory); + goog.net.XmlHttp.factory_ = factory +} +goog.net.DefaultXmlHttpFactory = function () {} +goog.inherits(goog.net.DefaultXmlHttpFactory, goog.net.XmlHttpFactory) goog.net.DefaultXmlHttpFactory.prototype.createInstance = function () { - var progId = this.getProgId_(); - return progId ? new ActiveXObject(progId) : new XMLHttpRequest(); -}; + var progId = this.getProgId_() + return progId ? new ActiveXObject(progId) : new XMLHttpRequest() +} goog.net.DefaultXmlHttpFactory.prototype.internalGetOptions = function () { - var options = {}; - this.getProgId_() && - ((options[goog.net.XmlHttp.OptionType.USE_NULL_FUNCTION] = !0), - (options[goog.net.XmlHttp.OptionType.LOCAL_REQUEST_ERROR] = !0)); - return options; -}; + var options = {} + this.getProgId_() && + ((options[goog.net.XmlHttp.OptionType.USE_NULL_FUNCTION] = !0), + (options[goog.net.XmlHttp.OptionType.LOCAL_REQUEST_ERROR] = !0)) + return options +} goog.net.DefaultXmlHttpFactory.prototype.getProgId_ = function () { - if ( - goog.net.XmlHttp.ASSUME_NATIVE_XHR || - goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR - ) { - return ""; - } - if ( - !this.ieProgId_ && - "undefined" == typeof XMLHttpRequest && - "undefined" != typeof ActiveXObject - ) { - for ( - var ACTIVE_X_IDENTS = [ - "MSXML2.XMLHTTP.6.0", - "MSXML2.XMLHTTP.3.0", - "MSXML2.XMLHTTP", - "Microsoft.XMLHTTP", - ], - i = 0; - i < ACTIVE_X_IDENTS.length; - i++ + if ( + goog.net.XmlHttp.ASSUME_NATIVE_XHR || + goog.net.XmlHttpDefines.ASSUME_NATIVE_XHR ) { - var candidate = ACTIVE_X_IDENTS[i]; - try { - return new ActiveXObject(candidate), (this.ieProgId_ = candidate); - } catch (e) {} + return '' } - throw Error( - "Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed" - ); - } - return this.ieProgId_; -}; -goog.net.XmlHttp.setGlobalFactory(new goog.net.DefaultXmlHttpFactory()); + if ( + !this.ieProgId_ && + 'undefined' == typeof XMLHttpRequest && + 'undefined' != typeof ActiveXObject + ) { + for ( + var ACTIVE_X_IDENTS = [ + 'MSXML2.XMLHTTP.6.0', + 'MSXML2.XMLHTTP.3.0', + 'MSXML2.XMLHTTP', + 'Microsoft.XMLHTTP', + ], + i = 0; + i < ACTIVE_X_IDENTS.length; + i++ + ) { + var candidate = ACTIVE_X_IDENTS[i] + try { + return ( + new ActiveXObject(candidate), (this.ieProgId_ = candidate) + ) + } catch (e) {} + } + throw Error( + 'Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed' + ) + } + return this.ieProgId_ +} +goog.net.XmlHttp.setGlobalFactory(new goog.net.DefaultXmlHttpFactory()) goog.net.XhrIo = function (opt_xmlHttpFactory) { - goog.events.EventTarget.call(this); - this.headers = new Map(); - this.xmlHttpFactory_ = opt_xmlHttpFactory || null; - this.active_ = !1; - this.xhrOptions_ = this.xhr_ = null; - this.lastMethod_ = this.lastUri_ = ""; - this.lastErrorCode_ = goog.net.ErrorCode.NO_ERROR; - this.lastError_ = ""; - this.inAbort_ = this.inOpen_ = this.inSend_ = this.errorDispatched_ = !1; - this.timeoutInterval_ = 0; - this.timeoutId_ = null; - this.responseType_ = goog.net.XhrIo.ResponseType.DEFAULT; - this.useXhr2Timeout_ = - this.progressEventsEnabled_ = - this.withCredentials_ = - !1; - this.attributionReportingOptions_ = this.trustToken_ = null; -}; -goog.inherits(goog.net.XhrIo, goog.events.EventTarget); + goog.events.EventTarget.call(this) + this.headers = new Map() + this.xmlHttpFactory_ = opt_xmlHttpFactory || null + this.active_ = !1 + this.xhrOptions_ = this.xhr_ = null + this.lastMethod_ = this.lastUri_ = '' + this.lastErrorCode_ = goog.net.ErrorCode.NO_ERROR + this.lastError_ = '' + this.inAbort_ = this.inOpen_ = this.inSend_ = this.errorDispatched_ = !1 + this.timeoutInterval_ = 0 + this.timeoutId_ = null + this.responseType_ = goog.net.XhrIo.ResponseType.DEFAULT + this.useXhr2Timeout_ = + this.progressEventsEnabled_ = + this.withCredentials_ = + !1 + this.attributionReportingOptions_ = this.trustToken_ = null +} +goog.inherits(goog.net.XhrIo, goog.events.EventTarget) goog.net.XhrIo.ResponseType = { - DEFAULT: "", - TEXT: "text", - DOCUMENT: "document", - BLOB: "blob", - ARRAY_BUFFER: "arraybuffer", -}; -goog.net.XhrIo.prototype.logger_ = goog.log.getLogger("goog.net.XhrIo"); -goog.net.XhrIo.CONTENT_TYPE_HEADER = "Content-Type"; -goog.net.XhrIo.CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding"; -goog.net.XhrIo.HTTP_SCHEME_PATTERN = /^https?$/i; -goog.net.XhrIo.METHODS_WITH_FORM_DATA = ["POST", "PUT"]; + DEFAULT: '', + TEXT: 'text', + DOCUMENT: 'document', + BLOB: 'blob', + ARRAY_BUFFER: 'arraybuffer', +} +goog.net.XhrIo.prototype.logger_ = goog.log.getLogger('goog.net.XhrIo') +goog.net.XhrIo.CONTENT_TYPE_HEADER = 'Content-Type' +goog.net.XhrIo.CONTENT_TRANSFER_ENCODING = 'Content-Transfer-Encoding' +goog.net.XhrIo.HTTP_SCHEME_PATTERN = /^https?$/i +goog.net.XhrIo.METHODS_WITH_FORM_DATA = ['POST', 'PUT'] goog.net.XhrIo.FORM_CONTENT_TYPE = - "application/x-www-form-urlencoded;charset=utf-8"; -goog.net.XhrIo.XHR2_TIMEOUT_ = "timeout"; -goog.net.XhrIo.XHR2_ON_TIMEOUT_ = "ontimeout"; -goog.net.XhrIo.sendInstances_ = []; + 'application/x-www-form-urlencoded;charset=utf-8' +goog.net.XhrIo.XHR2_TIMEOUT_ = 'timeout' +goog.net.XhrIo.XHR2_ON_TIMEOUT_ = 'ontimeout' +goog.net.XhrIo.sendInstances_ = [] goog.net.XhrIo.send = function ( - url, - opt_callback, - opt_method, - opt_content, - opt_headers, - opt_timeoutInterval, - opt_withCredentials -) { - var x = new goog.net.XhrIo(); - goog.net.XhrIo.sendInstances_.push(x); - opt_callback && x.listen(goog.net.EventType.COMPLETE, opt_callback); - x.listenOnce(goog.net.EventType.READY, x.cleanupSend_); - opt_timeoutInterval && x.setTimeoutInterval(opt_timeoutInterval); - opt_withCredentials && x.setWithCredentials(opt_withCredentials); - x.send(url, opt_method, opt_content, opt_headers); - return x; -}; + url, + opt_callback, + opt_method, + opt_content, + opt_headers, + opt_timeoutInterval, + opt_withCredentials +) { + var x = new goog.net.XhrIo() + goog.net.XhrIo.sendInstances_.push(x) + opt_callback && x.listen(goog.net.EventType.COMPLETE, opt_callback) + x.listenOnce(goog.net.EventType.READY, x.cleanupSend_) + opt_timeoutInterval && x.setTimeoutInterval(opt_timeoutInterval) + opt_withCredentials && x.setWithCredentials(opt_withCredentials) + x.send(url, opt_method, opt_content, opt_headers) + return x +} goog.net.XhrIo.cleanup = function () { - for (var instances = goog.net.XhrIo.sendInstances_; instances.length; ) { - instances.pop().dispose(); - } -}; + for (var instances = goog.net.XhrIo.sendInstances_; instances.length; ) { + instances.pop().dispose() + } +} goog.net.XhrIo.protectEntryPoints = function (errorHandler) { - goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = - errorHandler.protectEntryPoint( - goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ - ); -}; + goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = + errorHandler.protectEntryPoint( + goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ + ) +} goog.net.XhrIo.prototype.cleanupSend_ = function () { - this.dispose(); - module$contents$goog$array_remove(goog.net.XhrIo.sendInstances_, this); -}; + this.dispose() + module$contents$goog$array_remove(goog.net.XhrIo.sendInstances_, this) +} goog.net.XhrIo.prototype.getTimeoutInterval = function () { - return this.timeoutInterval_; -}; + return this.timeoutInterval_ +} goog.net.XhrIo.prototype.setTimeoutInterval = function (ms) { - this.timeoutInterval_ = Math.max(0, ms); -}; + this.timeoutInterval_ = Math.max(0, ms) +} goog.net.XhrIo.prototype.setResponseType = function (type) { - this.responseType_ = type; -}; + this.responseType_ = type +} goog.net.XhrIo.prototype.getResponseType = function () { - return this.responseType_; -}; + return this.responseType_ +} goog.net.XhrIo.prototype.setWithCredentials = function (withCredentials) { - this.withCredentials_ = withCredentials; -}; + this.withCredentials_ = withCredentials +} goog.net.XhrIo.prototype.getWithCredentials = function () { - return this.withCredentials_; -}; + return this.withCredentials_ +} goog.net.XhrIo.prototype.setProgressEventsEnabled = function (enabled) { - this.progressEventsEnabled_ = enabled; -}; + this.progressEventsEnabled_ = enabled +} goog.net.XhrIo.prototype.getProgressEventsEnabled = function () { - return this.progressEventsEnabled_; -}; + return this.progressEventsEnabled_ +} goog.net.XhrIo.prototype.setTrustToken = function (trustToken) { - this.trustToken_ = trustToken; -}; + this.trustToken_ = trustToken +} goog.net.XhrIo.prototype.setAttributionReporting = function ( - attributionReportingOptions + attributionReportingOptions ) { - this.attributionReportingOptions_ = attributionReportingOptions; -}; + this.attributionReportingOptions_ = attributionReportingOptions +} goog.net.XhrIo.prototype.send = function ( - url, - opt_method, - opt_content, - opt_headers + url, + opt_method, + opt_content, + opt_headers ) { - if (this.xhr_) { - throw Error( - "[goog.net.XhrIo] Object is active with another request=" + - this.lastUri_ + - "; newUri=" + - url - ); - } - var method = opt_method ? opt_method.toUpperCase() : "GET"; - this.lastUri_ = url; - this.lastError_ = ""; - this.lastErrorCode_ = goog.net.ErrorCode.NO_ERROR; - this.lastMethod_ = method; - this.errorDispatched_ = !1; - this.active_ = !0; - this.xhr_ = this.createXhr(); - this.xhrOptions_ = this.xmlHttpFactory_ - ? this.xmlHttpFactory_.getOptions() - : goog.net.XmlHttp.getOptions(); - this.xhr_.onreadystatechange = goog.bind(this.onReadyStateChange_, this); - this.getProgressEventsEnabled() && - "onprogress" in this.xhr_ && - ((this.xhr_.onprogress = goog.bind(function (e) { - this.onProgressHandler_(e, !0); - }, this)), - this.xhr_.upload && - (this.xhr_.upload.onprogress = goog.bind(this.onProgressHandler_, this))); - try { - goog.log.fine(this.logger_, this.formatMsg_("Opening Xhr")), - (this.inOpen_ = !0), - this.xhr_.open(method, String(url), !0), - (this.inOpen_ = !1); - } catch (err) { - goog.log.fine( - this.logger_, - this.formatMsg_("Error opening Xhr: " + err.message) - ); - this.error_(goog.net.ErrorCode.EXCEPTION, err); - return; - } - var content = opt_content || "", - headers = new Map(this.headers); - if (opt_headers) { - if (Object.getPrototypeOf(opt_headers) === Object.prototype) { - for (var key in opt_headers) { - headers.set(key, opt_headers[key]); - } - } else if ( - "function" === typeof opt_headers.keys && - "function" === typeof opt_headers.get + if (this.xhr_) { + throw Error( + '[goog.net.XhrIo] Object is active with another request=' + + this.lastUri_ + + '; newUri=' + + url + ) + } + var method = opt_method ? opt_method.toUpperCase() : 'GET' + this.lastUri_ = url + this.lastError_ = '' + this.lastErrorCode_ = goog.net.ErrorCode.NO_ERROR + this.lastMethod_ = method + this.errorDispatched_ = !1 + this.active_ = !0 + this.xhr_ = this.createXhr() + this.xhrOptions_ = this.xmlHttpFactory_ + ? this.xmlHttpFactory_.getOptions() + : goog.net.XmlHttp.getOptions() + this.xhr_.onreadystatechange = goog.bind(this.onReadyStateChange_, this) + this.getProgressEventsEnabled() && + 'onprogress' in this.xhr_ && + ((this.xhr_.onprogress = goog.bind(function (e) { + this.onProgressHandler_(e, !0) + }, this)), + this.xhr_.upload && + (this.xhr_.upload.onprogress = goog.bind( + this.onProgressHandler_, + this + ))) + try { + goog.log.fine(this.logger_, this.formatMsg_('Opening Xhr')), + (this.inOpen_ = !0), + this.xhr_.open(method, String(url), !0), + (this.inOpen_ = !1) + } catch (err) { + goog.log.fine( + this.logger_, + this.formatMsg_('Error opening Xhr: ' + err.message) + ) + this.error_(goog.net.ErrorCode.EXCEPTION, err) + return + } + var content = opt_content || '', + headers = new Map(this.headers) + if (opt_headers) { + if (Object.getPrototypeOf(opt_headers) === Object.prototype) { + for (var key in opt_headers) { + headers.set(key, opt_headers[key]) + } + } else if ( + 'function' === typeof opt_headers.keys && + 'function' === typeof opt_headers.get + ) { + for ( + var $jscomp$iter$31 = $jscomp.makeIterator(opt_headers.keys()), + $jscomp$key$key = $jscomp$iter$31.next(); + !$jscomp$key$key.done; + $jscomp$key$key = $jscomp$iter$31.next() + ) { + var key$jscomp$0 = $jscomp$key$key.value + headers.set(key$jscomp$0, opt_headers.get(key$jscomp$0)) + } + } else { + throw Error( + 'Unknown input type for opt_headers: ' + String(opt_headers) + ) + } + } + var contentTypeKey = Array.from(headers.keys()).find(function (header) { + return goog.string.caseInsensitiveEquals( + goog.net.XhrIo.CONTENT_TYPE_HEADER, + header + ) + }), + contentIsFormData = + goog.global.FormData && content instanceof goog.global.FormData + !module$contents$goog$array_contains( + goog.net.XhrIo.METHODS_WITH_FORM_DATA, + method + ) || + contentTypeKey || + contentIsFormData || + headers.set( + goog.net.XhrIo.CONTENT_TYPE_HEADER, + goog.net.XhrIo.FORM_CONTENT_TYPE + ) + for ( + var $jscomp$iter$32 = $jscomp.makeIterator(headers), + $jscomp$key$ = $jscomp$iter$32.next(); + !$jscomp$key$.done; + $jscomp$key$ = $jscomp$iter$32.next() ) { - for ( - var $jscomp$iter$31 = $jscomp.makeIterator(opt_headers.keys()), - $jscomp$key$key = $jscomp$iter$31.next(); - !$jscomp$key$key.done; - $jscomp$key$key = $jscomp$iter$31.next() - ) { - var key$jscomp$0 = $jscomp$key$key.value; - headers.set(key$jscomp$0, opt_headers.get(key$jscomp$0)); - } - } else { - throw Error("Unknown input type for opt_headers: " + String(opt_headers)); - } - } - var contentTypeKey = Array.from(headers.keys()).find(function (header) { - return goog.string.caseInsensitiveEquals( - goog.net.XhrIo.CONTENT_TYPE_HEADER, - header - ); - }), - contentIsFormData = - goog.global.FormData && content instanceof goog.global.FormData; - !module$contents$goog$array_contains( - goog.net.XhrIo.METHODS_WITH_FORM_DATA, - method - ) || - contentTypeKey || - contentIsFormData || - headers.set( - goog.net.XhrIo.CONTENT_TYPE_HEADER, - goog.net.XhrIo.FORM_CONTENT_TYPE - ); - for ( - var $jscomp$iter$32 = $jscomp.makeIterator(headers), - $jscomp$key$ = $jscomp$iter$32.next(); - !$jscomp$key$.done; - $jscomp$key$ = $jscomp$iter$32.next() - ) { - var $jscomp$destructuring$var31 = $jscomp.makeIterator($jscomp$key$.value), - key$jscomp$1 = $jscomp$destructuring$var31.next().value, - value = $jscomp$destructuring$var31.next().value; - this.xhr_.setRequestHeader(key$jscomp$1, value); - } - this.responseType_ && (this.xhr_.responseType = this.responseType_); - "withCredentials" in this.xhr_ && - this.xhr_.withCredentials !== this.withCredentials_ && - (this.xhr_.withCredentials = this.withCredentials_); - if ("setTrustToken" in this.xhr_ && this.trustToken_) { - try { - this.xhr_.setTrustToken(this.trustToken_); - } catch (err) { - goog.log.fine( - this.logger_, - this.formatMsg_("Error SetTrustToken: " + err.message) - ); - } - } - if ( - "setAttributionReporting" in this.xhr_ && - this.attributionReportingOptions_ - ) { + var $jscomp$destructuring$var31 = $jscomp.makeIterator( + $jscomp$key$.value + ), + key$jscomp$1 = $jscomp$destructuring$var31.next().value, + value = $jscomp$destructuring$var31.next().value + this.xhr_.setRequestHeader(key$jscomp$1, value) + } + this.responseType_ && (this.xhr_.responseType = this.responseType_) + 'withCredentials' in this.xhr_ && + this.xhr_.withCredentials !== this.withCredentials_ && + (this.xhr_.withCredentials = this.withCredentials_) + if ('setTrustToken' in this.xhr_ && this.trustToken_) { + try { + this.xhr_.setTrustToken(this.trustToken_) + } catch (err) { + goog.log.fine( + this.logger_, + this.formatMsg_('Error SetTrustToken: ' + err.message) + ) + } + } + if ( + 'setAttributionReporting' in this.xhr_ && + this.attributionReportingOptions_ + ) { + try { + this.xhr_.setAttributionReporting(this.attributionReportingOptions_) + } catch (err) { + goog.log.fine( + this.logger_, + this.formatMsg_('Error SetAttributionReporting: ' + err.message) + ) + } + } try { - this.xhr_.setAttributionReporting(this.attributionReportingOptions_); + this.cleanUpTimeoutTimer_(), + 0 < this.timeoutInterval_ && + ((this.useXhr2Timeout_ = goog.net.XhrIo.shouldUseXhr2Timeout_( + this.xhr_ + )), + goog.log.fine( + this.logger_, + this.formatMsg_( + 'Will abort after ' + + this.timeoutInterval_ + + 'ms if incomplete, xhr2 ' + + this.useXhr2Timeout_ + ) + ), + this.useXhr2Timeout_ + ? ((this.xhr_[goog.net.XhrIo.XHR2_TIMEOUT_] = + this.timeoutInterval_), + (this.xhr_[goog.net.XhrIo.XHR2_ON_TIMEOUT_] = goog.bind( + this.timeout_, + this + ))) + : (this.timeoutId_ = goog.Timer.callOnce( + this.timeout_, + this.timeoutInterval_, + this + ))), + goog.log.fine(this.logger_, this.formatMsg_('Sending request')), + (this.inSend_ = !0), + this.xhr_.send(content), + (this.inSend_ = !1) } catch (err) { - goog.log.fine( - this.logger_, - this.formatMsg_("Error SetAttributionReporting: " + err.message) - ); - } - } - try { - this.cleanUpTimeoutTimer_(), - 0 < this.timeoutInterval_ && - ((this.useXhr2Timeout_ = goog.net.XhrIo.shouldUseXhr2Timeout_( - this.xhr_ - )), goog.log.fine( - this.logger_, - this.formatMsg_( - "Will abort after " + - this.timeoutInterval_ + - "ms if incomplete, xhr2 " + - this.useXhr2Timeout_ - ) + this.logger_, + this.formatMsg_('Send error: ' + err.message) ), - this.useXhr2Timeout_ - ? ((this.xhr_[goog.net.XhrIo.XHR2_TIMEOUT_] = this.timeoutInterval_), - (this.xhr_[goog.net.XhrIo.XHR2_ON_TIMEOUT_] = goog.bind( - this.timeout_, - this - ))) - : (this.timeoutId_ = goog.Timer.callOnce( - this.timeout_, - this.timeoutInterval_, - this - ))), - goog.log.fine(this.logger_, this.formatMsg_("Sending request")), - (this.inSend_ = !0), - this.xhr_.send(content), - (this.inSend_ = !1); - } catch (err) { - goog.log.fine(this.logger_, this.formatMsg_("Send error: " + err.message)), - this.error_(goog.net.ErrorCode.EXCEPTION, err); - } -}; + this.error_(goog.net.ErrorCode.EXCEPTION, err) + } +} goog.net.XhrIo.shouldUseXhr2Timeout_ = function (xhr) { - return ( - goog.userAgent.IE && - "number" === typeof xhr[goog.net.XhrIo.XHR2_TIMEOUT_] && - void 0 !== xhr[goog.net.XhrIo.XHR2_ON_TIMEOUT_] - ); -}; + return ( + goog.userAgent.IE && + 'number' === typeof xhr[goog.net.XhrIo.XHR2_TIMEOUT_] && + void 0 !== xhr[goog.net.XhrIo.XHR2_ON_TIMEOUT_] + ) +} goog.net.XhrIo.prototype.createXhr = function () { - return this.xmlHttpFactory_ - ? this.xmlHttpFactory_.createInstance() - : goog.net.XmlHttp(); -}; + return this.xmlHttpFactory_ + ? this.xmlHttpFactory_.createInstance() + : goog.net.XmlHttp() +} goog.net.XhrIo.prototype.timeout_ = function () { - "undefined" != typeof goog && - this.xhr_ && - ((this.lastError_ = - "Timed out after " + this.timeoutInterval_ + "ms, aborting"), - (this.lastErrorCode_ = goog.net.ErrorCode.TIMEOUT), - goog.log.fine(this.logger_, this.formatMsg_(this.lastError_)), - this.dispatchEvent(goog.net.EventType.TIMEOUT), - this.abort(goog.net.ErrorCode.TIMEOUT)); -}; + 'undefined' != typeof goog && + this.xhr_ && + ((this.lastError_ = + 'Timed out after ' + this.timeoutInterval_ + 'ms, aborting'), + (this.lastErrorCode_ = goog.net.ErrorCode.TIMEOUT), + goog.log.fine(this.logger_, this.formatMsg_(this.lastError_)), + this.dispatchEvent(goog.net.EventType.TIMEOUT), + this.abort(goog.net.ErrorCode.TIMEOUT)) +} goog.net.XhrIo.prototype.error_ = function (errorCode, err) { - this.active_ = !1; - this.xhr_ && ((this.inAbort_ = !0), this.xhr_.abort(), (this.inAbort_ = !1)); - this.lastError_ = err; - this.lastErrorCode_ = errorCode; - this.dispatchErrors_(); - this.cleanUpXhr_(); -}; + this.active_ = !1 + this.xhr_ && ((this.inAbort_ = !0), this.xhr_.abort(), (this.inAbort_ = !1)) + this.lastError_ = err + this.lastErrorCode_ = errorCode + this.dispatchErrors_() + this.cleanUpXhr_() +} goog.net.XhrIo.prototype.dispatchErrors_ = function () { - this.errorDispatched_ || - ((this.errorDispatched_ = !0), - this.dispatchEvent(goog.net.EventType.COMPLETE), - this.dispatchEvent(goog.net.EventType.ERROR)); -}; + this.errorDispatched_ || + ((this.errorDispatched_ = !0), + this.dispatchEvent(goog.net.EventType.COMPLETE), + this.dispatchEvent(goog.net.EventType.ERROR)) +} goog.net.XhrIo.prototype.abort = function (opt_failureCode) { - this.xhr_ && - this.active_ && - (goog.log.fine(this.logger_, this.formatMsg_("Aborting")), - (this.active_ = !1), - (this.inAbort_ = !0), - this.xhr_.abort(), - (this.inAbort_ = !1), - (this.lastErrorCode_ = opt_failureCode || goog.net.ErrorCode.ABORT), - this.dispatchEvent(goog.net.EventType.COMPLETE), - this.dispatchEvent(goog.net.EventType.ABORT), - this.cleanUpXhr_()); -}; + this.xhr_ && + this.active_ && + (goog.log.fine(this.logger_, this.formatMsg_('Aborting')), + (this.active_ = !1), + (this.inAbort_ = !0), + this.xhr_.abort(), + (this.inAbort_ = !1), + (this.lastErrorCode_ = opt_failureCode || goog.net.ErrorCode.ABORT), + this.dispatchEvent(goog.net.EventType.COMPLETE), + this.dispatchEvent(goog.net.EventType.ABORT), + this.cleanUpXhr_()) +} goog.net.XhrIo.prototype.disposeInternal = function () { - this.xhr_ && - (this.active_ && - ((this.active_ = !1), - (this.inAbort_ = !0), - this.xhr_.abort(), - (this.inAbort_ = !1)), - this.cleanUpXhr_(!0)); - goog.net.XhrIo.superClass_.disposeInternal.call(this); -}; + this.xhr_ && + (this.active_ && + ((this.active_ = !1), + (this.inAbort_ = !0), + this.xhr_.abort(), + (this.inAbort_ = !1)), + this.cleanUpXhr_(!0)) + goog.net.XhrIo.superClass_.disposeInternal.call(this) +} goog.net.XhrIo.prototype.onReadyStateChange_ = function () { - if (!this.isDisposed()) { - if (this.inOpen_ || this.inSend_ || this.inAbort_) { - this.onReadyStateChangeHelper_(); - } else { - this.onReadyStateChangeEntryPoint_(); + if (!this.isDisposed()) { + if (this.inOpen_ || this.inSend_ || this.inAbort_) { + this.onReadyStateChangeHelper_() + } else { + this.onReadyStateChangeEntryPoint_() + } } - } -}; +} goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = function () { - this.onReadyStateChangeHelper_(); -}; + this.onReadyStateChangeHelper_() +} goog.net.XhrIo.prototype.onReadyStateChangeHelper_ = function () { - if (this.active_ && "undefined" != typeof goog) { - if ( - this.xhrOptions_[goog.net.XmlHttp.OptionType.LOCAL_REQUEST_ERROR] && - this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE && - 2 == this.getStatus() - ) { - goog.log.fine( - this.logger_, - this.formatMsg_("Local request error detected and ignored") - ); - } else { - if ( - this.inSend_ && - this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE - ) { - goog.Timer.callOnce(this.onReadyStateChange_, 0, this); - } else { + if (this.active_ && 'undefined' != typeof goog) { if ( - (this.dispatchEvent(goog.net.EventType.READY_STATE_CHANGE), - this.isComplete()) + this.xhrOptions_[goog.net.XmlHttp.OptionType.LOCAL_REQUEST_ERROR] && + this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE && + 2 == this.getStatus() ) { - goog.log.fine(this.logger_, this.formatMsg_("Request complete")); - this.active_ = !1; - try { - this.isSuccess() - ? (this.dispatchEvent(goog.net.EventType.COMPLETE), - this.dispatchEvent(goog.net.EventType.SUCCESS)) - : ((this.lastErrorCode_ = goog.net.ErrorCode.HTTP_ERROR), - (this.lastError_ = - this.getStatusText() + " [" + this.getStatus() + "]"), - this.dispatchErrors_()); - } finally { - this.cleanUpXhr_(); - } + goog.log.fine( + this.logger_, + this.formatMsg_('Local request error detected and ignored') + ) + } else { + if ( + this.inSend_ && + this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE + ) { + goog.Timer.callOnce(this.onReadyStateChange_, 0, this) + } else { + if ( + (this.dispatchEvent(goog.net.EventType.READY_STATE_CHANGE), + this.isComplete()) + ) { + goog.log.fine( + this.logger_, + this.formatMsg_('Request complete') + ) + this.active_ = !1 + try { + this.isSuccess() + ? (this.dispatchEvent(goog.net.EventType.COMPLETE), + this.dispatchEvent(goog.net.EventType.SUCCESS)) + : ((this.lastErrorCode_ = + goog.net.ErrorCode.HTTP_ERROR), + (this.lastError_ = + this.getStatusText() + + ' [' + + this.getStatus() + + ']'), + this.dispatchErrors_()) + } finally { + this.cleanUpXhr_() + } + } + } } - } } - } -}; +} goog.net.XhrIo.prototype.onProgressHandler_ = function (e, opt_isDownload) { - goog.asserts.assert( - e.type === goog.net.EventType.PROGRESS, - "goog.net.EventType.PROGRESS is of the same type as raw XHR progress." - ); - this.dispatchEvent( - goog.net.XhrIo.buildProgressEvent_(e, goog.net.EventType.PROGRESS) - ); - this.dispatchEvent( - goog.net.XhrIo.buildProgressEvent_( - e, - opt_isDownload - ? goog.net.EventType.DOWNLOAD_PROGRESS - : goog.net.EventType.UPLOAD_PROGRESS - ) - ); -}; + goog.asserts.assert( + e.type === goog.net.EventType.PROGRESS, + 'goog.net.EventType.PROGRESS is of the same type as raw XHR progress.' + ) + this.dispatchEvent( + goog.net.XhrIo.buildProgressEvent_(e, goog.net.EventType.PROGRESS) + ) + this.dispatchEvent( + goog.net.XhrIo.buildProgressEvent_( + e, + opt_isDownload + ? goog.net.EventType.DOWNLOAD_PROGRESS + : goog.net.EventType.UPLOAD_PROGRESS + ) + ) +} goog.net.XhrIo.buildProgressEvent_ = function (e, eventType) { - return { - type: eventType, - lengthComputable: e.lengthComputable, - loaded: e.loaded, - total: e.total, - }; -}; + return { + type: eventType, + lengthComputable: e.lengthComputable, + loaded: e.loaded, + total: e.total, + } +} goog.net.XhrIo.prototype.cleanUpXhr_ = function (opt_fromDispose) { - if (this.xhr_) { - this.cleanUpTimeoutTimer_(); - var xhr = this.xhr_, - clearedOnReadyStateChange = this.xhrOptions_[ - goog.net.XmlHttp.OptionType.USE_NULL_FUNCTION - ] - ? function () {} - : null; - this.xhrOptions_ = this.xhr_ = null; - opt_fromDispose || this.dispatchEvent(goog.net.EventType.READY); - try { - xhr.onreadystatechange = clearedOnReadyStateChange; - } catch (e) { - goog.log.error( - this.logger_, - "Problem encountered resetting onreadystatechange: " + e.message - ); + if (this.xhr_) { + this.cleanUpTimeoutTimer_() + var xhr = this.xhr_, + clearedOnReadyStateChange = this.xhrOptions_[ + goog.net.XmlHttp.OptionType.USE_NULL_FUNCTION + ] + ? function () {} + : null + this.xhrOptions_ = this.xhr_ = null + opt_fromDispose || this.dispatchEvent(goog.net.EventType.READY) + try { + xhr.onreadystatechange = clearedOnReadyStateChange + } catch (e) { + goog.log.error( + this.logger_, + 'Problem encountered resetting onreadystatechange: ' + e.message + ) + } } - } -}; +} goog.net.XhrIo.prototype.cleanUpTimeoutTimer_ = function () { - this.xhr_ && - this.useXhr2Timeout_ && - (this.xhr_[goog.net.XhrIo.XHR2_ON_TIMEOUT_] = null); - this.timeoutId_ && - (goog.Timer.clear(this.timeoutId_), (this.timeoutId_ = null)); -}; + this.xhr_ && + this.useXhr2Timeout_ && + (this.xhr_[goog.net.XhrIo.XHR2_ON_TIMEOUT_] = null) + this.timeoutId_ && + (goog.Timer.clear(this.timeoutId_), (this.timeoutId_ = null)) +} goog.net.XhrIo.prototype.isActive = function () { - return !!this.xhr_; -}; + return !!this.xhr_ +} goog.net.XhrIo.prototype.isComplete = function () { - return this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE; -}; + return this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE +} goog.net.XhrIo.prototype.isSuccess = function () { - var status = this.getStatus(); - return ( - goog.net.HttpStatus.isSuccess(status) || - (0 === status && !this.isLastUriEffectiveSchemeHttp_()) - ); -}; + var status = this.getStatus() + return ( + goog.net.HttpStatus.isSuccess(status) || + (0 === status && !this.isLastUriEffectiveSchemeHttp_()) + ) +} goog.net.XhrIo.prototype.isLastUriEffectiveSchemeHttp_ = function () { - var scheme = goog.uri.utils.getEffectiveScheme(String(this.lastUri_)); - return goog.net.XhrIo.HTTP_SCHEME_PATTERN.test(scheme); -}; + var scheme = goog.uri.utils.getEffectiveScheme(String(this.lastUri_)) + return goog.net.XhrIo.HTTP_SCHEME_PATTERN.test(scheme) +} goog.net.XhrIo.prototype.getReadyState = function () { - return this.xhr_ - ? this.xhr_.readyState - : goog.net.XmlHttp.ReadyState.UNINITIALIZED; -}; + return this.xhr_ + ? this.xhr_.readyState + : goog.net.XmlHttp.ReadyState.UNINITIALIZED +} goog.net.XhrIo.prototype.getStatus = function () { - try { - return this.getReadyState() > goog.net.XmlHttp.ReadyState.LOADED - ? this.xhr_.status - : -1; - } catch (e) { - return -1; - } -}; + try { + return this.getReadyState() > goog.net.XmlHttp.ReadyState.LOADED + ? this.xhr_.status + : -1 + } catch (e) { + return -1 + } +} goog.net.XhrIo.prototype.getStatusText = function () { - try { - return this.getReadyState() > goog.net.XmlHttp.ReadyState.LOADED - ? this.xhr_.statusText - : ""; - } catch (e) { - return goog.log.fine(this.logger_, "Can not get status: " + e.message), ""; - } -}; + try { + return this.getReadyState() > goog.net.XmlHttp.ReadyState.LOADED + ? this.xhr_.statusText + : '' + } catch (e) { + return ( + goog.log.fine(this.logger_, 'Can not get status: ' + e.message), '' + ) + } +} goog.net.XhrIo.prototype.getLastUri = function () { - return String(this.lastUri_); -}; + return String(this.lastUri_) +} goog.net.XhrIo.prototype.getResponseText = function () { - try { - return this.xhr_ ? this.xhr_.responseText : ""; - } catch (e) { - return ( - goog.log.fine(this.logger_, "Can not get responseText: " + e.message), "" - ); - } -}; + try { + return this.xhr_ ? this.xhr_.responseText : '' + } catch (e) { + return ( + goog.log.fine( + this.logger_, + 'Can not get responseText: ' + e.message + ), + '' + ) + } +} goog.net.XhrIo.prototype.getResponseBody = function () { - try { - if (this.xhr_ && "responseBody" in this.xhr_) { - return this.xhr_.responseBody; - } - } catch (e) { - goog.log.fine(this.logger_, "Can not get responseBody: " + e.message); - } - return null; -}; + try { + if (this.xhr_ && 'responseBody' in this.xhr_) { + return this.xhr_.responseBody + } + } catch (e) { + goog.log.fine(this.logger_, 'Can not get responseBody: ' + e.message) + } + return null +} goog.net.XhrIo.prototype.getResponseXml = function () { - try { - return this.xhr_ ? this.xhr_.responseXML : null; - } catch (e) { - return ( - goog.log.fine(this.logger_, "Can not get responseXML: " + e.message), null - ); - } -}; + try { + return this.xhr_ ? this.xhr_.responseXML : null + } catch (e) { + return ( + goog.log.fine( + this.logger_, + 'Can not get responseXML: ' + e.message + ), + null + ) + } +} goog.net.XhrIo.prototype.getResponseJson = function (opt_xssiPrefix) { - if (this.xhr_) { - var responseText = this.xhr_.responseText; - opt_xssiPrefix && - 0 == responseText.indexOf(opt_xssiPrefix) && - (responseText = responseText.substring(opt_xssiPrefix.length)); - return goog.json.hybrid.parse(responseText); - } -}; + if (this.xhr_) { + var responseText = this.xhr_.responseText + opt_xssiPrefix && + 0 == responseText.indexOf(opt_xssiPrefix) && + (responseText = responseText.substring(opt_xssiPrefix.length)) + return goog.json.hybrid.parse(responseText) + } +} goog.net.XhrIo.prototype.getResponse = function () { - try { - if (!this.xhr_) { - return null; - } - if ("response" in this.xhr_) { - return this.xhr_.response; - } - switch (this.responseType_) { - case goog.net.XhrIo.ResponseType.DEFAULT: - case goog.net.XhrIo.ResponseType.TEXT: - return this.xhr_.responseText; - case goog.net.XhrIo.ResponseType.ARRAY_BUFFER: - if ("mozResponseArrayBuffer" in this.xhr_) { - return this.xhr_.mozResponseArrayBuffer; - } - } - goog.log.error( - this.logger_, - "Response type " + - this.responseType_ + - " is not supported on this browser" - ); - return null; - } catch (e) { - return ( - goog.log.fine(this.logger_, "Can not get response: " + e.message), null - ); - } -}; + try { + if (!this.xhr_) { + return null + } + if ('response' in this.xhr_) { + return this.xhr_.response + } + switch (this.responseType_) { + case goog.net.XhrIo.ResponseType.DEFAULT: + case goog.net.XhrIo.ResponseType.TEXT: + return this.xhr_.responseText + case goog.net.XhrIo.ResponseType.ARRAY_BUFFER: + if ('mozResponseArrayBuffer' in this.xhr_) { + return this.xhr_.mozResponseArrayBuffer + } + } + goog.log.error( + this.logger_, + 'Response type ' + + this.responseType_ + + ' is not supported on this browser' + ) + return null + } catch (e) { + return ( + goog.log.fine(this.logger_, 'Can not get response: ' + e.message), + null + ) + } +} goog.net.XhrIo.prototype.getResponseHeader = function (key) { - if (this.xhr_ && this.isComplete()) { - var value = this.xhr_.getResponseHeader(key); - return null === value ? void 0 : value; - } -}; + if (this.xhr_ && this.isComplete()) { + var value = this.xhr_.getResponseHeader(key) + return null === value ? void 0 : value + } +} goog.net.XhrIo.prototype.getAllResponseHeaders = function () { - return this.xhr_ && this.getReadyState() >= goog.net.XmlHttp.ReadyState.LOADED - ? this.xhr_.getAllResponseHeaders() || "" - : ""; -}; + return this.xhr_ && + this.getReadyState() >= goog.net.XmlHttp.ReadyState.LOADED + ? this.xhr_.getAllResponseHeaders() || '' + : '' +} goog.net.XhrIo.prototype.getResponseHeaders = function () { - for ( - var headersObject = {}, - headersArray = this.getAllResponseHeaders().split("\r\n"), - i = 0; - i < headersArray.length; - i++ - ) { - if (!goog.string.isEmptyOrWhitespace(headersArray[i])) { - var keyValue = goog.string.splitLimit(headersArray[i], ":", 1), - key = keyValue[0], - value = keyValue[1]; - if ("string" === typeof value) { - value = value.trim(); - var values = headersObject[key] || []; - headersObject[key] = values; - values.push(value); - } + for ( + var headersObject = {}, + headersArray = this.getAllResponseHeaders().split('\r\n'), + i = 0; + i < headersArray.length; + i++ + ) { + if (!goog.string.isEmptyOrWhitespace(headersArray[i])) { + var keyValue = goog.string.splitLimit(headersArray[i], ':', 1), + key = keyValue[0], + value = keyValue[1] + if ('string' === typeof value) { + value = value.trim() + var values = headersObject[key] || [] + headersObject[key] = values + values.push(value) + } + } } - } - return module$contents$goog$object_map(headersObject, function (values) { - return values.join(", "); - }); -}; + return module$contents$goog$object_map(headersObject, function (values) { + return values.join(', ') + }) +} goog.net.XhrIo.prototype.getStreamingResponseHeader = function (key) { - return this.xhr_ ? this.xhr_.getResponseHeader(key) : null; -}; + return this.xhr_ ? this.xhr_.getResponseHeader(key) : null +} goog.net.XhrIo.prototype.getAllStreamingResponseHeaders = function () { - return this.xhr_ ? this.xhr_.getAllResponseHeaders() : ""; -}; + return this.xhr_ ? this.xhr_.getAllResponseHeaders() : '' +} goog.net.XhrIo.prototype.getLastErrorCode = function () { - return this.lastErrorCode_; -}; + return this.lastErrorCode_ +} goog.net.XhrIo.prototype.getLastError = function () { - return "string" === typeof this.lastError_ - ? this.lastError_ - : String(this.lastError_); -}; + return 'string' === typeof this.lastError_ + ? this.lastError_ + : String(this.lastError_) +} goog.net.XhrIo.prototype.formatMsg_ = function (msg) { - return ( - msg + - " [" + - this.lastMethod_ + - " " + - this.lastUri_ + - " " + - this.getStatus() + - "]" - ); -}; + return ( + msg + + ' [' + + this.lastMethod_ + + ' ' + + this.lastUri_ + + ' ' + + this.getStatus() + + ']' + ) +} goog.debug.entryPointRegistry.register(function (transformer) { - goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = transformer( - goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ - ); -}); + goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = transformer( + goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ + ) +}) var module$exports$safevalues$builders$sensitive_attributes = {}, - module$contents$safevalues$builders$sensitive_attributes_module = - module$contents$safevalues$builders$sensitive_attributes_module || { - id: "third_party/javascript/safevalues/builders/sensitive_attributes.closure.js", - }; + module$contents$safevalues$builders$sensitive_attributes_module = + module$contents$safevalues$builders$sensitive_attributes_module || { + id: 'third_party/javascript/safevalues/builders/sensitive_attributes.closure.js', + } module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = - "src srcdoc codebase data href rel action formaction sandbox cite poster icon".split( - " " - ); + 'src srcdoc codebase data href rel action formaction sandbox cite poster icon'.split( + ' ' + ) var module$exports$safevalues$internals$secrets = {}, - module$contents$safevalues$internals$secrets_module = - module$contents$safevalues$internals$secrets_module || { - id: "third_party/javascript/safevalues/internals/secrets.closure.js", - }; -module$exports$safevalues$internals$secrets.secretToken = {}; + module$contents$safevalues$internals$secrets_module = + module$contents$safevalues$internals$secrets_module || { + id: 'third_party/javascript/safevalues/internals/secrets.closure.js', + } +module$exports$safevalues$internals$secrets.secretToken = {} function module$contents$safevalues$internals$secrets_ensureTokenIsValid( - token + token ) { - if ( - goog.DEBUG && - token !== module$exports$safevalues$internals$secrets.secretToken - ) { - throw Error("Bad secret"); - } + if ( + goog.DEBUG && + token !== module$exports$safevalues$internals$secrets.secretToken + ) { + throw Error('Bad secret') + } } module$exports$safevalues$internals$secrets.ensureTokenIsValid = - module$contents$safevalues$internals$secrets_ensureTokenIsValid; + module$contents$safevalues$internals$secrets_ensureTokenIsValid var module$exports$safevalues$internals$attribute_impl = {}, - module$contents$safevalues$internals$attribute_impl_module = - module$contents$safevalues$internals$attribute_impl_module || { - id: "third_party/javascript/safevalues/internals/attribute_impl.closure.js", - }; + module$contents$safevalues$internals$attribute_impl_module = + module$contents$safevalues$internals$attribute_impl_module || { + id: 'third_party/javascript/safevalues/internals/attribute_impl.closure.js', + } module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = - function () {}; + function () {} var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = - function (attrPrefix, token) { - module$contents$safevalues$internals$secrets_ensureTokenIsValid(token); - this.privateDoNotAccessOrElseWrappedAttrPrefix = attrPrefix; - }; + function (attrPrefix, token) { + module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) + this.privateDoNotAccessOrElseWrappedAttrPrefix = attrPrefix + } $jscomp.inherits( - module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl, - module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix -); + module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl, + module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix +) module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl.prototype.toString = - function () { - return this.privateDoNotAccessOrElseWrappedAttrPrefix; - }; + function () { + return this.privateDoNotAccessOrElseWrappedAttrPrefix + } function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal( - attrPrefix + attrPrefix ) { - return new module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl( - attrPrefix, - module$exports$safevalues$internals$secrets.secretToken - ); + return new module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl( + attrPrefix, + module$exports$safevalues$internals$secrets.secretToken + ) } module$exports$safevalues$internals$attribute_impl.createAttributePrefixInternal = - module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal; + module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal function module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix( - value -) { - if ( - value instanceof - module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl - ) { - return value.privateDoNotAccessOrElseWrappedAttrPrefix; - } - var message = ""; - goog.DEBUG && - (message = "Unexpected type when unwrapping SafeAttributePrefix"); - throw Error(message); + value +) { + if ( + value instanceof + module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl + ) { + return value.privateDoNotAccessOrElseWrappedAttrPrefix + } + var message = '' + goog.DEBUG && + (message = 'Unexpected type when unwrapping SafeAttributePrefix') + throw Error(message) } module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = - module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix; -var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), - $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw( - ["\x00"], - ["\\0"] - ), - $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw( - ["\n"], - ["\\n"] - ), - $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw( - ["\x00"], - ["\\u0000"] - ), - $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), - $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw( - ["\x00"], - ["\\0"] - ), - $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw( - ["\n"], - ["\\n"] - ), - $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw( - ["\x00"], - ["\\u0000"] - ), - module$contents$safevalues$internals$string_literal_module = - module$contents$safevalues$internals$string_literal_module || { - id: "third_party/javascript/safevalues/internals/string_literal.closure.js", - }; + module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix +var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg(['']), + $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw( + ['\x00'], + ['\\0'] + ), + $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw( + ['\n'], + ['\\n'] + ), + $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw( + ['\x00'], + ['\\u0000'] + ), + $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg(['']), + $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw( + ['\x00'], + ['\\0'] + ), + $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw( + ['\n'], + ['\\n'] + ), + $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw( + ['\x00'], + ['\\u0000'] + ), + module$contents$safevalues$internals$string_literal_module = + module$contents$safevalues$internals$string_literal_module || { + id: 'third_party/javascript/safevalues/internals/string_literal.closure.js', + } function module$contents$safevalues$internals$string_literal_assertIsTemplateObject( - templateObj, - numExprs + templateObj, + numExprs ) { - if ( - !module$contents$safevalues$internals$string_literal_isTemplateObject( - templateObj - ) || - numExprs + 1 !== templateObj.length - ) { - throw new TypeError( - "\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################" - ); - } + if ( + !module$contents$safevalues$internals$string_literal_isTemplateObject( + templateObj + ) || + numExprs + 1 !== templateObj.length + ) { + throw new TypeError( + '\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################' + ) + } } function module$contents$safevalues$internals$string_literal_checkFrozen( - templateObj + templateObj ) { - return Object.isFrozen(templateObj) && Object.isFrozen(templateObj.raw); + return Object.isFrozen(templateObj) && Object.isFrozen(templateObj.raw) } -var module$contents$safevalues$internals$string_literal_TagFn; +var module$contents$safevalues$internals$string_literal_TagFn function module$contents$safevalues$internals$string_literal_checkTranspiled( - fn + fn ) { - return -1 === fn.toString().indexOf("`"); + return -1 === fn.toString().indexOf('`') } var module$contents$safevalues$internals$string_literal_isTranspiled = - module$contents$safevalues$internals$string_literal_checkTranspiled( - function (tag) { - return tag($jscomp$templatelit$1274514361$0); - } - ) || - module$contents$safevalues$internals$string_literal_checkTranspiled( - function (tag) { - return tag($jscomp$templatelit$1274514361$1); - } - ) || - module$contents$safevalues$internals$string_literal_checkTranspiled( - function (tag) { - return tag($jscomp$templatelit$1274514361$2); - } - ) || - module$contents$safevalues$internals$string_literal_checkTranspiled( - function (tag) { - return tag($jscomp$templatelit$1274514361$3); - } - ), - module$contents$safevalues$internals$string_literal_frozenTSA = - module$contents$safevalues$internals$string_literal_checkFrozen( - $jscomp$templatelit$1274514361$4 - ) && - module$contents$safevalues$internals$string_literal_checkFrozen( - $jscomp$templatelit$1274514361$5 - ) && - module$contents$safevalues$internals$string_literal_checkFrozen( - $jscomp$templatelit$1274514361$6 - ) && - module$contents$safevalues$internals$string_literal_checkFrozen( - $jscomp$templatelit$1274514361$7 - ); + module$contents$safevalues$internals$string_literal_checkTranspiled( + function (tag) { + return tag($jscomp$templatelit$1274514361$0) + } + ) || + module$contents$safevalues$internals$string_literal_checkTranspiled( + function (tag) { + return tag($jscomp$templatelit$1274514361$1) + } + ) || + module$contents$safevalues$internals$string_literal_checkTranspiled( + function (tag) { + return tag($jscomp$templatelit$1274514361$2) + } + ) || + module$contents$safevalues$internals$string_literal_checkTranspiled( + function (tag) { + return tag($jscomp$templatelit$1274514361$3) + } + ), + module$contents$safevalues$internals$string_literal_frozenTSA = + module$contents$safevalues$internals$string_literal_checkFrozen( + $jscomp$templatelit$1274514361$4 + ) && + module$contents$safevalues$internals$string_literal_checkFrozen( + $jscomp$templatelit$1274514361$5 + ) && + module$contents$safevalues$internals$string_literal_checkFrozen( + $jscomp$templatelit$1274514361$6 + ) && + module$contents$safevalues$internals$string_literal_checkFrozen( + $jscomp$templatelit$1274514361$7 + ) function module$contents$safevalues$internals$string_literal_isTemplateObject( - templateObj -) { - return Array.isArray(templateObj) && - Array.isArray(templateObj.raw) && - templateObj.length === templateObj.raw.length && - (module$contents$safevalues$internals$string_literal_isTranspiled || - templateObj !== templateObj.raw) && - ((module$contents$safevalues$internals$string_literal_isTranspiled && - !module$contents$safevalues$internals$string_literal_frozenTSA) || - module$contents$safevalues$internals$string_literal_checkFrozen( - templateObj - )) - ? !0 - : !1; + templateObj +) { + return Array.isArray(templateObj) && + Array.isArray(templateObj.raw) && + templateObj.length === templateObj.raw.length && + (module$contents$safevalues$internals$string_literal_isTranspiled || + templateObj !== templateObj.raw) && + ((module$contents$safevalues$internals$string_literal_isTranspiled && + !module$contents$safevalues$internals$string_literal_frozenTSA) || + module$contents$safevalues$internals$string_literal_checkFrozen( + templateObj + )) + ? !0 + : !1 } var module$contents$safevalues$builders$attribute_builders_module = - module$contents$safevalues$builders$attribute_builders_module || { - id: "third_party/javascript/safevalues/builders/attribute_builders.closure.js", - }; + module$contents$safevalues$builders$attribute_builders_module || { + id: 'third_party/javascript/safevalues/builders/attribute_builders.closure.js', + } function module$contents$safevalues$builders$attribute_builders_safeAttrPrefix( - templ -) { - goog.DEBUG && - module$contents$safevalues$internals$string_literal_assertIsTemplateObject( - templ, - 0 - ); - var attrPrefix = templ[0].toLowerCase(); - if (goog.DEBUG) { - if (0 === attrPrefix.indexOf("on") || 0 === "on".indexOf(attrPrefix)) { - throw Error( - "Prefix '" + - templ[0] + - "' does not guarantee the attribute to be safe as it is also a prefix for event handler attributesPlease use 'addEventListener' to set event handlers." - ); - } - module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES.forEach( - function (sensitiveAttr) { - if (0 === sensitiveAttr.indexOf(attrPrefix)) { - throw Error( - "Prefix '" + - templ[0] + - "' does not guarantee the attribute to be safe as it is also a prefix for the security sensitive attribute '" + - (sensitiveAttr + - "'. Please use native or safe DOM APIs to set the attribute.") - ); + templ +) { + goog.DEBUG && + module$contents$safevalues$internals$string_literal_assertIsTemplateObject( + templ, + 0 + ) + var attrPrefix = templ[0].toLowerCase() + if (goog.DEBUG) { + if (0 === attrPrefix.indexOf('on') || 0 === 'on'.indexOf(attrPrefix)) { + throw Error( + "Prefix '" + + templ[0] + + "' does not guarantee the attribute to be safe as it is also a prefix for event handler attributesPlease use 'addEventListener' to set event handlers." + ) } - } - ); - } - return module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal( - attrPrefix - ); + module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES.forEach( + function (sensitiveAttr) { + if (0 === sensitiveAttr.indexOf(attrPrefix)) { + throw Error( + "Prefix '" + + templ[0] + + "' does not guarantee the attribute to be safe as it is also a prefix for the security sensitive attribute '" + + (sensitiveAttr + + "'. Please use native or safe DOM APIs to set the attribute.") + ) + } + } + ) + } + return module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal( + attrPrefix + ) } var module$contents$safevalues$builders$document_fragment_builders_module = - module$contents$safevalues$builders$document_fragment_builders_module || { - id: "third_party/javascript/safevalues/builders/document_fragment_builders.closure.js", - }; + module$contents$safevalues$builders$document_fragment_builders_module || { + id: 'third_party/javascript/safevalues/builders/document_fragment_builders.closure.js', + } function module$contents$safevalues$builders$document_fragment_builders_safeFragment( - templateObj -) { - goog.DEBUG && - module$contents$safevalues$internals$string_literal_assertIsTemplateObject( - templateObj, - 0 - ); - return document - .createRange() - .createContextualFragment( - module$contents$safevalues$internals$html_impl_unwrapHtml( - module$contents$safevalues$internals$html_impl_createHtmlInternal( - templateObj[0] + templateObj +) { + goog.DEBUG && + module$contents$safevalues$internals$string_literal_assertIsTemplateObject( + templateObj, + 0 + ) + return document + .createRange() + .createContextualFragment( + module$contents$safevalues$internals$html_impl_unwrapHtml( + module$contents$safevalues$internals$html_impl_createHtmlInternal( + templateObj[0] + ) + ) ) - ) - ); } var module$exports$safevalues$builders$style_sheet_builders = {}, - module$contents$safevalues$builders$style_sheet_builders_module = - module$contents$safevalues$builders$style_sheet_builders_module || { - id: "third_party/javascript/safevalues/builders/style_sheet_builders.closure.js", - }, - module$contents$safevalues$builders$style_sheet_builders_Primitive; + module$contents$safevalues$builders$style_sheet_builders_module = + module$contents$safevalues$builders$style_sheet_builders_module || { + id: 'third_party/javascript/safevalues/builders/style_sheet_builders.closure.js', + }, + module$contents$safevalues$builders$style_sheet_builders_Primitive module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = - function (templateObj) { - var rest = $jscomp.getRestArguments.apply(1, arguments); - goog.DEBUG && - module$contents$safevalues$internals$string_literal_assertIsTemplateObject( - templateObj, - rest.length - ); - for ( - var stringifiedRule = templateObj[0], i = 0; - i < templateObj.length - 1; - i++ - ) { - (stringifiedRule += String(rest[i])), - (stringifiedRule += templateObj[i + 1]); - } - var doc = document.implementation.createHTMLDocument(""), - styleEl = doc.createElement("style"); - doc.head.appendChild(styleEl); - var styleSheet = styleEl.sheet; - styleSheet.insertRule(stringifiedRule, 0); - if (1 !== styleSheet.cssRules.length) { - if (goog.DEBUG) { - throw Error( - "safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: " + - stringifiedRule + - ("which has " + - styleSheet.cssRules.length + - " rules: " + - styleSheet.cssRules[0].cssText + - " #$% " + - styleSheet.cssRules[1].cssText + - ".") - ); - } - } else { - var styleSheetRule = styleSheet.cssRules[0]; - if (styleSheetRule instanceof CSSStyleRule) { + function (templateObj) { + var rest = $jscomp.getRestArguments.apply(1, arguments) + goog.DEBUG && + module$contents$safevalues$internals$string_literal_assertIsTemplateObject( + templateObj, + rest.length + ) + for ( + var stringifiedRule = templateObj[0], i = 0; + i < templateObj.length - 1; + i++ + ) { + ;(stringifiedRule += String(rest[i])), + (stringifiedRule += templateObj[i + 1]) + } + var doc = document.implementation.createHTMLDocument(''), + styleEl = doc.createElement('style') + doc.head.appendChild(styleEl) + var styleSheet = styleEl.sheet + styleSheet.insertRule(stringifiedRule, 0) + if (1 !== styleSheet.cssRules.length) { + if (goog.DEBUG) { + throw Error( + 'safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: ' + + stringifiedRule + + ('which has ' + + styleSheet.cssRules.length + + ' rules: ' + + styleSheet.cssRules[0].cssText + + ' #$% ' + + styleSheet.cssRules[1].cssText + + '.') + ) + } + } else { + var styleSheetRule = styleSheet.cssRules[0] + if (styleSheetRule instanceof CSSStyleRule) { + return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal( + styleSheetRule.cssText.replace(/ markerIdx) { - return isWholeUrl; - } - if (":" !== prefix.charAt(markerIdx)) { - return !0; - } - var scheme = prefix.substring(0, markerIdx).toLowerCase(); - return /^[a-z][a-z\d+.-]*$/.test(scheme) && "javascript" !== scheme; + prefix, + isWholeUrl +) { + var markerIdx = prefix.search(/[:/?#]/) + if (0 > markerIdx) { + return isWholeUrl + } + if (':' !== prefix.charAt(markerIdx)) { + return !0 + } + var scheme = prefix.substring(0, markerIdx).toLowerCase() + return /^[a-z][a-z\d+.-]*$/.test(scheme) && 'javascript' !== scheme } function module$contents$safevalues$builders$url_builders_safeUrl(templateObj) { - var rest = $jscomp.getRestArguments.apply(1, arguments); - goog.DEBUG && - module$contents$safevalues$internals$string_literal_assertIsTemplateObject( - templateObj, - rest.length - ); - var prefix = templateObj[0]; - if ( + var rest = $jscomp.getRestArguments.apply(1, arguments) goog.DEBUG && - !module$contents$safevalues$builders$url_builders_isSafeUrlPrefix( - prefix, - 0 === rest.length - ) - ) { - throw Error("Trying to interpolate with unsupported prefix: " + prefix); - } - for (var urlParts = [prefix], i = 0; i < rest.length; i++) { - urlParts.push(String(rest[i])), urlParts.push(templateObj[i + 1]); - } - return module$contents$safevalues$internals$url_impl_createUrlInternal( - urlParts.join("") - ); + module$contents$safevalues$internals$string_literal_assertIsTemplateObject( + templateObj, + rest.length + ) + var prefix = templateObj[0] + if ( + goog.DEBUG && + !module$contents$safevalues$builders$url_builders_isSafeUrlPrefix( + prefix, + 0 === rest.length + ) + ) { + throw Error('Trying to interpolate with unsupported prefix: ' + prefix) + } + for (var urlParts = [prefix], i = 0; i < rest.length; i++) { + urlParts.push(String(rest[i])), urlParts.push(templateObj[i + 1]) + } + return module$contents$safevalues$internals$url_impl_createUrlInternal( + urlParts.join('') + ) } module$exports$safevalues$builders$url_builders.safeUrl = - module$contents$safevalues$builders$url_builders_safeUrl; + module$contents$safevalues$builders$url_builders_safeUrl var module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API = - 2020 <= goog.FEATURESET_YEAR, - module$contents$safevalues$builders$url_builders_supportsURLAPI = - module$contents$safevalues$internals$pure_pure(function () { - return module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API - ? !0 - : "function" === typeof URL; - }); + 2020 <= goog.FEATURESET_YEAR, + module$contents$safevalues$builders$url_builders_supportsURLAPI = + module$contents$safevalues$internals$pure_pure(function () { + return module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API + ? !0 + : 'function' === typeof URL + }) function module$contents$safevalues$builders$url_builders_legacyExtractScheme( - url -) { - var aTag = document.createElement("a"); - try { - aTag.href = url; - } catch (e) { - return; - } - var protocol = aTag.protocol; - return ":" === protocol || "" === protocol ? "https:" : protocol; -} -var module$contents$safevalues$builders$url_builders_JavaScriptUrlSanitizationCallback; + url +) { + var aTag = document.createElement('a') + try { + aTag.href = url + } catch (e) { + return + } + var protocol = aTag.protocol + return ':' === protocol || '' === protocol ? 'https:' : protocol +} +var module$contents$safevalues$builders$url_builders_JavaScriptUrlSanitizationCallback function module$contents$safevalues$builders$url_builders_extractScheme(url) { - if (!module$contents$safevalues$builders$url_builders_supportsURLAPI) { - return module$contents$safevalues$builders$url_builders_legacyExtractScheme( - url - ); - } - try { - var parsedUrl = new URL(url); - } catch (e) { - return "https:"; - } - return parsedUrl.protocol; + if (!module$contents$safevalues$builders$url_builders_supportsURLAPI) { + return module$contents$safevalues$builders$url_builders_legacyExtractScheme( + url + ) + } + try { + var parsedUrl = new URL(url) + } catch (e) { + return 'https:' + } + return parsedUrl.protocol } module$exports$safevalues$builders$url_builders.extractScheme = - module$contents$safevalues$builders$url_builders_extractScheme; + module$contents$safevalues$builders$url_builders_extractScheme var module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES = [ - "data:", - "http:", - "https:", - "mailto:", - "ftp:", -]; + 'data:', + 'http:', + 'https:', + 'mailto:', + 'ftp:', +] function module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl( - url + url ) { - if ( - "javascript:" === - module$contents$safevalues$builders$url_builders_extractScheme(url) - ) { - module$contents$safevalues$builders$url_builders_triggerCallbacks(url); - } else { - return url; - } + if ( + 'javascript:' === + module$contents$safevalues$builders$url_builders_extractScheme(url) + ) { + module$contents$safevalues$builders$url_builders_triggerCallbacks(url) + } else { + return url + } } module$exports$safevalues$builders$url_builders.sanitizeJavaScriptUrl = - module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl; + module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl module$exports$safevalues$builders$url_builders.unwrapUrlOrSanitize = function ( - url + url ) { - return url instanceof goog.html.SafeUrl - ? module$contents$safevalues$internals$url_impl_unwrapUrl(url) - : module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl( - url - ); -}; + return url instanceof goog.html.SafeUrl + ? module$contents$safevalues$internals$url_impl_unwrapUrl(url) + : module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl( + url + ) +} function module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl( - url -) { - var parsedScheme = - module$contents$safevalues$builders$url_builders_extractScheme(url); - return void 0 !== parsedScheme && - -1 !== - module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf( - parsedScheme.toLowerCase() - ) - ? url - : "about:invalid#zClosurez"; + url +) { + var parsedScheme = + module$contents$safevalues$builders$url_builders_extractScheme(url) + return void 0 !== parsedScheme && + -1 !== + module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf( + parsedScheme.toLowerCase() + ) + ? url + : 'about:invalid#zClosurez' } module$exports$safevalues$builders$url_builders.restrictivelySanitizeUrl = - module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl; + module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl module$exports$safevalues$builders$url_builders.JAVASCRIPT_URL_SCHEME_PATTERN = - /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i; + /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i var module$contents$safevalues$builders$url_builders_sanitizationCallbacks = [], - module$contents$safevalues$builders$url_builders_triggerCallbacks = function ( - url - ) {}; + module$contents$safevalues$builders$url_builders_triggerCallbacks = + function (url) {} goog.DEBUG && - module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback( - function (url) { - (0, goog.log.warning)( - (0, goog.log.getLogger)("safevalues"), - "A URL with content '" + url + "' was sanitized away." - ); - } - ); + module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback( + function (url) { + ;(0, goog.log.warning)( + (0, goog.log.getLogger)('safevalues'), + "A URL with content '" + url + "' was sanitized away." + ) + } + ) function module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback( - callback -) { - -1 === - module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf( - callback - ) && - module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push( - callback - ); - module$contents$safevalues$builders$url_builders_triggerCallbacks = function ( - url - ) { - module$contents$safevalues$builders$url_builders_sanitizationCallbacks.forEach( - function (callback) { - callback(url); - } - ); - }; + callback +) { + ;-1 === + module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf( + callback + ) && + module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push( + callback + ) + module$contents$safevalues$builders$url_builders_triggerCallbacks = + function (url) { + module$contents$safevalues$builders$url_builders_sanitizationCallbacks.forEach( + function (callback) { + callback(url) + } + ) + } } module$exports$safevalues$builders$url_builders.addJavaScriptUrlSanitizationCallback = - module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback; + module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback function module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback( - callback -) { - var callbackIndex = - module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf( - callback - ); - -1 !== callbackIndex && - module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice( - callbackIndex, - 1 - ); + callback +) { + var callbackIndex = + module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf( + callback + ) + ;-1 !== callbackIndex && + module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice( + callbackIndex, + 1 + ) } module$exports$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback = - module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback; + module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback var module$exports$safevalues$builders$html_builders = {}, - module$contents$safevalues$builders$html_builders_module = - module$contents$safevalues$builders$html_builders_module || { - id: "third_party/javascript/safevalues/builders/html_builders.closure.js", - }; + module$contents$safevalues$builders$html_builders_module = + module$contents$safevalues$builders$html_builders_module || { + id: 'third_party/javascript/safevalues/builders/html_builders.closure.js', + } function module$contents$safevalues$builders$html_builders_htmlEscape( - value, - options -) { - options = void 0 === options ? {} : options; - if (module$contents$safevalues$internals$html_impl_isHtml(value)) { - return value; - } - var htmlEscapedString = - module$contents$safevalues$builders$html_builders_htmlEscapeToString( - String(value) - ); - options.preserveSpaces && - (htmlEscapedString = htmlEscapedString.replace( - /(^|[\r\n\t ]) /g, - "$1 " - )); - options.preserveNewlines && - (htmlEscapedString = htmlEscapedString.replace(/(\r\n|\n|\r)/g, "
")); - options.preserveTabs && - (htmlEscapedString = htmlEscapedString.replace( - /(\t+)/g, - '$1' - )); - return module$contents$safevalues$internals$html_impl_createHtmlInternal( - htmlEscapedString - ); + value, + options +) { + options = void 0 === options ? {} : options + if (module$contents$safevalues$internals$html_impl_isHtml(value)) { + return value + } + var htmlEscapedString = + module$contents$safevalues$builders$html_builders_htmlEscapeToString( + String(value) + ) + options.preserveSpaces && + (htmlEscapedString = htmlEscapedString.replace( + /(^|[\r\n\t ]) /g, + '$1 ' + )) + options.preserveNewlines && + (htmlEscapedString = htmlEscapedString.replace(/(\r\n|\n|\r)/g, '
')) + options.preserveTabs && + (htmlEscapedString = htmlEscapedString.replace( + /(\t+)/g, + '$1' + )) + return module$contents$safevalues$internals$html_impl_createHtmlInternal( + htmlEscapedString + ) } module$exports$safevalues$builders$html_builders.htmlEscape = - module$contents$safevalues$builders$html_builders_htmlEscape; + module$contents$safevalues$builders$html_builders_htmlEscape module$exports$safevalues$builders$html_builders.scriptToHtml = function ( - script, - options + script, + options ) { - options = void 0 === options ? {} : options; - var unwrappedScript = - module$contents$safevalues$internals$script_impl_unwrapScript( - script - ).toString(), - stringTag = "" + unwrappedScript + "\x3c/script>") - ); -}; + options = void 0 === options ? {} : options + var unwrappedScript = + module$contents$safevalues$internals$script_impl_unwrapScript( + script + ).toString(), + stringTag = '' + unwrappedScript + '\x3c/script>') + ) +} module$exports$safevalues$builders$html_builders.scriptUrlToHtml = function ( - src, - options -) { - options = void 0 === options ? {} : options; - var unwrappedSrc = - module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl( - src - ).toString(), - stringTag = - '