diff --git a/.eslintignore b/.eslintignore index 7593527..c8c0a76 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ public/* node_modules/* -vendor/* +app/vendor/* webpack.config.* diff --git a/.eslintrc.js b/.eslintrc.js index 209ef76..fd5659b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,7 +25,8 @@ module.exports = { "rules": { "indent": [ "error", - 4 + 4, + { "SwitchCase": 1 } ], "linebreak-style": [ "error", diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2d2c63..fad43c2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,3 +41,8 @@ strings in the `./app/locales/$LOCALE/index.js` file you have just created. No strict coding style is used in this repo. ESLint and Stylelint, ran with `npm run test` ensures a certain coding style. Try to keep the coding style homogeneous. + + +## Hooks + +Usefuls Git hooks are located in `hooks` folder. diff --git a/TODO b/TODO deleted file mode 100644 index 1bad229..0000000 --- a/TODO +++ /dev/null @@ -1,5 +0,0 @@ -5. Web player -6. Homepage -7. Settings -8. Search -9. Discover diff --git a/app/actions/APIActions.js b/app/actions/APIActions.js index 673271d..75aee0d 100644 --- a/app/actions/APIActions.js +++ b/app/actions/APIActions.js @@ -1,27 +1,52 @@ +/** + * This file implements actions to fetch and load data from the API. + */ + +// NPM imports import { normalize, arrayOf } from "normalizr"; import humps from "humps"; +// Other actions import { CALL_API } from "../middleware/api"; +import { pushEntities } from "./entities"; -import { artist, track, album } from "../models/api"; +// Models +import { artist, song, album } from "../models/api"; +// Constants export const DEFAULT_LIMIT = 32; /** Default max number of elements to retrieve. */ + +/** + * This function wraps around an API action to generate actions trigger + * functions to load items etc. + * + * @param action API action. + * @param requestType Action type to trigger on request. + * @param successType Action type to trigger on success. + * @param failureType Action type to trigger on failure. + */ export default function (action, requestType, successType, failureType) { + /** Get the name of the item associated with action */ const itemName = action.rstrip("s"); - const fetchItemsSuccess = function (jsonData, pageNumber) { - // Normalize data - jsonData = normalize( + /** + * Normalizr helper to normalize API response. + * + * @param jsonData The JS object returned by the API. + * @return A normalized object. + */ + const _normalizeAPIResponse = function (jsonData) { + return normalize( jsonData, { artist: arrayOf(artist), album: arrayOf(album), - song: arrayOf(track) + song: arrayOf(song) }, { + // Use custom assignEntity function to delete useless fields assignEntity: function (output, key, value) { - // Delete useless fields if (key == "sessionExpire") { delete output.sessionExpire; } else { @@ -30,26 +55,67 @@ export default function (action, requestType, successType, failureType) { } } ); - - const nPages = Math.ceil(jsonData.result[itemName].length / DEFAULT_LIMIT); - return { - type: successType, - payload: { - result: jsonData.result, - entities: jsonData.entities, - nPages: nPages, - currentPage: pageNumber - } - }; }; + + /** + * Callback on successful fetch of paginated items + * + * @param jsonData JS object returned from the API. + * @param pageNumber Number of the page that was fetched. + */ + const fetchPaginatedItemsSuccess = function (jsonData, pageNumber, limit) { + jsonData = _normalizeAPIResponse(jsonData); + + // Compute the total number of pages + const nPages = Math.ceil(jsonData.result[itemName].length / limit); + + // Return success actions + return [ + // Action for the global entities store + pushEntities(jsonData.entities, [itemName]), + // Action for the paginated store + { + type: successType, + payload: { + type: itemName, + result: jsonData.result[itemName], + nPages: nPages, + currentPage: pageNumber + } + } + ]; + }; + + /** + * Callback on successful fetch of single item + * + * @param jsonData JS object returned from the API. + * @param pageNumber Number of the page that was fetched. + */ + const fetchItemSuccess = function (jsonData) { + jsonData = _normalizeAPIResponse(jsonData); + + return pushEntities(jsonData.entities, [itemName]); + }; + + /** Callback on request */ const fetchItemsRequest = function () { + // Return a request type action return { type: requestType, payload: { } }; }; + + /** + * Callback on failed fetch + * + * @param error An error object, either a string or an i18nError + * object. + */ const fetchItemsFailure = function (error) { + // Return a failure type action return { type: failureType, payload: { @@ -57,27 +123,48 @@ export default function (action, requestType, successType, failureType) { } }; }; - const fetchItems = function (endpoint, username, passphrase, filter, pageNumber, include = [], limit=DEFAULT_LIMIT) { + + /** + * Method to trigger a fetch of items. + * + * @param endpoint Ampache server base URL. + * @param username Username to use for API request. + * @param filter An eventual filter to apply (mapped to API filter + * param) + * @param pageNumber Number of the page to fetch items from. + * @param limit Max number of items to fetch. + * @param include [Optional] A list of includes to return as well + * (mapped to API include param) + * + * @return A CALL_API action to fetch the specified items. + */ + const fetchItems = function (endpoint, username, passphrase, filter, pageNumber, limit, include = []) { + // Compute offset in number of items from the page number const offset = (pageNumber - 1) * DEFAULT_LIMIT; + // Set extra params for pagination let extraParams = { offset: offset, limit: limit }; + + // Handle filter if (filter) { extraParams.filter = filter; } + + // Handle includes if (include && include.length > 0) { extraParams.include = include; } + + // Return a CALL_API action return { type: CALL_API, payload: { endpoint: endpoint, dispatch: [ fetchItemsRequest, - jsonData => dispatch => { - dispatch(fetchItemsSuccess(jsonData, pageNumber)); - }, + null, fetchItemsFailure ], action: action, @@ -87,19 +174,83 @@ export default function (action, requestType, successType, failureType) { } }; }; - const loadItems = function({ pageNumber = 1, filter = null, include = [] } = {}) { + + /** + * High level method to load paginated items from the API wihtout dealing about credentials. + * + * @param pageNumber [Optional] Number of the page to fetch items from. + * @param filter [Optional] An eventual filter to apply (mapped to + * API filter param) + * @param include [Optional] A list of includes to return as well + * (mapped to API include param) + * + * Dispatches the CALL_API action to fetch these items. + */ + const loadPaginatedItems = function({ pageNumber = 1, limit = DEFAULT_LIMIT, filter = null, include = [] } = {}) { return (dispatch, getState) => { + // Get credentials from the state const { auth } = getState(); - dispatch(fetchItems(auth.endpoint, auth.username, auth.token.token, filter, pageNumber, include)); + // Get the fetch action to dispatch + const fetchAction = fetchItems( + auth.endpoint, + auth.username, + auth.token.token, + filter, + pageNumber, + limit, + include + ); + // Set success callback + fetchAction.payload.dispatch[1] = ( + jsonData => dispatch => { + // Dispatch all the necessary actions + const actions = fetchPaginatedItemsSuccess(jsonData, pageNumber, limit); + actions.map(action => dispatch(action)); + } + ); + // Dispatch action + dispatch(fetchAction); }; }; - const camelizedAction = humps.pascalize(action); + /** + * High level method to load a single item from the API wihtout dealing about credentials. + * + * @param filter The filter to apply (mapped to API filter param) + * @param include [Optional] A list of includes to return as well + * (mapped to API include param) + * + * Dispatches the CALL_API action to fetch this item. + */ + const loadItem = function({ filter = null, include = [] } = {}) { + return (dispatch, getState) => { + // Get credentials from the state + const { auth } = getState(); + // Get the action to dispatch + const fetchAction = fetchItems( + auth.endpoint, + auth.username, + auth.token.token, + filter, + 1, + DEFAULT_LIMIT, + include + ); + // Set success callback + fetchAction.payload.dispatch[1] = ( + jsonData => dispatch => { + dispatch(fetchItemSuccess(jsonData)); + } + ); + // Dispatch action + dispatch(fetchAction); + }; + }; + + // Remap the above methods to methods including item name var returned = {}; - returned["fetch" + camelizedAction + "Success"] = fetchItemsSuccess; - returned["fetch" + camelizedAction + "Request"] = fetchItemsRequest; - returned["fetch" + camelizedAction + "Failure"] = fetchItemsFailure; - returned["fetch" + camelizedAction] = fetchItems; - returned["load" + camelizedAction] = loadItems; + const camelizedAction = humps.pascalize(action); + returned["loadPaginated" + camelizedAction] = loadPaginatedItems; + returned["load" + camelizedAction.rstrip("s")] = loadItem; return returned; } diff --git a/app/actions/auth.js b/app/actions/auth.js index 019144d..0e721dd 100644 --- a/app/actions/auth.js +++ b/app/actions/auth.js @@ -1,45 +1,36 @@ +/** + * This file implements authentication related actions. + */ + +// NPM imports import { push } from "react-router-redux"; -import jsSHA from "jssha"; import Cookies from "js-cookie"; +// Local imports +import { buildHMAC, cleanURL } from "../utils"; + +// Models +import { i18nRecord } from "../models/i18n"; + +// Other actions and payload types import { CALL_API } from "../middleware/api"; import { invalidateStore } from "./store"; -import { i18nRecord } from "../models/i18n"; -export const DEFAULT_SESSION_INTERVAL = 1800 * 1000; // 30 mins default +// Constants +export const DEFAULT_SESSION_INTERVAL = 1800 * 1000; // 30 mins long sessoins by default -function _cleanEndpoint (endpoint) { - // Handle endpoints of the form "ampache.example.com" - if ( - !endpoint.startsWith("//") && - !endpoint.startsWith("http://") && - !endpoint.startsWith("https://")) - { - endpoint = window.location.protocol + "//" + endpoint; - } - // Remove trailing slash and store endpoint - endpoint = endpoint.replace(/\/$/, ""); - return endpoint; -} - -function _buildHMAC (password) { - // Handle Ampache HMAC generation - const time = Math.floor(Date.now() / 1000); - - let shaObj = new jsSHA("SHA-256", "TEXT"); - shaObj.update(password); - const key = shaObj.getHash("HEX"); - - shaObj = new jsSHA("SHA-256", "TEXT"); - shaObj.update(time + key); - - return { - time: time, - passphrase: shaObj.getHash("HEX") - }; -} +/** + * Dispatch a ping query to the API for login keepalive and prevent session + * from expiring. + * + * @param username Username to use + * @param token Token to revive + * @param endpoint Ampache base URL + * + * @return A CALL_API payload to keep session alive. + */ export function loginKeepAlive(username, token, endpoint) { return { type: CALL_API, @@ -60,7 +51,19 @@ export function loginKeepAlive(username, token, endpoint) { }; } + export const LOGIN_USER_SUCCESS = "LOGIN_USER_SUCCESS"; +/** + * Action to be called on successful login. + * + * @param username Username used for login + * @param token Token got back from the API + * @param endpoint Ampache server base URL + * @param rememberMe Whether to remember me or not + * @param timerID ID of the timer set for session keepalive. + * + * @return A login success payload. + */ export function loginUserSuccess(username, token, endpoint, rememberMe, timerID) { return { type: LOGIN_USER_SUCCESS, @@ -74,7 +77,16 @@ export function loginUserSuccess(username, token, endpoint, rememberMe, timerID) }; } + export const LOGIN_USER_FAILURE = "LOGIN_USER_FAILURE"; +/** + * Action to be called on failed login. + * + * This action removes any remember me cookie if any was set. + * + * @param error An error object, either string or i18nRecord. + * @return A login failure payload. + */ export function loginUserFailure(error) { Cookies.remove("username"); Cookies.remove("token"); @@ -87,7 +99,14 @@ export function loginUserFailure(error) { }; } + export const LOGIN_USER_EXPIRED = "LOGIN_USER_EXPIRED"; +/** + * Action to be called when session is expired. + * + * @param error An error object, either a string or i18nRecord. + * @return A session expired payload. + */ export function loginUserExpired(error) { return { type: LOGIN_USER_EXPIRED, @@ -97,14 +116,32 @@ export function loginUserExpired(error) { }; } + export const LOGIN_USER_REQUEST = "LOGIN_USER_REQUEST"; +/** + * Action to be called when login is requested. + * + * @return A login request payload. + */ export function loginUserRequest() { return { type: LOGIN_USER_REQUEST }; } + export const LOGOUT_USER = "LOGOUT_USER"; +/** + * Action to be called upon logout. + * + * This function clears the cookies set for remember me and the keep alive + * timer. + * + * @remark This function does not clear the other stores, nor handle + * redirection. + * + * @return A logout payload. + */ export function logout() { return (dispatch, state) => { const { auth } = state(); @@ -120,6 +157,14 @@ export function logout() { }; } + +/** + * Action to be called to log a user out. + * + * This function clears the remember me cookies and the keepalive timer. It + * also clears the data behind authentication in the store and redirects to + * login page. + */ export function logoutAndRedirect() { return (dispatch) => { dispatch(logout()); @@ -128,14 +173,30 @@ export function logoutAndRedirect() { }; } + +/** + * Action to be called to log a user in. + * + * @param username Username to use. + * @param passwordOrToken User password, or previous token to revive. + * @param endpoint Ampache server base URL. + * @param rememberMe Whether to rememberMe or not + * @param[optional] redirect Page to redirect to after login. + * @param[optional] isToken Whether passwordOrToken is a password or a + * token. + * + * @return A CALL_API payload to perform login. + */ export function loginUser(username, passwordOrToken, endpoint, rememberMe, redirect="/", isToken=false) { - endpoint = _cleanEndpoint(endpoint); + // Clean endpoint + endpoint = cleanURL(endpoint); + + // Get passphrase and time parameters let time = 0; let passphrase = passwordOrToken; - if (!isToken) { // Standard password connection - const HMAC = _buildHMAC(passwordOrToken); + const HMAC = buildHMAC(passwordOrToken); time = HMAC.time; passphrase = HMAC.passphrase; } else { @@ -147,6 +208,7 @@ export function loginUser(username, passwordOrToken, endpoint, rememberMe, redir time = Math.floor(Date.now() / 1000); passphrase = passwordOrToken.token; } + return { type: CALL_API, payload: { @@ -155,23 +217,27 @@ export function loginUser(username, passwordOrToken, endpoint, rememberMe, redir loginUserRequest, jsonData => dispatch => { if (!jsonData.auth || !jsonData.sessionExpire) { + // On success, check that we are actually authenticated return dispatch(loginUserFailure(new i18nRecord({ id: "app.api.error", values: {} }))); } + // Get token from the API const token = { token: jsonData.auth, expires: new Date(jsonData.sessionExpire) }; - // Dispatch success + // Handle session keep alive timer const timerID = setInterval( () => dispatch(loginKeepAlive(username, token.token, endpoint)), DEFAULT_SESSION_INTERVAL ); if (rememberMe) { + // Handle remember me option const cookiesOption = { expires: token.expires }; Cookies.set("username", username, cookiesOption); Cookies.set("token", token, cookiesOption); Cookies.set("endpoint", endpoint, cookiesOption); } + // Dispatch login success dispatch(loginUserSuccess(username, token, endpoint, rememberMe, timerID)); // Redirect dispatch(push(redirect)); diff --git a/app/actions/entities.js b/app/actions/entities.js new file mode 100644 index 0000000..b89187e --- /dev/null +++ b/app/actions/entities.js @@ -0,0 +1,61 @@ +/** + * This file implements actions related to global entities store. + */ + +export const PUSH_ENTITIES = "PUSH_ENTITIES"; +/** + * Push some entities in the global entities store. + * + * @param entities An entities mapping, such as the one in the entities + * store: type => id => entity. + * @param refCountType An array of entities type to consider for + * increasing reference counting (elements loaded as nested objects) + * @return A PUSH_ENTITIES action. + */ +export function pushEntities(entities, refCountType=["album", "artist", "song"]) { + return { + type: PUSH_ENTITIES, + payload: { + entities: entities, + refCountType: refCountType + } + }; +} + + +export const INCREMENT_REFCOUNT = "INCREMENT_REFCOUNT"; +/** + * Increment the reference counter for given entities. + * + * @param ids A mapping type => list of IDs, each ID being the one of an + * entity to increment reference counter. List of IDs must be + * a JS Object. + * @return An INCREMENT_REFCOUNT action. + */ +export function incrementRefCount(entities) { + return { + type: INCREMENT_REFCOUNT, + payload: { + entities: entities + } + }; +} + + +export const DECREMENT_REFCOUNT = "DECREMENT_REFCOUNT"; +/** + * Decrement the reference counter for given entities. + * + * @param ids A mapping type => list of IDs, each ID being the one of an + * entity to decrement reference counter. List of IDs must be + * a JS Object. + * @return A DECREMENT_REFCOUNT action. + */ +export function decrementRefCount(entities) { + return { + type: DECREMENT_REFCOUNT, + payload: { + entities: entities + } + }; +} diff --git a/app/actions/index.js b/app/actions/index.js index cc11728..09e7b18 100644 --- a/app/actions/index.js +++ b/app/actions/index.js @@ -1,14 +1,35 @@ +/** + * Export all the available actions + */ + +// Auth related actions export * from "./auth"; +// API related actions for all the available types import APIAction from "./APIActions"; +// Actions related to API export const API_SUCCESS = "API_SUCCESS"; export const API_REQUEST = "API_REQUEST"; export const API_FAILURE = "API_FAILURE"; -export var { loadArtists } = APIAction("artists", API_REQUEST, API_SUCCESS, API_FAILURE); -export var { loadAlbums } = APIAction("albums", API_REQUEST, API_SUCCESS, API_FAILURE); -export var { loadSongs } = APIAction("songs", API_REQUEST, API_SUCCESS, API_FAILURE); +export var { + loadPaginatedArtists, loadArtist } = APIAction("artists", API_REQUEST, API_SUCCESS, API_FAILURE); +export var { + loadPaginatedAlbums, loadAlbum } = APIAction("albums", API_REQUEST, API_SUCCESS, API_FAILURE); +export var { + loadPaginatedSongs, loadSong } = APIAction("songs", API_REQUEST, API_SUCCESS, API_FAILURE); -export * from "./paginate"; +// Entities actions +export * from "./entities"; + +// Paginated views store actions +export * from "./paginated"; + +// Pagination actions +export * from "./pagination"; + +// Store actions export * from "./store"; + +// Webplayer actions export * from "./webplayer"; diff --git a/app/actions/paginate.js b/app/actions/paginate.js deleted file mode 100644 index dff66bf..0000000 --- a/app/actions/paginate.js +++ /dev/null @@ -1,7 +0,0 @@ -import { push } from "react-router-redux"; - -export function goToPage(pageLocation) { - return (dispatch) => { - dispatch(push(pageLocation)); - }; -} diff --git a/app/actions/paginated.js b/app/actions/paginated.js new file mode 100644 index 0000000..736b322 --- /dev/null +++ b/app/actions/paginated.js @@ -0,0 +1,24 @@ +/** + * These actions are actions acting directly on the paginated views store. + */ + +// Other actions +import { decrementRefCount } from "./entities"; + + +/** Define an action to invalidate results in paginated store. */ +export const CLEAR_RESULTS = "CLEAR_RESULTS"; +export function clearResults() { + return (dispatch, getState) => { + // Decrement reference counter + const paginatedStore = getState().paginated; + const entities = {}; + entities[paginatedStore.get("type")] = paginatedStore.get("result").toJS(); + dispatch(decrementRefCount(entities)); + + // Clear results in store + dispatch({ + type: CLEAR_RESULTS + }); + }; +} diff --git a/app/actions/pagination.js b/app/actions/pagination.js new file mode 100644 index 0000000..e89beca --- /dev/null +++ b/app/actions/pagination.js @@ -0,0 +1,14 @@ +/** + * This file defines pagination related actions. + */ + +// NPM imports +import { push } from "react-router-redux"; + +/** Define an action to go to a specific page. */ +export function goToPage(pageLocation) { + return (dispatch) => { + // Just push the new page location in react-router. + dispatch(push(pageLocation)); + }; +} diff --git a/app/actions/store.js b/app/actions/store.js index b648801..7f9decb 100644 --- a/app/actions/store.js +++ b/app/actions/store.js @@ -1,3 +1,9 @@ +/** + * These actions are actions acting directly on all the available stores. + */ + + +/** Define an action to invalidate all the stores, e.g. in case of logout. */ export const INVALIDATE_STORE = "INVALIDATE_STORE"; export function invalidateStore() { return { diff --git a/app/actions/webplayer.js b/app/actions/webplayer.js index d4e2020..a453788 100644 --- a/app/actions/webplayer.js +++ b/app/actions/webplayer.js @@ -1,3 +1,4 @@ +// TODO: This file is not finished export const PLAY_PAUSE = "PLAY_PAUSE"; /** * true to play, false to pause. diff --git a/app/styles/common/common.scss b/app/common/styles/common.scss similarity index 60% rename from app/styles/common/common.scss rename to app/common/styles/common.scss index c1db1af..61d62bd 100644 --- a/app/styles/common/common.scss +++ b/app/common/styles/common.scss @@ -1,4 +1,8 @@ +/** + * Common global styles. + */ :global { + /* No border on responsive table. */ @media (max-width: 767px) { .table-responsive { border: none; diff --git a/app/styles/common/hacks.scss b/app/common/styles/hacks.scss similarity index 50% rename from app/styles/common/hacks.scss rename to app/common/styles/hacks.scss index fb1dfec..657a953 100644 --- a/app/styles/common/hacks.scss +++ b/app/common/styles/hacks.scss @@ -1,5 +1,8 @@ +/** + * Hacks for specific browsers and bugfixes. + */ :global { - /* Firefox hack for responsive table */ + /* Firefox hack for responsive table in Bootstrap */ @-moz-document url-prefix() { fieldset { display: table-cell; diff --git a/app/styles/common/index.js b/app/common/styles/index.js similarity index 54% rename from app/styles/common/index.js rename to app/common/styles/index.js index 03304c8..a854653 100644 --- a/app/styles/common/index.js +++ b/app/common/styles/index.js @@ -1,2 +1,5 @@ +/** + * Common styles modifications and hacks. + */ export * from "./hacks.scss"; export * from "./common.scss"; diff --git a/app/common/utils/index.js b/app/common/utils/index.js new file mode 100644 index 0000000..2b879e6 --- /dev/null +++ b/app/common/utils/index.js @@ -0,0 +1,5 @@ +/** + * Prototype modifications, common utils loaded before the main script + */ +export * from "./jquery"; +export * from "./string"; diff --git a/app/utils/common/jquery.js b/app/common/utils/jquery.js similarity index 85% rename from app/utils/common/jquery.js rename to app/common/utils/jquery.js index 1e73a80..03bb478 100644 --- a/app/utils/common/jquery.js +++ b/app/common/utils/jquery.js @@ -1,9 +1,16 @@ +/** + * jQuery prototype extensions. + */ + + /** * Shake animation. * * @param intShakes Number of times to shake. * @param intDistance Distance to move the object. * @param intDuration Duration of the animation. + * + * @return The element it was applied one, for chaining. */ $.fn.shake = function(intShakes, intDistance, intDuration) { this.each(function() { diff --git a/app/utils/common/string.js b/app/common/utils/string.js similarity index 73% rename from app/utils/common/string.js rename to app/common/utils/string.js index 68488ab..1a8e216 100644 --- a/app/utils/common/string.js +++ b/app/common/utils/string.js @@ -1,14 +1,23 @@ /** - * Capitalize function on strings. + * String prototype extension. + */ + + +/** + * Capitalize a string. + * + * @return Capitalized string. */ String.prototype.capitalize = function () { return this.charAt(0).toUpperCase() + this.slice(1); }; + /** * Strip characters at the end of a string. * * @param chars A regex-like element to strip from the end. + * @return Stripped string. */ String.prototype.rstrip = function (chars) { let regex = new RegExp(chars + "$"); diff --git a/app/components/Album.jsx b/app/components/Album.jsx index 0e203c9..f583e28 100644 --- a/app/components/Album.jsx +++ b/app/components/Album.jsx @@ -1,17 +1,26 @@ +// NPM import import React, { Component, PropTypes } from "react"; import CSSModules from "react-css-modules"; import { defineMessages, FormattedMessage, injectIntl, intlShape } from "react-intl"; import FontAwesome from "react-fontawesome"; import Immutable from "immutable"; +// Local imports import { formatLength, messagesMap } from "../utils"; +// Translations import commonMessages from "../locales/messagesDescriptors/common"; +// Styles import css from "../styles/Album.scss"; +// Set translations const albumMessages = defineMessages(messagesMap(Array.concat([], commonMessages))); + +/** + * Track row in an album tracks table. + */ class AlbumTrackRowCSSIntl extends Component { render () { const { formatMessage } = this.props.intl; @@ -33,19 +42,21 @@ class AlbumTrackRowCSSIntl extends Component { ); } } - AlbumTrackRowCSSIntl.propTypes = { playAction: PropTypes.func.isRequired, track: PropTypes.instanceOf(Immutable.Map).isRequired, intl: intlShape.isRequired }; - export let AlbumTrackRow = injectIntl(CSSModules(AlbumTrackRowCSSIntl, css)); +/** + * Tracks table of an album. + */ class AlbumTracksTableCSS extends Component { render () { let rows = []; + // Build rows for each track const playAction = this.props.playAction; this.props.tracks.forEach(function (item) { rows.push(); @@ -59,14 +70,16 @@ class AlbumTracksTableCSS extends Component { ); } } - AlbumTracksTableCSS.propTypes = { playAction: PropTypes.func.isRequired, tracks: PropTypes.instanceOf(Immutable.List).isRequired }; - export let AlbumTracksTable = CSSModules(AlbumTracksTableCSS, css); + +/** + * An entire album row containing art and tracks table. + */ class AlbumRowCSS extends Component { render () { return ( @@ -88,24 +101,9 @@ class AlbumRowCSS extends Component { ); } } - AlbumRowCSS.propTypes = { playAction: PropTypes.func.isRequired, album: PropTypes.instanceOf(Immutable.Map).isRequired, songs: PropTypes.instanceOf(Immutable.List).isRequired }; - export let AlbumRow = CSSModules(AlbumRowCSS, css); - -export default class Album extends Component { - render () { - return ( - - ); - } -} - -Album.propTypes = { - album: PropTypes.instanceOf(Immutable.Map).isRequired, - songs: PropTypes.instanceOf(Immutable.List).isRequired -}; diff --git a/app/components/Albums.jsx b/app/components/Albums.jsx index f6e5ae1..20aff89 100644 --- a/app/components/Albums.jsx +++ b/app/components/Albums.jsx @@ -1,16 +1,24 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import Immutable from "immutable"; +// Local imports import FilterablePaginatedGrid from "./elements/Grid"; import DismissibleAlert from "./elements/DismissibleAlert"; + +/** + * Paginated albums grid + */ export default class Albums extends Component { render () { + // Handle error let error = null; if (this.props.error) { error = (); } + // Set grid props const grid = { isFetching: this.props.isFetching, items: this.props.albums, @@ -19,6 +27,7 @@ export default class Albums extends Component { subItemsType: "tracks", subItemsLabel: "app.common.track" }; + return (
{ error } @@ -27,10 +36,9 @@ export default class Albums extends Component { ); } } - Albums.propTypes = { - isFetching: PropTypes.bool.isRequired, error: PropTypes.string, + isFetching: PropTypes.bool.isRequired, albums: PropTypes.instanceOf(Immutable.List).isRequired, pagination: PropTypes.object.isRequired, }; diff --git a/app/components/Artist.jsx b/app/components/Artist.jsx index a657ba2..f70f886 100644 --- a/app/components/Artist.jsx +++ b/app/components/Artist.jsx @@ -1,57 +1,63 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import CSSModules from "react-css-modules"; import { defineMessages, FormattedMessage } from "react-intl"; import FontAwesome from "react-fontawesome"; import Immutable from "immutable"; +// Local imports import { messagesMap } from "../utils/"; +// Other components import { AlbumRow } from "./Album"; import DismissibleAlert from "./elements/DismissibleAlert"; +// Translations import commonMessages from "../locales/messagesDescriptors/common"; +// Styles import css from "../styles/Artist.scss"; +// Define translations const artistMessages = defineMessages(messagesMap(Array.concat([], commonMessages))); + +/** + * Single artist page + */ class ArtistCSS extends Component { render () { - const loading = ( -
-

-

-
- ); - - if (this.props.isFetching && !this.props.artist.size > 0) { - // Loading - return loading; + // Define loading message + let loading = null; + if (this.props.isFetching) { + loading = ( +
+

+

+
+ ); } + // Handle error let error = null; if (this.props.error) { error = (); } + // Build album rows let albumsRows = []; const { albums, songs, playAction } = this.props; - const artistAlbums = this.props.artist.get("albums"); - if (albums && songs && artistAlbums && artistAlbums.size > 0) { - this.props.artist.get("albums").forEach(function (album) { - album = albums.get(album); + if (albums && songs) { + albums.forEach(function (album) { const albumSongs = album.get("tracks").map( id => songs.get(id) ); albumsRows.push(); }); } - else { - // Loading - albumsRows = loading; - } + return (
{ error } @@ -70,18 +76,17 @@ class ArtistCSS extends Component {
{ albumsRows } + { loading } ); } } - ArtistCSS.propTypes = { - playAction: PropTypes.func.isRequired, - isFetching: PropTypes.bool.isRequired, error: PropTypes.string, + isFetching: PropTypes.bool.isRequired, + playAction: PropTypes.func.isRequired, artist: PropTypes.instanceOf(Immutable.Map), - albums: PropTypes.instanceOf(Immutable.Map), + albums: PropTypes.instanceOf(Immutable.List), songs: PropTypes.instanceOf(Immutable.Map) }; - export default CSSModules(ArtistCSS, css); diff --git a/app/components/Artists.jsx b/app/components/Artists.jsx index 812c911..5cd7ad8 100644 --- a/app/components/Artists.jsx +++ b/app/components/Artists.jsx @@ -1,16 +1,24 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import Immutable from "immutable"; +// Other components import FilterablePaginatedGrid from "./elements/Grid"; import DismissibleAlert from "./elements/DismissibleAlert"; -class Artists extends Component { + +/** + * Paginated artists grid + */ +export default class Artists extends Component { render () { + // Handle error let error = null; if (this.props.error) { error = (); } + // Define grid props const grid = { isFetching: this.props.isFetching, items: this.props.artists, @@ -19,6 +27,7 @@ class Artists extends Component { subItemsType: "albums", subItemsLabel: "app.common.album" }; + return (
{ error } @@ -27,12 +36,9 @@ class Artists extends Component { ); } } - Artists.propTypes = { - isFetching: PropTypes.bool.isRequired, error: PropTypes.string, + isFetching: PropTypes.bool.isRequired, artists: PropTypes.instanceOf(Immutable.List).isRequired, pagination: PropTypes.object.isRequired, }; - -export default Artists; diff --git a/app/components/Discover.jsx b/app/components/Discover.jsx index 6e88bb5..200d3f8 100644 --- a/app/components/Discover.jsx +++ b/app/components/Discover.jsx @@ -1,3 +1,4 @@ +// TODO: Discover view is not done import React, { Component } from "react"; import CSSModules from "react-css-modules"; import FontAwesome from "react-fontawesome"; diff --git a/app/components/Login.jsx b/app/components/Login.jsx index 3f2b092..47f3e83 100644 --- a/app/components/Login.jsx +++ b/app/components/Login.jsx @@ -1,57 +1,87 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import CSSModules from "react-css-modules"; import { defineMessages, injectIntl, intlShape, FormattedMessage } from "react-intl"; import FontAwesome from "react-fontawesome"; +// Local imports import { i18nRecord } from "../models/i18n"; import { messagesMap } from "../utils"; + +// Translations import APIMessages from "../locales/messagesDescriptors/api"; import messages from "../locales/messagesDescriptors/Login"; +// Styles import css from "../styles/Login.scss"; +// Define translations const loginMessages = defineMessages(messagesMap(Array.concat([], APIMessages, messages))); + +/** + * Login form component + */ class LoginFormCSSIntl extends Component { constructor (props) { super(props); - - this.handleSubmit = this.handleSubmit.bind(this); + this.handleSubmit = this.handleSubmit.bind(this); // bind this to handleSubmit } - setError (formGroup, error) { - if (error) { + /** + * Set an error on a form element. + * + * @param formGroup A form element. + * @param hasError Whether or not an error should be set. + * + * @return True if an error is set, false otherwise + */ + setError (formGroup, hasError) { + if (hasError) { + // If error is true, then add error class formGroup.classList.add("has-error"); formGroup.classList.remove("has-success"); return true; } + // Else, drop it and put success class formGroup.classList.remove("has-error"); formGroup.classList.add("has-success"); return false; } + /** + * Form submission handler. + * + * @param e JS Event. + */ handleSubmit (e) { e.preventDefault(); + + // Don't handle submit if already logging in if (this.props.isAuthenticating) { - // Don't handle submit if already logging in return; } + + // Get field values const username = this.refs.username.value.trim(); const password = this.refs.password.value.trim(); const endpoint = this.refs.endpoint.value.trim(); const rememberMe = this.refs.rememberMe.checked; + // Check for errors on each field let hasError = this.setError(this.refs.usernameFormGroup, !username); hasError |= this.setError(this.refs.passwordFormGroup, !password); hasError |= this.setError(this.refs.endpointFormGroup, !endpoint); if (!hasError) { + // Submit if no error is found this.props.onSubmit(username, password, endpoint, rememberMe); } } componentDidUpdate () { if (this.props.error) { + // On unsuccessful login, set error classes and shake the form $(this.refs.loginForm).shake(3, 10, 300); this.setError(this.refs.usernameFormGroup, this.props.error); this.setError(this.refs.passwordFormGroup, this.props.error); @@ -61,18 +91,23 @@ class LoginFormCSSIntl extends Component { render () { const {formatMessage} = this.props.intl; + + // Handle info message let infoMessage = this.props.info; if (this.props.info && this.props.info instanceof i18nRecord) { infoMessage = ( ); } + + // Handle error message let errorMessage = this.props.error; if (this.props.error && this.props.error instanceof i18nRecord) { errorMessage = ( ); } + return (
{ @@ -135,7 +170,6 @@ class LoginFormCSSIntl extends Component { ); } } - LoginFormCSSIntl.propTypes = { username: PropTypes.string, endpoint: PropTypes.string, @@ -146,11 +180,13 @@ LoginFormCSSIntl.propTypes = { info: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(i18nRecord)]), intl: intlShape.isRequired, }; - export let LoginForm = injectIntl(CSSModules(LoginFormCSSIntl, css)); -class Login extends Component { +/** + * Main login page, including title and login form. + */ +class LoginCSS extends Component { render () { const greeting = (

@@ -169,8 +205,7 @@ class Login extends Component { ); } } - -Login.propTypes = { +LoginCSS.propTypes = { username: PropTypes.string, endpoint: PropTypes.string, rememberMe: PropTypes.bool, @@ -179,5 +214,4 @@ Login.propTypes = { info: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), error: PropTypes.oneOfType([PropTypes.string, PropTypes.object]) }; - -export default CSSModules(Login, css); +export default CSSModules(LoginCSS, css); diff --git a/app/components/Songs.jsx b/app/components/Songs.jsx index f0ce79c..d8ab81e 100644 --- a/app/components/Songs.jsx +++ b/app/components/Songs.jsx @@ -1,3 +1,4 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import { Link} from "react-router"; import CSSModules from "react-css-modules"; @@ -6,24 +7,36 @@ import FontAwesome from "react-fontawesome"; import Immutable from "immutable"; import Fuse from "fuse.js"; +// Local imports +import { formatLength, messagesMap } from "../utils"; + +// Other components import DismissibleAlert from "./elements/DismissibleAlert"; import FilterBar from "./elements/FilterBar"; import Pagination from "./elements/Pagination"; -import { formatLength, messagesMap } from "../utils"; +// Translations import commonMessages from "../locales/messagesDescriptors/common"; import messages from "../locales/messagesDescriptors/Songs"; +// Styles import css from "../styles/Songs.scss"; +// Define translations const songsMessages = defineMessages(messagesMap(Array.concat([], commonMessages, messages))); + +/** + * A single row for a single song in the songs table. + */ class SongsTableRowCSSIntl extends Component { render () { const { formatMessage } = this.props.intl; + const length = formatLength(this.props.song.get("time")); const linkToArtist = "/artist/" + this.props.song.getIn(["artist", "id"]); const linkToAlbum = "/album/" + this.props.song.getIn(["album", "id"]); + return ( @@ -43,18 +56,20 @@ class SongsTableRowCSSIntl extends Component { ); } } - SongsTableRowCSSIntl.propTypes = { playAction: PropTypes.func.isRequired, song: PropTypes.instanceOf(Immutable.Map).isRequired, intl: intlShape.isRequired }; - export let SongsTableRow = injectIntl(CSSModules(SongsTableRowCSSIntl, css)); +/** + * The songs table. + */ class SongsTableCSS extends Component { render () { + // Handle filtering let displayedSongs = this.props.songs; if (this.props.filterText) { // Use Fuse for the filter @@ -69,14 +84,16 @@ class SongsTableCSS extends Component { displayedSongs = displayedSongs.map(function (item) { return new Immutable.Map(item.item); }); } + // Build song rows let rows = []; const { playAction } = this.props; displayedSongs.forEach(function (song) { rows.push(); }); + + // Handle login icon let loading = null; - if (rows.length == 0 && this.props.isFetching) { - // If we are fetching and there is nothing to show + if (this.props.isFetching) { loading = (

); } + return (
@@ -114,26 +132,34 @@ class SongsTableCSS extends Component { ); } } - SongsTableCSS.propTypes = { playAction: PropTypes.func.isRequired, songs: PropTypes.instanceOf(Immutable.List).isRequired, filterText: PropTypes.string }; - export let SongsTable = CSSModules(SongsTableCSS, css); +/** + * Complete songs table view with filter and pagination + */ export default class FilterablePaginatedSongsTable extends Component { constructor (props) { super(props); this.state = { - filterText: "" + filterText: "" // Initial state, no filter text }; - this.handleUserInput = this.handleUserInput.bind(this); + this.handleUserInput = this.handleUserInput.bind(this); // Bind this on user input handling } + /** + * Method called whenever the filter input is changed. + * + * Update the state accordingly. + * + * @param filterText Content of the filter input. + */ handleUserInput (filterText) { this.setState({ filterText: filterText @@ -141,22 +167,34 @@ export default class FilterablePaginatedSongsTable extends Component { } render () { + // Handle error let error = null; if (this.props.error) { error = (); } + // Set props + const filterProps = { + filterText: this.state.filterText, + onUserInput: this.handleUserInput + }; + const songsTableProps = { + playAction: this.props.playAction, + isFetching: this.props.isFetching, + songs: this.props.songs, + filterText: this.state.filterText + }; + return (
{ error } - - + +
); } } - FilterablePaginatedSongsTable.propTypes = { playAction: PropTypes.func.isRequired, isFetching: PropTypes.bool.isRequired, diff --git a/app/components/elements/DismissibleAlert.jsx b/app/components/elements/DismissibleAlert.jsx index 27a949b..f0574c1 100644 --- a/app/components/elements/DismissibleAlert.jsx +++ b/app/components/elements/DismissibleAlert.jsx @@ -1,11 +1,18 @@ +// NPM imports import React, { Component, PropTypes } from "react"; + +/** + * A dismissible Bootstrap alert. + */ export default class DismissibleAlert extends Component { render () { + // Set correct alert type let alertType = "alert-danger"; if (this.props.type) { alertType = "alert-" + this.props.type; } + return (

@@ -18,7 +25,6 @@ export default class DismissibleAlert extends Component { ); } } - DismissibleAlert.propTypes = { type: PropTypes.string, text: PropTypes.string diff --git a/app/components/elements/FilterBar.jsx b/app/components/elements/FilterBar.jsx index 4a1a2b3..4ddf2e9 100644 --- a/app/components/elements/FilterBar.jsx +++ b/app/components/elements/FilterBar.jsx @@ -1,28 +1,46 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import CSSModules from "react-css-modules"; import { defineMessages, injectIntl, intlShape, FormattedMessage } from "react-intl"; +// Local imports import { messagesMap } from "../../utils"; + +// Translations import messages from "../../locales/messagesDescriptors/elements/FilterBar"; +// Styles import css from "../../styles/elements/FilterBar.scss"; +// Define translations const filterMessages = defineMessages(messagesMap(Array.concat([], messages))); + +/** + * Filter bar element with input filter. + */ class FilterBarCSSIntl extends Component { constructor (props) { super(props); + // Bind this on methods this.handleChange = this.handleChange.bind(this); } + /** + * Method to handle a change of filter input value. + * + * Calls the user input handler passed from parent component. + * + * @param e A JS event. + */ handleChange (e) { e.preventDefault(); - this.props.onUserInput(this.refs.filterTextInput.value); } render () { const {formatMessage} = this.props.intl; + return (

@@ -39,11 +57,9 @@ class FilterBarCSSIntl extends Component { ); } } - FilterBarCSSIntl.propTypes = { onUserInput: PropTypes.func, filterText: PropTypes.string, intl: intlShape.isRequired }; - export default injectIntl(CSSModules(FilterBarCSSIntl, css)); diff --git a/app/components/elements/Grid.jsx b/app/components/elements/Grid.jsx index f63a4b6..f5b0b79 100644 --- a/app/components/elements/Grid.jsx +++ b/app/components/elements/Grid.jsx @@ -1,3 +1,4 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import { Link} from "react-router"; import CSSModules from "react-css-modules"; @@ -9,56 +10,24 @@ import Isotope from "isotope-layout"; import Fuse from "fuse.js"; import shallowCompare from "react-addons-shallow-compare"; -import FilterBar from "./FilterBar"; -import Pagination from "./Pagination"; +// Local imports import { immutableDiff, messagesMap } from "../../utils/"; +// Other components +import FilterBar from "./FilterBar"; +import Pagination from "./Pagination"; + +// Translations import commonMessages from "../../locales/messagesDescriptors/common"; import messages from "../../locales/messagesDescriptors/grid"; +// Styles import css from "../../styles/elements/Grid.scss"; +// Define translations const gridMessages = defineMessages(messagesMap(Array.concat([], commonMessages, messages))); -class GridItemCSSIntl extends Component { - render () { - const {formatMessage} = this.props.intl; - - let nSubItems = this.props.item.get(this.props.subItemsType); - if (Immutable.List.isList(nSubItems)) { - nSubItems = nSubItems.size; - } - - let subItemsLabel = formatMessage(gridMessages[this.props.subItemsLabel], { itemCount: nSubItems }); - - const to = "/" + this.props.itemsType + "/" + this.props.item.get("id"); - const id = "grid-item-" + this.props.itemsType + "/" + this.props.item.get("id"); - - const title = formatMessage(gridMessages["app.grid.goTo" + this.props.itemsType.capitalize() + "Page"]); - return ( -

-
- {this.props.item.get("name")}/ -

{this.props.item.get("name")}

- {nSubItems} {subItemsLabel} -
-
- ); - } -} - -GridItemCSSIntl.propTypes = { - item: PropTypes.instanceOf(Immutable.Map).isRequired, - itemsType: PropTypes.string.isRequired, - itemsLabel: PropTypes.string.isRequired, - subItemsType: PropTypes.string.isRequired, - subItemsLabel: PropTypes.string.isRequired, - intl: intlShape.isRequired -}; - -export let GridItem = injectIntl(CSSModules(GridItemCSSIntl, css)); - - +// Constants const ISOTOPE_OPTIONS = { /** Default options for Isotope grid layout. */ getSortData: { name: ".name", @@ -75,6 +44,55 @@ const ISOTOPE_OPTIONS = { /** Default options for Isotope grid layout. */ } }; + +/** + * A single item in the grid, art + text under the art. + */ +class GridItemCSSIntl extends Component { + render () { + const {formatMessage} = this.props.intl; + + // Get number of sub-items + let nSubItems = this.props.item.get(this.props.subItemsType); + if (Immutable.List.isList(nSubItems)) { + nSubItems = nSubItems.size; + } + + // Define correct sub-items label (plural) + let subItemsLabel = formatMessage( + gridMessages[this.props.subItemsLabel], + { itemCount: nSubItems } + ); + + const to = "/" + this.props.itemsType + "/" + this.props.item.get("id"); + const id = "grid-item-" + this.props.itemsType + "/" + this.props.item.get("id"); + const title = formatMessage(gridMessages["app.grid.goTo" + this.props.itemsType.capitalize() + "Page"]); + + return ( +
+
+ {this.props.item.get("name")}/ +

{this.props.item.get("name")}

+ {nSubItems} {subItemsLabel} +
+
+ ); + } +} +GridItemCSSIntl.propTypes = { + item: PropTypes.instanceOf(Immutable.Map).isRequired, + itemsType: PropTypes.string.isRequired, + itemsLabel: PropTypes.string.isRequired, + subItemsType: PropTypes.string.isRequired, + subItemsLabel: PropTypes.string.isRequired, + intl: intlShape.isRequired +}; +export let GridItem = injectIntl(CSSModules(GridItemCSSIntl, css)); + + +/** + * A grid, formatted using Isotope.JS + */ export class Grid extends Component { constructor (props) { super(props); @@ -82,20 +100,29 @@ export class Grid extends Component { // Init grid data member this.iso = null; + // Bind this + this.createIsotopeContainer = this.createIsotopeContainer.bind(this); this.handleFiltering = this.handleFiltering.bind(this); } + /** + * Create an isotope container if none already exist. + */ createIsotopeContainer () { if (this.iso == null) { this.iso = new Isotope(this.refs.grid, ISOTOPE_OPTIONS); } } + /** + * Handle filtering on the grid. + */ handleFiltering (props) { // If no query provided, drop any filter in use if (props.filterText == "") { return this.iso.arrange(ISOTOPE_OPTIONS); } + // Use Fuse for the filter let result = new Fuse( props.items.toJS(), @@ -103,7 +130,8 @@ export class Grid extends Component { "keys": ["name"], "threshold": 0.4, "include": ["score"] - }).search(props.filterText); + } + ).search(props.filterText); // Apply filter on grid this.iso.arrange({ @@ -130,10 +158,12 @@ export class Grid extends Component { } shouldComponentUpdate(nextProps, nextState) { + // Shallow comparison, render is pure return shallowCompare(this, nextProps, nextState); } componentWillReceiveProps(nextProps) { + // Handle filtering if filterText is changed if (nextProps.filterText !== this.props.filterText) { this.handleFiltering(nextProps); } @@ -143,8 +173,7 @@ export class Grid extends Component { // Setup grid this.createIsotopeContainer(); // Only arrange if there are elements to arrange - const length = this.props.items.length || 0; - if (length > 0) { + if (this.props.items.size > 0) { this.iso.arrange(); } } @@ -152,25 +181,31 @@ export class Grid extends Component { componentDidUpdate(prevProps) { // The list of keys seen in the previous render let currentKeys = prevProps.items.map( - (n) => "grid-item-" + prevProps.itemsType + "/" + n.get("id")); + (n) => "grid-item-" + prevProps.itemsType + "/" + n.get("id") + ); // The latest list of keys that have been rendered const {itemsType} = this.props; let newKeys = this.props.items.map( - (n) => "grid-item-" + itemsType + "/" + n.get("id")); + (n) => "grid-item-" + itemsType + "/" + n.get("id") + ); - // Find which keys are new between the current set of keys and any new children passed to this component + // Find which keys are new between the current set of keys and any new + // children passed to this component let addKeys = immutableDiff(newKeys, currentKeys); - // Find which keys have been removed between the current set of keys and any new children passed to this component + // Find which keys have been removed between the current set of keys + // and any new children passed to this component let removeKeys = immutableDiff(currentKeys, newKeys); let iso = this.iso; - if (removeKeys.count() > 0) { + // Remove removed items + if (removeKeys.size > 0) { removeKeys.forEach(removeKey => iso.remove(document.getElementById(removeKey))); iso.arrange(); } - if (addKeys.count() > 0) { + // Add new items + if (addKeys.size > 0) { const itemsToAdd = addKeys.map((addKey) => document.getElementById(addKey)).toArray(); iso.addItems(itemsToAdd); iso.arrange(); @@ -187,13 +222,9 @@ export class Grid extends Component { } render () { - let gridItems = []; - const { itemsType, itemsLabel, subItemsType, subItemsLabel } = this.props; - this.props.items.forEach(function (item) { - gridItems.push(); - }); + // Handle loading let loading = null; - if (gridItems.length == 0 && this.props.isFetching) { + if (this.props.isFetching) { loading = (

@@ -203,9 +234,16 @@ export class Grid extends Component {

); } + + // Build grid items + let gridItems = []; + const { itemsType, itemsLabel, subItemsType, subItemsLabel } = this.props; + this.props.items.forEach(function (item) { + gridItems.push(); + }); + return (
- { loading }
{/* Sizing element */} @@ -214,11 +252,11 @@ export class Grid extends Component { { gridItems }
+ { loading }
); } } - Grid.propTypes = { isFetching: PropTypes.bool.isRequired, items: PropTypes.instanceOf(Immutable.List).isRequired, @@ -229,16 +267,29 @@ Grid.propTypes = { filterText: PropTypes.string }; + +/** + * Full grid with pagination and filtering input. + */ export default class FilterablePaginatedGrid extends Component { constructor (props) { super(props); + this.state = { - filterText: "" + filterText: "" // No filterText at init }; + // Bind this this.handleUserInput = this.handleUserInput.bind(this); } + /** + * Method called whenever the filter input is changed. + * + * Update the state accordingly. + * + * @param filterText Content of the filter input. + */ handleUserInput (filterText) { this.setState({ filterText: filterText diff --git a/app/components/elements/Pagination.jsx b/app/components/elements/Pagination.jsx index 58fd1a7..d8ba8aa 100644 --- a/app/components/elements/Pagination.jsx +++ b/app/components/elements/Pagination.jsx @@ -1,71 +1,90 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import { Link } from "react-router"; import CSSModules from "react-css-modules"; import { defineMessages, injectIntl, intlShape, FormattedMessage, FormattedHTMLMessage } from "react-intl"; -import { messagesMap } from "../../utils"; +// Local imports +import { computePaginationBounds, filterInt, messagesMap } from "../../utils"; + +// Translations import commonMessages from "../../locales/messagesDescriptors/common"; import messages from "../../locales/messagesDescriptors/elements/Pagination"; +// Styles import css from "../../styles/elements/Pagination.scss"; +// Define translations const paginationMessages = defineMessages(messagesMap(Array.concat([], commonMessages, messages))); + +/** + * Pagination button bar + */ class PaginationCSSIntl extends Component { - computePaginationBounds(currentPage, nPages, maxNumberPagesShown=5) { - // Taken from http://stackoverflow.com/a/8608998/2626416 - let lowerLimit = currentPage; - let upperLimit = currentPage; + constructor (props) { + super (props); - for (let b = 1; b < maxNumberPagesShown && b < nPages;) { - if (lowerLimit > 1 ) { - lowerLimit--; - b++; - } - if (b < maxNumberPagesShown && upperLimit < nPages) { - upperLimit++; - b++; - } - } - - return { - lowerLimit: lowerLimit, - upperLimit: upperLimit + 1 // +1 to ease iteration in for with < - }; + // Bind this + this.goToPage = this.goToPage.bind(this); + this.dotsOnClick = this.dotsOnClick.bind(this); + this.dotsOnKeyDown = this.dotsOnKeyDown.bind(this); + this.cancelModalBox = this.cancelModalBox.bind(this); } - goToPage(ev) { - ev.preventDefault(); - const pageNumber = parseInt(this.refs.pageInput.value); - $(this.refs.paginationModal).modal("hide"); - if (pageNumber) { + /** + * Handle click on the "go to page" button in the modal. + */ + goToPage(e) { + e.preventDefault(); + + // Parse and check page number + const pageNumber = filterInt(this.refs.pageInput.value); + if (pageNumber && !isNaN(pageNumber)) { + // Hide the modal and go to page + $(this.refs.paginationModal).modal("hide"); this.props.goToPage(pageNumber); } } + /** + * Handle click on the ellipsis dots. + */ dotsOnClick() { + // Show modal $(this.refs.paginationModal).modal(); } - dotsOnKeyDown(ev) { - ev.preventDefault; - const code = ev.keyCode || ev.which; + /** + * Bind key down events on ellipsis dots for a11y. + */ + dotsOnKeyDown(e) { + e.preventDefault; + const code = e.keyCode || e.which; if (code == 13 || code == 32) { // Enter or Space key this.dotsOnClick(); // Fire same event as onClick } } + /** + * Handle click on "cancel" in the modal box. + */ cancelModalBox() { + // Hide modal $(this.refs.paginationModal).modal("hide"); } render () { const { formatMessage } = this.props.intl; - const { lowerLimit, upperLimit } = this.computePaginationBounds(this.props.currentPage, this.props.nPages); + + // Get bounds + const { lowerLimit, upperLimit } = computePaginationBounds(this.props.currentPage, this.props.nPages); + // Store buttons let pagesButton = []; let key = 0; // key increment to ensure correct ordering + + // If lower limit is above 1, push 1 and ellipsis if (lowerLimit > 1) { - // Push first page pagesButton.push(
  • @@ -73,27 +92,28 @@ class PaginationCSSIntl extends Component {
  • ); - key++; + key++; // Always increment key after a push if (lowerLimit > 2) { // Eventually push "…" pagesButton.push(
  • - +
  • ); key++; } } + // Main buttons, between lower and upper limits for (let i = lowerLimit; i < upperLimit; i++) { - let className = "page-item"; + let classNames = ["page-item"]; let currentSpan = null; if (this.props.currentPage == i) { - className += " active"; + classNames.push("active"); currentSpan = (); } const title = formatMessage(paginationMessages["app.pagination.goToPageWithoutMarkup"], { pageNumber: i }); pagesButton.push( -
  • +
  • {currentSpan} @@ -102,12 +122,13 @@ class PaginationCSSIntl extends Component { ); key++; } + // If upper limit is below the total number of page, show last page button if (upperLimit < this.props.nPages) { if (upperLimit < this.props.nPages - 1) { // Eventually push "…" pagesButton.push(
  • - +
  • ); key++; @@ -122,6 +143,8 @@ class PaginationCSSIntl extends Component { ); } + + // If there are actually some buttons, show them if (pagesButton.length > 1) { return (
    @@ -140,15 +163,15 @@ class PaginationCSSIntl extends Component {
    -
    +
    - -
    @@ -161,7 +184,6 @@ class PaginationCSSIntl extends Component { return null; } } - PaginationCSSIntl.propTypes = { currentPage: PropTypes.number.isRequired, goToPage: PropTypes.func.isRequired, @@ -169,5 +191,4 @@ PaginationCSSIntl.propTypes = { nPages: PropTypes.number.isRequired, intl: intlShape.isRequired, }; - export default injectIntl(CSSModules(PaginationCSSIntl, css)); diff --git a/app/components/elements/WebPlayer.jsx b/app/components/elements/WebPlayer.jsx index 6aca72b..ae87a01 100644 --- a/app/components/elements/WebPlayer.jsx +++ b/app/components/elements/WebPlayer.jsx @@ -1,3 +1,4 @@ +// TODO: This file is to review import React, { Component, PropTypes } from "react"; import CSSModules from "react-css-modules"; import { defineMessages, injectIntl, intlShape, FormattedMessage } from "react-intl"; diff --git a/app/components/layouts/Sidebar.jsx b/app/components/layouts/Sidebar.jsx index e5b5d8f..dff0ba0 100644 --- a/app/components/layouts/Sidebar.jsx +++ b/app/components/layouts/Sidebar.jsx @@ -1,21 +1,34 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import { IndexLink, Link} from "react-router"; import CSSModules from "react-css-modules"; import { defineMessages, injectIntl, intlShape, FormattedMessage } from "react-intl"; +// Local imports import { messagesMap } from "../../utils"; + +// Other components +/* import WebPlayer from "../../views/WebPlayer"; TODO */ + +// Translations import commonMessages from "../../locales/messagesDescriptors/common"; import messages from "../../locales/messagesDescriptors/layouts/Sidebar"; -import WebPlayer from "../../views/WebPlayer"; - +// Styles import css from "../../styles/layouts/Sidebar.scss"; +// Define translations const sidebarLayoutMessages = defineMessages(messagesMap(Array.concat([], commonMessages, messages))); + +/** + * Sidebar layout component, putting children next to the sidebar menu. + */ class SidebarLayoutIntl extends Component { render () { const { formatMessage } = this.props.intl; + + // Check active links const isActive = { discover: (this.props.location.pathname == "/discover") ? "active" : "link", browse: (this.props.location.pathname == "/browse") ? "active" : "link", @@ -24,9 +37,12 @@ class SidebarLayoutIntl extends Component { songs: (this.props.location.pathname == "/songs") ? "active" : "link", search: (this.props.location.pathname == "/search") ? "active" : "link" }; + + // Hamburger collapsing function const collapseHamburger = function () { $("#main-navbar").collapse("hide"); }; + return (
    @@ -128,17 +144,9 @@ class SidebarLayoutIntl extends Component { -
  • - - - -   - - -
  • - + { /** TODO */ }
    @@ -149,11 +157,8 @@ class SidebarLayoutIntl extends Component { ); } } - - SidebarLayoutIntl.propTypes = { children: PropTypes.node, intl: intlShape.isRequired }; - export default injectIntl(CSSModules(SidebarLayoutIntl, css)); diff --git a/app/components/layouts/Simple.jsx b/app/components/layouts/Simple.jsx index 4430524..0568bb3 100644 --- a/app/components/layouts/Simple.jsx +++ b/app/components/layouts/Simple.jsx @@ -1,5 +1,10 @@ +// NPM imports import React, { Component } from "react"; + +/** + * Simple layout, meaning just enclosing children in a div. + */ export default class SimpleLayout extends Component { render () { return ( diff --git a/app/containers/App.jsx b/app/containers/App.jsx index fcc74a1..778f0c6 100644 --- a/app/containers/App.jsx +++ b/app/containers/App.jsx @@ -1,12 +1,15 @@ +/** + * Main container at the top of our application components tree. + * + * Just a div wrapper around children for now. + */ import React, { Component, PropTypes } from "react"; export default class App extends Component { render () { return (
    - {this.props.children && React.cloneElement(this.props.children, { - error: this.props.error - })} + {this.props.children}
    ); } diff --git a/app/containers/RequireAuthentication.js b/app/containers/RequireAuthentication.js index 8228a0a..7911786 100644 --- a/app/containers/RequireAuthentication.js +++ b/app/containers/RequireAuthentication.js @@ -1,18 +1,31 @@ +/** + * Container wrapping elements neeeding a valid session. Automatically + * redirects to login form in case such session does not exist. + */ import React, { Component, PropTypes } from "react"; import { connect } from "react-redux"; -// TODO: Handle expired session + export class RequireAuthentication extends Component { componentWillMount () { + // Check authentication on mount this.checkAuth(this.props.isAuthenticated); } componentWillUpdate (newProps) { + // Check authentication on update this.checkAuth(newProps.isAuthenticated); } + /** + * Handle redirection in case user is not authenticated. + * + * @param isAuthenticated A boolean stating whether user has a valid + * session or not. + */ checkAuth (isAuthenticated) { if (!isAuthenticated) { + // Redirect to login, redirecting to the actual page after login. this.context.router.replace({ pathname: "/login", state: { @@ -26,10 +39,10 @@ export class RequireAuthentication extends Component { render () { return (
    - {this.props.isAuthenticated === true - ? this.props.children - : null - } + {this.props.isAuthenticated === true + ? this.props.children + : null + }
    ); } diff --git a/app/containers/Root.jsx b/app/containers/Root.jsx index 2fff9ba..9def431 100644 --- a/app/containers/Root.jsx +++ b/app/containers/Root.jsx @@ -1,3 +1,6 @@ +/** + * Root component to render, setting locale, messages, Router and Store. + */ import React, { Component, PropTypes } from "react"; import { Provider } from "react-redux"; import { Router } from "react-router"; diff --git a/app/locales/en-US/index.js b/app/locales/en-US/index.js index b8a7c7f..83fc8db 100644 --- a/app/locales/en-US/index.js +++ b/app/locales/en-US/index.js @@ -39,7 +39,6 @@ module.exports = { "app.sidebarLayout.home": "Home", // Home "app.sidebarLayout.logout": "Logout", // Logout "app.sidebarLayout.mainNavigationMenu": "Main navigation menu", // ARIA label for the main navigation menu - "app.sidebarLayout.search": "Search", // Search "app.sidebarLayout.settings": "Settings", // Settings "app.sidebarLayout.toggleNavigation": "Toggle navigation", // Screen reader description of toggle navigation button "app.songs.genre": "Genre", // Genre (song) diff --git a/app/locales/fr-FR/index.js b/app/locales/fr-FR/index.js index 9abb420..6059f79 100644 --- a/app/locales/fr-FR/index.js +++ b/app/locales/fr-FR/index.js @@ -39,7 +39,6 @@ module.exports = { "app.sidebarLayout.home": "Accueil", // Home "app.sidebarLayout.logout": "Déconnexion", // Logout "app.sidebarLayout.mainNavigationMenu": "Menu principal", // ARIA label for the main navigation menu - "app.sidebarLayout.search": "Rechercher", // Search "app.sidebarLayout.settings": "Préférences", // Settings "app.sidebarLayout.toggleNavigation": "Afficher le menu", // Screen reader description of toggle navigation button "app.songs.genre": "Genre", // Genre (song) diff --git a/app/locales/index.js b/app/locales/index.js index b0156a2..c59352b 100644 --- a/app/locales/index.js +++ b/app/locales/index.js @@ -1,3 +1,4 @@ +// Export all the existing locales module.exports = { "en-US": require("./en-US"), "fr-FR": require("./fr-FR") diff --git a/app/locales/messagesDescriptors/layouts/Sidebar.js b/app/locales/messagesDescriptors/layouts/Sidebar.js index ef7916e..29d2873 100644 --- a/app/locales/messagesDescriptors/layouts/Sidebar.js +++ b/app/locales/messagesDescriptors/layouts/Sidebar.js @@ -44,11 +44,6 @@ const messages = [ description: "Browse songs", defaultMessage: "Browse songs" }, - { - id: "app.sidebarLayout.search", - description: "Search", - defaultMessage: "Search" - }, { id: "app.sidebarLayout.toggleNavigation", description: "Screen reader description of toggle navigation button", diff --git a/app/middleware/api.js b/app/middleware/api.js index f28fdef..8b4f45e 100644 --- a/app/middleware/api.js +++ b/app/middleware/api.js @@ -1,3 +1,9 @@ +/** + * Redux middleware to perform API queries. + * + * This middleware catches the API requests and replaces them with API + * responses. + */ import fetch from "isomorphic-fetch"; import humps from "humps"; import X2JS from "x2js"; @@ -10,9 +16,19 @@ import { loginUserExpired } from "../actions/auth"; export const API_VERSION = 350001; /** API version to use. */ export const BASE_API_PATH = "/server/xml.server.php"; /** Base API path after endpoint. */ +// Action key that carries API call info interpreted by this Redux middleware. +export const CALL_API = "CALL_API"; + // Error class to represents errors from these actions. class APIError extends Error {} + +/** + * Check the HTTP status of the response. + * + * @param response A XHR response object. + * @return The response or a rejected Promise if the check failed. + */ function _checkHTTPStatus (response) { if (response.status >= 200 && response.status < 300) { return response; @@ -21,10 +37,17 @@ function _checkHTTPStatus (response) { } } + +/** + * Parse the XML resulting from the API to JS object. + * + * @param responseText The text from the API response. + * @return The response as a JS object or a rejected Promise on error. + */ function _parseToJSON (responseText) { let x2js = new X2JS({ - attributePrefix: "", - keepCData: false + attributePrefix: "", // No prefix for attributes + keepCData: false // Do not store __cdata and toString functions }); if (responseText) { return x2js.xml_str2json(responseText).root; @@ -35,6 +58,13 @@ function _parseToJSON (responseText) { })); } + +/** + * Check the errors returned by the API itself, in its response. + * + * @param jsonData A JS object representing the API response. + * @return The input data or a rejected Promise if errors are present. + */ function _checkAPIErrors (jsonData) { if (jsonData.error) { return Promise.reject(jsonData.error); @@ -48,7 +78,15 @@ function _checkAPIErrors (jsonData) { return jsonData; } + +/** + * Apply some fixes on the API data. + * + * @param jsonData A JS object representing the API response. + * @return A fixed JS object. + */ function _uglyFixes (jsonData) { + // Fix songs array let _uglyFixesSongs = function (songs) { return songs.map(function (song) { // Fix for cdata left in artist and album @@ -58,9 +96,10 @@ function _uglyFixes (jsonData) { }); }; + // Fix albums array let _uglyFixesAlbums = function (albums) { return albums.map(function (album) { - // TODO + // TODO: Should go in Ampache core // Fix for absence of distinction between disks in the same album if (album.disk > 1) { album.name = album.name + " [Disk " + album.disk + "]"; @@ -75,13 +114,14 @@ function _uglyFixes (jsonData) { album.tracks = [album.tracks]; } - // Fix tracks + // Fix tracks array album.tracks = _uglyFixesSongs(album.tracks); } return album; }); }; + // Fix artists array let _uglyFixesArtists = function (artists) { return artists.map(function (artist) { // Move albums one node top @@ -131,17 +171,15 @@ function _uglyFixes (jsonData) { // Fix albums if (jsonData.album) { - // Fix albums jsonData.album = _uglyFixesAlbums(jsonData.album); } // Fix songs if (jsonData.song) { - // Fix songs jsonData.song = _uglyFixesSongs(jsonData.song); } - // TODO + // TODO: Should go in Ampache core // Add sessionExpire information if (!jsonData.sessionExpire) { // Fix for Ampache not returning updated sessionExpire @@ -151,17 +189,31 @@ function _uglyFixes (jsonData) { return jsonData; } -// Fetches an API response and normalizes the result JSON according to schema. -// This makes every API response have the same shape, regardless of how nested it was. + +/** + * Fetches an API response and normalizes the result. + * + * @param endpoint Base URL of your Ampache server. + * @param action API action name. + * @param auth API token to use. + * @param username Username to use in the API. + * @param extraParams An object of extra parameters to pass to the API. + * + * @return A fetching Promise. + */ function doAPICall (endpoint, action, auth, username, extraParams) { + // Translate the API action to real API action const APIAction = extraParams.filter ? action.rstrip("s") : action; + // Set base params const baseParams = { version: API_VERSION, action: APIAction, auth: auth, user: username }; + // Extend with extraParams const params = Object.assign({}, baseParams, extraParams); + // Assemble the full URL with endpoint, API path and GET params const fullURL = assembleURLAndParams(endpoint + BASE_API_PATH, params); return fetch(fullURL, { @@ -175,19 +227,19 @@ function doAPICall (endpoint, action, auth, username, extraParams) { .then(_uglyFixes); } -// Action key that carries API call info interpreted by this Redux middleware. -export const CALL_API = "CALL_API"; -// A Redux middleware that interprets actions with CALL_API info specified. -// Performs the call and promises when such actions are dispatched. +/** + * A Redux middleware that interprets actions with CALL_API info specified. + * Performs the call and promises when such actions are dispatched. + */ export default store => next => reduxAction => { if (reduxAction.type !== CALL_API) { - // Do not apply on every action + // Do not apply on other actions return next(reduxAction); } + // Check payload const { endpoint, action, auth, username, dispatch, extraParams } = reduxAction.payload; - if (!endpoint || typeof endpoint !== "string") { throw new APIError("Specify a string endpoint URL."); } @@ -207,22 +259,27 @@ export default store => next => reduxAction => { throw new APIError("Expected action to dispatch to be functions or null."); } + // Get the actions to dispatch const [ requestDispatch, successDispatch, failureDispatch ] = dispatch; if (requestDispatch) { + // Dispatch request action if needed store.dispatch(requestDispatch()); } + // Run the API call return doAPICall(endpoint, action, auth, username, extraParams).then( response => { if (successDispatch) { + // Dispatch success if needed store.dispatch(successDispatch(response)); } }, error => { if (failureDispatch) { - const errorMessage = error.__cdata + " (" + error._code + ")"; - // Error object from the API + // Error object from the API (in the JS object) if (error._code && error.__cdata) { + // Format the error message + const errorMessage = error.__cdata + " (" + error._code + ")"; if (401 == error._code) { // This is an error meaning no valid session was // passed. We must perform a new handshake. diff --git a/app/models/api.js b/app/models/api.js index 4d43c43..648c62f 100644 --- a/app/models/api.js +++ b/app/models/api.js @@ -1,22 +1,28 @@ +/** + * This file defines API related models. + */ + +// NPM imports import { Schema, arrayOf } from "normalizr"; -export const artist = new Schema("artist"); -export const album = new Schema("album"); -export const track = new Schema("track"); -export const tag = new Schema("tag"); -artist.define({ +// Define normalizr schemas for major entities returned by the API +export const artist = new Schema("artist"); /** Artist schema */ +export const album = new Schema("album"); /** Album schema */ +export const song = new Schema("song"); /** Song schema */ + +// Explicit relations between them +artist.define({ // Artist has albums and songs (tracks) albums: arrayOf(album), - songs: arrayOf(track) + songs: arrayOf(song) }); -album.define({ +album.define({ // Album has artist, tracks and tags artist: artist, - tracks: arrayOf(track), - tag: arrayOf(tag) + tracks: arrayOf(song) }); -track.define({ +song.define({ // Track has artist and album artist: artist, album: album }); diff --git a/app/models/auth.js b/app/models/auth.js index 88b01ca..f6a0585 100644 --- a/app/models/auth.js +++ b/app/models/auth.js @@ -1,18 +1,27 @@ +/** + * This file defines authentication related models. + */ + +// NPM imports import Immutable from "immutable"; + +/** Record to store token parameters */ export const tokenRecord = Immutable.Record({ - token: null, - expires: null + token: null, /** Token string */ + expires: null /** Token expiration date */ }); + +/** Record to store the full auth state */ export const stateRecord = new Immutable.Record({ - token: tokenRecord, - username: null, - endpoint: null, - rememberMe: false, - isAuthenticated: false, - isAuthenticating: false, - error: null, - info: null, - timerID: null + token: new tokenRecord(), /** Auth token */ + username: null, /** Username */ + endpoint: null, /** Ampache server base URL */ + rememberMe: false, /** Whether to remember me or not */ + isAuthenticated: false, /** Whether authentication is ok or not */ + isAuthenticating: false, /** Whether authentication is in progress or not */ + error: null, /** An error string */ + info: null, /** An info string */ + timerID: null /** Timer ID for setInterval calls to revive API session */ }); diff --git a/app/models/entities.js b/app/models/entities.js new file mode 100644 index 0000000..bc789b2 --- /dev/null +++ b/app/models/entities.js @@ -0,0 +1,22 @@ +/** + * This file defines entities storage models. + */ + +// NPM imports +import Immutable from "immutable"; + +/** Record to store the shared entities. */ +export const stateRecord = new Immutable.Record({ + isFetching: false, /** Whether API fetching is in progress */ + error: null, /** An error string */ + refCounts: new Immutable.Map({ + album: new Immutable.Map(), + artist: new Immutable.Map(), + song: new Immutable.Map() + }), /** Map of id => reference count for each object type (garbage collection) */ + entities: new Immutable.Map({ + album: new Immutable.Map(), + artist: new Immutable.Map(), + song: new Immutable.Map() + }) /** Map of id => entity for each object type */ +}); diff --git a/app/models/i18n.js b/app/models/i18n.js index 61b4458..9be6c05 100644 --- a/app/models/i18n.js +++ b/app/models/i18n.js @@ -1,6 +1,12 @@ +/** + * This file defines i18n related models. + */ + +// NPM import import Immutable from "immutable"; +/** i18n record for passing errors to be localized from actions to components */ export const i18nRecord = new Immutable.Record({ - id: null, - values: new Immutable.Map() + id: null, /** Translation message id */ + values: new Immutable.Map() /** Values to pass to formatMessage */ }); diff --git a/app/models/paginate.js b/app/models/paginate.js deleted file mode 100644 index 805e553..0000000 --- a/app/models/paginate.js +++ /dev/null @@ -1,10 +0,0 @@ -import Immutable from "immutable"; - -export const stateRecord = new Immutable.Record({ - isFetching: false, - result: new Immutable.Map(), - entities: new Immutable.Map(), - error: null, - currentPage: 1, - nPages: 1 -}); diff --git a/app/models/paginated.js b/app/models/paginated.js new file mode 100644 index 0000000..32aaa8d --- /dev/null +++ b/app/models/paginated.js @@ -0,0 +1,10 @@ +// NPM import +import Immutable from "immutable"; + +/** Record to store the paginated pages state. */ +export const stateRecord = new Immutable.Record({ + type: null, /** Type of the paginated entries */ + result: new Immutable.List(), /** List of IDs of the resulting entries, maps to the entities store */ + currentPage: 1, /** Number of current page */ + nPages: 1 /** Total number of page in this batch */ +}); diff --git a/app/models/webplayer.js b/app/models/webplayer.js index 56c2caa..a9614ba 100644 --- a/app/models/webplayer.js +++ b/app/models/webplayer.js @@ -1,17 +1,18 @@ +/** + * This file defines authentication related models. + */ + +// NPM imports import Immutable from "immutable"; -export const entitiesRecord = new Immutable.Record({ - artists: new Immutable.Map(), - albums: new Immutable.Map(), - tracks: new Immutable.Map() -}); +/** Record to store the webplayer state. */ export const stateRecord = new Immutable.Record({ - isPlaying: false, - isRandom: false, - isRepeat: false, - isMute: false, - currentIndex: 0, - playlist: new Immutable.List(), - entities: new entitiesRecord() + isPlaying: false, /** Whether webplayer is playing */ + isRandom: false, /** Whether random mode is on */ + isRepeat: false, /** Whether repeat mode is on */ + isMute: false, /** Whether sound is muted or not */ + volume: 100, /** Current volume, between 0 and 100 */ + currentIndex: 0, /** Current index in the playlist */ + playlist: new Immutable.List() /** List of songs IDs, references songs in the entities store */ }); diff --git a/app/reducers/auth.js b/app/reducers/auth.js index 7134d91..dc8fdc3 100644 --- a/app/reducers/auth.js +++ b/app/reducers/auth.js @@ -1,15 +1,31 @@ +/** + * This implements the auth reducer, storing and updating authentication state. + */ + +// NPM imports import Cookies from "js-cookie"; -import { LOGIN_USER_REQUEST, LOGIN_USER_SUCCESS, LOGIN_USER_FAILURE, LOGIN_USER_EXPIRED, LOGOUT_USER } from "../actions"; +// Local imports import { createReducer } from "../utils"; + +// Models import { i18nRecord } from "../models/i18n"; import { tokenRecord, stateRecord } from "../models/auth"; -/** - * Initial state - */ +// Actions +import { + LOGIN_USER_REQUEST, + LOGIN_USER_SUCCESS, + LOGIN_USER_FAILURE, + LOGIN_USER_EXPIRED, + LOGOUT_USER } from "../actions"; + +/** + * Initial state, load data from cookies if set + */ var initialState = new stateRecord(); +// Get token const initialToken = Cookies.getJSON("token"); if (initialToken) { initialToken.expires = new Date(initialToken.expires); @@ -18,6 +34,7 @@ if (initialToken) { new tokenRecord({ token: initialToken.token, expires: new Date(initialToken.expires) }) ); } +// Get username const initialUsername = Cookies.get("username"); if (initialUsername) { initialState = initialState.set( @@ -25,6 +42,7 @@ if (initialUsername) { initialUsername ); } +// Get endpoint const initialEndpoint = Cookies.get("endpoint"); if (initialEndpoint) { initialState = initialState.set( @@ -32,6 +50,7 @@ if (initialEndpoint) { initialEndpoint ); } +// Set remember me if (initialUsername && initialEndpoint) { initialState = initialState.set( "rememberMe", @@ -39,10 +58,10 @@ if (initialUsername && initialEndpoint) { ); } + /** * Reducers */ - export default createReducer(initialState, { [LOGIN_USER_REQUEST]: () => { return new stateRecord({ diff --git a/app/reducers/entities.js b/app/reducers/entities.js new file mode 100644 index 0000000..c7e68eb --- /dev/null +++ b/app/reducers/entities.js @@ -0,0 +1,211 @@ +/** + * This implements the global entities reducer. + */ + +// NPM imports +import Immutable from "immutable"; + +// Local imports +import { createReducer } from "../utils"; + +// Models +import { stateRecord } from "../models/entities"; + +// Actions +import { + API_REQUEST, + API_FAILURE, + PUSH_ENTITIES, + INCREMENT_REFCOUNT, + DECREMENT_REFCOUNT, + INVALIDATE_STORE +} from "../actions"; + + +/** + * Helper methods + */ + +/** + * Update the reference counter for a given item. + * + * Do not do any garbage collection. + * + * @param state The state object to update. + * @param keyPath The keyPath to update, from the refCount key. + * @param incr The increment (or decrement) for the reference counter. + * + * @return An updated state. + */ +function updateRefCount(state, keyPath, incr) { + // Prepend refCounts to keyPath + const refCountKeyPath = Array.concat(["refCounts"], keyPath); + // Get updated value + let newRefCount = state.getIn(refCountKeyPath) + incr; + if (isNaN(newRefCount)) { + // If NaN, reference does not exist, so set it to ±1 + newRefCount = Math.sign(incr); + } + // Update state + return state.setIn(refCountKeyPath, newRefCount); +} + + +/** + * Update the reference counter of a given entity, taking into account the + * nested objects. + * + * Do not do any garbage collection. + * + * @param state The state object to update. + * @param itemName The type of the entity object. + * @param id The id of the entity. + * @param entity The entity object, as Immutable. + * @param incr The increment (or decrement) for the reference counter. + * + * @return An updated state. + */ +function updateEntityRefCount(state, itemName, id, entity, incr) { + let newState = state; + let albums = null; + let tracks = null; + switch (itemName) { + case "artist": + // Update artist refCount + newState = updateRefCount(newState, ["artist", id], incr); + // Update nested albums refCount + albums = entity.get("albums"); + if (Immutable.List.isList(albums)) { + albums.forEach(function (id) { + newState = updateRefCount(newState, ["album", id], incr); + }); + } + // Update nested tracks refCount + tracks = entity.get("songs"); + if (Immutable.List.isList(tracks)) { + tracks.forEach(function (id) { + newState = updateRefCount(newState, ["song", id], incr); + }); + } + break; + case "album": + // Update album refCount + newState = updateRefCount(newState, ["album", id], incr); + // Update nested artist refCount + newState = updateRefCount(newState, ["artist", entity.get("artist")], incr); + // Update nested tracks refCount + tracks = entity.get("tracks"); + if (Immutable.List.isList(tracks)) { + tracks.forEach(function (id) { + newState = updateRefCount(newState, ["song", id], incr); + }); + } + break; + case "song": + // Update track refCount + newState = updateRefCount(newState, ["song", id], incr); + // Update nested artist refCount + newState = updateRefCount(newState, ["artist", entity.get("artist")], incr); + // Update nested album refCount + newState = updateRefCount(newState, ["album", entity.get("album")], incr); + break; + default: + // Just update the entity, no nested entities + newState = updateRefCount(newState, [itemName, id], incr); + break; + } + return newState; +} + + +/** + * + */ +function garbageCollection(state) { + let newState = state; + state.refCounts.forEach(function (refCounts, itemName) { + refCounts.forEach(function (refCount, id) { + if (refCount < 1) { + // Garbage collection + newState = newState.deleteIn(["entities", itemName, id]); + newState = newState.deleteIn(["refCounts", itemName, id]); + } + }); + }); + return newState; +} + + +/** + * Initial state + */ +var initialState = new stateRecord(); + + +/** + * Reducer + */ +export default createReducer(initialState, { + [API_REQUEST]: (state) => { + return ( + state + .set("isFetching", true) + .set("error", null) + ); + }, + [API_FAILURE]: (state, payload) => { + return ( + state + .set("isFetching", false) + .set("error", payload.error) + ); + }, + [PUSH_ENTITIES]: (state, payload) => { + let newState = state; + + // Unset error and isFetching + newState = state.set("isFetching", false).set("error", payload.error); + + // Merge entities + newState = newState.mergeIn(["entities"], payload.entities); + + // Increment reference counter + payload.refCountType.forEach(function (itemName) { + newState.getIn(["entities", itemName]).forEach(function (entity, id) { + newState = updateEntityRefCount(newState, itemName, id, entity, 1); + }); + }); + + return newState; + }, + [INCREMENT_REFCOUNT]: (state, payload) => { + let newState = state; + + // Increment reference counter + for (let itemName in payload.entities) { + newState.getIn(["entities", itemName]).forEach(function (entity, id) { + newState = updateEntityRefCount(newState, itemName, id, entity, 1); + }); + } + + return newState; + }, + [DECREMENT_REFCOUNT]: (state, payload) => { + let newState = state; + + // Decrement reference counter + for (let itemName in payload.entities) { + newState.getIn(["entities", itemName]).forEach(function (entity, id) { + newState = updateEntityRefCount(newState, itemName, id, entity, -1); + }); + } + + // Perform garbage collection + newState = garbageCollection(newState); + + return newState; + }, + [INVALIDATE_STORE]: () => { + return new stateRecord(); + } +}); diff --git a/app/reducers/index.js b/app/reducers/index.js index 76525cc..1f7dc0c 100644 --- a/app/reducers/index.js +++ b/app/reducers/index.js @@ -1,24 +1,32 @@ +/** + * + */ + +// NPM imports import { routerReducer as routing } from "react-router-redux"; import { combineReducers } from "redux"; +// Import all the available reducers import auth from "./auth"; -import paginate from "./paginate"; +import entities from "./entities"; +import paginatedMaker from "./paginated"; import webplayer from "./webplayer"; +// Actions import * as ActionTypes from "../actions"; -// Updates the pagination data for different actions. -const api = paginate([ +// Build paginated reducer +const paginated = paginatedMaker([ ActionTypes.API_REQUEST, ActionTypes.API_SUCCESS, ActionTypes.API_FAILURE ]); -const rootReducer = combineReducers({ +// Export the combined reducers +export default combineReducers({ routing, auth, - api, + entities, + paginated, webplayer }); - -export default rootReducer; diff --git a/app/reducers/paginate.js b/app/reducers/paginated.js similarity index 54% rename from app/reducers/paginate.js rename to app/reducers/paginated.js index facc813..34ad971 100644 --- a/app/reducers/paginate.js +++ b/app/reducers/paginated.js @@ -1,14 +1,29 @@ +/** + * This implements a wrapper to create reducers for paginated content. + */ + +// NPM imports import Immutable from "immutable"; +// Local imports import { createReducer } from "../utils"; -import { stateRecord } from "../models/paginate"; -import { INVALIDATE_STORE } from "../actions"; +// Models +import { stateRecord } from "../models/paginated"; + +// Actions +import { CLEAR_RESULTS, INVALIDATE_STORE } from "../actions"; + + +/** Initial state of the reducer */ const initialState = new stateRecord(); -// Creates a reducer managing pagination, given the action types to handle, -// and a function telling how to extract the key from an action. -export default function paginate(types) { + +/** + * Creates a reducer managing pagination, given the action types to handle. + */ +export default function paginated(types) { + // Check parameters if (!Array.isArray(types) || types.length !== 3) { throw new Error("Expected types to be an array of three elements."); } @@ -18,33 +33,28 @@ export default function paginate(types) { const [ requestType, successType, failureType ] = types; + // Create reducer return createReducer(initialState, { [requestType]: (state) => { - return ( - state - .set("isFetching", true) - .set("error", null) - ); + return state; }, [successType]: (state, payload) => { return ( state - .set("isFetching", false) + .set("type", payload.type) .set("result", Immutable.fromJS(payload.result)) - .set("entities", Immutable.fromJS(payload.entities)) - .set("error", null) .set("nPages", payload.nPages) .set("currentPage", payload.currentPage) ); }, - [failureType]: (state, payload) => { - return ( - state - .set("isFetching", false) - .set("error", payload.error) - ); + [failureType]: (state) => { + return state; + }, + [CLEAR_RESULTS]: (state) => { + return state.set("result", new Immutable.List()); }, [INVALIDATE_STORE]: () => { + // Reset state on invalidation return new stateRecord(); } }); diff --git a/app/reducers/webplayer.js b/app/reducers/webplayer.js index c2dee85..63f54c9 100644 --- a/app/reducers/webplayer.js +++ b/app/reducers/webplayer.js @@ -1,3 +1,4 @@ +// TODO: This is a WIP import Immutable from "immutable"; import { diff --git a/app/routes.js b/app/routes.js index 0732ef2..41a39bb 100644 --- a/app/routes.js +++ b/app/routes.js @@ -1,3 +1,6 @@ +/** + * Routes for the React app. + */ import React from "react"; import { IndexRoute, Route } from "react-router"; @@ -17,13 +20,13 @@ import ArtistPage from "./views/ArtistPage"; import AlbumPage from "./views/AlbumPage"; export default ( - - + // Main container is App + // Login is a SimpleLayout - + // All the rest is a SidebarLayout - + // And some pages require authentication diff --git a/app/store/configureStore.development.js b/app/store/configureStore.development.js index 271cca6..8a24c06 100644 --- a/app/store/configureStore.development.js +++ b/app/store/configureStore.development.js @@ -7,6 +7,7 @@ import createLogger from "redux-logger"; import rootReducer from "../reducers"; import apiMiddleware from "../middleware/api"; +// Use history and log everything during dev const historyMiddleware = routerMiddleware(hashHistory); const loggerMiddleware = createLogger(); diff --git a/app/store/configureStore.js b/app/store/configureStore.js index d159ada..61f70be 100644 --- a/app/store/configureStore.js +++ b/app/store/configureStore.js @@ -1,3 +1,6 @@ +/** + * Store configuration + */ if (process.env.NODE_ENV === "production") { module.exports = require("./configureStore.production.js"); } else { diff --git a/app/store/configureStore.production.js b/app/store/configureStore.production.js index d74d119..2f6c26b 100644 --- a/app/store/configureStore.production.js +++ b/app/store/configureStore.production.js @@ -6,6 +6,7 @@ import thunkMiddleware from "redux-thunk"; import rootReducer from "../reducers"; import apiMiddleware from "../middleware/api"; +// Use history const historyMiddleware = routerMiddleware(hashHistory); export default function configureStore(preloadedState) { diff --git a/app/styles/Album.scss b/app/styles/Album.scss index 473e2b4..6a95c1b 100644 --- a/app/styles/Album.scss +++ b/app/styles/Album.scss @@ -1,18 +1,36 @@ +/** + * Album component style. + */ + +/** Variables */ $rowMarginTop: 30px; $rowMarginBottom: 10px; +$artMarginBottom: 10px; +/* Style for an album row */ .row { margin-top: $rowMarginTop; } +/* Style for album arts */ .art { - composes: art from "./elements/Grid.scss"; + display: inline-block; + margin-bottom: $artMarginBottom; + width: 75%; + height: auto; + + /* doiuse-disable viewport-units */ + + max-width: 25vw; + + /* doiuse-enable viewport-units */ } .art:hover { - cursor: initial; + transform: scale(1.1); } +/* Play button is based on the one in Songs list. */ .play { composes: play from "./Songs.scss"; } diff --git a/app/styles/Artist.scss b/app/styles/Artist.scss index b3616ea..f85c77e 100644 --- a/app/styles/Artist.scss +++ b/app/styles/Artist.scss @@ -1,3 +1,10 @@ +/** + * Styles for Artist component. + */ + +/** Variables */ +$artMarginBottom: 10px; + .name > h1 { margin-bottom: 0; } @@ -7,5 +14,18 @@ } .art { - composes: art from "./elements/Grid.scss"; + display: inline-block; + margin-bottom: $artMarginBottom; + width: 75%; + height: auto; + + /* doiuse-disable viewport-units */ + + max-width: 25vw; + + /* doiuse-enable viewport-units */ +} + +.art:hover { + transform: scale(1.1); } diff --git a/app/styles/Discover.scss b/app/styles/Discover.scss index 350c8dc..0d640e8 100644 --- a/app/styles/Discover.scss +++ b/app/styles/Discover.scss @@ -1,3 +1,9 @@ +/** + * Style for Discover component. + */ + +// TODO: Fix this style + .noMarginTop { margin-top: 0; } diff --git a/app/styles/Login.scss b/app/styles/Login.scss index 02de16f..440fcf2 100644 --- a/app/styles/Login.scss +++ b/app/styles/Login.scss @@ -1,3 +1,8 @@ +/** + * Style for Login component. + */ + +/** Variables */ $titleImage-size: $font-size-h1 + 10px; .titleImage { diff --git a/app/styles/Songs.scss b/app/styles/Songs.scss index d20989c..590081d 100644 --- a/app/styles/Songs.scss +++ b/app/styles/Songs.scss @@ -1,3 +1,6 @@ +/** + * Style for Songs component. + */ .play { background-color: transparent; border: none; diff --git a/app/styles/elements/FilterBar.scss b/app/styles/elements/FilterBar.scss index 28cf149..9978c3c 100644 --- a/app/styles/elements/FilterBar.scss +++ b/app/styles/elements/FilterBar.scss @@ -1,3 +1,8 @@ +/** + * Styles for the FilterBar component. + */ + +/** Variables */ $marginBottom: 34px; .filter { diff --git a/app/styles/elements/Grid.scss b/app/styles/elements/Grid.scss index 09439df..ceb4d05 100644 --- a/app/styles/elements/Grid.scss +++ b/app/styles/elements/Grid.scss @@ -1,3 +1,8 @@ +/** + * Style for the Grid component. + */ + +/** Variables */ $marginBottom: 30px; $artMarginBottom: 10px; diff --git a/app/styles/elements/Pagination.scss b/app/styles/elements/Pagination.scss index 00a83bc..9c6d5e0 100644 --- a/app/styles/elements/Pagination.scss +++ b/app/styles/elements/Pagination.scss @@ -1,3 +1,6 @@ +/** + * Styles for the Pagination component. + */ .nav { text-align: center; } diff --git a/app/styles/elements/WebPlayer.scss b/app/styles/elements/WebPlayer.scss index c27242f..6ddc009 100644 --- a/app/styles/elements/WebPlayer.scss +++ b/app/styles/elements/WebPlayer.scss @@ -1,3 +1,8 @@ +/** + * Styles for the WebPlayer component. + */ + +/** Variables */ $controlsMarginTop: 10px; .webplayer { diff --git a/app/styles/layouts/Sidebar.scss b/app/styles/layouts/Sidebar.scss index 262210c..4c7d46f 100644 --- a/app/styles/layouts/Sidebar.scss +++ b/app/styles/layouts/Sidebar.scss @@ -1,3 +1,8 @@ +/** + * Styles for Sidebar layout component. + */ + +/** Variables */ $background: #333; $hoverBackground: #222; $activeBackground: $hoverBackground; diff --git a/app/styles/variables.scss b/app/styles/variables.scss index 99c681d..46d3595 100644 --- a/app/styles/variables.scss +++ b/app/styles/variables.scss @@ -1,6 +1,10 @@ -// Make variables and mixins available when using CSS modules. +/** + * Global variables used across all CSS modules. + */ + +/* Make Bootstrap variables and mixins available when using CSS modules. */ @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables"; @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_mixins"; -$blue: #3e90fa; -$orange: #faa83e; +$blue: #3e90fa; // Blue color from the logo +$orange: #faa83e; // Orange color from the logo diff --git a/app/utils/ampache.js b/app/utils/ampache.js new file mode 100644 index 0000000..be43277 --- /dev/null +++ b/app/utils/ampache.js @@ -0,0 +1,32 @@ +/** + * Collection of helper function that are Ampache specific. + */ + +// NPM imports +import jsSHA from "jssha"; + + +/** + * Build an HMAC token for authentication against Ampache API. + * + * @param password User password to derive HMAC from. + * @return An object with the generated HMAC and time used. + * + * @remark This builds an HMAC as expected by Ampache API, which is not a + * standard HMAC. + */ +export function buildHMAC (password) { + const time = Math.floor(Date.now() / 1000); + + let shaObj = new jsSHA("SHA-256", "TEXT"); + shaObj.update(password); + const key = shaObj.getHash("HEX"); + + shaObj = new jsSHA("SHA-256", "TEXT"); + shaObj.update(time + key); + + return { + time: time, + passphrase: shaObj.getHash("HEX") + }; +} diff --git a/app/utils/common/array.js b/app/utils/common/array.js deleted file mode 100644 index 86fff97..0000000 --- a/app/utils/common/array.js +++ /dev/null @@ -1,3 +0,0 @@ -Array.prototype.diff = function (a) { - return this.filter(function (i) {return a.indexOf(i) < 0;}); -}; diff --git a/app/utils/common/index.js b/app/utils/common/index.js deleted file mode 100644 index 1d9ca85..0000000 --- a/app/utils/common/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./array"; -export * from "./jquery"; -export * from "./string"; diff --git a/app/utils/immutable.js b/app/utils/immutable.js index 635d2ae..8c536cb 100644 --- a/app/utils/immutable.js +++ b/app/utils/immutable.js @@ -1,3 +1,15 @@ +/** + * Collection of helper function to act on Immutable objects. + */ + + +/** + * Diff two immutables objects supporting the filter method. + * + * @param a First Immutable object. + * @param b Second Immutable object. + * @returns An Immutable object equal to a except for the items in b. + */ export function immutableDiff (a, b) { return a.filter(function (i) { return b.indexOf(i) < 0; diff --git a/app/utils/index.js b/app/utils/index.js index 2e1a76f..2bd4824 100644 --- a/app/utils/index.js +++ b/app/utils/index.js @@ -1,3 +1,7 @@ +/** + * Collection of utility functions and helpers. + */ +export * from "./ampache"; export * from "./immutable"; export * from "./locale"; export * from "./misc"; diff --git a/app/utils/locale.js b/app/utils/locale.js index 86f28b6..de1f555 100644 --- a/app/utils/locale.js +++ b/app/utils/locale.js @@ -1,10 +1,17 @@ +/** + * Collection of helper functions to deal with localization. + */ import { i18nRecord } from "../models/i18n"; +/** + * Get the preferred locales from the browser, as an array sorted by preferences. + */ export function getBrowserLocales () { - let langs; + let langs = []; if (navigator.languages) { - // chrome does not currently set navigator.language correctly https://code.google.com/p/chromium/issues/detail?id=101138 + // Chrome does not currently set navigator.language correctly + // https://code.google.com/p/chromium/issues/detail?id=101138 // but it does set the first element of navigator.languages correctly langs = navigator.languages; } else if (navigator.userLanguage) { @@ -24,6 +31,10 @@ export function getBrowserLocales () { return locales; } + +/** + * Convert an array of messagesDescriptors to a map. + */ export function messagesMap(messagesDescriptorsArray) { let messagesDescriptorsMap = {}; @@ -35,9 +46,25 @@ export function messagesMap(messagesDescriptorsArray) { } +/** + * Format an error message from the state. + * + * Error message can be either an i18nRecord, which is to be formatted, or a + * raw string. This function performs the check and returns the correctly + * formatted string. + * + * @param errorMessage The error message from the state, either plain + * string or i18nRecord. + * @param formatMessage react-i18n formatMessage. + * @param messages List of messages to use for formatting. + * + * @return A string for the error. + */ export function handleErrorI18nObject(errorMessage, formatMessage, messages) { if (errorMessage instanceof i18nRecord) { + // If it is an object, format it and return it return formatMessage(messages[errorMessage.id], errorMessage.values); } + // Else, it's a string, just return it return errorMessage; } diff --git a/app/utils/misc.js b/app/utils/misc.js index ea463a4..fa7b812 100644 --- a/app/utils/misc.js +++ b/app/utils/misc.js @@ -1,7 +1,14 @@ +/** + * Miscellaneous helper functions. + */ + + /** * Strict int checking function. * * @param value The value to check for int. + * @return Either NaN if the string was not a valid int representation, or the + * int. */ export function filterInt (value) { if (/^(\-|\+)?([0-9]+|Infinity)$/.test(value)) { @@ -10,6 +17,7 @@ export function filterInt (value) { return NaN; } + /** * Helper to format song length. * diff --git a/app/utils/pagination.js b/app/utils/pagination.js index e7814a6..e734cd3 100644 --- a/app/utils/pagination.js +++ b/app/utils/pagination.js @@ -1,3 +1,18 @@ +/** + * Collection of helper functions to deal with pagination. + */ + + +/** + * Helper function to build a pagination object to pass down the component tree. + * + * @param location react-router location props. + * @param currentPage Number of the current page. + * @param nPages Total number of pages. + * @param goToPageAction Action to dispatch to go to a specific page. + * + * @return An object containing all the props for the Pagination component. + */ export function buildPaginationObject(location, currentPage, nPages, goToPageAction) { const buildLinkToPage = function (pageNumber) { return { @@ -12,3 +27,36 @@ export function buildPaginationObject(location, currentPage, nPages, goToPageAct buildLinkToPage: buildLinkToPage }; } + + +/** + * Helper function to compute the buttons to display. + * + * Taken from http://stackoverflow.com/a/8608998/2626416 + * + * @param currentPage Number of the current page. + * @param nPages Total number of pages. + * @param maxNumberPagesShown Maximum number of pages button to show. + * + * @return An object containing lower limit and upper limit bounds. + */ +export function computePaginationBounds(currentPage, nPages, maxNumberPagesShown=5) { + let lowerLimit = currentPage; + let upperLimit = currentPage; + + for (let b = 1; b < maxNumberPagesShown && b < nPages;) { + if (lowerLimit > 1 ) { + lowerLimit--; + b++; + } + if (b < maxNumberPagesShown && upperLimit < nPages) { + upperLimit++; + b++; + } + } + + return { + lowerLimit: lowerLimit, + upperLimit: upperLimit + 1 // +1 to ease iteration in for with < + }; +} diff --git a/app/utils/reducers.js b/app/utils/reducers.js index ae38193..e8f857c 100644 --- a/app/utils/reducers.js +++ b/app/utils/reducers.js @@ -1,3 +1,16 @@ +/** + * Collection of helper functions to deal with reducers. + */ + + +/** + * Utility function to create a reducer. + * + * @param initialState Initial state of the reducer. + * @param reducerMap Map between action types and reducing functions. + * + * @return A reducer. + */ export function createReducer(initialState, reducerMap) { return (state = initialState, action) => { const reducer = reducerMap[action.type]; diff --git a/app/utils/url.js b/app/utils/url.js index 2a543a8..1d05812 100644 --- a/app/utils/url.js +++ b/app/utils/url.js @@ -1,3 +1,16 @@ +/** + * Collection of helper functions to deal with URLs. + */ + + +/** + * Assemble a base URL and its GET parameters. + * + * @param endpoint Base URL. + * @param params An object of GET params and their values. + * + * @return A string with the full URL with GET params. + */ export function assembleURLAndParams (endpoint, params) { let url = endpoint + "?"; Object.keys(params).forEach( @@ -11,3 +24,29 @@ export function assembleURLAndParams (endpoint, params) { ); return url.rstrip("&"); } + + +/** + * Clean an endpoint URL. + * + * Adds the protocol prefix if not specified, remove trailing slash + * + * @param An URL + * @return The cleaned URL + */ +export function cleanURL (endpoint) { + if ( + !endpoint.startsWith("//") && + !endpoint.startsWith("http://") && + !endpoint.startsWith("https://")) + { + // Handle endpoints of the form "ampache.example.com" + // Append same protocol as currently in use, to avoid mixed content. + endpoint = window.location.protocol + "//" + endpoint; + } + + // Remove trailing slash + endpoint = endpoint.replace(/\/$/, ""); + + return endpoint; +} diff --git a/vendor/ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.css b/app/vendor/ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.css similarity index 100% rename from vendor/ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.css rename to app/vendor/ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.css diff --git a/vendor/ie10-viewport-bug-workaround.js b/app/vendor/ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.js similarity index 100% rename from vendor/ie10-viewport-bug-workaround.js rename to app/vendor/ie10-viewport-bug-workaround/ie10-viewport-bug-workaround.js diff --git a/app/views/AlbumsPage.jsx b/app/views/AlbumsPage.jsx index c9a623d..18c7497 100644 --- a/app/views/AlbumsPage.jsx +++ b/app/views/AlbumsPage.jsx @@ -1,39 +1,57 @@ +// NPM imports import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import { defineMessages, injectIntl, intlShape } from "react-intl"; import Immutable from "immutable"; -import * as actionCreators from "../actions"; +// Local imports import { buildPaginationObject, messagesMap, handleErrorI18nObject } from "../utils"; +// Actions +import * as actionCreators from "../actions"; + +// Components import Albums from "../components/Albums"; +// Translations import APIMessages from "../locales/messagesDescriptors/api"; +// Define translations const albumsMessages = defineMessages(messagesMap(Array.concat([], APIMessages))); + +/** + * Albums page, grid layout of albums arts. + */ class AlbumsPageIntl extends Component { componentWillMount () { + // Load the data for current page const currentPage = parseInt(this.props.location.query.page) || 1; - // Load the data - this.props.actions.loadAlbums({pageNumber: currentPage}); + this.props.actions.loadPaginatedAlbums({ pageNumber: currentPage }); } componentWillReceiveProps (nextProps) { + // Load the data if page has changed const currentPage = parseInt(this.props.location.query.page) || 1; const nextPage = parseInt(nextProps.location.query.page) || 1; if (currentPage != nextPage) { - // Load the data this.props.actions.loadAlbums({pageNumber: nextPage}); } } - render () { - const pagination = buildPaginationObject(this.props.location, this.props.currentPage, this.props.nPages, this.props.actions.goToPageAction); + componentWillUnmount () { + // Unload data on page change + this.props.actions.clearResults(); + } + render () { const {formatMessage} = this.props.intl; + + const pagination = buildPaginationObject(this.props.location, this.props.currentPage, this.props.nPages, this.props.actions.goToPage); + const error = handleErrorI18nObject(this.props.error, formatMessage, albumsMessages); + return ( ); @@ -46,18 +64,17 @@ AlbumsPageIntl.propTypes = { const mapStateToProps = (state) => { let albumsList = new Immutable.List(); - let albums = state.api.result.get("album"); - if (albums) { - albumsList = albums.map( - id => state.api.entities.getIn(["album", id]) + if (state.paginated.type == "album" && state.paginated.result.size > 0) { + albumsList = state.paginated.result.map( + id => state.entities.getIn(["entities", "album", id]) ); } return { - isFetching: state.api.isFetching, - error: state.api.error, + isFetching: state.entities.isFetching, + error: state.entities.error, albumsList: albumsList, - currentPage: state.api.currentPage, - nPages: state.api.nPages + currentPage: state.paginated.currentPage, + nPages: state.paginated.nPages }; }; diff --git a/app/views/ArtistPage.jsx b/app/views/ArtistPage.jsx index 9bba7a7..b0e9961 100644 --- a/app/views/ArtistPage.jsx +++ b/app/views/ArtistPage.jsx @@ -1,79 +1,91 @@ +// NPM imports import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import { defineMessages, injectIntl, intlShape } from "react-intl"; import Immutable from "immutable"; -import * as actionCreators from "../actions"; +// Local imports import { messagesMap, handleErrorI18nObject } from "../utils"; +// Actions +import * as actionCreators from "../actions"; + +// Components import Artist from "../components/Artist"; +// Translations import APIMessages from "../locales/messagesDescriptors/api"; +// Define translations const artistMessages = defineMessages(messagesMap(Array.concat([], APIMessages))); + +/** + * Single artist page. + */ class ArtistPageIntl extends Component { componentWillMount () { // Load the data - this.props.actions.loadArtists({ - pageNumber: 1, + this.props.actions.loadArtist({ filter: this.props.params.id, include: ["albums", "songs"] }); } + componentWillUnmount () { + this.props.actions.decrementRefCount({ + "artist": [this.props.artist.get("id")] + }); + } + render () { const {formatMessage} = this.props.intl; + const error = handleErrorI18nObject(this.props.error, formatMessage, artistMessages); + return ( ); } } +ArtistPageIntl.propTypes = { + intl: intlShape.isRequired, +}; + const mapStateToProps = (state, ownProps) => { - const artists = state.api.entities.get("artist"); - let artist = new Immutable.Map(); - let albums = new Immutable.Map(); + // Get artist + let artist = state.entities.getIn(["entities", "artist", ownProps.params.id]); + let albums = new Immutable.List(); let songs = new Immutable.Map(); - if (artists) { - // Get artist - artist = artists.find( - item => item.get("id") == ownProps.params.id - ); + if (artist) { // Get albums - const artistAlbums = artist.get("albums"); + let artistAlbums = artist.get("albums"); if (Immutable.List.isList(artistAlbums)) { - albums = new Immutable.Map( - artistAlbums.map( - id => [id, state.api.entities.getIn(["album", id])] - ) + albums = artistAlbums.map( + id => state.entities.getIn(["entities", "album", id]) ); } // Get songs - const artistSongs = artist.get("songs"); + let artistSongs = artist.get("songs"); if (Immutable.List.isList(artistSongs)) { - songs = new Immutable.Map( - artistSongs.map( - id => [id, state.api.entities.getIn(["track", id])] - ) + songs = state.entities.getIn(["entities", "song"]).filter( + song => artistSongs.includes(song.get("id")) ); } + } else { + artist = new Immutable.Map(); } return { - isFetching: state.api.isFetching, - error: state.api.error, + isFetching: state.entities.isFetching, + error: state.entities.error, artist: artist, albums: albums, songs: songs }; }; -ArtistPageIntl.propTypes = { - intl: intlShape.isRequired, -}; - const mapDispatchToProps = (dispatch) => ({ actions: bindActionCreators(actionCreators, dispatch) }); diff --git a/app/views/ArtistsPage.jsx b/app/views/ArtistsPage.jsx index fa78ddb..8313a09 100644 --- a/app/views/ArtistsPage.jsx +++ b/app/views/ArtistsPage.jsx @@ -1,39 +1,57 @@ +// NPM imports import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import { defineMessages, injectIntl, intlShape } from "react-intl"; import Immutable from "immutable"; -import * as actionCreators from "../actions"; +// Local imports import { buildPaginationObject, messagesMap, handleErrorI18nObject } from "../utils"; +// Actions +import * as actionCreators from "../actions"; + +// Components import Artists from "../components/Artists"; +// Translations import APIMessages from "../locales/messagesDescriptors/api"; +// Define translations const artistsMessages = defineMessages(messagesMap(Array.concat([], APIMessages))); + +/** + * Grid of artists arts. + */ class ArtistsPageIntl extends Component { componentWillMount () { + // Load the data for the current page const currentPage = parseInt(this.props.location.query.page) || 1; - // Load the data - this.props.actions.loadArtists({pageNumber: currentPage}); + this.props.actions.loadPaginatedArtists({pageNumber: currentPage}); } componentWillReceiveProps (nextProps) { + // Load the data if page has changed const currentPage = parseInt(this.props.location.query.page) || 1; const nextPage = parseInt(nextProps.location.query.page) || 1; if (currentPage != nextPage) { - // Load the data - this.props.actions.loadArtists({pageNumber: nextPage}); + this.props.actions.loadPaginatedArtists({pageNumber: nextPage}); } } - render () { - const pagination = buildPaginationObject(this.props.location, this.props.currentPage, this.props.nPages, this.props.actions.goToPageAction); + componentWillUnmount () { + // Unload data on page change + this.props.actions.clearResults(); + } + render () { const {formatMessage} = this.props.intl; + + const pagination = buildPaginationObject(this.props.location, this.props.currentPage, this.props.nPages, this.props.actions.goToPage); + const error = handleErrorI18nObject(this.props.error, formatMessage, artistsMessages); + return ( ); @@ -46,17 +64,17 @@ ArtistsPageIntl.propTypes = { const mapStateToProps = (state) => { let artistsList = new Immutable.List(); - if (state.api.result.get("artist")) { - artistsList = state.api.result.get("artist").map( - id => state.api.entities.getIn(["artist", id]) + if (state.paginated.type == "artist" && state.paginated.result.size > 0) { + artistsList = state.paginated.result.map( + id => state.entities.getIn(["entities", "artist", id]) ); } return { - isFetching: state.api.isFetching, - error: state.api.error, + isFetching: state.entities.isFetching, + error: state.entities.error, artistsList: artistsList, - currentPage: state.api.currentPage, - nPages: state.api.nPages, + currentPage: state.paginated.currentPage, + nPages: state.paginated.nPages, }; }; diff --git a/app/views/BrowsePage.jsx b/app/views/BrowsePage.jsx index 6165776..61dbccd 100644 --- a/app/views/BrowsePage.jsx +++ b/app/views/BrowsePage.jsx @@ -1,7 +1,13 @@ +// NPM imports import React, { Component } from "react"; +// Other views import ArtistsPage from "./ArtistsPage"; + +/** + * Browse page is an alias for artists page at the moment. + */ export default class BrowsePage extends Component { render () { return ( diff --git a/app/views/DiscoverPage.jsx b/app/views/DiscoverPage.jsx index bcc6ca7..66c1a63 100644 --- a/app/views/DiscoverPage.jsx +++ b/app/views/DiscoverPage.jsx @@ -1,7 +1,12 @@ +// NPM imports import React, { Component } from "react"; +// Components import Discover from "../components/Discover"; +/** + * Discover page + */ export default class DiscoverPage extends Component { render () { return ( diff --git a/app/views/HomePage.jsx b/app/views/HomePage.jsx index 2092f46..98150f8 100644 --- a/app/views/HomePage.jsx +++ b/app/views/HomePage.jsx @@ -1,7 +1,12 @@ +// NPM imports import React, { Component } from "react"; +// Other views import ArtistsPage from "./ArtistsPage"; +/** + * Homepage is an alias for Artists page at the moment. + */ export default class HomePage extends Component { render () { return ( diff --git a/app/views/LoginPage.jsx b/app/views/LoginPage.jsx index 8aefbb9..e2e9e16 100644 --- a/app/views/LoginPage.jsx +++ b/app/views/LoginPage.jsx @@ -1,49 +1,76 @@ +// NPM imports import React, { Component, PropTypes } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; +// Actions import * as actionCreators from "../actions"; +// Components import Login from "../components/Login"; -function _getRedirectTo(props) { - let redirectPathname = "/"; - let redirectQuery = {}; - const { location } = props; - if (location.state && location.state.nextPathname) { - redirectPathname = location.state.nextPathname; - } - if (location.state && location.state.nextQuery) { - redirectQuery = location.state.nextQuery; - } - return { - pathname: redirectPathname, - query: redirectQuery - }; -} +/** + * Login page + */ export class LoginPage extends Component { - componentWillMount () { - this.checkAuth(this.props); - } - - checkAuth (propsIn) { - const redirectTo = _getRedirectTo(propsIn); - if (propsIn.isAuthenticated) { - this.context.router.replace(redirectTo); - } else if (propsIn.rememberMe) { - this.props.actions.loginUser(propsIn.username, propsIn.token, propsIn.endpoint, true, redirectTo, true); - } - } - constructor (props) { super(props); + // Bind this this.handleSubmit = this.handleSubmit.bind(this); + this._getRedirectTo = this._getRedirectTo.bind(this); } + /** + * Get URL to redirect to based on location props. + */ + _getRedirectTo() { + let redirectPathname = "/"; + let redirectQuery = {}; + const { location } = this.props; + if (location.state && location.state.nextPathname) { + redirectPathname = location.state.nextPathname; + } + if (location.state && location.state.nextQuery) { + redirectQuery = location.state.nextQuery; + } + return { + pathname: redirectPathname, + query: redirectQuery + }; + } + + componentWillMount () { + // This checks if the user is already connected or not and redirects + // them if it is the case. + + // Get next page to redirect to + const redirectTo = this._getRedirectTo(); + + if (this.props.isAuthenticated) { + // If user is already authenticated, redirects them + this.context.router.replace(redirectTo); + } else if (this.props.rememberMe) { + // Else if remember me is set, try to reconnect them + this.props.actions.loginUser( + this.props.username, + this.props.token, + this.props.endpoint, + true, + redirectTo, + true + ); + } + } + + /** + * Handle click on submit button. + */ handleSubmit (username, password, endpoint, rememberMe) { - const redirectTo = _getRedirectTo(this.props); + // Get page to redirect to + const redirectTo = this._getRedirectTo(); + // Trigger login action this.props.actions.loginUser(username, password, endpoint, rememberMe, redirectTo); } diff --git a/app/views/LogoutPage.jsx b/app/views/LogoutPage.jsx index bb82ab7..9727974 100644 --- a/app/views/LogoutPage.jsx +++ b/app/views/LogoutPage.jsx @@ -1,11 +1,18 @@ +// NPM imports import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; +// Actions import * as actionCreators from "../actions"; + +/** + * Logout page + */ export class LogoutPage extends Component { - componentDidMount () { + componentWillMount () { + // Logout when component is mounted this.props.actions.logoutAndRedirect(); } diff --git a/app/views/SongsPage.jsx b/app/views/SongsPage.jsx index bf081fd..9adae71 100644 --- a/app/views/SongsPage.jsx +++ b/app/views/SongsPage.jsx @@ -1,39 +1,57 @@ +// NPM imports import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import { defineMessages, injectIntl, intlShape } from "react-intl"; import Immutable from "immutable"; -import * as actionCreators from "../actions"; +// Local imports import { buildPaginationObject, messagesMap, handleErrorI18nObject } from "../utils"; +// Actions +import * as actionCreators from "../actions"; + +// Components import Songs from "../components/Songs"; +// Translations import APIMessages from "../locales/messagesDescriptors/api"; +// Define translations const songsMessages = defineMessages(messagesMap(Array.concat([], APIMessages))); + +/** + * Paginated table of available songs + */ class SongsPageIntl extends Component { componentWillMount () { + // Load the data for current page const currentPage = parseInt(this.props.location.query.page) || 1; - // Load the data - this.props.actions.loadSongs({pageNumber: currentPage}); + this.props.actions.loadPaginatedSongs({pageNumber: currentPage}); } componentWillReceiveProps (nextProps) { + // Load the data if page has changed const currentPage = parseInt(this.props.location.query.page) || 1; const nextPage = parseInt(nextProps.location.query.page) || 1; if (currentPage != nextPage) { - // Load the data - this.props.actions.loadSongs({pageNumber: nextPage}); + this.props.actions.loadPaginatedSongs({pageNumber: nextPage}); } } - render () { - const pagination = buildPaginationObject(this.props.location, this.props.currentPage, this.props.nPages, this.props.actions.goToPageAction); + componentWillUnmount () { + // Unload data on page change + this.props.actions.clearResults(); + } + render () { const {formatMessage} = this.props.intl; + + const pagination = buildPaginationObject(this.props.location, this.props.currentPage, this.props.nPages, this.props.actions.goToPage); + const error = handleErrorI18nObject(this.props.error, formatMessage, songsMessages); + return ( ); @@ -46,25 +64,25 @@ SongsPageIntl.propTypes = { const mapStateToProps = (state) => { let songsList = new Immutable.List(); - if (state.api.result.get("song")) { - songsList = state.api.result.get("song").map(function (id) { - let song = state.api.entities.getIn(["track", id]); - // Add artist and album infos - const artist = state.api.entities.getIn(["artist", song.get("artist")]); - const album = state.api.entities.getIn(["album", song.get("album")]); - song = song.set("artist", new Immutable.Map({id: artist.get("id"), name: artist.get("name")})); - song = song.set("album", new Immutable.Map({id: album.get("id"), name: album.get("name")})); - return song; + if (state.paginated.type == "song" && state.paginated.result.size > 0) { + songsList = state.paginated.result.map(function (id) { + let song = state.entities.getIn(["entities", "song", id]); + // Add artist and album infos to song + const artist = state.entities.getIn(["entities", "artist", song.get("artist")]); + const album = state.entities.getIn(["entities", "album", song.get("album")]); + return ( + song + .set("artist", new Immutable.Map({id: artist.get("id"), name: artist.get("name")})) + .set("album", new Immutable.Map({id: album.get("id"), name: album.get("name")})) + ); }); } return { - isFetching: state.api.isFetching, - error: state.api.error, - artistsList: state.api.entities.get("artist"), - albumsList: state.api.entities.get("album"), + isFetching: state.entities.isFetching, + error: state.entities.error, songsList: songsList, - currentPage: state.api.currentPage, - nPages: state.api.nPages + currentPage: state.paginated.currentPage, + nPages: state.paginated.nPages }; }; diff --git a/app/views/WebPlayer.jsx b/app/views/WebPlayer.jsx index 5d99a7a..9ed060c 100644 --- a/app/views/WebPlayer.jsx +++ b/app/views/WebPlayer.jsx @@ -1,3 +1,4 @@ +// TODO: This file is not finished import React, { Component } from "react"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; @@ -101,8 +102,7 @@ const mapStateToProps = (state) => ({ isRepeat: state.webplayer.isRepeat, isMute: state.webplayer.isMute, currentIndex: state.webplayer.currentIndex, - playlist: state.webplayer.playlist, - entities: state.webplayer.entities + playlist: state.webplayer.playlist }); const mapDispatchToProps = (dispatch) => ({ diff --git a/fix.ie9.js b/fix.ie9.js index 32e263a..b0be8f6 100644 --- a/fix.ie9.js +++ b/fix.ie9.js @@ -1 +1,4 @@ +/** + * Special JS entry point to add IE9-dedicated fixes. + */ export * from "html5shiv"; diff --git a/hooks/pre-commit b/hooks/pre-commit index 65e5c2c..b3c6eff 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -1,12 +1,15 @@ +set -e + # Get against which ref to diff if git rev-parse --verify HEAD >/dev/null 2>&1 then against=HEAD else - # Initial commit + # Something weird, initial commit exit 1 fi +# List all the modified CSS and JS files (not in output path) css_js_files=$(git diff-index --name-only $against | grep -e '.\(jsx\?\)\|\(s\?css\)$' | grep -v "^public") # Nothing more to do if no JS files was committed @@ -15,8 +18,9 @@ then exit 0 fi +# Else, rebuild as production, run tests and add files echo "Rebuilding dist JavaScript files…" +npm test npm run clean npm run build:prod -npm test git add public diff --git a/index.all.js b/index.all.js index 8b863c0..72bdfab 100644 --- a/index.all.js +++ b/index.all.js @@ -1,55 +1,77 @@ -// Handle app init +/** + * Main JS entry point for all the builds. + * + * Performs i18n and initial render. + */ +// React stuff import React from "react"; import ReactDOM from "react-dom"; import { applyRouterMiddleware, hashHistory } from "react-router"; import { syncHistoryWithStore } from "react-router-redux"; import useScroll from "react-router-scroll"; -// i18n +// Store +import configureStore from "./app/store/configureStore"; + +// i18n stuff import { addLocaleData } from "react-intl"; import en from "react-intl/locale-data/en"; import fr from "react-intl/locale-data/fr"; -import configureStore from "./app/store/configureStore"; - import { getBrowserLocales } from "./app/utils"; import rawMessages from "./app/locales"; +// Init store and history const store = configureStore(); const history = syncHistoryWithStore(hashHistory, store); +// Get root element export const rootElement = document.getElementById("root"); -// i18n -export const onWindowIntl = () => { +/** + * Main function to be called once window.Intl has been populated. + * + * Populates the locales messages and perform render. + */ +export function onWindowIntl () { + // Add locales we support addLocaleData([...en, ...fr]); + + // Fetch current preferred locales from the browser const locales = getBrowserLocales(); - var locale = "en-US"; + var locale = "en-US"; // Safe default + // Populate strings with best matching locale var strings = {}; for (var i = 0; i < locales.length; ++i) { if (rawMessages[locales[i]]) { locale = locales[i]; strings = rawMessages[locale]; - break; + break; // Break at first matching locale } } + // Overload strings with default English translation, in case of missing translations strings = Object.assign(rawMessages["en-US"], strings); - // Set html lang attribute + + // Dynamically set html lang attribute document.documentElement.lang = locale; - let render = () => { + // Return a rendering function + return () => { const Root = require("./app/containers/Root").default; ReactDOM.render( , rootElement ); }; - - return render; }; -export const Intl = (render) => { +/** + * Ensure window.Intl exists, or polyfill it. + * + * @param render Initial rendering function. + */ +export function Intl (render) { if (!window.Intl) { require.ensure([ "intl", diff --git a/index.development.js b/index.development.js index 0954e44..3f4a1c4 100644 --- a/index.development.js +++ b/index.development.js @@ -1,15 +1,21 @@ +/** + * This is the main JS entry point in development build. + */ import React from "react"; import ReactDOM from "react-dom"; +// Load react-a11y for accessibility overview var a11y = require("react-a11y"); a11y(React, { ReactDOM: ReactDOM, includeSrcNode: true }); +// Load common index const index = require("./index.all.js"); +// Initial rendering function from common index var render = index.onWindowIntl(); -if (process.env.NODE_ENV !== "production" && module.hot) { - // Support hot reloading of components - // and display an overlay for runtime errors +if (module.hot) { + // If we support hot reloading of components, + // display an overlay for runtime errors const renderApp = render; const renderError = (error) => { const RedBox = require("redbox-react").default; @@ -18,6 +24,8 @@ if (process.env.NODE_ENV !== "production" && module.hot) { index.rootElement ); }; + + // Try to render, and display an overlay for runtime errors render = () => { try { renderApp(); @@ -26,8 +34,11 @@ if (process.env.NODE_ENV !== "production" && module.hot) { renderError(error); } }; + module.hot.accept("./app/containers/Root", () => { setTimeout(render); }); } + +// Perform i18n and render index.Intl(render); diff --git a/index.html b/index.html index c265510..6c88f8d 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + Ampache music player @@ -20,8 +20,8 @@ diff --git a/index.js b/index.js index dc5dafa..38e34a6 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,8 @@ +/** + * This is the main JS entry point. + * It loads either the production or the development index file, based on the + * environment variables in use. + */ if (process.env.NODE_ENV === "production") { module.exports = require("./index.production.js"); } else { diff --git a/index.production.js b/index.production.js index bf1c946..ecbdf3d 100644 --- a/index.production.js +++ b/index.production.js @@ -1,3 +1,12 @@ +/** + * This is the main JS entry point in production builds. + */ + +// Load the common index const index = require("./index.all.js"); + +// Get the rendering function const render = index.onWindowIntl(); + +// Perform i18n and render index.Intl(render); diff --git a/public/1.1.js b/public/1.1.js index d93f2e6..a935e6e 100644 --- a/public/1.1.js +++ b/public/1.1.js @@ -1,4 +1,4 @@ -webpackJsonp([1],{323:function(n,a,e){(function(a){a.IntlPolyfill=e(889),e(890),a.Intl||(a.Intl=a.IntlPolyfill,a.IntlPolyfill.__applyLocaleSensitivePrototypes()),n.exports=a.IntlPolyfill}).call(a,function(){return this}())},324:function(n,a){IntlPolyfill.__addLocaleData({locale:"en",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!0,formats:{"short":"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}","long":"{1} 'at' {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE, MMMM d, y",yMMMMd:"MMMM d, y",yMMMd:"MMM d, y",yMd:"M/d/yy"},timeFormats:{hmmsszzzz:"h:mm:ss a zzzz",hmsz:"h:mm:ss a z",hms:"h:mm:ss a",hm:"h:mm a"}},calendars:{buddhist:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["BE"],"short":["BE"],"long":["BE"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],"long":["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],"long":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Mo1","Mo2","Mo3","Mo4","Mo5","Mo6","Mo7","Mo8","Mo9","Mo10","Mo11","Mo12"],"long":["Month1","Month2","Month3","Month4","Month5","Month6","Month7","Month8","Month9","Month10","Month11","Month12"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0"],"short":["ERA0"],"long":["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"long":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["B","A","BCE","CE"],"short":["BC","AD","BCE","CE"],"long":["Before Christ","Anno Domini","Before Common Era","Common Era"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],"short":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"],"long":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul","Adar II"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AM"],"short":["AM"],"long":["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],"long":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Saka"],"short":["Saka"],"long":["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],"long":["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],"long":["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],"short":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],"long":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],"long":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["AP"],"short":["AP"],"long":["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"long":["January","February","March","April","May","June","July","August","September","October","November","December"]},days:{narrow:["S","M","T","W","T","F","S"],"short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eras:{narrow:["Before R.O.C.","Minguo"],"short":["Before R.O.C.","Minguo"],"long":["Before R.O.C.","Minguo"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{currency}{number}",negativePattern:"{minusSign}{currency}{number}"},percent:{positivePattern:"{number}{percentSign}",negativePattern:"{minusSign}{number}{percentSign}"}},symbols:{latn:{decimal:".",group:",",nan:"NaN",plusSign:"+",minusSign:"-",percentSign:"%",infinity:"∞"}},currencies:{AUD:"A$",BRL:"R$",CAD:"CA$",CNY:"CN¥",EUR:"€",GBP:"£",HKD:"HK$",ILS:"₪",INR:"₹",JPY:"¥",KRW:"₩",MXN:"MX$",NZD:"NZ$",TWD:"NT$",USD:"$",VND:"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF"}}})},325:function(n,a){IntlPolyfill.__addLocaleData({locale:"fr",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!1,formats:{"short":"{1} {0}",medium:"{1} 'à' {0}",full:"{1} 'à' {0}","long":"{1} 'à' {0}",availableFormats:{d:"d",E:"E",Ed:"E d",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"d MMM y G",GyMMMEd:"E d MMM y G",h:"h a",H:"HH 'h'",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"dd/MM",MEd:"E dd/MM",MMM:"LLL",MMMd:"d MMM",MMMEd:"E d MMM",MMMMd:"d MMMM",ms:"mm:ss",y:"y",yM:"MM/y",yMd:"dd/MM/y",yMEd:"E dd/MM/y",yMMM:"MMM y",yMMMd:"d MMM y",yMMMEd:"E d MMM y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},dateFormats:{yMMMMEEEEd:"EEEE d MMMM y",yMMMMd:"d MMMM y",yMMMd:"d MMM y",yMd:"dd/MM/y"},timeFormats:{hmmsszzzz:"HH:mm:ss zzzz",hmsz:"HH:mm:ss z",hms:"HH:mm:ss",hm:"HH:mm"}},calendars:{buddhist:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["E.B."],"short":["ère b."],"long":["ère bouddhiste"]},dayPeriods:{am:"AM",pm:"PM"}},chinese:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["1yuè","2yuè","3yuè","4yuè","5yuè","6yuè","7yuè","8yuè","9yuè","10yuè","11yuè","12yuè"],"long":["zhēngyuè","èryuè","sānyuè","sìyuè","wǔyuè","liùyuè","qīyuè","bāyuè","jiǔyuè","shíyuè","shíyīyuè","shí’èryuè"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriods:{am:"AM",pm:"PM"}},coptic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"],"long":["Tout","Baba","Hator","Kiahk","Toba","Amshir","Baramhat","Baramouda","Bashans","Paona","Epep","Mesra","Nasie"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},dangi:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["1yuè","2yuè","3yuè","4yuè","5yuè","6yuè","7yuè","8yuè","9yuè","10yuè","11yuè","12yuè"],"long":["zhēngyuè","èryuè","sānyuè","sìyuè","wǔyuè","liùyuè","qīyuè","bāyuè","jiǔyuè","shíyuè","shíyīyuè","shí’èryuè"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},dayPeriods:{am:"AM",pm:"PM"}},ethiopic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},ethioaa:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13"],"short":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"],"long":["Meskerem","Tekemt","Hedar","Tahsas","Ter","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehasse","Pagumen"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0"],"short":["ERA0"],"long":["ERA0"]},dayPeriods:{am:"AM",pm:"PM"}},generic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"],"long":["M01","M02","M03","M04","M05","M06","M07","M08","M09","M10","M11","M12"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["ERA0","ERA1"],"short":["ERA0","ERA1"],"long":["ERA0","ERA1"]},dayPeriods:{am:"AM",pm:"PM"}},gregory:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["av. J.-C.","ap. J.-C.","AEC","EC"],"short":["av. J.-C.","ap. J.-C.","AEC","EC"],"long":["avant Jésus-Christ","après Jésus-Christ","avant l’ère commune","de l’ère commune"]},dayPeriods:{am:"AM",pm:"PM"}},hebrew:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12","13","7"],"short":["Tisseri","Hesvan","Kislev","Tébeth","Schébat","Adar I","Adar","Nissan","Iyar","Sivan","Tamouz","Ab","Elloul","Adar II"],"long":["Tisseri","Hesvan","Kislev","Tébeth","Schébat","Adar I","Adar","Nissan","Iyar","Sivan","Tamouz","Ab","Elloul","Adar II"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AM"],"short":["AM"],"long":["AM"]},dayPeriods:{am:"AM",pm:"PM"}},indian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],"long":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["Saka"],"short":["Saka"],"long":["Saka"]},dayPeriods:{am:"AM",pm:"PM"}},islamic:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["mouh.","saf.","rab. aw.","rab. th.","joum. oul.","joum. tha.","raj.","chaa.","ram.","chaw.","dhou. q.","dhou. h."],"long":["mouharram","safar","rabia al awal","rabia ath-thani","joumada al oula","joumada ath-thania","rajab","chaabane","ramadan","chawwal","dhou al qi`da","dhou al-hijja"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},islamicc:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"], -"short":["mouh.","saf.","rab. aw.","rab. th.","joum. oul.","joum. tha.","raj.","chaa.","ram.","chaw.","dhou. q.","dhou. h."],"long":["mouharram","safar","rabia al awal","rabia ath-thani","joumada al oula","joumada ath-thania","rajab","chaabane","ramadan","chawwal","dhou al qi`da","dhou al-hijja"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AH"],"short":["AH"],"long":["AH"]},dayPeriods:{am:"AM",pm:"PM"}},japanese:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","M","T","S","H"],"short":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"],"long":["Taika (645–650)","Hakuchi (650–671)","Hakuhō (672–686)","Shuchō (686–701)","Taihō (701–704)","Keiun (704–708)","Wadō (708–715)","Reiki (715–717)","Yōrō (717–724)","Jinki (724–729)","Tenpyō (729–749)","Tenpyō-kampō (749-749)","Tenpyō-shōhō (749-757)","Tenpyō-hōji (757-765)","Tenpyō-jingo (765-767)","Jingo-keiun (767-770)","Hōki (770–780)","Ten-ō (781-782)","Enryaku (782–806)","Daidō (806–810)","Kōnin (810–824)","Tenchō (824–834)","Jōwa (834–848)","Kajō (848–851)","Ninju (851–854)","Saikō (854–857)","Ten-an (857-859)","Jōgan (859–877)","Gangyō (877–885)","Ninna (885–889)","Kanpyō (889–898)","Shōtai (898–901)","Engi (901–923)","Enchō (923–931)","Jōhei (931–938)","Tengyō (938–947)","Tenryaku (947–957)","Tentoku (957–961)","Ōwa (961–964)","Kōhō (964–968)","Anna (968–970)","Tenroku (970–973)","Ten’en (973–976)","Jōgen (976–978)","Tengen (978–983)","Eikan (983–985)","Kanna (985–987)","Eien (987–989)","Eiso (989–990)","Shōryaku (990–995)","Chōtoku (995–999)","Chōhō (999–1004)","Kankō (1004–1012)","Chōwa (1012–1017)","Kannin (1017–1021)","Jian (1021–1024)","Manju (1024–1028)","Chōgen (1028–1037)","Chōryaku (1037–1040)","Chōkyū (1040–1044)","Kantoku (1044–1046)","Eishō (1046–1053)","Tengi (1053–1058)","Kōhei (1058–1065)","Jiryaku (1065–1069)","Enkyū (1069–1074)","Shōho (1074–1077)","Shōryaku (1077–1081)","Eihō (1081–1084)","Ōtoku (1084–1087)","Kanji (1087–1094)","Kahō (1094–1096)","Eichō (1096–1097)","Jōtoku (1097–1099)","Kōwa (1099–1104)","Chōji (1104–1106)","Kashō (1106–1108)","Tennin (1108–1110)","Ten-ei (1110-1113)","Eikyū (1113–1118)","Gen’ei (1118–1120)","Hōan (1120–1124)","Tenji (1124–1126)","Daiji (1126–1131)","Tenshō (1131–1132)","Chōshō (1132–1135)","Hōen (1135–1141)","Eiji (1141–1142)","Kōji (1142–1144)","Ten’yō (1144–1145)","Kyūan (1145–1151)","Ninpei (1151–1154)","Kyūju (1154–1156)","Hōgen (1156–1159)","Heiji (1159–1160)","Eiryaku (1160–1161)","Ōho (1161–1163)","Chōkan (1163–1165)","Eiman (1165–1166)","Nin’an (1166–1169)","Kaō (1169–1171)","Shōan (1171–1175)","Angen (1175–1177)","Jishō (1177–1181)","Yōwa (1181–1182)","Juei (1182–1184)","Genryaku (1184–1185)","Bunji (1185–1190)","Kenkyū (1190–1199)","Shōji (1199–1201)","Kennin (1201–1204)","Genkyū (1204–1206)","Ken’ei (1206–1207)","Jōgen (1207–1211)","Kenryaku (1211–1213)","Kenpō (1213–1219)","Jōkyū (1219–1222)","Jōō (1222–1224)","Gennin (1224–1225)","Karoku (1225–1227)","Antei (1227–1229)","Kanki (1229–1232)","Jōei (1232–1233)","Tenpuku (1233–1234)","Bunryaku (1234–1235)","Katei (1235–1238)","Ryakunin (1238–1239)","En’ō (1239–1240)","Ninji (1240–1243)","Kangen (1243–1247)","Hōji (1247–1249)","Kenchō (1249–1256)","Kōgen (1256–1257)","Shōka (1257–1259)","Shōgen (1259–1260)","Bun’ō (1260–1261)","Kōchō (1261–1264)","Bun’ei (1264–1275)","Kenji (1275–1278)","Kōan (1278–1288)","Shōō (1288–1293)","Einin (1293–1299)","Shōan (1299–1302)","Kengen (1302–1303)","Kagen (1303–1306)","Tokuji (1306–1308)","Enkyō (1308–1311)","Ōchō (1311–1312)","Shōwa (1312–1317)","Bunpō (1317–1319)","Genō (1319–1321)","Genkō (1321–1324)","Shōchū (1324–1326)","Karyaku (1326–1329)","Gentoku (1329–1331)","Genkō (1331–1334)","Kenmu (1334–1336)","Engen (1336–1340)","Kōkoku (1340–1346)","Shōhei (1346–1370)","Kentoku (1370–1372)","Bunchū (1372–1375)","Tenju (1375–1379)","Kōryaku (1379–1381)","Kōwa (1381–1384)","Genchū (1384–1392)","Meitoku (1384–1387)","Kakei (1387–1389)","Kōō (1389–1390)","Meitoku (1390–1394)","Ōei (1394–1428)","Shōchō (1428–1429)","Eikyō (1429–1441)","Kakitsu (1441–1444)","Bun’an (1444–1449)","Hōtoku (1449–1452)","Kyōtoku (1452–1455)","Kōshō (1455–1457)","Chōroku (1457–1460)","Kanshō (1460–1466)","Bunshō (1466–1467)","Ōnin (1467–1469)","Bunmei (1469–1487)","Chōkyō (1487–1489)","Entoku (1489–1492)","Meiō (1492–1501)","Bunki (1501–1504)","Eishō (1504–1521)","Taiei (1521–1528)","Kyōroku (1528–1532)","Tenbun (1532–1555)","Kōji (1555–1558)","Eiroku (1558–1570)","Genki (1570–1573)","Tenshō (1573–1592)","Bunroku (1592–1596)","Keichō (1596–1615)","Genna (1615–1624)","Kan’ei (1624–1644)","Shōho (1644–1648)","Keian (1648–1652)","Jōō (1652–1655)","Meireki (1655–1658)","Manji (1658–1661)","Kanbun (1661–1673)","Enpō (1673–1681)","Tenna (1681–1684)","Jōkyō (1684–1688)","Genroku (1688–1704)","Hōei (1704–1711)","Shōtoku (1711–1716)","Kyōhō (1716–1736)","Genbun (1736–1741)","Kanpō (1741–1744)","Enkyō (1744–1748)","Kan’en (1748–1751)","Hōreki (1751–1764)","Meiwa (1764–1772)","An’ei (1772–1781)","Tenmei (1781–1789)","Kansei (1789–1801)","Kyōwa (1801–1804)","Bunka (1804–1818)","Bunsei (1818–1830)","Tenpō (1830–1844)","Kōka (1844–1848)","Kaei (1848–1854)","Ansei (1854–1860)","Man’en (1860–1861)","Bunkyū (1861–1864)","Genji (1864–1865)","Keiō (1865–1868)","Meiji","Taishō","Shōwa","Heisei"]},dayPeriods:{am:"AM",pm:"PM"}},persian:{months:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],"short":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],"long":["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["AP"],"short":["AP"],"long":["AP"]},dayPeriods:{am:"AM",pm:"PM"}},roc:{months:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],"short":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"long":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},days:{narrow:["D","L","M","M","J","V","S"],"short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"long":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},eras:{narrow:["avant RdC","RdC"],"short":["avant RdC","RdC"],"long":["avant RdC","RdC"]},dayPeriods:{am:"AM",pm:"PM"}}}},number:{nu:["latn"],patterns:{decimal:{positivePattern:"{number}",negativePattern:"{minusSign}{number}"},currency:{positivePattern:"{number} {currency}",negativePattern:"{minusSign}{number} {currency}"},percent:{positivePattern:"{number} {percentSign}",negativePattern:"{minusSign}{number} {percentSign}"}},symbols:{latn:{decimal:",",group:" ",nan:"NaN",plusSign:"+",minusSign:"-",percentSign:"%",infinity:"∞"}},currencies:{ARS:"$AR",AUD:"$AU",BEF:"FB",BMD:"$BM",BND:"$BN",BRL:"R$",BSD:"$BS",BZD:"$BZ",CAD:"$CA",CLP:"$CL",COP:"$CO",CYP:"£CY",EUR:"€",FJD:"$FJ",FKP:"£FK",FRF:"F",GBP:"£GB",GIP:"£GI",IEP:"£IE",ILP:"£IL",ILS:"₪",INR:"₹",ITL:"₤IT",KRW:"₩",LBP:"£LB",MTP:"£MT",MXN:"$MX",NAD:"$NA",NZD:"$NZ",RHD:"$RH",SBD:"$SB",SGD:"$SG",SRD:"$SR",TTD:"$TT",USD:"$US",UYU:"$UY",VND:"₫",WST:"WS$",XAF:"FCFA",XOF:"CFA",XPF:"FCFP"}}})},889:function(n,a){"use strict";function e(n){if("function"==typeof Math.log10)return Math.floor(Math.log10(n));var a=Math.round(Math.log(n)*Math.LOG10E);return a-(Number("1e"+a)>n)}function r(n){for(var a in n)(n instanceof r||rn.call(n,a))&&tn(this,a,{value:n[a],enumerable:!0,writable:!0,configurable:!0})}function i(){tn(this,"length",{writable:!0,value:0}),arguments.length&&ln.apply(this,un.call(arguments))}function t(){for(var n=/[.?*+^$[\]\\(){}|-]/g,a=RegExp.lastMatch||"",e=RegExp.multiline?"m":"",r={input:RegExp.input},t=new i,o=!1,s={},u=1;u<=9;u++)o=(s["$"+u]=RegExp["$"+u])||o;if(a=a.replace(n,"\\$&"),o)for(var h=1;h<=9;h++){var l=s["$"+h];l?(l=l.replace(n,"\\$&"),a=a.replace(l,"("+l+")")):a="()"+a,ln.call(t,a.slice(0,a.indexOf("(")+1)),a=a.slice(a.indexOf("(")+1)}return r.exp=new RegExp(mn.call(t,"")+a,e),r}function o(n){if(null===n)throw new TypeError("Cannot convert null or undefined to object");return Object(n)}function s(n){return rn.call(n,"__getInternalProperties")?n.__getInternalProperties(gn):sn(null)}function u(n){Hn=n}function h(n){for(var a=n.length;a--;){var e=n.charAt(a);e>="a"&&e<="z"&&(n=n.slice(0,a)+e.toUpperCase()+n.slice(a+1))}return n}function l(n){return!!An.test(n)&&(!Jn.test(n)&&!Fn.test(n))}function m(n){var a=void 0,e=void 0;n=n.toLowerCase(),e=n.split("-");for(var r=1,i=e.length;r1&&(a.sort(),n=n.replace(RegExp("(?:"+Dn.source+")+","i"),mn.call(a,""))),rn.call(Pn.tags,n)&&(n=Pn.tags[n]),e=n.split("-");for(var t=1,o=e.length;t-1)return e;var r=e.lastIndexOf("-");if(r<0)return;r>=2&&"-"===e.charAt(r-2)&&(r-=2),e=e.substring(0,r)}}function M(n,a){for(var e=0,i=a.length,t=void 0,o=void 0,s=void 0;e2){var j=h[E+1],A=w.call(K,j);A!==-1&&(T=j,S="-"+f+"-"+T)}else{var J=w(K,"true");J!==-1&&(T="true")}}if(rn.call(e,"[["+f+"]]")){var F=e["[["+f+"]]"];w.call(K,F)!==-1&&F!==T&&(T=F,S="")}y["[["+f+"]]"]=T,g+=S,v++}if(g.length>2){var D=u.indexOf("-x-");if(D===-1)u+=g;else{var H=u.substring(0,D),P=u.substring(D);u=H+g+P}u=m(u)}return y["[[locale]]"]=u,y}function p(n,a){for(var e=a.length,r=new i,t=0;tr)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(t)}return i}function S(){var n=arguments[0],a=arguments[1];return this&&this!==zn?w(o(this),n,a):new zn.NumberFormat(n,a)}function w(n,a,e){var u=s(n),h=t();if(u["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");tn(n,"__getInternalProperties",{value:function(){if(arguments[0]===gn)return u}}),u["[[initializedIntlObject]]"]=!0;var l=y(a);e=void 0===e?{}:o(e);var m=new r,d=K(e,"localeMatcher","string",new i("lookup","best fit"),"best fit");m["[[localeMatcher]]"]=d;var g=yn.NumberFormat["[[localeData]]"],M=v(yn.NumberFormat["[[availableLocales]]"],l,m,yn.NumberFormat["[[relevantExtensionKeys]]"],g);u["[[locale]]"]=M["[[locale]]"],u["[[numberingSystem]]"]=M["[[nu]]"],u["[[dataLocale]]"]=M["[[dataLocale]]"];var k=M["[[dataLocale]]"],p=K(e,"style","string",new i("decimal","percent","currency"),"decimal");u["[[style]]"]=p;var f=K(e,"currency","string");if(void 0!==f&&!c(f))throw new RangeError("'"+f+"' is not a valid currency code");if("currency"===p&&void 0===f)throw new TypeError("Currency code is required when style is currency");var b=void 0;"currency"===p&&(f=f.toUpperCase(),u["[[currency]]"]=f,b=E(f));var S=K(e,"currencyDisplay","string",new i("code","symbol","name"),"symbol");"currency"===p&&(u["[[currencyDisplay]]"]=S);var w=T(e,"minimumIntegerDigits",1,21,1);u["[[minimumIntegerDigits]]"]=w;var A="currency"===p?b:0,J=T(e,"minimumFractionDigits",0,20,A);u["[[minimumFractionDigits]]"]=J;var F="currency"===p?Math.max(J,b):"percent"===p?Math.max(J,0):Math.max(J,3),D=T(e,"maximumFractionDigits",J,20,F);u["[[maximumFractionDigits]]"]=D;var H=e.minimumSignificantDigits,P=e.maximumSignificantDigits;void 0===H&&void 0===P||(H=T(e,"minimumSignificantDigits",1,21,1),P=T(e,"maximumSignificantDigits",H,21,21),u["[[minimumSignificantDigits]]"]=H,u["[[maximumSignificantDigits]]"]=P);var B=K(e,"useGrouping","boolean",void 0,!0);u["[[useGrouping]]"]=B;var N=g[k],z=N.patterns,G=z[p];return u["[[positivePattern]]"]=G.positivePattern,u["[[negativePattern]]"]=G.negativePattern,u["[[boundFormat]]"]=void 0,u["[[initializedNumberFormat]]"]=!0,en&&(n.format=j.call(n)),h.exp.test(h.input),n}function E(n){return void 0!==Gn[n]?Gn[n]:2}function j(){var n=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===n["[[boundFormat]]"]){var a=function(n){return F(this,Number(n))},e=cn.call(a,this);n["[[boundFormat]]"]=e}return n["[[boundFormat]]"]}function A(n,a){for(var e=J(n,a),r=[],i=0,t=0;e.length>t;t++){var o=e[t],s={};s.type=o["[[type]]"],s.value=o["[[value]]"],r[i]=s,i+=1}return r}function J(n,a){var e=s(n),r=e["[[dataLocale]]"],t=e["[[numberingSystem]]"],o=yn.NumberFormat["[[localeData]]"][r],u=o.symbols[t]||o.symbols.latn,h=void 0;!isNaN(a)&&a<0?(a=-a,h=e["[[negativePattern]]"]):h=e["[[positivePattern]]"];for(var l=new i,m=h.indexOf("{",0),d=0,c=0,y=h.length;m>-1&&mc){var g=h.substring(c,m);ln.call(l,{"[[type]]":"literal","[[value]]":g})}var M=h.substring(m+1,d);if("number"===M)if(isNaN(a)){var k=u.nan;ln.call(l,{"[[type]]":"nan","[[value]]":k})}else if(isFinite(a)){"percent"===e["[[style]]"]&&isFinite(a)&&(a*=100);var v=void 0;v=rn.call(e,"[[minimumSignificantDigits]]")&&rn.call(e,"[[maximumSignificantDigits]]")?D(a,e["[[minimumSignificantDigits]]"],e["[[maximumSignificantDigits]]"]):H(a,e["[[minimumIntegerDigits]]"],e["[[minimumFractionDigits]]"],e["[[maximumFractionDigits]]"]),Cn[t]?!function(){var n=Cn[t];v=String(v).replace(/\d/g,function(a){return n[a]})}():v=String(v);var p=void 0,f=void 0,b=v.indexOf(".",0);if(b>0?(p=v.substring(0,b),f=v.substring(b+1,b.length)):(p=v,f=void 0),e["[[useGrouping]]"]===!0){var K=u.group,T=[],S=o.patterns.primaryGroupSize||3,w=o.patterns.secondaryGroupSize||S;if(p.length>S){var E=p.length-S,j=E%w,A=p.slice(0,j);for(A.length&&ln.call(T,A);ji;i++){var t=e[i];r+=t["[[value]]"]}return r}function D(n,a,r){var i=r,t=void 0,o=void 0;if(0===n)t=mn.call(Array(i+1),"0"),o=0;else{o=e(Math.abs(n));var s=Math.round(Math.exp(Math.abs(o-i+1)*Math.LN10));t=String(Math.round(o-i+1<0?n*s:n/s))}if(o>=i)return t+mn.call(Array(o-i+1+1),"0");if(o===i-1)return t;if(o>=0?t=t.slice(0,o+1)+"."+t.slice(o+1):o<0&&(t="0."+mn.call(Array(-(o+1)+1),"0")+t),t.indexOf(".")>=0&&r>a){for(var u=r-a;u>0&&"0"===t.charAt(t.length-1);)t=t.slice(0,-1),u--;"."===t.charAt(t.length-1)&&(t=t.slice(0,-1))}return t}function H(n,a,e,r){var i=r,t=Math.pow(10,i)*n,o=0===t?"0":t.toFixed(0),s=void 0,u=(s=o.indexOf("e"))>-1?o.slice(s+1):0;u&&(o=o.slice(0,s).replace(".",""),o+=mn.call(Array(u-(o.length-1)+1),"0"));var h=void 0;if(0!==i){var l=o.length;if(l<=i){var m=mn.call(Array(i+1-l+1),"0");o=m+o,l=i+1}var d=o.substring(0,l-i),c=o.substring(l-i,o.length);o=d+"."+c,h=d.length}else h=o.length;for(var y=r-e;y>0&&"0"===o.slice(-1);)o=o.slice(0,-1),y--;if("."===o.slice(-1)&&(o=o.slice(0,-1)),hu&&(u=c,h=d),l++}return h}function $(n,a){for(var e=120,r=20,i=8,t=6,o=6,s=3,u=1,h=-(1/0),l=void 0,m=0,d=a.length;m=2||f>=2&&p<=1?b>0?y-=t:b<0&&(y-=i):b>1?y-=s:b<-1&&(y-=o)}}c._.hour12!==n.hour12&&(y-=u),y>h&&(h=y,l=c),m++}return l}function q(){var n=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormat]]"]){var a=function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return V(this,n)},e=cn.call(a,this);n["[[boundFormat]]"]=e}return n["[[boundFormat]]"]}function Q(){var n=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormatToParts]]"]){var a=function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return U(this,n)},e=cn.call(a,this);n["[[boundFormatToParts]]"]=e}return n["[[boundFormatToParts]]"]}function Y(n,a){if(!isFinite(a))throw new RangeError("Invalid valid date passed to format");var e=n.__getInternalProperties(gn);t();for(var r=e["[[locale]]"],o=new zn.NumberFormat([r],{useGrouping:!1}),s=new zn.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),u=Z(a,e["[[calendar]]"],e["[[timeZone]]"]),h=e["[[pattern]]"],l=new i,m=0,d=h.indexOf("{"),c=0,y=e["[[dataLocale]]"],g=yn.DateTimeFormat["[[localeData]]"][y].calendars,M=e["[[calendar]]"];d!==-1;){var k=void 0;if(c=h.indexOf("}",d),c===-1)throw new Error("Unclosed pattern");d>m&&ln.call(l,{type:"literal",value:h.substring(m,d)});var v=h.substring(d+1,c);if(_n.hasOwnProperty(v)){var p=e["[["+v+"]]"],f=u["[["+v+"]]"];if("year"===v&&f<=0?f=1-f:"month"===v?f++:"hour"===v&&e["[[hour12]]"]===!0&&(f%=12,0===f&&e["[[hourNo0]]"]===!0&&(f=12)),"numeric"===p)k=F(o,f);else if("2-digit"===p)k=F(s,f),k.length>2&&(k=k.slice(-2));else if(p in Wn)switch(v){case"month":k=x(g,M,"months",p,u["[["+v+"]]"]);break;case"weekday":try{k=x(g,M,"days",p,u["[["+v+"]]"])}catch(b){throw new Error("Could not find weekday data for locale "+r)}break;case"timeZoneName":k="";break;case"era":try{k=x(g,M,"eras",p,u["[["+v+"]]"])}catch(b){throw new Error("Could not find era data for locale "+r)}break;default:k=u["[["+v+"]]"]}ln.call(l,{type:v,value:k})}else if("ampm"===v){var K=u["[[hour]]"];k=x(g,M,"dayPeriods",K>11?"pm":"am",null),ln.call(l,{type:"dayPeriod",value:k})}else ln.call(l,{type:"literal",value:h.substring(d,c+1)});m=c+1,d=h.indexOf("{",m)}return ci;i++){var t=e[i];r+=t.value}return r}function U(n,a){for(var e=Y(n,a),r=[],i=0;e.length>i;i++){var t=e[i];r.push({type:t.type,value:t.value})}return r}function Z(n,a,e){var i=new Date(n),t="get"+(e||"");return new r({"[[weekday]]":i[t+"Day"](),"[[era]]":+(i[t+"FullYear"]()>=0),"[[year]]":i[t+"FullYear"](),"[[month]]":i[t+"Month"](),"[[day]]":i[t+"Date"](),"[[hour]]":i[t+"Hours"](),"[[minute]]":i[t+"Minutes"](),"[[second]]":i[t+"Seconds"](),"[[inDST]]":!1})}function X(n,a){if(!n.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var e=void 0,r=[a],i=a.split("-");for(i.length>2&&4===i[1].length&&ln.call(r,i[0]+"-"+i[2]);e=dn.call(r);)ln.call(yn.NumberFormat["[[availableLocales]]"],e),yn.NumberFormat["[[localeData]]"][e]=n.number,n.date&&(n.date.nu=n.number.nu,ln.call(yn.DateTimeFormat["[[availableLocales]]"],e),yn.DateTimeFormat["[[localeData]]"][e]=n.date);void 0===Hn&&u(a)}var nn={};nn.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var an=function(){var n={};try{return Object.defineProperty(n,"a",{}),"a"in n}catch(a){return!1}}(),en=!an&&!Object.prototype.__defineGetter__,rn=Object.prototype.hasOwnProperty,tn=an?Object.defineProperty:function(n,a,e){"get"in e&&n.__defineGetter__?n.__defineGetter__(a,e.get):(!rn.call(n,a)||"value"in e)&&(n[a]=e.value)},on=Array.prototype.indexOf||function(n){var a=this;if(!a.length)return-1;for(var e=arguments[1]||0,r=a.length;en)}function r(n){for(var a in n)(n instanceof r||rn.call(n,a))&&tn(this,a,{value:n[a],enumerable:!0,writable:!0,configurable:!0})}function i(){tn(this,"length",{writable:!0,value:0}),arguments.length&&ln.apply(this,un.call(arguments))}function t(){for(var n=/[.?*+^$[\]\\(){}|-]/g,a=RegExp.lastMatch||"",e=RegExp.multiline?"m":"",r={input:RegExp.input},t=new i,o=!1,s={},u=1;u<=9;u++)o=(s["$"+u]=RegExp["$"+u])||o;if(a=a.replace(n,"\\$&"),o)for(var h=1;h<=9;h++){var l=s["$"+h];l?(l=l.replace(n,"\\$&"),a=a.replace(l,"("+l+")")):a="()"+a,ln.call(t,a.slice(0,a.indexOf("(")+1)),a=a.slice(a.indexOf("(")+1)}return r.exp=new RegExp(mn.call(t,"")+a,e),r}function o(n){if(null===n)throw new TypeError("Cannot convert null or undefined to object");return Object(n)}function s(n){return rn.call(n,"__getInternalProperties")?n.__getInternalProperties(gn):sn(null)}function u(n){Hn=n}function h(n){for(var a=n.length;a--;){var e=n.charAt(a);e>="a"&&e<="z"&&(n=n.slice(0,a)+e.toUpperCase()+n.slice(a+1))}return n}function l(n){return!!An.test(n)&&(!Jn.test(n)&&!Fn.test(n))}function m(n){var a=void 0,e=void 0;n=n.toLowerCase(),e=n.split("-");for(var r=1,i=e.length;r1&&(a.sort(),n=n.replace(RegExp("(?:"+Dn.source+")+","i"),mn.call(a,""))),rn.call(Pn.tags,n)&&(n=Pn.tags[n]),e=n.split("-");for(var t=1,o=e.length;t-1)return e;var r=e.lastIndexOf("-");if(r<0)return;r>=2&&"-"===e.charAt(r-2)&&(r-=2),e=e.substring(0,r)}}function M(n,a){for(var e=0,i=a.length,t=void 0,o=void 0,s=void 0;e2){var j=h[E+1],A=w.call(K,j);A!==-1&&(T=j,S="-"+f+"-"+T)}else{var J=w(K,"true");J!==-1&&(T="true")}}if(rn.call(e,"[["+f+"]]")){var F=e["[["+f+"]]"];w.call(K,F)!==-1&&F!==T&&(T=F,S="")}y["[["+f+"]]"]=T,g+=S,v++}if(g.length>2){var D=u.indexOf("-x-");if(D===-1)u+=g;else{var H=u.substring(0,D),P=u.substring(D);u=H+g+P}u=m(u)}return y["[[locale]]"]=u,y}function p(n,a){for(var e=a.length,r=new i,t=0;tr)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(t)}return i}function S(){var n=arguments[0],a=arguments[1];return this&&this!==zn?w(o(this),n,a):new zn.NumberFormat(n,a)}function w(n,a,e){var u=s(n),h=t();if(u["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");tn(n,"__getInternalProperties",{value:function(){if(arguments[0]===gn)return u}}),u["[[initializedIntlObject]]"]=!0;var l=y(a);e=void 0===e?{}:o(e);var m=new r,d=K(e,"localeMatcher","string",new i("lookup","best fit"),"best fit");m["[[localeMatcher]]"]=d;var g=yn.NumberFormat["[[localeData]]"],M=v(yn.NumberFormat["[[availableLocales]]"],l,m,yn.NumberFormat["[[relevantExtensionKeys]]"],g);u["[[locale]]"]=M["[[locale]]"],u["[[numberingSystem]]"]=M["[[nu]]"],u["[[dataLocale]]"]=M["[[dataLocale]]"];var k=M["[[dataLocale]]"],p=K(e,"style","string",new i("decimal","percent","currency"),"decimal");u["[[style]]"]=p;var f=K(e,"currency","string");if(void 0!==f&&!c(f))throw new RangeError("'"+f+"' is not a valid currency code");if("currency"===p&&void 0===f)throw new TypeError("Currency code is required when style is currency");var b=void 0;"currency"===p&&(f=f.toUpperCase(),u["[[currency]]"]=f,b=E(f));var S=K(e,"currencyDisplay","string",new i("code","symbol","name"),"symbol");"currency"===p&&(u["[[currencyDisplay]]"]=S);var w=T(e,"minimumIntegerDigits",1,21,1);u["[[minimumIntegerDigits]]"]=w;var A="currency"===p?b:0,J=T(e,"minimumFractionDigits",0,20,A);u["[[minimumFractionDigits]]"]=J;var F="currency"===p?Math.max(J,b):"percent"===p?Math.max(J,0):Math.max(J,3),D=T(e,"maximumFractionDigits",J,20,F);u["[[maximumFractionDigits]]"]=D;var H=e.minimumSignificantDigits,P=e.maximumSignificantDigits;void 0===H&&void 0===P||(H=T(e,"minimumSignificantDigits",1,21,1),P=T(e,"maximumSignificantDigits",H,21,21),u["[[minimumSignificantDigits]]"]=H,u["[[maximumSignificantDigits]]"]=P);var B=K(e,"useGrouping","boolean",void 0,!0);u["[[useGrouping]]"]=B;var N=g[k],z=N.patterns,G=z[p];return u["[[positivePattern]]"]=G.positivePattern,u["[[negativePattern]]"]=G.negativePattern,u["[[boundFormat]]"]=void 0,u["[[initializedNumberFormat]]"]=!0,en&&(n.format=j.call(n)),h.exp.test(h.input),n}function E(n){return void 0!==Gn[n]?Gn[n]:2}function j(){var n=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===n["[[boundFormat]]"]){var a=function(n){return F(this,Number(n))},e=cn.call(a,this);n["[[boundFormat]]"]=e}return n["[[boundFormat]]"]}function A(n,a){for(var e=J(n,a),r=[],i=0,t=0;e.length>t;t++){var o=e[t],s={};s.type=o["[[type]]"],s.value=o["[[value]]"],r[i]=s,i+=1}return r}function J(n,a){var e=s(n),r=e["[[dataLocale]]"],t=e["[[numberingSystem]]"],o=yn.NumberFormat["[[localeData]]"][r],u=o.symbols[t]||o.symbols.latn,h=void 0;!isNaN(a)&&a<0?(a=-a,h=e["[[negativePattern]]"]):h=e["[[positivePattern]]"];for(var l=new i,m=h.indexOf("{",0),d=0,c=0,y=h.length;m>-1&&mc){var g=h.substring(c,m);ln.call(l,{"[[type]]":"literal","[[value]]":g})}var M=h.substring(m+1,d);if("number"===M)if(isNaN(a)){var k=u.nan;ln.call(l,{"[[type]]":"nan","[[value]]":k})}else if(isFinite(a)){"percent"===e["[[style]]"]&&isFinite(a)&&(a*=100);var v=void 0;v=rn.call(e,"[[minimumSignificantDigits]]")&&rn.call(e,"[[maximumSignificantDigits]]")?D(a,e["[[minimumSignificantDigits]]"],e["[[maximumSignificantDigits]]"]):H(a,e["[[minimumIntegerDigits]]"],e["[[minimumFractionDigits]]"],e["[[maximumFractionDigits]]"]),Cn[t]?!function(){var n=Cn[t];v=String(v).replace(/\d/g,function(a){return n[a]})}():v=String(v);var p=void 0,f=void 0,b=v.indexOf(".",0);if(b>0?(p=v.substring(0,b),f=v.substring(b+1,b.length)):(p=v,f=void 0),e["[[useGrouping]]"]===!0){var K=u.group,T=[],S=o.patterns.primaryGroupSize||3,w=o.patterns.secondaryGroupSize||S;if(p.length>S){var E=p.length-S,j=E%w,A=p.slice(0,j);for(A.length&&ln.call(T,A);ji;i++){var t=e[i];r+=t["[[value]]"]}return r}function D(n,a,r){var i=r,t=void 0,o=void 0;if(0===n)t=mn.call(Array(i+1),"0"),o=0;else{o=e(Math.abs(n));var s=Math.round(Math.exp(Math.abs(o-i+1)*Math.LN10));t=String(Math.round(o-i+1<0?n*s:n/s))}if(o>=i)return t+mn.call(Array(o-i+1+1),"0");if(o===i-1)return t;if(o>=0?t=t.slice(0,o+1)+"."+t.slice(o+1):o<0&&(t="0."+mn.call(Array(-(o+1)+1),"0")+t),t.indexOf(".")>=0&&r>a){for(var u=r-a;u>0&&"0"===t.charAt(t.length-1);)t=t.slice(0,-1),u--;"."===t.charAt(t.length-1)&&(t=t.slice(0,-1))}return t}function H(n,a,e,r){var i=r,t=Math.pow(10,i)*n,o=0===t?"0":t.toFixed(0),s=void 0,u=(s=o.indexOf("e"))>-1?o.slice(s+1):0;u&&(o=o.slice(0,s).replace(".",""),o+=mn.call(Array(u-(o.length-1)+1),"0"));var h=void 0;if(0!==i){var l=o.length;if(l<=i){var m=mn.call(Array(i+1-l+1),"0");o=m+o,l=i+1}var d=o.substring(0,l-i),c=o.substring(l-i,o.length);o=d+"."+c,h=d.length}else h=o.length;for(var y=r-e;y>0&&"0"===o.slice(-1);)o=o.slice(0,-1),y--;if("."===o.slice(-1)&&(o=o.slice(0,-1)),hu&&(u=c,h=d),l++}return h}function $(n,a){for(var e=120,r=20,i=8,t=6,o=6,s=3,u=1,h=-(1/0),l=void 0,m=0,d=a.length;m=2||f>=2&&p<=1?b>0?y-=t:b<0&&(y-=i):b>1?y-=s:b<-1&&(y-=o)}}c._.hour12!==n.hour12&&(y-=u),y>h&&(h=y,l=c),m++}return l}function q(){var n=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormat]]"]){var a=function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return V(this,n)},e=cn.call(a,this);n["[[boundFormat]]"]=e}return n["[[boundFormat]]"]}function Q(){var n=null!==this&&"object"===nn.typeof(this)&&s(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===n["[[boundFormatToParts]]"]){var a=function(){var n=Number(0===arguments.length?Date.now():arguments[0]);return U(this,n)},e=cn.call(a,this);n["[[boundFormatToParts]]"]=e}return n["[[boundFormatToParts]]"]}function Y(n,a){if(!isFinite(a))throw new RangeError("Invalid valid date passed to format");var e=n.__getInternalProperties(gn);t();for(var r=e["[[locale]]"],o=new zn.NumberFormat([r],{useGrouping:!1}),s=new zn.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),u=Z(a,e["[[calendar]]"],e["[[timeZone]]"]),h=e["[[pattern]]"],l=new i,m=0,d=h.indexOf("{"),c=0,y=e["[[dataLocale]]"],g=yn.DateTimeFormat["[[localeData]]"][y].calendars,M=e["[[calendar]]"];d!==-1;){var k=void 0;if(c=h.indexOf("}",d),c===-1)throw new Error("Unclosed pattern");d>m&&ln.call(l,{type:"literal",value:h.substring(m,d)});var v=h.substring(d+1,c);if(_n.hasOwnProperty(v)){var p=e["[["+v+"]]"],f=u["[["+v+"]]"];if("year"===v&&f<=0?f=1-f:"month"===v?f++:"hour"===v&&e["[[hour12]]"]===!0&&(f%=12,0===f&&e["[[hourNo0]]"]===!0&&(f=12)),"numeric"===p)k=F(o,f);else if("2-digit"===p)k=F(s,f),k.length>2&&(k=k.slice(-2));else if(p in Wn)switch(v){case"month":k=x(g,M,"months",p,u["[["+v+"]]"]);break;case"weekday":try{k=x(g,M,"days",p,u["[["+v+"]]"])}catch(b){throw new Error("Could not find weekday data for locale "+r)}break;case"timeZoneName":k="";break;case"era":try{k=x(g,M,"eras",p,u["[["+v+"]]"])}catch(b){throw new Error("Could not find era data for locale "+r)}break;default:k=u["[["+v+"]]"]}ln.call(l,{type:v,value:k})}else if("ampm"===v){var K=u["[[hour]]"];k=x(g,M,"dayPeriods",K>11?"pm":"am",null),ln.call(l,{type:"dayPeriod",value:k})}else ln.call(l,{type:"literal",value:h.substring(d,c+1)});m=c+1,d=h.indexOf("{",m)}return ci;i++){var t=e[i];r+=t.value}return r}function U(n,a){for(var e=Y(n,a),r=[],i=0;e.length>i;i++){var t=e[i];r.push({type:t.type,value:t.value})}return r}function Z(n,a,e){var i=new Date(n),t="get"+(e||"");return new r({"[[weekday]]":i[t+"Day"](),"[[era]]":+(i[t+"FullYear"]()>=0),"[[year]]":i[t+"FullYear"](),"[[month]]":i[t+"Month"](),"[[day]]":i[t+"Date"](),"[[hour]]":i[t+"Hours"](),"[[minute]]":i[t+"Minutes"](),"[[second]]":i[t+"Seconds"](),"[[inDST]]":!1})}function X(n,a){if(!n.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var e=void 0,r=[a],i=a.split("-");for(i.length>2&&4===i[1].length&&ln.call(r,i[0]+"-"+i[2]);e=dn.call(r);)ln.call(yn.NumberFormat["[[availableLocales]]"],e),yn.NumberFormat["[[localeData]]"][e]=n.number,n.date&&(n.date.nu=n.number.nu,ln.call(yn.DateTimeFormat["[[availableLocales]]"],e),yn.DateTimeFormat["[[localeData]]"][e]=n.date);void 0===Hn&&u(a)}var nn={};nn.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n};var an=function(){var n={};try{return Object.defineProperty(n,"a",{}),"a"in n}catch(a){return!1}}(),en=!an&&!Object.prototype.__defineGetter__,rn=Object.prototype.hasOwnProperty,tn=an?Object.defineProperty:function(n,a,e){"get"in e&&n.__defineGetter__?n.__defineGetter__(a,e.get):(!rn.call(n,a)||"value"in e)&&(n[a]=e.value)},on=Array.prototype.indexOf||function(n){var a=this;if(!a.length)return-1;for(var e=arguments[1]||0,r=a.length;e n);\n\t}\n\t\n\t/**\n\t * A map that doesn't contain Object in its prototype chain\n\t */\n\tfunction Record(obj) {\n\t // Copy only own properties over unless this object is already a Record instance\n\t for (var k in obj) {\n\t if (obj instanceof Record || hop.call(obj, k)) defineProperty(this, k, { value: obj[k], enumerable: true, writable: true, configurable: true });\n\t }\n\t}\n\tRecord.prototype = objCreate(null);\n\t\n\t/**\n\t * An ordered list\n\t */\n\tfunction List() {\n\t defineProperty(this, 'length', { writable: true, value: 0 });\n\t\n\t if (arguments.length) arrPush.apply(this, arrSlice.call(arguments));\n\t}\n\tList.prototype = objCreate(null);\n\t\n\t/**\n\t * Constructs a regular expression to restore tainted RegExp properties\n\t */\n\tfunction createRegExpRestore() {\n\t var esc = /[.?*+^$[\\]\\\\(){}|-]/g,\n\t lm = RegExp.lastMatch || '',\n\t ml = RegExp.multiline ? 'm' : '',\n\t ret = { input: RegExp.input },\n\t reg = new List(),\n\t has = false,\n\t cap = {};\n\t\n\t // Create a snapshot of all the 'captured' properties\n\t for (var i = 1; i <= 9; i++) {\n\t has = (cap['$' + i] = RegExp['$' + i]) || has;\n\t } // Now we've snapshotted some properties, escape the lastMatch string\n\t lm = lm.replace(esc, '\\\\$&');\n\t\n\t // If any of the captured strings were non-empty, iterate over them all\n\t if (has) {\n\t for (var _i = 1; _i <= 9; _i++) {\n\t var m = cap['$' + _i];\n\t\n\t // If it's empty, add an empty capturing group\n\t if (!m) lm = '()' + lm;\n\t\n\t // Else find the string in lm and escape & wrap it to capture it\n\t else {\n\t m = m.replace(esc, '\\\\$&');\n\t lm = lm.replace(m, '(' + m + ')');\n\t }\n\t\n\t // Push it to the reg and chop lm to make sure further groups come after\n\t arrPush.call(reg, lm.slice(0, lm.indexOf('(') + 1));\n\t lm = lm.slice(lm.indexOf('(') + 1);\n\t }\n\t }\n\t\n\t // Create the regular expression that will reconstruct the RegExp properties\n\t ret.exp = new RegExp(arrJoin.call(reg, '') + lm, ml);\n\t\n\t return ret;\n\t}\n\t\n\t/**\n\t * Mimics ES5's abstract ToObject() function\n\t */\n\tfunction toObject(arg) {\n\t if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\t\n\t return Object(arg);\n\t}\n\t\n\t/**\n\t * Returns \"internal\" properties for an object\n\t */\n\tfunction getInternalProperties(obj) {\n\t if (hop.call(obj, '__getInternalProperties')) return obj.__getInternalProperties(secret);\n\t\n\t return objCreate(null);\n\t}\n\t\n\t/**\n\t* Defines regular expressions for various operations related to the BCP 47 syntax,\n\t* as defined at http://tools.ietf.org/html/bcp47#section-2.1\n\t*/\n\t\n\t// extlang = 3ALPHA ; selected ISO 639 codes\n\t// *2(\"-\" 3ALPHA) ; permanently reserved\n\tvar extlang = '[a-z]{3}(?:-[a-z]{3}){0,2}';\n\t\n\t// language = 2*3ALPHA ; shortest ISO 639 code\n\t// [\"-\" extlang] ; sometimes followed by\n\t// ; extended language subtags\n\t// / 4ALPHA ; or reserved for future use\n\t// / 5*8ALPHA ; or registered language subtag\n\tvar language = '(?:[a-z]{2,3}(?:-' + extlang + ')?|[a-z]{4}|[a-z]{5,8})';\n\t\n\t// script = 4ALPHA ; ISO 15924 code\n\tvar script = '[a-z]{4}';\n\t\n\t// region = 2ALPHA ; ISO 3166-1 code\n\t// / 3DIGIT ; UN M.49 code\n\tvar region = '(?:[a-z]{2}|\\\\d{3})';\n\t\n\t// variant = 5*8alphanum ; registered variants\n\t// / (DIGIT 3alphanum)\n\tvar variant = '(?:[a-z0-9]{5,8}|\\\\d[a-z0-9]{3})';\n\t\n\t// ; Single alphanumerics\n\t// ; \"x\" reserved for private use\n\t// singleton = DIGIT ; 0 - 9\n\t// / %x41-57 ; A - W\n\t// / %x59-5A ; Y - Z\n\t// / %x61-77 ; a - w\n\t// / %x79-7A ; y - z\n\tvar singleton = '[0-9a-wy-z]';\n\t\n\t// extension = singleton 1*(\"-\" (2*8alphanum))\n\tvar extension = singleton + '(?:-[a-z0-9]{2,8})+';\n\t\n\t// privateuse = \"x\" 1*(\"-\" (1*8alphanum))\n\tvar privateuse = 'x(?:-[a-z0-9]{1,8})+';\n\t\n\t// irregular = \"en-GB-oed\" ; irregular tags do not match\n\t// / \"i-ami\" ; the 'langtag' production and\n\t// / \"i-bnn\" ; would not otherwise be\n\t// / \"i-default\" ; considered 'well-formed'\n\t// / \"i-enochian\" ; These tags are all valid,\n\t// / \"i-hak\" ; but most are deprecated\n\t// / \"i-klingon\" ; in favor of more modern\n\t// / \"i-lux\" ; subtags or subtag\n\t// / \"i-mingo\" ; combination\n\t// / \"i-navajo\"\n\t// / \"i-pwn\"\n\t// / \"i-tao\"\n\t// / \"i-tay\"\n\t// / \"i-tsu\"\n\t// / \"sgn-BE-FR\"\n\t// / \"sgn-BE-NL\"\n\t// / \"sgn-CH-DE\"\n\tvar irregular = '(?:en-GB-oed' + '|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)' + '|sgn-(?:BE-FR|BE-NL|CH-DE))';\n\t\n\t// regular = \"art-lojban\" ; these tags match the 'langtag'\n\t// / \"cel-gaulish\" ; production, but their subtags\n\t// / \"no-bok\" ; are not extended language\n\t// / \"no-nyn\" ; or variant subtags: their meaning\n\t// / \"zh-guoyu\" ; is defined by their registration\n\t// / \"zh-hakka\" ; and all of these are deprecated\n\t// / \"zh-min\" ; in favor of a more modern\n\t// / \"zh-min-nan\" ; subtag or sequence of subtags\n\t// / \"zh-xiang\"\n\tvar regular = '(?:art-lojban|cel-gaulish|no-bok|no-nyn' + '|zh-(?:guoyu|hakka|min|min-nan|xiang))';\n\t\n\t// grandfathered = irregular ; non-redundant tags registered\n\t// / regular ; during the RFC 3066 era\n\tvar grandfathered = '(?:' + irregular + '|' + regular + ')';\n\t\n\t// langtag = language\n\t// [\"-\" script]\n\t// [\"-\" region]\n\t// *(\"-\" variant)\n\t// *(\"-\" extension)\n\t// [\"-\" privateuse]\n\tvar langtag = language + '(?:-' + script + ')?(?:-' + region + ')?(?:-' + variant + ')*(?:-' + extension + ')*(?:-' + privateuse + ')?';\n\t\n\t// Language-Tag = langtag ; normal language tags\n\t// / privateuse ; private use tag\n\t// / grandfathered ; grandfathered tags\n\tvar expBCP47Syntax = RegExp('^(?:' + langtag + '|' + privateuse + '|' + grandfathered + ')$', 'i');\n\t\n\t// Match duplicate variants in a language tag\n\tvar expVariantDupes = RegExp('^(?!x).*?-(' + variant + ')-(?:\\\\w{4,8}-(?!x-))*\\\\1\\\\b', 'i');\n\t\n\t// Match duplicate singletons in a language tag (except in private use)\n\tvar expSingletonDupes = RegExp('^(?!x).*?-(' + singleton + ')-(?:\\\\w+-(?!x-))*\\\\1\\\\b', 'i');\n\t\n\t// Match all extension sequences\n\tvar expExtSequences = RegExp('-' + extension, 'ig');\n\t\n\t// Default locale is the first-added locale data for us\n\tvar defaultLocale = void 0;\n\tfunction setDefaultLocale(locale) {\n\t defaultLocale = locale;\n\t}\n\t\n\t// IANA Subtag Registry redundant tag and subtag maps\n\tvar redundantTags = {\n\t tags: {\n\t \"art-lojban\": \"jbo\",\n\t \"i-ami\": \"ami\",\n\t \"i-bnn\": \"bnn\",\n\t \"i-hak\": \"hak\",\n\t \"i-klingon\": \"tlh\",\n\t \"i-lux\": \"lb\",\n\t \"i-navajo\": \"nv\",\n\t \"i-pwn\": \"pwn\",\n\t \"i-tao\": \"tao\",\n\t \"i-tay\": \"tay\",\n\t \"i-tsu\": \"tsu\",\n\t \"no-bok\": \"nb\",\n\t \"no-nyn\": \"nn\",\n\t \"sgn-BE-FR\": \"sfb\",\n\t \"sgn-BE-NL\": \"vgt\",\n\t \"sgn-CH-DE\": \"sgg\",\n\t \"zh-guoyu\": \"cmn\",\n\t \"zh-hakka\": \"hak\",\n\t \"zh-min-nan\": \"nan\",\n\t \"zh-xiang\": \"hsn\",\n\t \"sgn-BR\": \"bzs\",\n\t \"sgn-CO\": \"csn\",\n\t \"sgn-DE\": \"gsg\",\n\t \"sgn-DK\": \"dsl\",\n\t \"sgn-ES\": \"ssp\",\n\t \"sgn-FR\": \"fsl\",\n\t \"sgn-GB\": \"bfi\",\n\t \"sgn-GR\": \"gss\",\n\t \"sgn-IE\": \"isg\",\n\t \"sgn-IT\": \"ise\",\n\t \"sgn-JP\": \"jsl\",\n\t \"sgn-MX\": \"mfs\",\n\t \"sgn-NI\": \"ncs\",\n\t \"sgn-NL\": \"dse\",\n\t \"sgn-NO\": \"nsl\",\n\t \"sgn-PT\": \"psr\",\n\t \"sgn-SE\": \"swl\",\n\t \"sgn-US\": \"ase\",\n\t \"sgn-ZA\": \"sfs\",\n\t \"zh-cmn\": \"cmn\",\n\t \"zh-cmn-Hans\": \"cmn-Hans\",\n\t \"zh-cmn-Hant\": \"cmn-Hant\",\n\t \"zh-gan\": \"gan\",\n\t \"zh-wuu\": \"wuu\",\n\t \"zh-yue\": \"yue\"\n\t },\n\t subtags: {\n\t BU: \"MM\",\n\t DD: \"DE\",\n\t FX: \"FR\",\n\t TP: \"TL\",\n\t YD: \"YE\",\n\t ZR: \"CD\",\n\t heploc: \"alalc97\",\n\t 'in': \"id\",\n\t iw: \"he\",\n\t ji: \"yi\",\n\t jw: \"jv\",\n\t mo: \"ro\",\n\t ayx: \"nun\",\n\t bjd: \"drl\",\n\t ccq: \"rki\",\n\t cjr: \"mom\",\n\t cka: \"cmr\",\n\t cmk: \"xch\",\n\t drh: \"khk\",\n\t drw: \"prs\",\n\t gav: \"dev\",\n\t hrr: \"jal\",\n\t ibi: \"opa\",\n\t kgh: \"kml\",\n\t lcq: \"ppr\",\n\t mst: \"mry\",\n\t myt: \"mry\",\n\t sca: \"hle\",\n\t tie: \"ras\",\n\t tkk: \"twm\",\n\t tlw: \"weo\",\n\t tnf: \"prs\",\n\t ybd: \"rki\",\n\t yma: \"lrr\"\n\t },\n\t extLang: {\n\t aao: [\"aao\", \"ar\"],\n\t abh: [\"abh\", \"ar\"],\n\t abv: [\"abv\", \"ar\"],\n\t acm: [\"acm\", \"ar\"],\n\t acq: [\"acq\", \"ar\"],\n\t acw: [\"acw\", \"ar\"],\n\t acx: [\"acx\", \"ar\"],\n\t acy: [\"acy\", \"ar\"],\n\t adf: [\"adf\", \"ar\"],\n\t ads: [\"ads\", \"sgn\"],\n\t aeb: [\"aeb\", \"ar\"],\n\t aec: [\"aec\", \"ar\"],\n\t aed: [\"aed\", \"sgn\"],\n\t aen: [\"aen\", \"sgn\"],\n\t afb: [\"afb\", \"ar\"],\n\t afg: [\"afg\", \"sgn\"],\n\t ajp: [\"ajp\", \"ar\"],\n\t apc: [\"apc\", \"ar\"],\n\t apd: [\"apd\", \"ar\"],\n\t arb: [\"arb\", \"ar\"],\n\t arq: [\"arq\", \"ar\"],\n\t ars: [\"ars\", \"ar\"],\n\t ary: [\"ary\", \"ar\"],\n\t arz: [\"arz\", \"ar\"],\n\t ase: [\"ase\", \"sgn\"],\n\t asf: [\"asf\", \"sgn\"],\n\t asp: [\"asp\", \"sgn\"],\n\t asq: [\"asq\", \"sgn\"],\n\t asw: [\"asw\", \"sgn\"],\n\t auz: [\"auz\", \"ar\"],\n\t avl: [\"avl\", \"ar\"],\n\t ayh: [\"ayh\", \"ar\"],\n\t ayl: [\"ayl\", \"ar\"],\n\t ayn: [\"ayn\", \"ar\"],\n\t ayp: [\"ayp\", \"ar\"],\n\t bbz: [\"bbz\", \"ar\"],\n\t bfi: [\"bfi\", \"sgn\"],\n\t bfk: [\"bfk\", \"sgn\"],\n\t bjn: [\"bjn\", \"ms\"],\n\t bog: [\"bog\", \"sgn\"],\n\t bqn: [\"bqn\", \"sgn\"],\n\t bqy: [\"bqy\", \"sgn\"],\n\t btj: [\"btj\", \"ms\"],\n\t bve: [\"bve\", \"ms\"],\n\t bvl: [\"bvl\", \"sgn\"],\n\t bvu: [\"bvu\", \"ms\"],\n\t bzs: [\"bzs\", \"sgn\"],\n\t cdo: [\"cdo\", \"zh\"],\n\t cds: [\"cds\", \"sgn\"],\n\t cjy: [\"cjy\", \"zh\"],\n\t cmn: [\"cmn\", \"zh\"],\n\t coa: [\"coa\", \"ms\"],\n\t cpx: [\"cpx\", \"zh\"],\n\t csc: [\"csc\", \"sgn\"],\n\t csd: [\"csd\", \"sgn\"],\n\t cse: [\"cse\", \"sgn\"],\n\t csf: [\"csf\", \"sgn\"],\n\t csg: [\"csg\", \"sgn\"],\n\t csl: [\"csl\", \"sgn\"],\n\t csn: [\"csn\", \"sgn\"],\n\t csq: [\"csq\", \"sgn\"],\n\t csr: [\"csr\", \"sgn\"],\n\t czh: [\"czh\", \"zh\"],\n\t czo: [\"czo\", \"zh\"],\n\t doq: [\"doq\", \"sgn\"],\n\t dse: [\"dse\", \"sgn\"],\n\t dsl: [\"dsl\", \"sgn\"],\n\t dup: [\"dup\", \"ms\"],\n\t ecs: [\"ecs\", \"sgn\"],\n\t esl: [\"esl\", \"sgn\"],\n\t esn: [\"esn\", \"sgn\"],\n\t eso: [\"eso\", \"sgn\"],\n\t eth: [\"eth\", \"sgn\"],\n\t fcs: [\"fcs\", \"sgn\"],\n\t fse: [\"fse\", \"sgn\"],\n\t fsl: [\"fsl\", \"sgn\"],\n\t fss: [\"fss\", \"sgn\"],\n\t gan: [\"gan\", \"zh\"],\n\t gds: [\"gds\", \"sgn\"],\n\t gom: [\"gom\", \"kok\"],\n\t gse: [\"gse\", \"sgn\"],\n\t gsg: [\"gsg\", \"sgn\"],\n\t gsm: [\"gsm\", \"sgn\"],\n\t gss: [\"gss\", \"sgn\"],\n\t gus: [\"gus\", \"sgn\"],\n\t hab: [\"hab\", \"sgn\"],\n\t haf: [\"haf\", \"sgn\"],\n\t hak: [\"hak\", \"zh\"],\n\t hds: [\"hds\", \"sgn\"],\n\t hji: [\"hji\", \"ms\"],\n\t hks: [\"hks\", \"sgn\"],\n\t hos: [\"hos\", \"sgn\"],\n\t hps: [\"hps\", \"sgn\"],\n\t hsh: [\"hsh\", \"sgn\"],\n\t hsl: [\"hsl\", \"sgn\"],\n\t hsn: [\"hsn\", \"zh\"],\n\t icl: [\"icl\", \"sgn\"],\n\t ils: [\"ils\", \"sgn\"],\n\t inl: [\"inl\", \"sgn\"],\n\t ins: [\"ins\", \"sgn\"],\n\t ise: [\"ise\", \"sgn\"],\n\t isg: [\"isg\", \"sgn\"],\n\t isr: [\"isr\", \"sgn\"],\n\t jak: [\"jak\", \"ms\"],\n\t jax: [\"jax\", \"ms\"],\n\t jcs: [\"jcs\", \"sgn\"],\n\t jhs: [\"jhs\", \"sgn\"],\n\t jls: [\"jls\", \"sgn\"],\n\t jos: [\"jos\", \"sgn\"],\n\t jsl: [\"jsl\", \"sgn\"],\n\t jus: [\"jus\", \"sgn\"],\n\t kgi: [\"kgi\", \"sgn\"],\n\t knn: [\"knn\", \"kok\"],\n\t kvb: [\"kvb\", \"ms\"],\n\t kvk: [\"kvk\", \"sgn\"],\n\t kvr: [\"kvr\", \"ms\"],\n\t kxd: [\"kxd\", \"ms\"],\n\t lbs: [\"lbs\", \"sgn\"],\n\t lce: [\"lce\", \"ms\"],\n\t lcf: [\"lcf\", \"ms\"],\n\t liw: [\"liw\", \"ms\"],\n\t lls: [\"lls\", \"sgn\"],\n\t lsg: [\"lsg\", \"sgn\"],\n\t lsl: [\"lsl\", \"sgn\"],\n\t lso: [\"lso\", \"sgn\"],\n\t lsp: [\"lsp\", \"sgn\"],\n\t lst: [\"lst\", \"sgn\"],\n\t lsy: [\"lsy\", \"sgn\"],\n\t ltg: [\"ltg\", \"lv\"],\n\t lvs: [\"lvs\", \"lv\"],\n\t lzh: [\"lzh\", \"zh\"],\n\t max: [\"max\", \"ms\"],\n\t mdl: [\"mdl\", \"sgn\"],\n\t meo: [\"meo\", \"ms\"],\n\t mfa: [\"mfa\", \"ms\"],\n\t mfb: [\"mfb\", \"ms\"],\n\t mfs: [\"mfs\", \"sgn\"],\n\t min: [\"min\", \"ms\"],\n\t mnp: [\"mnp\", \"zh\"],\n\t mqg: [\"mqg\", \"ms\"],\n\t mre: [\"mre\", \"sgn\"],\n\t msd: [\"msd\", \"sgn\"],\n\t msi: [\"msi\", \"ms\"],\n\t msr: [\"msr\", \"sgn\"],\n\t mui: [\"mui\", \"ms\"],\n\t mzc: [\"mzc\", \"sgn\"],\n\t mzg: [\"mzg\", \"sgn\"],\n\t mzy: [\"mzy\", \"sgn\"],\n\t nan: [\"nan\", \"zh\"],\n\t nbs: [\"nbs\", \"sgn\"],\n\t ncs: [\"ncs\", \"sgn\"],\n\t nsi: [\"nsi\", \"sgn\"],\n\t nsl: [\"nsl\", \"sgn\"],\n\t nsp: [\"nsp\", \"sgn\"],\n\t nsr: [\"nsr\", \"sgn\"],\n\t nzs: [\"nzs\", \"sgn\"],\n\t okl: [\"okl\", \"sgn\"],\n\t orn: [\"orn\", \"ms\"],\n\t ors: [\"ors\", \"ms\"],\n\t pel: [\"pel\", \"ms\"],\n\t pga: [\"pga\", \"ar\"],\n\t pks: [\"pks\", \"sgn\"],\n\t prl: [\"prl\", \"sgn\"],\n\t prz: [\"prz\", \"sgn\"],\n\t psc: [\"psc\", \"sgn\"],\n\t psd: [\"psd\", \"sgn\"],\n\t pse: [\"pse\", \"ms\"],\n\t psg: [\"psg\", \"sgn\"],\n\t psl: [\"psl\", \"sgn\"],\n\t pso: [\"pso\", \"sgn\"],\n\t psp: [\"psp\", \"sgn\"],\n\t psr: [\"psr\", \"sgn\"],\n\t pys: [\"pys\", \"sgn\"],\n\t rms: [\"rms\", \"sgn\"],\n\t rsi: [\"rsi\", \"sgn\"],\n\t rsl: [\"rsl\", \"sgn\"],\n\t sdl: [\"sdl\", \"sgn\"],\n\t sfb: [\"sfb\", \"sgn\"],\n\t sfs: [\"sfs\", \"sgn\"],\n\t sgg: [\"sgg\", \"sgn\"],\n\t sgx: [\"sgx\", \"sgn\"],\n\t shu: [\"shu\", \"ar\"],\n\t slf: [\"slf\", \"sgn\"],\n\t sls: [\"sls\", \"sgn\"],\n\t sqk: [\"sqk\", \"sgn\"],\n\t sqs: [\"sqs\", \"sgn\"],\n\t ssh: [\"ssh\", \"ar\"],\n\t ssp: [\"ssp\", \"sgn\"],\n\t ssr: [\"ssr\", \"sgn\"],\n\t svk: [\"svk\", \"sgn\"],\n\t swc: [\"swc\", \"sw\"],\n\t swh: [\"swh\", \"sw\"],\n\t swl: [\"swl\", \"sgn\"],\n\t syy: [\"syy\", \"sgn\"],\n\t tmw: [\"tmw\", \"ms\"],\n\t tse: [\"tse\", \"sgn\"],\n\t tsm: [\"tsm\", \"sgn\"],\n\t tsq: [\"tsq\", \"sgn\"],\n\t tss: [\"tss\", \"sgn\"],\n\t tsy: [\"tsy\", \"sgn\"],\n\t tza: [\"tza\", \"sgn\"],\n\t ugn: [\"ugn\", \"sgn\"],\n\t ugy: [\"ugy\", \"sgn\"],\n\t ukl: [\"ukl\", \"sgn\"],\n\t uks: [\"uks\", \"sgn\"],\n\t urk: [\"urk\", \"ms\"],\n\t uzn: [\"uzn\", \"uz\"],\n\t uzs: [\"uzs\", \"uz\"],\n\t vgt: [\"vgt\", \"sgn\"],\n\t vkk: [\"vkk\", \"ms\"],\n\t vkt: [\"vkt\", \"ms\"],\n\t vsi: [\"vsi\", \"sgn\"],\n\t vsl: [\"vsl\", \"sgn\"],\n\t vsv: [\"vsv\", \"sgn\"],\n\t wuu: [\"wuu\", \"zh\"],\n\t xki: [\"xki\", \"sgn\"],\n\t xml: [\"xml\", \"sgn\"],\n\t xmm: [\"xmm\", \"ms\"],\n\t xms: [\"xms\", \"sgn\"],\n\t yds: [\"yds\", \"sgn\"],\n\t ysl: [\"ysl\", \"sgn\"],\n\t yue: [\"yue\", \"zh\"],\n\t zib: [\"zib\", \"sgn\"],\n\t zlm: [\"zlm\", \"ms\"],\n\t zmi: [\"zmi\", \"ms\"],\n\t zsl: [\"zsl\", \"sgn\"],\n\t zsm: [\"zsm\", \"ms\"]\n\t }\n\t};\n\t\n\t/**\n\t * Convert only a-z to uppercase as per section 6.1 of the spec\n\t */\n\tfunction toLatinUpperCase(str) {\n\t var i = str.length;\n\t\n\t while (i--) {\n\t var ch = str.charAt(i);\n\t\n\t if (ch >= \"a\" && ch <= \"z\") str = str.slice(0, i) + ch.toUpperCase() + str.slice(i + 1);\n\t }\n\t\n\t return str;\n\t}\n\t\n\t/**\n\t * The IsStructurallyValidLanguageTag abstract operation verifies that the locale\n\t * argument (which must be a String value)\n\t *\n\t * - represents a well-formed BCP 47 language tag as specified in RFC 5646 section\n\t * 2.1, or successor,\n\t * - does not include duplicate variant subtags, and\n\t * - does not include duplicate singleton subtags.\n\t *\n\t * The abstract operation returns true if locale can be generated from the ABNF\n\t * grammar in section 2.1 of the RFC, starting with Language-Tag, and does not\n\t * contain duplicate variant or singleton subtags (other than as a private use\n\t * subtag). It returns false otherwise. Terminal value characters in the grammar are\n\t * interpreted as the Unicode equivalents of the ASCII octet values given.\n\t */\n\tfunction /* 6.2.2 */IsStructurallyValidLanguageTag(locale) {\n\t // represents a well-formed BCP 47 language tag as specified in RFC 5646\n\t if (!expBCP47Syntax.test(locale)) return false;\n\t\n\t // does not include duplicate variant subtags, and\n\t if (expVariantDupes.test(locale)) return false;\n\t\n\t // does not include duplicate singleton subtags.\n\t if (expSingletonDupes.test(locale)) return false;\n\t\n\t return true;\n\t}\n\t\n\t/**\n\t * The CanonicalizeLanguageTag abstract operation returns the canonical and case-\n\t * regularized form of the locale argument (which must be a String value that is\n\t * a structurally valid BCP 47 language tag as verified by the\n\t * IsStructurallyValidLanguageTag abstract operation). It takes the steps\n\t * specified in RFC 5646 section 4.5, or successor, to bring the language tag\n\t * into canonical form, and to regularize the case of the subtags, but does not\n\t * take the steps to bring a language tag into “extlang form” and to reorder\n\t * variant subtags.\n\t\n\t * The specifications for extensions to BCP 47 language tags, such as RFC 6067,\n\t * may include canonicalization rules for the extension subtag sequences they\n\t * define that go beyond the canonicalization rules of RFC 5646 section 4.5.\n\t * Implementations are allowed, but not required, to apply these additional rules.\n\t */\n\tfunction /* 6.2.3 */CanonicalizeLanguageTag(locale) {\n\t var match = void 0,\n\t parts = void 0;\n\t\n\t // A language tag is in 'canonical form' when the tag is well-formed\n\t // according to the rules in Sections 2.1 and 2.2\n\t\n\t // Section 2.1 says all subtags use lowercase...\n\t locale = locale.toLowerCase();\n\t\n\t // ...with 2 exceptions: 'two-letter and four-letter subtags that neither\n\t // appear at the start of the tag nor occur after singletons. Such two-letter\n\t // subtags are all uppercase (as in the tags \"en-CA-x-ca\" or \"sgn-BE-FR\") and\n\t // four-letter subtags are titlecase (as in the tag \"az-Latn-x-latn\").\n\t parts = locale.split('-');\n\t for (var i = 1, max = parts.length; i < max; i++) {\n\t // Two-letter subtags are all uppercase\n\t if (parts[i].length === 2) parts[i] = parts[i].toUpperCase();\n\t\n\t // Four-letter subtags are titlecase\n\t else if (parts[i].length === 4) parts[i] = parts[i].charAt(0).toUpperCase() + parts[i].slice(1);\n\t\n\t // Is it a singleton?\n\t else if (parts[i].length === 1 && parts[i] !== 'x') break;\n\t }\n\t locale = arrJoin.call(parts, '-');\n\t\n\t // The steps laid out in RFC 5646 section 4.5 are as follows:\n\t\n\t // 1. Extension sequences are ordered into case-insensitive ASCII order\n\t // by singleton subtag.\n\t if ((match = locale.match(expExtSequences)) && match.length > 1) {\n\t // The built-in sort() sorts by ASCII order, so use that\n\t match.sort();\n\t\n\t // Replace all extensions with the joined, sorted array\n\t locale = locale.replace(RegExp('(?:' + expExtSequences.source + ')+', 'i'), arrJoin.call(match, ''));\n\t }\n\t\n\t // 2. Redundant or grandfathered tags are replaced by their 'Preferred-\n\t // Value', if there is one.\n\t if (hop.call(redundantTags.tags, locale)) locale = redundantTags.tags[locale];\n\t\n\t // 3. Subtags are replaced by their 'Preferred-Value', if there is one.\n\t // For extlangs, the original primary language subtag is also\n\t // replaced if there is a primary language subtag in the 'Preferred-\n\t // Value'.\n\t parts = locale.split('-');\n\t\n\t for (var _i = 1, _max = parts.length; _i < _max; _i++) {\n\t if (hop.call(redundantTags.subtags, parts[_i])) parts[_i] = redundantTags.subtags[parts[_i]];else if (hop.call(redundantTags.extLang, parts[_i])) {\n\t parts[_i] = redundantTags.extLang[parts[_i]][0];\n\t\n\t // For extlang tags, the prefix needs to be removed if it is redundant\n\t if (_i === 1 && redundantTags.extLang[parts[1]][1] === parts[0]) {\n\t parts = arrSlice.call(parts, _i++);\n\t _max -= 1;\n\t }\n\t }\n\t }\n\t\n\t return arrJoin.call(parts, '-');\n\t}\n\t\n\t/**\n\t * The DefaultLocale abstract operation returns a String value representing the\n\t * structurally valid (6.2.2) and canonicalized (6.2.3) BCP 47 language tag for the\n\t * host environment’s current locale.\n\t */\n\tfunction /* 6.2.4 */DefaultLocale() {\n\t return defaultLocale;\n\t}\n\t\n\t// Sect 6.3 Currency Codes\n\t// =======================\n\t\n\tvar expCurrencyCode = /^[A-Z]{3}$/;\n\t\n\t/**\n\t * The IsWellFormedCurrencyCode abstract operation verifies that the currency argument\n\t * (after conversion to a String value) represents a well-formed 3-letter ISO currency\n\t * code. The following steps are taken:\n\t */\n\tfunction /* 6.3.1 */IsWellFormedCurrencyCode(currency) {\n\t // 1. Let `c` be ToString(currency)\n\t var c = String(currency);\n\t\n\t // 2. Let `normalized` be the result of mapping c to upper case as described\n\t // in 6.1.\n\t var normalized = toLatinUpperCase(c);\n\t\n\t // 3. If the string length of normalized is not 3, return false.\n\t // 4. If normalized contains any character that is not in the range \"A\" to \"Z\"\n\t // (U+0041 to U+005A), return false.\n\t if (expCurrencyCode.test(normalized) === false) return false;\n\t\n\t // 5. Return true\n\t return true;\n\t}\n\t\n\tvar expUnicodeExSeq = /-u(?:-[0-9a-z]{2,8})+/gi; // See `extension` below\n\t\n\tfunction /* 9.2.1 */CanonicalizeLocaleList(locales) {\n\t // The abstract operation CanonicalizeLocaleList takes the following steps:\n\t\n\t // 1. If locales is undefined, then a. Return a new empty List\n\t if (locales === undefined) return new List();\n\t\n\t // 2. Let seen be a new empty List.\n\t var seen = new List();\n\t\n\t // 3. If locales is a String value, then\n\t // a. Let locales be a new array created as if by the expression new\n\t // Array(locales) where Array is the standard built-in constructor with\n\t // that name and locales is the value of locales.\n\t locales = typeof locales === 'string' ? [locales] : locales;\n\t\n\t // 4. Let O be ToObject(locales).\n\t var O = toObject(locales);\n\t\n\t // 5. Let lenValue be the result of calling the [[Get]] internal method of\n\t // O with the argument \"length\".\n\t // 6. Let len be ToUint32(lenValue).\n\t var len = O.length;\n\t\n\t // 7. Let k be 0.\n\t var k = 0;\n\t\n\t // 8. Repeat, while k < len\n\t while (k < len) {\n\t // a. Let Pk be ToString(k).\n\t var Pk = String(k);\n\t\n\t // b. Let kPresent be the result of calling the [[HasProperty]] internal\n\t // method of O with argument Pk.\n\t var kPresent = Pk in O;\n\t\n\t // c. If kPresent is true, then\n\t if (kPresent) {\n\t // i. Let kValue be the result of calling the [[Get]] internal\n\t // method of O with argument Pk.\n\t var kValue = O[Pk];\n\t\n\t // ii. If the type of kValue is not String or Object, then throw a\n\t // TypeError exception.\n\t if (kValue === null || typeof kValue !== 'string' && (typeof kValue === \"undefined\" ? \"undefined\" : babelHelpers[\"typeof\"](kValue)) !== 'object') throw new TypeError('String or Object type expected');\n\t\n\t // iii. Let tag be ToString(kValue).\n\t var tag = String(kValue);\n\t\n\t // iv. If the result of calling the abstract operation\n\t // IsStructurallyValidLanguageTag (defined in 6.2.2), passing tag as\n\t // the argument, is false, then throw a RangeError exception.\n\t if (!IsStructurallyValidLanguageTag(tag)) throw new RangeError(\"'\" + tag + \"' is not a structurally valid language tag\");\n\t\n\t // v. Let tag be the result of calling the abstract operation\n\t // CanonicalizeLanguageTag (defined in 6.2.3), passing tag as the\n\t // argument.\n\t tag = CanonicalizeLanguageTag(tag);\n\t\n\t // vi. If tag is not an element of seen, then append tag as the last\n\t // element of seen.\n\t if (arrIndexOf.call(seen, tag) === -1) arrPush.call(seen, tag);\n\t }\n\t\n\t // d. Increase k by 1.\n\t k++;\n\t }\n\t\n\t // 9. Return seen.\n\t return seen;\n\t}\n\t\n\t/**\n\t * The BestAvailableLocale abstract operation compares the provided argument\n\t * locale, which must be a String value with a structurally valid and\n\t * canonicalized BCP 47 language tag, against the locales in availableLocales and\n\t * returns either the longest non-empty prefix of locale that is an element of\n\t * availableLocales, or undefined if there is no such element. It uses the\n\t * fallback mechanism of RFC 4647, section 3.4. The following steps are taken:\n\t */\n\tfunction /* 9.2.2 */BestAvailableLocale(availableLocales, locale) {\n\t // 1. Let candidate be locale\n\t var candidate = locale;\n\t\n\t // 2. Repeat\n\t while (candidate) {\n\t // a. If availableLocales contains an element equal to candidate, then return\n\t // candidate.\n\t if (arrIndexOf.call(availableLocales, candidate) > -1) return candidate;\n\t\n\t // b. Let pos be the character index of the last occurrence of \"-\"\n\t // (U+002D) within candidate. If that character does not occur, return\n\t // undefined.\n\t var pos = candidate.lastIndexOf('-');\n\t\n\t if (pos < 0) return;\n\t\n\t // c. If pos ≥ 2 and the character \"-\" occurs at index pos-2 of candidate,\n\t // then decrease pos by 2.\n\t if (pos >= 2 && candidate.charAt(pos - 2) === '-') pos -= 2;\n\t\n\t // d. Let candidate be the substring of candidate from position 0, inclusive,\n\t // to position pos, exclusive.\n\t candidate = candidate.substring(0, pos);\n\t }\n\t}\n\t\n\t/**\n\t * The LookupMatcher abstract operation compares requestedLocales, which must be\n\t * a List as returned by CanonicalizeLocaleList, against the locales in\n\t * availableLocales and determines the best available language to meet the\n\t * request. The following steps are taken:\n\t */\n\tfunction /* 9.2.3 */LookupMatcher(availableLocales, requestedLocales) {\n\t // 1. Let i be 0.\n\t var i = 0;\n\t\n\t // 2. Let len be the number of elements in requestedLocales.\n\t var len = requestedLocales.length;\n\t\n\t // 3. Let availableLocale be undefined.\n\t var availableLocale = void 0;\n\t\n\t var locale = void 0,\n\t noExtensionsLocale = void 0;\n\t\n\t // 4. Repeat while i < len and availableLocale is undefined:\n\t while (i < len && !availableLocale) {\n\t // a. Let locale be the element of requestedLocales at 0-origined list\n\t // position i.\n\t locale = requestedLocales[i];\n\t\n\t // b. Let noExtensionsLocale be the String value that is locale with all\n\t // Unicode locale extension sequences removed.\n\t noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n\t\n\t // c. Let availableLocale be the result of calling the\n\t // BestAvailableLocale abstract operation (defined in 9.2.2) with\n\t // arguments availableLocales and noExtensionsLocale.\n\t availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\t\n\t // d. Increase i by 1.\n\t i++;\n\t }\n\t\n\t // 5. Let result be a new Record.\n\t var result = new Record();\n\t\n\t // 6. If availableLocale is not undefined, then\n\t if (availableLocale !== undefined) {\n\t // a. Set result.[[locale]] to availableLocale.\n\t result['[[locale]]'] = availableLocale;\n\t\n\t // b. If locale and noExtensionsLocale are not the same String value, then\n\t if (String(locale) !== String(noExtensionsLocale)) {\n\t // i. Let extension be the String value consisting of the first\n\t // substring of locale that is a Unicode locale extension sequence.\n\t var extension = locale.match(expUnicodeExSeq)[0];\n\t\n\t // ii. Let extensionIndex be the character position of the initial\n\t // \"-\" of the first Unicode locale extension sequence within locale.\n\t var extensionIndex = locale.indexOf('-u-');\n\t\n\t // iii. Set result.[[extension]] to extension.\n\t result['[[extension]]'] = extension;\n\t\n\t // iv. Set result.[[extensionIndex]] to extensionIndex.\n\t result['[[extensionIndex]]'] = extensionIndex;\n\t }\n\t }\n\t // 7. Else\n\t else\n\t // a. Set result.[[locale]] to the value returned by the DefaultLocale abstract\n\t // operation (defined in 6.2.4).\n\t result['[[locale]]'] = DefaultLocale();\n\t\n\t // 8. Return result\n\t return result;\n\t}\n\t\n\t/**\n\t * The BestFitMatcher abstract operation compares requestedLocales, which must be\n\t * a List as returned by CanonicalizeLocaleList, against the locales in\n\t * availableLocales and determines the best available language to meet the\n\t * request. The algorithm is implementation dependent, but should produce results\n\t * that a typical user of the requested locales would perceive as at least as\n\t * good as those produced by the LookupMatcher abstract operation. Options\n\t * specified through Unicode locale extension sequences must be ignored by the\n\t * algorithm. Information about such subsequences is returned separately.\n\t * The abstract operation returns a record with a [[locale]] field, whose value\n\t * is the language tag of the selected locale, which must be an element of\n\t * availableLocales. If the language tag of the request locale that led to the\n\t * selected locale contained a Unicode locale extension sequence, then the\n\t * returned record also contains an [[extension]] field whose value is the first\n\t * Unicode locale extension sequence, and an [[extensionIndex]] field whose value\n\t * is the index of the first Unicode locale extension sequence within the request\n\t * locale language tag.\n\t */\n\tfunction /* 9.2.4 */BestFitMatcher(availableLocales, requestedLocales) {\n\t return LookupMatcher(availableLocales, requestedLocales);\n\t}\n\t\n\t/**\n\t * The ResolveLocale abstract operation compares a BCP 47 language priority list\n\t * requestedLocales against the locales in availableLocales and determines the\n\t * best available language to meet the request. availableLocales and\n\t * requestedLocales must be provided as List values, options as a Record.\n\t */\n\tfunction /* 9.2.5 */ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData) {\n\t if (availableLocales.length === 0) {\n\t throw new ReferenceError('No locale data has been provided for this object yet.');\n\t }\n\t\n\t // The following steps are taken:\n\t // 1. Let matcher be the value of options.[[localeMatcher]].\n\t var matcher = options['[[localeMatcher]]'];\n\t\n\t var r = void 0;\n\t\n\t // 2. If matcher is \"lookup\", then\n\t if (matcher === 'lookup')\n\t // a. Let r be the result of calling the LookupMatcher abstract operation\n\t // (defined in 9.2.3) with arguments availableLocales and\n\t // requestedLocales.\n\t r = LookupMatcher(availableLocales, requestedLocales);\n\t\n\t // 3. Else\n\t else\n\t // a. Let r be the result of calling the BestFitMatcher abstract\n\t // operation (defined in 9.2.4) with arguments availableLocales and\n\t // requestedLocales.\n\t r = BestFitMatcher(availableLocales, requestedLocales);\n\t\n\t // 4. Let foundLocale be the value of r.[[locale]].\n\t var foundLocale = r['[[locale]]'];\n\t\n\t var extensionSubtags = void 0,\n\t extensionSubtagsLength = void 0;\n\t\n\t // 5. If r has an [[extension]] field, then\n\t if (hop.call(r, '[[extension]]')) {\n\t // a. Let extension be the value of r.[[extension]].\n\t var extension = r['[[extension]]'];\n\t // b. Let split be the standard built-in function object defined in ES5,\n\t // 15.5.4.14.\n\t var split = String.prototype.split;\n\t // c. Let extensionSubtags be the result of calling the [[Call]] internal\n\t // method of split with extension as the this value and an argument\n\t // list containing the single item \"-\".\n\t extensionSubtags = split.call(extension, '-');\n\t // d. Let extensionSubtagsLength be the result of calling the [[Get]]\n\t // internal method of extensionSubtags with argument \"length\".\n\t extensionSubtagsLength = extensionSubtags.length;\n\t }\n\t\n\t // 6. Let result be a new Record.\n\t var result = new Record();\n\t\n\t // 7. Set result.[[dataLocale]] to foundLocale.\n\t result['[[dataLocale]]'] = foundLocale;\n\t\n\t // 8. Let supportedExtension be \"-u\".\n\t var supportedExtension = '-u';\n\t // 9. Let i be 0.\n\t var i = 0;\n\t // 10. Let len be the result of calling the [[Get]] internal method of\n\t // relevantExtensionKeys with argument \"length\".\n\t var len = relevantExtensionKeys.length;\n\t\n\t // 11 Repeat while i < len:\n\t while (i < len) {\n\t // a. Let key be the result of calling the [[Get]] internal method of\n\t // relevantExtensionKeys with argument ToString(i).\n\t var key = relevantExtensionKeys[i];\n\t // b. Let foundLocaleData be the result of calling the [[Get]] internal\n\t // method of localeData with the argument foundLocale.\n\t var foundLocaleData = localeData[foundLocale];\n\t // c. Let keyLocaleData be the result of calling the [[Get]] internal\n\t // method of foundLocaleData with the argument key.\n\t var keyLocaleData = foundLocaleData[key];\n\t // d. Let value be the result of calling the [[Get]] internal method of\n\t // keyLocaleData with argument \"0\".\n\t var value = keyLocaleData['0'];\n\t // e. Let supportedExtensionAddition be \"\".\n\t var supportedExtensionAddition = '';\n\t // f. Let indexOf be the standard built-in function object defined in\n\t // ES5, 15.4.4.14.\n\t var indexOf = arrIndexOf;\n\t\n\t // g. If extensionSubtags is not undefined, then\n\t if (extensionSubtags !== undefined) {\n\t // i. Let keyPos be the result of calling the [[Call]] internal\n\t // method of indexOf with extensionSubtags as the this value and\n\t // an argument list containing the single item key.\n\t var keyPos = indexOf.call(extensionSubtags, key);\n\t\n\t // ii. If keyPos ≠ -1, then\n\t if (keyPos !== -1) {\n\t // 1. If keyPos + 1 < extensionSubtagsLength and the length of the\n\t // result of calling the [[Get]] internal method of\n\t // extensionSubtags with argument ToString(keyPos +1) is greater\n\t // than 2, then\n\t if (keyPos + 1 < extensionSubtagsLength && extensionSubtags[keyPos + 1].length > 2) {\n\t // a. Let requestedValue be the result of calling the [[Get]]\n\t // internal method of extensionSubtags with argument\n\t // ToString(keyPos + 1).\n\t var requestedValue = extensionSubtags[keyPos + 1];\n\t // b. Let valuePos be the result of calling the [[Call]]\n\t // internal method of indexOf with keyLocaleData as the\n\t // this value and an argument list containing the single\n\t // item requestedValue.\n\t var valuePos = indexOf.call(keyLocaleData, requestedValue);\n\t\n\t // c. If valuePos ≠ -1, then\n\t if (valuePos !== -1) {\n\t // i. Let value be requestedValue.\n\t value = requestedValue,\n\t // ii. Let supportedExtensionAddition be the\n\t // concatenation of \"-\", key, \"-\", and value.\n\t supportedExtensionAddition = '-' + key + '-' + value;\n\t }\n\t }\n\t // 2. Else\n\t else {\n\t // a. Let valuePos be the result of calling the [[Call]]\n\t // internal method of indexOf with keyLocaleData as the this\n\t // value and an argument list containing the single item\n\t // \"true\".\n\t var _valuePos = indexOf(keyLocaleData, 'true');\n\t\n\t // b. If valuePos ≠ -1, then\n\t if (_valuePos !== -1)\n\t // i. Let value be \"true\".\n\t value = 'true';\n\t }\n\t }\n\t }\n\t // h. If options has a field [[]], then\n\t if (hop.call(options, '[[' + key + ']]')) {\n\t // i. Let optionsValue be the value of options.[[]].\n\t var optionsValue = options['[[' + key + ']]'];\n\t\n\t // ii. If the result of calling the [[Call]] internal method of indexOf\n\t // with keyLocaleData as the this value and an argument list\n\t // containing the single item optionsValue is not -1, then\n\t if (indexOf.call(keyLocaleData, optionsValue) !== -1) {\n\t // 1. If optionsValue is not equal to value, then\n\t if (optionsValue !== value) {\n\t // a. Let value be optionsValue.\n\t value = optionsValue;\n\t // b. Let supportedExtensionAddition be \"\".\n\t supportedExtensionAddition = '';\n\t }\n\t }\n\t }\n\t // i. Set result.[[]] to value.\n\t result['[[' + key + ']]'] = value;\n\t\n\t // j. Append supportedExtensionAddition to supportedExtension.\n\t supportedExtension += supportedExtensionAddition;\n\t\n\t // k. Increase i by 1.\n\t i++;\n\t }\n\t // 12. If the length of supportedExtension is greater than 2, then\n\t if (supportedExtension.length > 2) {\n\t // a.\n\t var privateIndex = foundLocale.indexOf(\"-x-\");\n\t // b.\n\t if (privateIndex === -1) {\n\t // i.\n\t foundLocale = foundLocale + supportedExtension;\n\t }\n\t // c.\n\t else {\n\t // i.\n\t var preExtension = foundLocale.substring(0, privateIndex);\n\t // ii.\n\t var postExtension = foundLocale.substring(privateIndex);\n\t // iii.\n\t foundLocale = preExtension + supportedExtension + postExtension;\n\t }\n\t // d. asserting - skipping\n\t // e.\n\t foundLocale = CanonicalizeLanguageTag(foundLocale);\n\t }\n\t // 13. Set result.[[locale]] to foundLocale.\n\t result['[[locale]]'] = foundLocale;\n\t\n\t // 14. Return result.\n\t return result;\n\t}\n\t\n\t/**\n\t * The LookupSupportedLocales abstract operation returns the subset of the\n\t * provided BCP 47 language priority list requestedLocales for which\n\t * availableLocales has a matching locale when using the BCP 47 Lookup algorithm.\n\t * Locales appear in the same order in the returned list as in requestedLocales.\n\t * The following steps are taken:\n\t */\n\tfunction /* 9.2.6 */LookupSupportedLocales(availableLocales, requestedLocales) {\n\t // 1. Let len be the number of elements in requestedLocales.\n\t var len = requestedLocales.length;\n\t // 2. Let subset be a new empty List.\n\t var subset = new List();\n\t // 3. Let k be 0.\n\t var k = 0;\n\t\n\t // 4. Repeat while k < len\n\t while (k < len) {\n\t // a. Let locale be the element of requestedLocales at 0-origined list\n\t // position k.\n\t var locale = requestedLocales[k];\n\t // b. Let noExtensionsLocale be the String value that is locale with all\n\t // Unicode locale extension sequences removed.\n\t var noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n\t // c. Let availableLocale be the result of calling the\n\t // BestAvailableLocale abstract operation (defined in 9.2.2) with\n\t // arguments availableLocales and noExtensionsLocale.\n\t var availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\t\n\t // d. If availableLocale is not undefined, then append locale to the end of\n\t // subset.\n\t if (availableLocale !== undefined) arrPush.call(subset, locale);\n\t\n\t // e. Increment k by 1.\n\t k++;\n\t }\n\t\n\t // 5. Let subsetArray be a new Array object whose elements are the same\n\t // values in the same order as the elements of subset.\n\t var subsetArray = arrSlice.call(subset);\n\t\n\t // 6. Return subsetArray.\n\t return subsetArray;\n\t}\n\t\n\t/**\n\t * The BestFitSupportedLocales abstract operation returns the subset of the\n\t * provided BCP 47 language priority list requestedLocales for which\n\t * availableLocales has a matching locale when using the Best Fit Matcher\n\t * algorithm. Locales appear in the same order in the returned list as in\n\t * requestedLocales. The steps taken are implementation dependent.\n\t */\n\tfunction /*9.2.7 */BestFitSupportedLocales(availableLocales, requestedLocales) {\n\t // ###TODO: implement this function as described by the specification###\n\t return LookupSupportedLocales(availableLocales, requestedLocales);\n\t}\n\t\n\t/**\n\t * The SupportedLocales abstract operation returns the subset of the provided BCP\n\t * 47 language priority list requestedLocales for which availableLocales has a\n\t * matching locale. Two algorithms are available to match the locales: the Lookup\n\t * algorithm described in RFC 4647 section 3.4, and an implementation dependent\n\t * best-fit algorithm. Locales appear in the same order in the returned list as\n\t * in requestedLocales. The following steps are taken:\n\t */\n\tfunction /*9.2.8 */SupportedLocales(availableLocales, requestedLocales, options) {\n\t var matcher = void 0,\n\t subset = void 0;\n\t\n\t // 1. If options is not undefined, then\n\t if (options !== undefined) {\n\t // a. Let options be ToObject(options).\n\t options = new Record(toObject(options));\n\t // b. Let matcher be the result of calling the [[Get]] internal method of\n\t // options with argument \"localeMatcher\".\n\t matcher = options.localeMatcher;\n\t\n\t // c. If matcher is not undefined, then\n\t if (matcher !== undefined) {\n\t // i. Let matcher be ToString(matcher).\n\t matcher = String(matcher);\n\t\n\t // ii. If matcher is not \"lookup\" or \"best fit\", then throw a RangeError\n\t // exception.\n\t if (matcher !== 'lookup' && matcher !== 'best fit') throw new RangeError('matcher should be \"lookup\" or \"best fit\"');\n\t }\n\t }\n\t // 2. If matcher is undefined or \"best fit\", then\n\t if (matcher === undefined || matcher === 'best fit')\n\t // a. Let subset be the result of calling the BestFitSupportedLocales\n\t // abstract operation (defined in 9.2.7) with arguments\n\t // availableLocales and requestedLocales.\n\t subset = BestFitSupportedLocales(availableLocales, requestedLocales);\n\t // 3. Else\n\t else\n\t // a. Let subset be the result of calling the LookupSupportedLocales\n\t // abstract operation (defined in 9.2.6) with arguments\n\t // availableLocales and requestedLocales.\n\t subset = LookupSupportedLocales(availableLocales, requestedLocales);\n\t\n\t // 4. For each named own property name P of subset,\n\t for (var P in subset) {\n\t if (!hop.call(subset, P)) continue;\n\t\n\t // a. Let desc be the result of calling the [[GetOwnProperty]] internal\n\t // method of subset with P.\n\t // b. Set desc.[[Writable]] to false.\n\t // c. Set desc.[[Configurable]] to false.\n\t // d. Call the [[DefineOwnProperty]] internal method of subset with P, desc,\n\t // and true as arguments.\n\t defineProperty(subset, P, {\n\t writable: false, configurable: false, value: subset[P]\n\t });\n\t }\n\t // \"Freeze\" the array so no new elements can be added\n\t defineProperty(subset, 'length', { writable: false });\n\t\n\t // 5. Return subset\n\t return subset;\n\t}\n\t\n\t/**\n\t * The GetOption abstract operation extracts the value of the property named\n\t * property from the provided options object, converts it to the required type,\n\t * checks whether it is one of a List of allowed values, and fills in a fallback\n\t * value if necessary.\n\t */\n\tfunction /*9.2.9 */GetOption(options, property, type, values, fallback) {\n\t // 1. Let value be the result of calling the [[Get]] internal method of\n\t // options with argument property.\n\t var value = options[property];\n\t\n\t // 2. If value is not undefined, then\n\t if (value !== undefined) {\n\t // a. Assert: type is \"boolean\" or \"string\".\n\t // b. If type is \"boolean\", then let value be ToBoolean(value).\n\t // c. If type is \"string\", then let value be ToString(value).\n\t value = type === 'boolean' ? Boolean(value) : type === 'string' ? String(value) : value;\n\t\n\t // d. If values is not undefined, then\n\t if (values !== undefined) {\n\t // i. If values does not contain an element equal to value, then throw a\n\t // RangeError exception.\n\t if (arrIndexOf.call(values, value) === -1) throw new RangeError(\"'\" + value + \"' is not an allowed value for `\" + property + '`');\n\t }\n\t\n\t // e. Return value.\n\t return value;\n\t }\n\t // Else return fallback.\n\t return fallback;\n\t}\n\t\n\t/**\n\t * The GetNumberOption abstract operation extracts a property value from the\n\t * provided options object, converts it to a Number value, checks whether it is\n\t * in the allowed range, and fills in a fallback value if necessary.\n\t */\n\tfunction /* 9.2.10 */GetNumberOption(options, property, minimum, maximum, fallback) {\n\t // 1. Let value be the result of calling the [[Get]] internal method of\n\t // options with argument property.\n\t var value = options[property];\n\t\n\t // 2. If value is not undefined, then\n\t if (value !== undefined) {\n\t // a. Let value be ToNumber(value).\n\t value = Number(value);\n\t\n\t // b. If value is NaN or less than minimum or greater than maximum, throw a\n\t // RangeError exception.\n\t if (isNaN(value) || value < minimum || value > maximum) throw new RangeError('Value is not a number or outside accepted range');\n\t\n\t // c. Return floor(value).\n\t return Math.floor(value);\n\t }\n\t // 3. Else return fallback.\n\t return fallback;\n\t}\n\t\n\t// 8 The Intl Object\n\tvar Intl = {};\n\t\n\t// 8.2 Function Properties of the Intl Object\n\t\n\t// 8.2.1\n\t// @spec[tc39/ecma402/master/spec/intl.html]\n\t// @clause[sec-intl.getcanonicallocales]\n\tIntl.getCanonicalLocales = function (locales) {\n\t // 1. Let ll be ? CanonicalizeLocaleList(locales).\n\t var ll = CanonicalizeLocaleList(locales);\n\t // 2. Return CreateArrayFromList(ll).\n\t {\n\t var result = [];\n\t for (var code in ll) {\n\t result.push(ll[code]);\n\t }\n\t return result;\n\t }\n\t};\n\t\n\t// Currency minor units output from get-4217 grunt task, formatted\n\tvar currencyMinorUnits = {\n\t BHD: 3, BYR: 0, XOF: 0, BIF: 0, XAF: 0, CLF: 4, CLP: 0, KMF: 0, DJF: 0,\n\t XPF: 0, GNF: 0, ISK: 0, IQD: 3, JPY: 0, JOD: 3, KRW: 0, KWD: 3, LYD: 3,\n\t OMR: 3, PYG: 0, RWF: 0, TND: 3, UGX: 0, UYI: 0, VUV: 0, VND: 0\n\t};\n\t\n\t// Define the NumberFormat constructor internally so it cannot be tainted\n\tfunction NumberFormatConstructor() {\n\t var locales = arguments[0];\n\t var options = arguments[1];\n\t\n\t if (!this || this === Intl) {\n\t return new Intl.NumberFormat(locales, options);\n\t }\n\t\n\t return InitializeNumberFormat(toObject(this), locales, options);\n\t}\n\t\n\tdefineProperty(Intl, 'NumberFormat', {\n\t configurable: true,\n\t writable: true,\n\t value: NumberFormatConstructor\n\t});\n\t\n\t// Must explicitly set prototypes as unwritable\n\tdefineProperty(Intl.NumberFormat, 'prototype', {\n\t writable: false\n\t});\n\t\n\t/**\n\t * The abstract operation InitializeNumberFormat accepts the arguments\n\t * numberFormat (which must be an object), locales, and options. It initializes\n\t * numberFormat as a NumberFormat object.\n\t */\n\tfunction /*11.1.1.1 */InitializeNumberFormat(numberFormat, locales, options) {\n\t // This will be a internal properties object if we're not already initialized\n\t var internal = getInternalProperties(numberFormat);\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore();\n\t\n\t // 1. If numberFormat has an [[initializedIntlObject]] internal property with\n\t // value true, throw a TypeError exception.\n\t if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\t\n\t // Need this to access the `internal` object\n\t defineProperty(numberFormat, '__getInternalProperties', {\n\t value: function value() {\n\t // NOTE: Non-standard, for internal use only\n\t if (arguments[0] === secret) return internal;\n\t }\n\t });\n\t\n\t // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n\t internal['[[initializedIntlObject]]'] = true;\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t var requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // 4. If options is undefined, then\n\t if (options === undefined)\n\t // a. Let options be the result of creating a new object as if by the\n\t // expression new Object() where Object is the standard built-in constructor\n\t // with that name.\n\t options = {};\n\t\n\t // 5. Else\n\t else\n\t // a. Let options be ToObject(options).\n\t options = toObject(options);\n\t\n\t // 6. Let opt be a new Record.\n\t var opt = new Record(),\n\t\n\t\n\t // 7. Let matcher be the result of calling the GetOption abstract operation\n\t // (defined in 9.2.9) with the arguments options, \"localeMatcher\", \"string\",\n\t // a List containing the two String values \"lookup\" and \"best fit\", and\n\t // \"best fit\".\n\t matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\t\n\t // 8. Set opt.[[localeMatcher]] to matcher.\n\t opt['[[localeMatcher]]'] = matcher;\n\t\n\t // 9. Let NumberFormat be the standard built-in object that is the initial value\n\t // of Intl.NumberFormat.\n\t // 10. Let localeData be the value of the [[localeData]] internal property of\n\t // NumberFormat.\n\t var localeData = internals.NumberFormat['[[localeData]]'];\n\t\n\t // 11. Let r be the result of calling the ResolveLocale abstract operation\n\t // (defined in 9.2.5) with the [[availableLocales]] internal property of\n\t // NumberFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n\t // internal property of NumberFormat, and localeData.\n\t var r = ResolveLocale(internals.NumberFormat['[[availableLocales]]'], requestedLocales, opt, internals.NumberFormat['[[relevantExtensionKeys]]'], localeData);\n\t\n\t // 12. Set the [[locale]] internal property of numberFormat to the value of\n\t // r.[[locale]].\n\t internal['[[locale]]'] = r['[[locale]]'];\n\t\n\t // 13. Set the [[numberingSystem]] internal property of numberFormat to the value\n\t // of r.[[nu]].\n\t internal['[[numberingSystem]]'] = r['[[nu]]'];\n\t\n\t // The specification doesn't tell us to do this, but it's helpful later on\n\t internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\t\n\t // 14. Let dataLocale be the value of r.[[dataLocale]].\n\t var dataLocale = r['[[dataLocale]]'];\n\t\n\t // 15. Let s be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"style\", \"string\", a List containing the three String\n\t // values \"decimal\", \"percent\", and \"currency\", and \"decimal\".\n\t var s = GetOption(options, 'style', 'string', new List('decimal', 'percent', 'currency'), 'decimal');\n\t\n\t // 16. Set the [[style]] internal property of numberFormat to s.\n\t internal['[[style]]'] = s;\n\t\n\t // 17. Let c be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"currency\", \"string\", undefined, and undefined.\n\t var c = GetOption(options, 'currency', 'string');\n\t\n\t // 18. If c is not undefined and the result of calling the\n\t // IsWellFormedCurrencyCode abstract operation (defined in 6.3.1) with\n\t // argument c is false, then throw a RangeError exception.\n\t if (c !== undefined && !IsWellFormedCurrencyCode(c)) throw new RangeError(\"'\" + c + \"' is not a valid currency code\");\n\t\n\t // 19. If s is \"currency\" and c is undefined, throw a TypeError exception.\n\t if (s === 'currency' && c === undefined) throw new TypeError('Currency code is required when style is currency');\n\t\n\t var cDigits = void 0;\n\t\n\t // 20. If s is \"currency\", then\n\t if (s === 'currency') {\n\t // a. Let c be the result of converting c to upper case as specified in 6.1.\n\t c = c.toUpperCase();\n\t\n\t // b. Set the [[currency]] internal property of numberFormat to c.\n\t internal['[[currency]]'] = c;\n\t\n\t // c. Let cDigits be the result of calling the CurrencyDigits abstract\n\t // operation (defined below) with argument c.\n\t cDigits = CurrencyDigits(c);\n\t }\n\t\n\t // 21. Let cd be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"currencyDisplay\", \"string\", a List containing the\n\t // three String values \"code\", \"symbol\", and \"name\", and \"symbol\".\n\t var cd = GetOption(options, 'currencyDisplay', 'string', new List('code', 'symbol', 'name'), 'symbol');\n\t\n\t // 22. If s is \"currency\", then set the [[currencyDisplay]] internal property of\n\t // numberFormat to cd.\n\t if (s === 'currency') internal['[[currencyDisplay]]'] = cd;\n\t\n\t // 23. Let mnid be the result of calling the GetNumberOption abstract operation\n\t // (defined in 9.2.10) with arguments options, \"minimumIntegerDigits\", 1, 21,\n\t // and 1.\n\t var mnid = GetNumberOption(options, 'minimumIntegerDigits', 1, 21, 1);\n\t\n\t // 24. Set the [[minimumIntegerDigits]] internal property of numberFormat to mnid.\n\t internal['[[minimumIntegerDigits]]'] = mnid;\n\t\n\t // 25. If s is \"currency\", then let mnfdDefault be cDigits; else let mnfdDefault\n\t // be 0.\n\t var mnfdDefault = s === 'currency' ? cDigits : 0;\n\t\n\t // 26. Let mnfd be the result of calling the GetNumberOption abstract operation\n\t // with arguments options, \"minimumFractionDigits\", 0, 20, and mnfdDefault.\n\t var mnfd = GetNumberOption(options, 'minimumFractionDigits', 0, 20, mnfdDefault);\n\t\n\t // 27. Set the [[minimumFractionDigits]] internal property of numberFormat to mnfd.\n\t internal['[[minimumFractionDigits]]'] = mnfd;\n\t\n\t // 28. If s is \"currency\", then let mxfdDefault be max(mnfd, cDigits); else if s\n\t // is \"percent\", then let mxfdDefault be max(mnfd, 0); else let mxfdDefault\n\t // be max(mnfd, 3).\n\t var mxfdDefault = s === 'currency' ? Math.max(mnfd, cDigits) : s === 'percent' ? Math.max(mnfd, 0) : Math.max(mnfd, 3);\n\t\n\t // 29. Let mxfd be the result of calling the GetNumberOption abstract operation\n\t // with arguments options, \"maximumFractionDigits\", mnfd, 20, and mxfdDefault.\n\t var mxfd = GetNumberOption(options, 'maximumFractionDigits', mnfd, 20, mxfdDefault);\n\t\n\t // 30. Set the [[maximumFractionDigits]] internal property of numberFormat to mxfd.\n\t internal['[[maximumFractionDigits]]'] = mxfd;\n\t\n\t // 31. Let mnsd be the result of calling the [[Get]] internal method of options\n\t // with argument \"minimumSignificantDigits\".\n\t var mnsd = options.minimumSignificantDigits;\n\t\n\t // 32. Let mxsd be the result of calling the [[Get]] internal method of options\n\t // with argument \"maximumSignificantDigits\".\n\t var mxsd = options.maximumSignificantDigits;\n\t\n\t // 33. If mnsd is not undefined or mxsd is not undefined, then:\n\t if (mnsd !== undefined || mxsd !== undefined) {\n\t // a. Let mnsd be the result of calling the GetNumberOption abstract\n\t // operation with arguments options, \"minimumSignificantDigits\", 1, 21,\n\t // and 1.\n\t mnsd = GetNumberOption(options, 'minimumSignificantDigits', 1, 21, 1);\n\t\n\t // b. Let mxsd be the result of calling the GetNumberOption abstract\n\t // operation with arguments options, \"maximumSignificantDigits\", mnsd,\n\t // 21, and 21.\n\t mxsd = GetNumberOption(options, 'maximumSignificantDigits', mnsd, 21, 21);\n\t\n\t // c. Set the [[minimumSignificantDigits]] internal property of numberFormat\n\t // to mnsd, and the [[maximumSignificantDigits]] internal property of\n\t // numberFormat to mxsd.\n\t internal['[[minimumSignificantDigits]]'] = mnsd;\n\t internal['[[maximumSignificantDigits]]'] = mxsd;\n\t }\n\t // 34. Let g be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"useGrouping\", \"boolean\", undefined, and true.\n\t var g = GetOption(options, 'useGrouping', 'boolean', undefined, true);\n\t\n\t // 35. Set the [[useGrouping]] internal property of numberFormat to g.\n\t internal['[[useGrouping]]'] = g;\n\t\n\t // 36. Let dataLocaleData be the result of calling the [[Get]] internal method of\n\t // localeData with argument dataLocale.\n\t var dataLocaleData = localeData[dataLocale];\n\t\n\t // 37. Let patterns be the result of calling the [[Get]] internal method of\n\t // dataLocaleData with argument \"patterns\".\n\t var patterns = dataLocaleData.patterns;\n\t\n\t // 38. Assert: patterns is an object (see 11.2.3)\n\t\n\t // 39. Let stylePatterns be the result of calling the [[Get]] internal method of\n\t // patterns with argument s.\n\t var stylePatterns = patterns[s];\n\t\n\t // 40. Set the [[positivePattern]] internal property of numberFormat to the\n\t // result of calling the [[Get]] internal method of stylePatterns with the\n\t // argument \"positivePattern\".\n\t internal['[[positivePattern]]'] = stylePatterns.positivePattern;\n\t\n\t // 41. Set the [[negativePattern]] internal property of numberFormat to the\n\t // result of calling the [[Get]] internal method of stylePatterns with the\n\t // argument \"negativePattern\".\n\t internal['[[negativePattern]]'] = stylePatterns.negativePattern;\n\t\n\t // 42. Set the [[boundFormat]] internal property of numberFormat to undefined.\n\t internal['[[boundFormat]]'] = undefined;\n\t\n\t // 43. Set the [[initializedNumberFormat]] internal property of numberFormat to\n\t // true.\n\t internal['[[initializedNumberFormat]]'] = true;\n\t\n\t // In ES3, we need to pre-bind the format() function\n\t if (es3) numberFormat.format = GetFormatNumber.call(numberFormat);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // Return the newly initialised object\n\t return numberFormat;\n\t}\n\t\n\tfunction CurrencyDigits(currency) {\n\t // When the CurrencyDigits abstract operation is called with an argument currency\n\t // (which must be an upper case String value), the following steps are taken:\n\t\n\t // 1. If the ISO 4217 currency and funds code list contains currency as an\n\t // alphabetic code, then return the minor unit value corresponding to the\n\t // currency from the list; else return 2.\n\t return currencyMinorUnits[currency] !== undefined ? currencyMinorUnits[currency] : 2;\n\t}\n\t\n\t/* 11.2.3 */internals.NumberFormat = {\n\t '[[availableLocales]]': [],\n\t '[[relevantExtensionKeys]]': ['nu'],\n\t '[[localeData]]': {}\n\t};\n\t\n\t/**\n\t * When the supportedLocalesOf method of Intl.NumberFormat is called, the\n\t * following steps are taken:\n\t */\n\t/* 11.2.2 */\n\tdefineProperty(Intl.NumberFormat, 'supportedLocalesOf', {\n\t configurable: true,\n\t writable: true,\n\t value: fnBind.call(function (locales) {\n\t // Bound functions only have the `this` value altered if being used as a constructor,\n\t // this lets us imitate a native function that has no constructor\n\t if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore(),\n\t\n\t\n\t // 1. If options is not provided, then let options be undefined.\n\t options = arguments[1],\n\t\n\t\n\t // 2. Let availableLocales be the value of the [[availableLocales]] internal\n\t // property of the standard built-in object that is the initial value of\n\t // Intl.NumberFormat.\n\t\n\t availableLocales = this['[[availableLocales]]'],\n\t\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // 4. Return the result of calling the SupportedLocales abstract operation\n\t // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n\t // and options.\n\t return SupportedLocales(availableLocales, requestedLocales, options);\n\t }, internals.NumberFormat)\n\t});\n\t\n\t/**\n\t * This named accessor property returns a function that formats a number\n\t * according to the effective locale and the formatting options of this\n\t * NumberFormat object.\n\t */\n\t/* 11.3.2 */defineProperty(Intl.NumberFormat.prototype, 'format', {\n\t configurable: true,\n\t get: GetFormatNumber\n\t});\n\t\n\tfunction GetFormatNumber() {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 11.3_b\n\t if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.NumberFormat object.');\n\t\n\t // The value of the [[Get]] attribute is a function that takes the following\n\t // steps:\n\t\n\t // 1. If the [[boundFormat]] internal property of this NumberFormat object\n\t // is undefined, then:\n\t if (internal['[[boundFormat]]'] === undefined) {\n\t // a. Let F be a Function object, with internal properties set as\n\t // specified for built-in functions in ES5, 15, or successor, and the\n\t // length property set to 1, that takes the argument value and\n\t // performs the following steps:\n\t var F = function F(value) {\n\t // i. If value is not provided, then let value be undefined.\n\t // ii. Let x be ToNumber(value).\n\t // iii. Return the result of calling the FormatNumber abstract\n\t // operation (defined below) with arguments this and x.\n\t return FormatNumber(this, /* x = */Number(value));\n\t };\n\t\n\t // b. Let bind be the standard built-in function object defined in ES5,\n\t // 15.3.4.5.\n\t // c. Let bf be the result of calling the [[Call]] internal method of\n\t // bind with F as the this value and an argument list containing\n\t // the single item this.\n\t var bf = fnBind.call(F, this);\n\t\n\t // d. Set the [[boundFormat]] internal property of this NumberFormat\n\t // object to bf.\n\t internal['[[boundFormat]]'] = bf;\n\t }\n\t // Return the value of the [[boundFormat]] internal property of this\n\t // NumberFormat object.\n\t return internal['[[boundFormat]]'];\n\t}\n\t\n\tIntl.NumberFormat.prototype.formatToParts = function (value) {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.NumberFormat object.');\n\t\n\t var x = Number(value);\n\t return FormatNumberToParts(this, x);\n\t};\n\t\n\t/*\n\t * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n\t * @clause[sec-formatnumbertoparts]\n\t */\n\tfunction FormatNumberToParts(numberFormat, x) {\n\t // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n\t var parts = PartitionNumberPattern(numberFormat, x);\n\t // 2. Let result be ArrayCreate(0).\n\t var result = [];\n\t // 3. Let n be 0.\n\t var n = 0;\n\t // 4. For each part in parts, do:\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t // a. Let O be ObjectCreate(%ObjectPrototype%).\n\t var O = {};\n\t // a. Perform ? CreateDataPropertyOrThrow(O, \"type\", part.[[type]]).\n\t O.type = part['[[type]]'];\n\t // a. Perform ? CreateDataPropertyOrThrow(O, \"value\", part.[[value]]).\n\t O.value = part['[[value]]'];\n\t // a. Perform ? CreateDataPropertyOrThrow(result, ? ToString(n), O).\n\t result[n] = O;\n\t // a. Increment n by 1.\n\t n += 1;\n\t }\n\t // 5. Return result.\n\t return result;\n\t}\n\t\n\t/*\n\t * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n\t * @clause[sec-partitionnumberpattern]\n\t */\n\tfunction PartitionNumberPattern(numberFormat, x) {\n\t\n\t var internal = getInternalProperties(numberFormat),\n\t locale = internal['[[dataLocale]]'],\n\t nums = internal['[[numberingSystem]]'],\n\t data = internals.NumberFormat['[[localeData]]'][locale],\n\t ild = data.symbols[nums] || data.symbols.latn,\n\t pattern = void 0;\n\t\n\t // 1. If x is not NaN and x < 0, then:\n\t if (!isNaN(x) && x < 0) {\n\t // a. Let x be -x.\n\t x = -x;\n\t // a. Let pattern be the value of numberFormat.[[negativePattern]].\n\t pattern = internal['[[negativePattern]]'];\n\t }\n\t // 2. Else,\n\t else {\n\t // a. Let pattern be the value of numberFormat.[[positivePattern]].\n\t pattern = internal['[[positivePattern]]'];\n\t }\n\t // 3. Let result be a new empty List.\n\t var result = new List();\n\t // 4. Let beginIndex be Call(%StringProto_indexOf%, pattern, \"{\", 0).\n\t var beginIndex = pattern.indexOf('{', 0);\n\t // 5. Let endIndex be 0.\n\t var endIndex = 0;\n\t // 6. Let nextIndex be 0.\n\t var nextIndex = 0;\n\t // 7. Let length be the number of code units in pattern.\n\t var length = pattern.length;\n\t // 8. Repeat while beginIndex is an integer index into pattern:\n\t while (beginIndex > -1 && beginIndex < length) {\n\t // a. Set endIndex to Call(%StringProto_indexOf%, pattern, \"}\", beginIndex)\n\t endIndex = pattern.indexOf('}', beginIndex);\n\t // a. If endIndex = -1, throw new Error exception.\n\t if (endIndex === -1) throw new Error();\n\t // a. If beginIndex is greater than nextIndex, then:\n\t if (beginIndex > nextIndex) {\n\t // i. Let literal be a substring of pattern from position nextIndex, inclusive, to position beginIndex, exclusive.\n\t var literal = pattern.substring(nextIndex, beginIndex);\n\t // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': literal });\n\t }\n\t // a. Let p be the substring of pattern from position beginIndex, exclusive, to position endIndex, exclusive.\n\t var p = pattern.substring(beginIndex + 1, endIndex);\n\t // a. If p is equal \"number\", then:\n\t if (p === \"number\") {\n\t // i. If x is NaN,\n\t if (isNaN(x)) {\n\t // 1. Let n be an ILD String value indicating the NaN value.\n\t var n = ild.nan;\n\t // 2. Add new part record { [[type]]: \"nan\", [[value]]: n } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'nan', '[[value]]': n });\n\t }\n\t // ii. Else if isFinite(x) is false,\n\t else if (!isFinite(x)) {\n\t // 1. Let n be an ILD String value indicating infinity.\n\t var _n = ild.infinity;\n\t // 2. Add new part record { [[type]]: \"infinity\", [[value]]: n } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'infinity', '[[value]]': _n });\n\t }\n\t // iii. Else,\n\t else {\n\t // 1. If the value of numberFormat.[[style]] is \"percent\" and isFinite(x), let x be 100 × x.\n\t if (internal['[[style]]'] === 'percent' && isFinite(x)) x *= 100;\n\t\n\t var _n2 = void 0;\n\t // 2. If the numberFormat.[[minimumSignificantDigits]] and numberFormat.[[maximumSignificantDigits]] are present, then\n\t if (hop.call(internal, '[[minimumSignificantDigits]]') && hop.call(internal, '[[maximumSignificantDigits]]')) {\n\t // a. Let n be ToRawPrecision(x, numberFormat.[[minimumSignificantDigits]], numberFormat.[[maximumSignificantDigits]]).\n\t _n2 = ToRawPrecision(x, internal['[[minimumSignificantDigits]]'], internal['[[maximumSignificantDigits]]']);\n\t }\n\t // 3. Else,\n\t else {\n\t // a. Let n be ToRawFixed(x, numberFormat.[[minimumIntegerDigits]], numberFormat.[[minimumFractionDigits]], numberFormat.[[maximumFractionDigits]]).\n\t _n2 = ToRawFixed(x, internal['[[minimumIntegerDigits]]'], internal['[[minimumFractionDigits]]'], internal['[[maximumFractionDigits]]']);\n\t }\n\t // 4. If the value of the numberFormat.[[numberingSystem]] matches one of the values in the \"Numbering System\" column of Table 2 below, then\n\t if (numSys[nums]) {\n\t (function () {\n\t // a. Let digits be an array whose 10 String valued elements are the UTF-16 string representations of the 10 digits specified in the \"Digits\" column of the matching row in Table 2.\n\t var digits = numSys[nums];\n\t // a. Replace each digit in n with the value of digits[digit].\n\t _n2 = String(_n2).replace(/\\d/g, function (digit) {\n\t return digits[digit];\n\t });\n\t })();\n\t }\n\t // 5. Else use an implementation dependent algorithm to map n to the appropriate representation of n in the given numbering system.\n\t else _n2 = String(_n2); // ###TODO###\n\t\n\t var integer = void 0;\n\t var fraction = void 0;\n\t // 6. Let decimalSepIndex be Call(%StringProto_indexOf%, n, \".\", 0).\n\t var decimalSepIndex = _n2.indexOf('.', 0);\n\t // 7. If decimalSepIndex > 0, then:\n\t if (decimalSepIndex > 0) {\n\t // a. Let integer be the substring of n from position 0, inclusive, to position decimalSepIndex, exclusive.\n\t integer = _n2.substring(0, decimalSepIndex);\n\t // a. Let fraction be the substring of n from position decimalSepIndex, exclusive, to the end of n.\n\t fraction = _n2.substring(decimalSepIndex + 1, decimalSepIndex.length);\n\t }\n\t // 8. Else:\n\t else {\n\t // a. Let integer be n.\n\t integer = _n2;\n\t // a. Let fraction be undefined.\n\t fraction = undefined;\n\t }\n\t // 9. If the value of the numberFormat.[[useGrouping]] is true,\n\t if (internal['[[useGrouping]]'] === true) {\n\t // a. Let groupSepSymbol be the ILND String representing the grouping separator.\n\t var groupSepSymbol = ild.group;\n\t // a. Let groups be a List whose elements are, in left to right order, the substrings defined by ILND set of locations within the integer.\n\t var groups = [];\n\t // ----> implementation:\n\t // Primary group represents the group closest to the decimal\n\t var pgSize = data.patterns.primaryGroupSize || 3;\n\t // Secondary group is every other group\n\t var sgSize = data.patterns.secondaryGroupSize || pgSize;\n\t // Group only if necessary\n\t if (integer.length > pgSize) {\n\t // Index of the primary grouping separator\n\t var end = integer.length - pgSize;\n\t // Starting index for our loop\n\t var idx = end % sgSize;\n\t var start = integer.slice(0, idx);\n\t if (start.length) arrPush.call(groups, start);\n\t // Loop to separate into secondary grouping digits\n\t while (idx < end) {\n\t arrPush.call(groups, integer.slice(idx, idx + sgSize));\n\t idx += sgSize;\n\t }\n\t // Add the primary grouping digits\n\t arrPush.call(groups, integer.slice(end));\n\t } else {\n\t arrPush.call(groups, integer);\n\t }\n\t // a. Assert: The number of elements in groups List is greater than 0.\n\t if (groups.length === 0) throw new Error();\n\t // a. Repeat, while groups List is not empty:\n\t while (groups.length) {\n\t // i. Remove the first element from groups and let integerGroup be the value of that element.\n\t var integerGroup = arrShift.call(groups);\n\t // ii. Add new part record { [[type]]: \"integer\", [[value]]: integerGroup } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integerGroup });\n\t // iii. If groups List is not empty, then:\n\t if (groups.length) {\n\t // 1. Add new part record { [[type]]: \"group\", [[value]]: groupSepSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'group', '[[value]]': groupSepSymbol });\n\t }\n\t }\n\t }\n\t // 10. Else,\n\t else {\n\t // a. Add new part record { [[type]]: \"integer\", [[value]]: integer } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integer });\n\t }\n\t // 11. If fraction is not undefined, then:\n\t if (fraction !== undefined) {\n\t // a. Let decimalSepSymbol be the ILND String representing the decimal separator.\n\t var decimalSepSymbol = ild.decimal;\n\t // a. Add new part record { [[type]]: \"decimal\", [[value]]: decimalSepSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'decimal', '[[value]]': decimalSepSymbol });\n\t // a. Add new part record { [[type]]: \"fraction\", [[value]]: fraction } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'fraction', '[[value]]': fraction });\n\t }\n\t }\n\t }\n\t // a. Else if p is equal \"plusSign\", then:\n\t else if (p === \"plusSign\") {\n\t // i. Let plusSignSymbol be the ILND String representing the plus sign.\n\t var plusSignSymbol = ild.plusSign;\n\t // ii. Add new part record { [[type]]: \"plusSign\", [[value]]: plusSignSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'plusSign', '[[value]]': plusSignSymbol });\n\t }\n\t // a. Else if p is equal \"minusSign\", then:\n\t else if (p === \"minusSign\") {\n\t // i. Let minusSignSymbol be the ILND String representing the minus sign.\n\t var minusSignSymbol = ild.minusSign;\n\t // ii. Add new part record { [[type]]: \"minusSign\", [[value]]: minusSignSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'minusSign', '[[value]]': minusSignSymbol });\n\t }\n\t // a. Else if p is equal \"percentSign\" and numberFormat.[[style]] is \"percent\", then:\n\t else if (p === \"percentSign\" && internal['[[style]]'] === \"percent\") {\n\t // i. Let percentSignSymbol be the ILND String representing the percent sign.\n\t var percentSignSymbol = ild.percentSign;\n\t // ii. Add new part record { [[type]]: \"percentSign\", [[value]]: percentSignSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': percentSignSymbol });\n\t }\n\t // a. Else if p is equal \"currency\" and numberFormat.[[style]] is \"currency\", then:\n\t else if (p === \"currency\" && internal['[[style]]'] === \"currency\") {\n\t // i. Let currency be the value of numberFormat.[[currency]].\n\t var currency = internal['[[currency]]'];\n\t\n\t var cd = void 0;\n\t\n\t // ii. If numberFormat.[[currencyDisplay]] is \"code\", then\n\t if (internal['[[currencyDisplay]]'] === \"code\") {\n\t // 1. Let cd be currency.\n\t cd = currency;\n\t }\n\t // iii. Else if numberFormat.[[currencyDisplay]] is \"symbol\", then\n\t else if (internal['[[currencyDisplay]]'] === \"symbol\") {\n\t // 1. Let cd be an ILD string representing currency in short form. If the implementation does not have such a representation of currency, use currency itself.\n\t cd = data.currencies[currency] || currency;\n\t }\n\t // iv. Else if numberFormat.[[currencyDisplay]] is \"name\", then\n\t else if (internal['[[currencyDisplay]]'] === \"name\") {\n\t // 1. Let cd be an ILD string representing currency in long form. If the implementation does not have such a representation of currency, then use currency itself.\n\t cd = currency;\n\t }\n\t // v. Add new part record { [[type]]: \"currency\", [[value]]: cd } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'currency', '[[value]]': cd });\n\t }\n\t // a. Else,\n\t else {\n\t // i. Let literal be the substring of pattern from position beginIndex, inclusive, to position endIndex, inclusive.\n\t var _literal = pattern.substring(beginIndex, endIndex);\n\t // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal });\n\t }\n\t // a. Set nextIndex to endIndex + 1.\n\t nextIndex = endIndex + 1;\n\t // a. Set beginIndex to Call(%StringProto_indexOf%, pattern, \"{\", nextIndex)\n\t beginIndex = pattern.indexOf('{', nextIndex);\n\t }\n\t // 9. If nextIndex is less than length, then:\n\t if (nextIndex < length) {\n\t // a. Let literal be the substring of pattern from position nextIndex, inclusive, to position length, exclusive.\n\t var _literal2 = pattern.substring(nextIndex, length);\n\t // a. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal2 });\n\t }\n\t // 10. Return result.\n\t return result;\n\t}\n\t\n\t/*\n\t * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n\t * @clause[sec-formatnumber]\n\t */\n\tfunction FormatNumber(numberFormat, x) {\n\t // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n\t var parts = PartitionNumberPattern(numberFormat, x);\n\t // 2. Let result be an empty String.\n\t var result = '';\n\t // 3. For each part in parts, do:\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t // a. Set result to a String value produced by concatenating result and part.[[value]].\n\t result += part['[[value]]'];\n\t }\n\t // 4. Return result.\n\t return result;\n\t}\n\t\n\t/**\n\t * When the ToRawPrecision abstract operation is called with arguments x (which\n\t * must be a finite non-negative number), minPrecision, and maxPrecision (both\n\t * must be integers between 1 and 21) the following steps are taken:\n\t */\n\tfunction ToRawPrecision(x, minPrecision, maxPrecision) {\n\t // 1. Let p be maxPrecision.\n\t var p = maxPrecision;\n\t\n\t var m = void 0,\n\t e = void 0;\n\t\n\t // 2. If x = 0, then\n\t if (x === 0) {\n\t // a. Let m be the String consisting of p occurrences of the character \"0\".\n\t m = arrJoin.call(Array(p + 1), '0');\n\t // b. Let e be 0.\n\t e = 0;\n\t }\n\t // 3. Else\n\t else {\n\t // a. Let e and n be integers such that 10ᵖ⁻¹ ≤ n < 10ᵖ and for which the\n\t // exact mathematical value of n × 10ᵉ⁻ᵖ⁺¹ – x is as close to zero as\n\t // possible. If there are two such sets of e and n, pick the e and n for\n\t // which n × 10ᵉ⁻ᵖ⁺¹ is larger.\n\t e = log10Floor(Math.abs(x));\n\t\n\t // Easier to get to m from here\n\t var f = Math.round(Math.exp(Math.abs(e - p + 1) * Math.LN10));\n\t\n\t // b. Let m be the String consisting of the digits of the decimal\n\t // representation of n (in order, with no leading zeroes)\n\t m = String(Math.round(e - p + 1 < 0 ? x * f : x / f));\n\t }\n\t\n\t // 4. If e ≥ p, then\n\t if (e >= p)\n\t // a. Return the concatenation of m and e-p+1 occurrences of the character \"0\".\n\t return m + arrJoin.call(Array(e - p + 1 + 1), '0');\n\t\n\t // 5. If e = p-1, then\n\t else if (e === p - 1)\n\t // a. Return m.\n\t return m;\n\t\n\t // 6. If e ≥ 0, then\n\t else if (e >= 0)\n\t // a. Let m be the concatenation of the first e+1 characters of m, the character\n\t // \".\", and the remaining p–(e+1) characters of m.\n\t m = m.slice(0, e + 1) + '.' + m.slice(e + 1);\n\t\n\t // 7. If e < 0, then\n\t else if (e < 0)\n\t // a. Let m be the concatenation of the String \"0.\", –(e+1) occurrences of the\n\t // character \"0\", and the string m.\n\t m = '0.' + arrJoin.call(Array(-(e + 1) + 1), '0') + m;\n\t\n\t // 8. If m contains the character \".\", and maxPrecision > minPrecision, then\n\t if (m.indexOf(\".\") >= 0 && maxPrecision > minPrecision) {\n\t // a. Let cut be maxPrecision – minPrecision.\n\t var cut = maxPrecision - minPrecision;\n\t\n\t // b. Repeat while cut > 0 and the last character of m is \"0\":\n\t while (cut > 0 && m.charAt(m.length - 1) === '0') {\n\t // i. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t\n\t // ii. Decrease cut by 1.\n\t cut--;\n\t }\n\t\n\t // c. If the last character of m is \".\", then\n\t if (m.charAt(m.length - 1) === '.')\n\t // i. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t }\n\t // 9. Return m.\n\t return m;\n\t}\n\t\n\t/**\n\t * @spec[tc39/ecma402/master/spec/numberformat.html]\n\t * @clause[sec-torawfixed]\n\t * When the ToRawFixed abstract operation is called with arguments x (which must\n\t * be a finite non-negative number), minInteger (which must be an integer between\n\t * 1 and 21), minFraction, and maxFraction (which must be integers between 0 and\n\t * 20) the following steps are taken:\n\t */\n\tfunction ToRawFixed(x, minInteger, minFraction, maxFraction) {\n\t // 1. Let f be maxFraction.\n\t var f = maxFraction;\n\t // 2. Let n be an integer for which the exact mathematical value of n ÷ 10f – x is as close to zero as possible. If there are two such n, pick the larger n.\n\t var n = Math.pow(10, f) * x; // diverging...\n\t // 3. If n = 0, let m be the String \"0\". Otherwise, let m be the String consisting of the digits of the decimal representation of n (in order, with no leading zeroes).\n\t var m = n === 0 ? \"0\" : n.toFixed(0); // divering...\n\t\n\t {\n\t // this diversion is needed to take into consideration big numbers, e.g.:\n\t // 1.2344501e+37 -> 12344501000000000000000000000000000000\n\t var idx = void 0;\n\t var exp = (idx = m.indexOf('e')) > -1 ? m.slice(idx + 1) : 0;\n\t if (exp) {\n\t m = m.slice(0, idx).replace('.', '');\n\t m += arrJoin.call(Array(exp - (m.length - 1) + 1), '0');\n\t }\n\t }\n\t\n\t var int = void 0;\n\t // 4. If f ≠ 0, then\n\t if (f !== 0) {\n\t // a. Let k be the number of characters in m.\n\t var k = m.length;\n\t // a. If k ≤ f, then\n\t if (k <= f) {\n\t // i. Let z be the String consisting of f+1–k occurrences of the character \"0\".\n\t var z = arrJoin.call(Array(f + 1 - k + 1), '0');\n\t // ii. Let m be the concatenation of Strings z and m.\n\t m = z + m;\n\t // iii. Let k be f+1.\n\t k = f + 1;\n\t }\n\t // a. Let a be the first k–f characters of m, and let b be the remaining f characters of m.\n\t var a = m.substring(0, k - f),\n\t b = m.substring(k - f, m.length);\n\t // a. Let m be the concatenation of the three Strings a, \".\", and b.\n\t m = a + \".\" + b;\n\t // a. Let int be the number of characters in a.\n\t int = a.length;\n\t }\n\t // 5. Else, let int be the number of characters in m.\n\t else int = m.length;\n\t // 6. Let cut be maxFraction – minFraction.\n\t var cut = maxFraction - minFraction;\n\t // 7. Repeat while cut > 0 and the last character of m is \"0\":\n\t while (cut > 0 && m.slice(-1) === \"0\") {\n\t // a. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t // a. Decrease cut by 1.\n\t cut--;\n\t }\n\t // 8. If the last character of m is \".\", then\n\t if (m.slice(-1) === \".\") {\n\t // a. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t }\n\t // 9. If int < minInteger, then\n\t if (int < minInteger) {\n\t // a. Let z be the String consisting of minInteger–int occurrences of the character \"0\".\n\t var _z = arrJoin.call(Array(minInteger - int + 1), '0');\n\t // a. Let m be the concatenation of Strings z and m.\n\t m = _z + m;\n\t }\n\t // 10. Return m.\n\t return m;\n\t}\n\t\n\t// Sect 11.3.2 Table 2, Numbering systems\n\t// ======================================\n\tvar numSys = {\n\t arab: [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"],\n\t arabext: [\"۰\", \"۱\", \"۲\", \"۳\", \"۴\", \"۵\", \"۶\", \"۷\", \"۸\", \"۹\"],\n\t bali: [\"᭐\", \"᭑\", \"᭒\", \"᭓\", \"᭔\", \"᭕\", \"᭖\", \"᭗\", \"᭘\", \"᭙\"],\n\t beng: [\"০\", \"১\", \"২\", \"৩\", \"৪\", \"৫\", \"৬\", \"৭\", \"৮\", \"৯\"],\n\t deva: [\"०\", \"१\", \"२\", \"३\", \"४\", \"५\", \"६\", \"७\", \"८\", \"९\"],\n\t fullwide: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n\t gujr: [\"૦\", \"૧\", \"૨\", \"૩\", \"૪\", \"૫\", \"૬\", \"૭\", \"૮\", \"૯\"],\n\t guru: [\"੦\", \"੧\", \"੨\", \"੩\", \"੪\", \"੫\", \"੬\", \"੭\", \"੮\", \"੯\"],\n\t hanidec: [\"〇\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\"],\n\t khmr: [\"០\", \"១\", \"២\", \"៣\", \"៤\", \"៥\", \"៦\", \"៧\", \"៨\", \"៩\"],\n\t knda: [\"೦\", \"೧\", \"೨\", \"೩\", \"೪\", \"೫\", \"೬\", \"೭\", \"೮\", \"೯\"],\n\t laoo: [\"໐\", \"໑\", \"໒\", \"໓\", \"໔\", \"໕\", \"໖\", \"໗\", \"໘\", \"໙\"],\n\t latn: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n\t limb: [\"᥆\", \"᥇\", \"᥈\", \"᥉\", \"᥊\", \"᥋\", \"᥌\", \"᥍\", \"᥎\", \"᥏\"],\n\t mlym: [\"൦\", \"൧\", \"൨\", \"൩\", \"൪\", \"൫\", \"൬\", \"൭\", \"൮\", \"൯\"],\n\t mong: [\"᠐\", \"᠑\", \"᠒\", \"᠓\", \"᠔\", \"᠕\", \"᠖\", \"᠗\", \"᠘\", \"᠙\"],\n\t mymr: [\"၀\", \"၁\", \"၂\", \"၃\", \"၄\", \"၅\", \"၆\", \"၇\", \"၈\", \"၉\"],\n\t orya: [\"୦\", \"୧\", \"୨\", \"୩\", \"୪\", \"୫\", \"୬\", \"୭\", \"୮\", \"୯\"],\n\t tamldec: [\"௦\", \"௧\", \"௨\", \"௩\", \"௪\", \"௫\", \"௬\", \"௭\", \"௮\", \"௯\"],\n\t telu: [\"౦\", \"౧\", \"౨\", \"౩\", \"౪\", \"౫\", \"౬\", \"౭\", \"౮\", \"౯\"],\n\t thai: [\"๐\", \"๑\", \"๒\", \"๓\", \"๔\", \"๕\", \"๖\", \"๗\", \"๘\", \"๙\"],\n\t tibt: [\"༠\", \"༡\", \"༢\", \"༣\", \"༤\", \"༥\", \"༦\", \"༧\", \"༨\", \"༩\"]\n\t};\n\t\n\t/**\n\t * This function provides access to the locale and formatting options computed\n\t * during initialization of the object.\n\t *\n\t * The function returns a new object whose properties and attributes are set as\n\t * if constructed by an object literal assigning to each of the following\n\t * properties the value of the corresponding internal property of this\n\t * NumberFormat object (see 11.4): locale, numberingSystem, style, currency,\n\t * currencyDisplay, minimumIntegerDigits, minimumFractionDigits,\n\t * maximumFractionDigits, minimumSignificantDigits, maximumSignificantDigits, and\n\t * useGrouping. Properties whose corresponding internal properties are not present\n\t * are not assigned.\n\t */\n\t/* 11.3.3 */defineProperty(Intl.NumberFormat.prototype, 'resolvedOptions', {\n\t configurable: true,\n\t writable: true,\n\t value: function value() {\n\t var prop = void 0,\n\t descs = new Record(),\n\t props = ['locale', 'numberingSystem', 'style', 'currency', 'currencyDisplay', 'minimumIntegerDigits', 'minimumFractionDigits', 'maximumFractionDigits', 'minimumSignificantDigits', 'maximumSignificantDigits', 'useGrouping'],\n\t internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 11.3_b\n\t if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.');\n\t\n\t for (var i = 0, max = props.length; i < max; i++) {\n\t if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n\t }\n\t\n\t return objCreate({}, descs);\n\t }\n\t});\n\t\n\t/* jslint esnext: true */\n\t\n\t// Match these datetime components in a CLDR pattern, except those in single quotes\n\tvar expDTComponents = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n\t// trim patterns after transformations\n\tvar expPatternTrimmer = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n\t// Skip over patterns with these datetime components because we don't have data\n\t// to back them up:\n\t// timezone, weekday, amoung others\n\tvar unwantedDTCs = /[rqQASjJgwWIQq]/; // xXVO were removed from this list in favor of computing matches with timeZoneName values but printing as empty string\n\t\n\tvar dtKeys = [\"weekday\", \"era\", \"year\", \"month\", \"day\", \"weekday\", \"quarter\"];\n\tvar tmKeys = [\"hour\", \"minute\", \"second\", \"hour12\", \"timeZoneName\"];\n\t\n\tfunction isDateFormatOnly(obj) {\n\t for (var i = 0; i < tmKeys.length; i += 1) {\n\t if (obj.hasOwnProperty(tmKeys[i])) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}\n\t\n\tfunction isTimeFormatOnly(obj) {\n\t for (var i = 0; i < dtKeys.length; i += 1) {\n\t if (obj.hasOwnProperty(dtKeys[i])) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}\n\t\n\tfunction joinDateAndTimeFormats(dateFormatObj, timeFormatObj) {\n\t var o = { _: {} };\n\t for (var i = 0; i < dtKeys.length; i += 1) {\n\t if (dateFormatObj[dtKeys[i]]) {\n\t o[dtKeys[i]] = dateFormatObj[dtKeys[i]];\n\t }\n\t if (dateFormatObj._[dtKeys[i]]) {\n\t o._[dtKeys[i]] = dateFormatObj._[dtKeys[i]];\n\t }\n\t }\n\t for (var j = 0; j < tmKeys.length; j += 1) {\n\t if (timeFormatObj[tmKeys[j]]) {\n\t o[tmKeys[j]] = timeFormatObj[tmKeys[j]];\n\t }\n\t if (timeFormatObj._[tmKeys[j]]) {\n\t o._[tmKeys[j]] = timeFormatObj._[tmKeys[j]];\n\t }\n\t }\n\t return o;\n\t}\n\t\n\tfunction computeFinalPatterns(formatObj) {\n\t // From http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns:\n\t // 'In patterns, two single quotes represents a literal single quote, either\n\t // inside or outside single quotes. Text within single quotes is not\n\t // interpreted in any way (except for two adjacent single quotes).'\n\t formatObj.pattern12 = formatObj.extendedPattern.replace(/'([^']*)'/g, function ($0, literal) {\n\t return literal ? literal : \"'\";\n\t });\n\t\n\t // pattern 12 is always the default. we can produce the 24 by removing {ampm}\n\t formatObj.pattern = formatObj.pattern12.replace('{ampm}', '').replace(expPatternTrimmer, '');\n\t return formatObj;\n\t}\n\t\n\tfunction expDTComponentsMeta($0, formatObj) {\n\t switch ($0.charAt(0)) {\n\t // --- Era\n\t case 'G':\n\t formatObj.era = ['short', 'short', 'short', 'long', 'narrow'][$0.length - 1];\n\t return '{era}';\n\t\n\t // --- Year\n\t case 'y':\n\t case 'Y':\n\t case 'u':\n\t case 'U':\n\t case 'r':\n\t formatObj.year = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{year}';\n\t\n\t // --- Quarter (not supported in this polyfill)\n\t case 'Q':\n\t case 'q':\n\t formatObj.quarter = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n\t return '{quarter}';\n\t\n\t // --- Month\n\t case 'M':\n\t case 'L':\n\t formatObj.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n\t return '{month}';\n\t\n\t // --- Week (not supported in this polyfill)\n\t case 'w':\n\t // week of the year\n\t formatObj.week = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{weekday}';\n\t case 'W':\n\t // week of the month\n\t formatObj.week = 'numeric';\n\t return '{weekday}';\n\t\n\t // --- Day\n\t case 'd':\n\t // day of the month\n\t formatObj.day = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{day}';\n\t case 'D': // day of the year\n\t case 'F': // day of the week\n\t case 'g':\n\t // 1..n: Modified Julian day\n\t formatObj.day = 'numeric';\n\t return '{day}';\n\t\n\t // --- Week Day\n\t case 'E':\n\t // day of the week\n\t formatObj.weekday = ['short', 'short', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n\t return '{weekday}';\n\t case 'e':\n\t // local day of the week\n\t formatObj.weekday = ['numeric', '2-digit', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n\t return '{weekday}';\n\t case 'c':\n\t // stand alone local day of the week\n\t formatObj.weekday = ['numeric', undefined, 'short', 'long', 'narrow', 'short'][$0.length - 1];\n\t return '{weekday}';\n\t\n\t // --- Period\n\t case 'a': // AM, PM\n\t case 'b': // am, pm, noon, midnight\n\t case 'B':\n\t // flexible day periods\n\t formatObj.hour12 = true;\n\t return '{ampm}';\n\t\n\t // --- Hour\n\t case 'h':\n\t case 'H':\n\t formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{hour}';\n\t case 'k':\n\t case 'K':\n\t formatObj.hour12 = true; // 12-hour-cycle time formats (using h or K)\n\t formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{hour}';\n\t\n\t // --- Minute\n\t case 'm':\n\t formatObj.minute = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{minute}';\n\t\n\t // --- Second\n\t case 's':\n\t formatObj.second = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{second}';\n\t case 'S':\n\t case 'A':\n\t formatObj.second = 'numeric';\n\t return '{second}';\n\t\n\t // --- Timezone\n\t case 'z': // 1..3, 4: specific non-location format\n\t case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n\t case 'O': // 1, 4: miliseconds in day short, long\n\t case 'v': // 1, 4: generic non-location format\n\t case 'V': // 1, 2, 3, 4: time zone ID or city\n\t case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n\t case 'x':\n\t // 1, 2, 3, 4: The ISO8601 varios formats\n\t // this polyfill only supports much, for now, we are just doing something dummy\n\t formatObj.timeZoneName = $0.length < 4 ? 'short' : 'long';\n\t return '{timeZoneName}';\n\t }\n\t}\n\t\n\t/**\n\t * Converts the CLDR availableFormats into the objects and patterns required by\n\t * the ECMAScript Internationalization API specification.\n\t */\n\tfunction createDateTimeFormat(skeleton, pattern) {\n\t // we ignore certain patterns that are unsupported to avoid this expensive op.\n\t if (unwantedDTCs.test(pattern)) return undefined;\n\t\n\t var formatObj = {\n\t originalPattern: pattern,\n\t _: {}\n\t };\n\t\n\t // Replace the pattern string with the one required by the specification, whilst\n\t // at the same time evaluating it for the subsets and formats\n\t formatObj.extendedPattern = pattern.replace(expDTComponents, function ($0) {\n\t // See which symbol we're dealing with\n\t return expDTComponentsMeta($0, formatObj._);\n\t });\n\t\n\t // Match the skeleton string with the one required by the specification\n\t // this implementation is based on the Date Field Symbol Table:\n\t // http://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n\t // Note: we are adding extra data to the formatObject even though this polyfill\n\t // might not support it.\n\t skeleton.replace(expDTComponents, function ($0) {\n\t // See which symbol we're dealing with\n\t return expDTComponentsMeta($0, formatObj);\n\t });\n\t\n\t return computeFinalPatterns(formatObj);\n\t}\n\t\n\t/**\n\t * Processes DateTime formats from CLDR to an easier-to-parse format.\n\t * the result of this operation should be cached the first time a particular\n\t * calendar is analyzed.\n\t *\n\t * The specification requires we support at least the following subsets of\n\t * date/time components:\n\t *\n\t * - 'weekday', 'year', 'month', 'day', 'hour', 'minute', 'second'\n\t * - 'weekday', 'year', 'month', 'day'\n\t * - 'year', 'month', 'day'\n\t * - 'year', 'month'\n\t * - 'month', 'day'\n\t * - 'hour', 'minute', 'second'\n\t * - 'hour', 'minute'\n\t *\n\t * We need to cherry pick at least these subsets from the CLDR data and convert\n\t * them into the pattern objects used in the ECMA-402 API.\n\t */\n\tfunction createDateTimeFormats(formats) {\n\t var availableFormats = formats.availableFormats;\n\t var timeFormats = formats.timeFormats;\n\t var dateFormats = formats.dateFormats;\n\t var result = [];\n\t var skeleton = void 0,\n\t pattern = void 0,\n\t computed = void 0,\n\t i = void 0,\n\t j = void 0;\n\t var timeRelatedFormats = [];\n\t var dateRelatedFormats = [];\n\t\n\t // Map available (custom) formats into a pattern for createDateTimeFormats\n\t for (skeleton in availableFormats) {\n\t if (availableFormats.hasOwnProperty(skeleton)) {\n\t pattern = availableFormats[skeleton];\n\t computed = createDateTimeFormat(skeleton, pattern);\n\t if (computed) {\n\t result.push(computed);\n\t // in some cases, the format is only displaying date specific props\n\t // or time specific props, in which case we need to also produce the\n\t // combined formats.\n\t if (isDateFormatOnly(computed)) {\n\t dateRelatedFormats.push(computed);\n\t } else if (isTimeFormatOnly(computed)) {\n\t timeRelatedFormats.push(computed);\n\t }\n\t }\n\t }\n\t }\n\t\n\t // Map time formats into a pattern for createDateTimeFormats\n\t for (skeleton in timeFormats) {\n\t if (timeFormats.hasOwnProperty(skeleton)) {\n\t pattern = timeFormats[skeleton];\n\t computed = createDateTimeFormat(skeleton, pattern);\n\t if (computed) {\n\t result.push(computed);\n\t timeRelatedFormats.push(computed);\n\t }\n\t }\n\t }\n\t\n\t // Map date formats into a pattern for createDateTimeFormats\n\t for (skeleton in dateFormats) {\n\t if (dateFormats.hasOwnProperty(skeleton)) {\n\t pattern = dateFormats[skeleton];\n\t computed = createDateTimeFormat(skeleton, pattern);\n\t if (computed) {\n\t result.push(computed);\n\t dateRelatedFormats.push(computed);\n\t }\n\t }\n\t }\n\t\n\t // combine custom time and custom date formats when they are orthogonals to complete the\n\t // formats supported by CLDR.\n\t // This Algo is based on section \"Missing Skeleton Fields\" from:\n\t // http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems\n\t for (i = 0; i < timeRelatedFormats.length; i += 1) {\n\t for (j = 0; j < dateRelatedFormats.length; j += 1) {\n\t if (dateRelatedFormats[j].month === 'long') {\n\t pattern = dateRelatedFormats[j].weekday ? formats.full : formats.long;\n\t } else if (dateRelatedFormats[j].month === 'short') {\n\t pattern = formats.medium;\n\t } else {\n\t pattern = formats.short;\n\t }\n\t computed = joinDateAndTimeFormats(dateRelatedFormats[j], timeRelatedFormats[i]);\n\t computed.originalPattern = pattern;\n\t computed.extendedPattern = pattern.replace('{0}', timeRelatedFormats[i].extendedPattern).replace('{1}', dateRelatedFormats[j].extendedPattern).replace(/^[,\\s]+|[,\\s]+$/gi, '');\n\t result.push(computeFinalPatterns(computed));\n\t }\n\t }\n\t\n\t return result;\n\t}\n\t\n\t// An object map of date component keys, saves using a regex later\n\tvar dateWidths = objCreate(null, { narrow: {}, short: {}, long: {} });\n\t\n\t/**\n\t * Returns a string for a date component, resolved using multiple inheritance as specified\n\t * as specified in the Unicode Technical Standard 35.\n\t */\n\tfunction resolveDateString(data, ca, component, width, key) {\n\t // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance:\n\t // 'In clearly specified instances, resources may inherit from within the same locale.\n\t // For example, ... the Buddhist calendar inherits from the Gregorian calendar.'\n\t var obj = data[ca] && data[ca][component] ? data[ca][component] : data.gregory[component],\n\t\n\t\n\t // \"sideways\" inheritance resolves strings when a key doesn't exist\n\t alts = {\n\t narrow: ['short', 'long'],\n\t short: ['long', 'narrow'],\n\t long: ['short', 'narrow']\n\t },\n\t\n\t\n\t //\n\t resolved = hop.call(obj, width) ? obj[width] : hop.call(obj, alts[width][0]) ? obj[alts[width][0]] : obj[alts[width][1]];\n\t\n\t // `key` wouldn't be specified for components 'dayPeriods'\n\t return key !== null ? resolved[key] : resolved;\n\t}\n\t\n\t// Define the DateTimeFormat constructor internally so it cannot be tainted\n\tfunction DateTimeFormatConstructor() {\n\t var locales = arguments[0];\n\t var options = arguments[1];\n\t\n\t if (!this || this === Intl) {\n\t return new Intl.DateTimeFormat(locales, options);\n\t }\n\t return InitializeDateTimeFormat(toObject(this), locales, options);\n\t}\n\t\n\tdefineProperty(Intl, 'DateTimeFormat', {\n\t configurable: true,\n\t writable: true,\n\t value: DateTimeFormatConstructor\n\t});\n\t\n\t// Must explicitly set prototypes as unwritable\n\tdefineProperty(DateTimeFormatConstructor, 'prototype', {\n\t writable: false\n\t});\n\t\n\t/**\n\t * The abstract operation InitializeDateTimeFormat accepts the arguments dateTimeFormat\n\t * (which must be an object), locales, and options. It initializes dateTimeFormat as a\n\t * DateTimeFormat object.\n\t */\n\tfunction /* 12.1.1.1 */InitializeDateTimeFormat(dateTimeFormat, locales, options) {\n\t // This will be a internal properties object if we're not already initialized\n\t var internal = getInternalProperties(dateTimeFormat);\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore();\n\t\n\t // 1. If dateTimeFormat has an [[initializedIntlObject]] internal property with\n\t // value true, throw a TypeError exception.\n\t if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\t\n\t // Need this to access the `internal` object\n\t defineProperty(dateTimeFormat, '__getInternalProperties', {\n\t value: function value() {\n\t // NOTE: Non-standard, for internal use only\n\t if (arguments[0] === secret) return internal;\n\t }\n\t });\n\t\n\t // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n\t internal['[[initializedIntlObject]]'] = true;\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t var requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // 4. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined below) with arguments options, \"any\", and \"date\".\n\t options = ToDateTimeOptions(options, 'any', 'date');\n\t\n\t // 5. Let opt be a new Record.\n\t var opt = new Record();\n\t\n\t // 6. Let matcher be the result of calling the GetOption abstract operation\n\t // (defined in 9.2.9) with arguments options, \"localeMatcher\", \"string\", a List\n\t // containing the two String values \"lookup\" and \"best fit\", and \"best fit\".\n\t var matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\t\n\t // 7. Set opt.[[localeMatcher]] to matcher.\n\t opt['[[localeMatcher]]'] = matcher;\n\t\n\t // 8. Let DateTimeFormat be the standard built-in object that is the initial\n\t // value of Intl.DateTimeFormat.\n\t var DateTimeFormat = internals.DateTimeFormat; // This is what we *really* need\n\t\n\t // 9. Let localeData be the value of the [[localeData]] internal property of\n\t // DateTimeFormat.\n\t var localeData = DateTimeFormat['[[localeData]]'];\n\t\n\t // 10. Let r be the result of calling the ResolveLocale abstract operation\n\t // (defined in 9.2.5) with the [[availableLocales]] internal property of\n\t // DateTimeFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n\t // internal property of DateTimeFormat, and localeData.\n\t var r = ResolveLocale(DateTimeFormat['[[availableLocales]]'], requestedLocales, opt, DateTimeFormat['[[relevantExtensionKeys]]'], localeData);\n\t\n\t // 11. Set the [[locale]] internal property of dateTimeFormat to the value of\n\t // r.[[locale]].\n\t internal['[[locale]]'] = r['[[locale]]'];\n\t\n\t // 12. Set the [[calendar]] internal property of dateTimeFormat to the value of\n\t // r.[[ca]].\n\t internal['[[calendar]]'] = r['[[ca]]'];\n\t\n\t // 13. Set the [[numberingSystem]] internal property of dateTimeFormat to the value of\n\t // r.[[nu]].\n\t internal['[[numberingSystem]]'] = r['[[nu]]'];\n\t\n\t // The specification doesn't tell us to do this, but it's helpful later on\n\t internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\t\n\t // 14. Let dataLocale be the value of r.[[dataLocale]].\n\t var dataLocale = r['[[dataLocale]]'];\n\t\n\t // 15. Let tz be the result of calling the [[Get]] internal method of options with\n\t // argument \"timeZone\".\n\t var tz = options.timeZone;\n\t\n\t // 16. If tz is not undefined, then\n\t if (tz !== undefined) {\n\t // a. Let tz be ToString(tz).\n\t // b. Convert tz to upper case as described in 6.1.\n\t // NOTE: If an implementation accepts additional time zone values, as permitted\n\t // under certain conditions by the Conformance clause, different casing\n\t // rules apply.\n\t tz = toLatinUpperCase(tz);\n\t\n\t // c. If tz is not \"UTC\", then throw a RangeError exception.\n\t // ###TODO: accept more time zones###\n\t if (tz !== 'UTC') throw new RangeError('timeZone is not supported.');\n\t }\n\t\n\t // 17. Set the [[timeZone]] internal property of dateTimeFormat to tz.\n\t internal['[[timeZone]]'] = tz;\n\t\n\t // 18. Let opt be a new Record.\n\t opt = new Record();\n\t\n\t // 19. For each row of Table 3, except the header row, do:\n\t for (var prop in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, prop)) continue;\n\t\n\t // 20. Let prop be the name given in the Property column of the row.\n\t // 21. Let value be the result of calling the GetOption abstract operation,\n\t // passing as argument options, the name given in the Property column of the\n\t // row, \"string\", a List containing the strings given in the Values column of\n\t // the row, and undefined.\n\t var value = GetOption(options, prop, 'string', dateTimeComponents[prop]);\n\t\n\t // 22. Set opt.[[]] to value.\n\t opt['[[' + prop + ']]'] = value;\n\t }\n\t\n\t // Assigned a value below\n\t var bestFormat = void 0;\n\t\n\t // 23. Let dataLocaleData be the result of calling the [[Get]] internal method of\n\t // localeData with argument dataLocale.\n\t var dataLocaleData = localeData[dataLocale];\n\t\n\t // 24. Let formats be the result of calling the [[Get]] internal method of\n\t // dataLocaleData with argument \"formats\".\n\t // Note: we process the CLDR formats into the spec'd structure\n\t var formats = ToDateTimeFormats(dataLocaleData.formats);\n\t\n\t // 25. Let matcher be the result of calling the GetOption abstract operation with\n\t // arguments options, \"formatMatcher\", \"string\", a List containing the two String\n\t // values \"basic\" and \"best fit\", and \"best fit\".\n\t matcher = GetOption(options, 'formatMatcher', 'string', new List('basic', 'best fit'), 'best fit');\n\t\n\t // Optimization: caching the processed formats as a one time operation by\n\t // replacing the initial structure from localeData\n\t dataLocaleData.formats = formats;\n\t\n\t // 26. If matcher is \"basic\", then\n\t if (matcher === 'basic') {\n\t // 27. Let bestFormat be the result of calling the BasicFormatMatcher abstract\n\t // operation (defined below) with opt and formats.\n\t bestFormat = BasicFormatMatcher(opt, formats);\n\t\n\t // 28. Else\n\t } else {\n\t {\n\t // diverging\n\t var _hr = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n\t opt.hour12 = _hr === undefined ? dataLocaleData.hour12 : _hr;\n\t }\n\t // 29. Let bestFormat be the result of calling the BestFitFormatMatcher\n\t // abstract operation (defined below) with opt and formats.\n\t bestFormat = BestFitFormatMatcher(opt, formats);\n\t }\n\t\n\t // 30. For each row in Table 3, except the header row, do\n\t for (var _prop in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, _prop)) continue;\n\t\n\t // a. Let prop be the name given in the Property column of the row.\n\t // b. Let pDesc be the result of calling the [[GetOwnProperty]] internal method of\n\t // bestFormat with argument prop.\n\t // c. If pDesc is not undefined, then\n\t if (hop.call(bestFormat, _prop)) {\n\t // i. Let p be the result of calling the [[Get]] internal method of bestFormat\n\t // with argument prop.\n\t var p = bestFormat[_prop];\n\t {\n\t // diverging\n\t p = bestFormat._ && hop.call(bestFormat._, _prop) ? bestFormat._[_prop] : p;\n\t }\n\t\n\t // ii. Set the [[]] internal property of dateTimeFormat to p.\n\t internal['[[' + _prop + ']]'] = p;\n\t }\n\t }\n\t\n\t var pattern = void 0; // Assigned a value below\n\t\n\t // 31. Let hr12 be the result of calling the GetOption abstract operation with\n\t // arguments options, \"hour12\", \"boolean\", undefined, and undefined.\n\t var hr12 = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n\t\n\t // 32. If dateTimeFormat has an internal property [[hour]], then\n\t if (internal['[[hour]]']) {\n\t // a. If hr12 is undefined, then let hr12 be the result of calling the [[Get]]\n\t // internal method of dataLocaleData with argument \"hour12\".\n\t hr12 = hr12 === undefined ? dataLocaleData.hour12 : hr12;\n\t\n\t // b. Set the [[hour12]] internal property of dateTimeFormat to hr12.\n\t internal['[[hour12]]'] = hr12;\n\t\n\t // c. If hr12 is true, then\n\t if (hr12 === true) {\n\t // i. Let hourNo0 be the result of calling the [[Get]] internal method of\n\t // dataLocaleData with argument \"hourNo0\".\n\t var hourNo0 = dataLocaleData.hourNo0;\n\t\n\t // ii. Set the [[hourNo0]] internal property of dateTimeFormat to hourNo0.\n\t internal['[[hourNo0]]'] = hourNo0;\n\t\n\t // iii. Let pattern be the result of calling the [[Get]] internal method of\n\t // bestFormat with argument \"pattern12\".\n\t pattern = bestFormat.pattern12;\n\t }\n\t\n\t // d. Else\n\t else\n\t // i. Let pattern be the result of calling the [[Get]] internal method of\n\t // bestFormat with argument \"pattern\".\n\t pattern = bestFormat.pattern;\n\t }\n\t\n\t // 33. Else\n\t else\n\t // a. Let pattern be the result of calling the [[Get]] internal method of\n\t // bestFormat with argument \"pattern\".\n\t pattern = bestFormat.pattern;\n\t\n\t // 34. Set the [[pattern]] internal property of dateTimeFormat to pattern.\n\t internal['[[pattern]]'] = pattern;\n\t\n\t // 35. Set the [[boundFormat]] internal property of dateTimeFormat to undefined.\n\t internal['[[boundFormat]]'] = undefined;\n\t\n\t // 36. Set the [[initializedDateTimeFormat]] internal property of dateTimeFormat to\n\t // true.\n\t internal['[[initializedDateTimeFormat]]'] = true;\n\t\n\t // In ES3, we need to pre-bind the format() function\n\t if (es3) dateTimeFormat.format = GetFormatDateTime.call(dateTimeFormat);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // Return the newly initialised object\n\t return dateTimeFormat;\n\t}\n\t\n\t/**\n\t * Several DateTimeFormat algorithms use values from the following table, which provides\n\t * property names and allowable values for the components of date and time formats:\n\t */\n\tvar dateTimeComponents = {\n\t weekday: [\"narrow\", \"short\", \"long\"],\n\t era: [\"narrow\", \"short\", \"long\"],\n\t year: [\"2-digit\", \"numeric\"],\n\t month: [\"2-digit\", \"numeric\", \"narrow\", \"short\", \"long\"],\n\t day: [\"2-digit\", \"numeric\"],\n\t hour: [\"2-digit\", \"numeric\"],\n\t minute: [\"2-digit\", \"numeric\"],\n\t second: [\"2-digit\", \"numeric\"],\n\t timeZoneName: [\"short\", \"long\"]\n\t};\n\t\n\t/**\n\t * When the ToDateTimeOptions abstract operation is called with arguments options,\n\t * required, and defaults, the following steps are taken:\n\t */\n\tfunction ToDateTimeFormats(formats) {\n\t if (Object.prototype.toString.call(formats) === '[object Array]') {\n\t return formats;\n\t }\n\t return createDateTimeFormats(formats);\n\t}\n\t\n\t/**\n\t * When the ToDateTimeOptions abstract operation is called with arguments options,\n\t * required, and defaults, the following steps are taken:\n\t */\n\tfunction ToDateTimeOptions(options, required, defaults) {\n\t // 1. If options is undefined, then let options be null, else let options be\n\t // ToObject(options).\n\t if (options === undefined) options = null;else {\n\t // (#12) options needs to be a Record, but it also needs to inherit properties\n\t var opt2 = toObject(options);\n\t options = new Record();\n\t\n\t for (var k in opt2) {\n\t options[k] = opt2[k];\n\t }\n\t }\n\t\n\t // 2. Let create be the standard built-in function object defined in ES5, 15.2.3.5.\n\t var create = objCreate;\n\t\n\t // 3. Let options be the result of calling the [[Call]] internal method of create with\n\t // undefined as the this value and an argument list containing the single item\n\t // options.\n\t options = create(options);\n\t\n\t // 4. Let needDefaults be true.\n\t var needDefaults = true;\n\t\n\t // 5. If required is \"date\" or \"any\", then\n\t if (required === 'date' || required === 'any') {\n\t // a. For each of the property names \"weekday\", \"year\", \"month\", \"day\":\n\t // i. If the result of calling the [[Get]] internal method of options with the\n\t // property name is not undefined, then let needDefaults be false.\n\t if (options.weekday !== undefined || options.year !== undefined || options.month !== undefined || options.day !== undefined) needDefaults = false;\n\t }\n\t\n\t // 6. If required is \"time\" or \"any\", then\n\t if (required === 'time' || required === 'any') {\n\t // a. For each of the property names \"hour\", \"minute\", \"second\":\n\t // i. If the result of calling the [[Get]] internal method of options with the\n\t // property name is not undefined, then let needDefaults be false.\n\t if (options.hour !== undefined || options.minute !== undefined || options.second !== undefined) needDefaults = false;\n\t }\n\t\n\t // 7. If needDefaults is true and defaults is either \"date\" or \"all\", then\n\t if (needDefaults && (defaults === 'date' || defaults === 'all'))\n\t // a. For each of the property names \"year\", \"month\", \"day\":\n\t // i. Call the [[DefineOwnProperty]] internal method of options with the\n\t // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n\t // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n\t options.year = options.month = options.day = 'numeric';\n\t\n\t // 8. If needDefaults is true and defaults is either \"time\" or \"all\", then\n\t if (needDefaults && (defaults === 'time' || defaults === 'all'))\n\t // a. For each of the property names \"hour\", \"minute\", \"second\":\n\t // i. Call the [[DefineOwnProperty]] internal method of options with the\n\t // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n\t // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n\t options.hour = options.minute = options.second = 'numeric';\n\t\n\t // 9. Return options.\n\t return options;\n\t}\n\t\n\t/**\n\t * When the BasicFormatMatcher abstract operation is called with two arguments options and\n\t * formats, the following steps are taken:\n\t */\n\tfunction BasicFormatMatcher(options, formats) {\n\t // 1. Let removalPenalty be 120.\n\t var removalPenalty = 120;\n\t\n\t // 2. Let additionPenalty be 20.\n\t var additionPenalty = 20;\n\t\n\t // 3. Let longLessPenalty be 8.\n\t var longLessPenalty = 8;\n\t\n\t // 4. Let longMorePenalty be 6.\n\t var longMorePenalty = 6;\n\t\n\t // 5. Let shortLessPenalty be 6.\n\t var shortLessPenalty = 6;\n\t\n\t // 6. Let shortMorePenalty be 3.\n\t var shortMorePenalty = 3;\n\t\n\t // 7. Let bestScore be -Infinity.\n\t var bestScore = -Infinity;\n\t\n\t // 8. Let bestFormat be undefined.\n\t var bestFormat = void 0;\n\t\n\t // 9. Let i be 0.\n\t var i = 0;\n\t\n\t // 10. Assert: formats is an Array object.\n\t\n\t // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n\t var len = formats.length;\n\t\n\t // 12. Repeat while i < len:\n\t while (i < len) {\n\t // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n\t var format = formats[i];\n\t\n\t // b. Let score be 0.\n\t var score = 0;\n\t\n\t // c. For each property shown in Table 3:\n\t for (var property in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, property)) continue;\n\t\n\t // i. Let optionsProp be options.[[]].\n\t var optionsProp = options['[[' + property + ']]'];\n\t\n\t // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n\t // with argument property.\n\t // iii. If formatPropDesc is not undefined, then\n\t // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n\t var formatProp = hop.call(format, property) ? format[property] : undefined;\n\t\n\t // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n\t // additionPenalty.\n\t if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\t\n\t // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n\t // removalPenalty.\n\t else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\t\n\t // vi. Else\n\t else {\n\t // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n\t // \"long\"].\n\t var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\t\n\t // 2. Let optionsPropIndex be the index of optionsProp within values.\n\t var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\t\n\t // 3. Let formatPropIndex be the index of formatProp within values.\n\t var formatPropIndex = arrIndexOf.call(values, formatProp);\n\t\n\t // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n\t var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\t\n\t // 5. If delta = 2, decrease score by longMorePenalty.\n\t if (delta === 2) score -= longMorePenalty;\n\t\n\t // 6. Else if delta = 1, decrease score by shortMorePenalty.\n\t else if (delta === 1) score -= shortMorePenalty;\n\t\n\t // 7. Else if delta = -1, decrease score by shortLessPenalty.\n\t else if (delta === -1) score -= shortLessPenalty;\n\t\n\t // 8. Else if delta = -2, decrease score by longLessPenalty.\n\t else if (delta === -2) score -= longLessPenalty;\n\t }\n\t }\n\t\n\t // d. If score > bestScore, then\n\t if (score > bestScore) {\n\t // i. Let bestScore be score.\n\t bestScore = score;\n\t\n\t // ii. Let bestFormat be format.\n\t bestFormat = format;\n\t }\n\t\n\t // e. Increase i by 1.\n\t i++;\n\t }\n\t\n\t // 13. Return bestFormat.\n\t return bestFormat;\n\t}\n\t\n\t/**\n\t * When the BestFitFormatMatcher abstract operation is called with two arguments options\n\t * and formats, it performs implementation dependent steps, which should return a set of\n\t * component representations that a typical user of the selected locale would perceive as\n\t * at least as good as the one returned by BasicFormatMatcher.\n\t *\n\t * This polyfill defines the algorithm to be the same as BasicFormatMatcher,\n\t * with the addition of bonus points awarded where the requested format is of\n\t * the same data type as the potentially matching format.\n\t *\n\t * This algo relies on the concept of closest distance matching described here:\n\t * http://unicode.org/reports/tr35/tr35-dates.html#Matching_Skeletons\n\t * Typically a “best match” is found using a closest distance match, such as:\n\t *\n\t * Symbols requesting a best choice for the locale are replaced.\n\t * j → one of {H, k, h, K}; C → one of {a, b, B}\n\t * -> Covered by cldr.js matching process\n\t *\n\t * For fields with symbols representing the same type (year, month, day, etc):\n\t * Most symbols have a small distance from each other.\n\t * M ≅ L; E ≅ c; a ≅ b ≅ B; H ≅ k ≅ h ≅ K; ...\n\t * -> Covered by cldr.js matching process\n\t *\n\t * Width differences among fields, other than those marking text vs numeric, are given small distance from each other.\n\t * MMM ≅ MMMM\n\t * MM ≅ M\n\t * Numeric and text fields are given a larger distance from each other.\n\t * MMM ≈ MM\n\t * Symbols representing substantial differences (week of year vs week of month) are given much larger a distances from each other.\n\t * d ≋ D; ...\n\t * Missing or extra fields cause a match to fail. (But see Missing Skeleton Fields).\n\t *\n\t *\n\t * For example,\n\t *\n\t * { month: 'numeric', day: 'numeric' }\n\t *\n\t * should match\n\t *\n\t * { month: '2-digit', day: '2-digit' }\n\t *\n\t * rather than\n\t *\n\t * { month: 'short', day: 'numeric' }\n\t *\n\t * This makes sense because a user requesting a formatted date with numeric parts would\n\t * not expect to see the returned format containing narrow, short or long part names\n\t */\n\tfunction BestFitFormatMatcher(options, formats) {\n\t\n\t // 1. Let removalPenalty be 120.\n\t var removalPenalty = 120;\n\t\n\t // 2. Let additionPenalty be 20.\n\t var additionPenalty = 20;\n\t\n\t // 3. Let longLessPenalty be 8.\n\t var longLessPenalty = 8;\n\t\n\t // 4. Let longMorePenalty be 6.\n\t var longMorePenalty = 6;\n\t\n\t // 5. Let shortLessPenalty be 6.\n\t var shortLessPenalty = 6;\n\t\n\t // 6. Let shortMorePenalty be 3.\n\t var shortMorePenalty = 3;\n\t\n\t var hour12Penalty = 1;\n\t\n\t // 7. Let bestScore be -Infinity.\n\t var bestScore = -Infinity;\n\t\n\t // 8. Let bestFormat be undefined.\n\t var bestFormat = void 0;\n\t\n\t // 9. Let i be 0.\n\t var i = 0;\n\t\n\t // 10. Assert: formats is an Array object.\n\t\n\t // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n\t var len = formats.length;\n\t\n\t // 12. Repeat while i < len:\n\t while (i < len) {\n\t // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n\t var format = formats[i];\n\t\n\t // b. Let score be 0.\n\t var score = 0;\n\t\n\t // c. For each property shown in Table 3:\n\t for (var property in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, property)) continue;\n\t\n\t // i. Let optionsProp be options.[[]].\n\t var optionsProp = options['[[' + property + ']]'];\n\t\n\t // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n\t // with argument property.\n\t // iii. If formatPropDesc is not undefined, then\n\t // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n\t var formatProp = hop.call(format, property) ? format[property] : undefined;\n\t\n\t // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n\t // additionPenalty.\n\t if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\t\n\t // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n\t // removalPenalty.\n\t else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\t\n\t // vi. Else\n\t else {\n\t // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n\t // \"long\"].\n\t var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\t\n\t // 2. Let optionsPropIndex be the index of optionsProp within values.\n\t var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\t\n\t // 3. Let formatPropIndex be the index of formatProp within values.\n\t var formatPropIndex = arrIndexOf.call(values, formatProp);\n\t\n\t // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n\t var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\t\n\t {\n\t // diverging from spec\n\t // When the bestFit argument is true, subtract additional penalty where data types are not the same\n\t if (formatPropIndex <= 1 && optionsPropIndex >= 2 || formatPropIndex >= 2 && optionsPropIndex <= 1) {\n\t // 5. If delta = 2, decrease score by longMorePenalty.\n\t if (delta > 0) score -= longMorePenalty;else if (delta < 0) score -= longLessPenalty;\n\t } else {\n\t // 5. If delta = 2, decrease score by longMorePenalty.\n\t if (delta > 1) score -= shortMorePenalty;else if (delta < -1) score -= shortLessPenalty;\n\t }\n\t }\n\t }\n\t }\n\t\n\t {\n\t // diverging to also take into consideration differences between 12 or 24 hours\n\t // which is special for the best fit only.\n\t if (format._.hour12 !== options.hour12) {\n\t score -= hour12Penalty;\n\t }\n\t }\n\t\n\t // d. If score > bestScore, then\n\t if (score > bestScore) {\n\t // i. Let bestScore be score.\n\t bestScore = score;\n\t // ii. Let bestFormat be format.\n\t bestFormat = format;\n\t }\n\t\n\t // e. Increase i by 1.\n\t i++;\n\t }\n\t\n\t // 13. Return bestFormat.\n\t return bestFormat;\n\t}\n\t\n\t/* 12.2.3 */internals.DateTimeFormat = {\n\t '[[availableLocales]]': [],\n\t '[[relevantExtensionKeys]]': ['ca', 'nu'],\n\t '[[localeData]]': {}\n\t};\n\t\n\t/**\n\t * When the supportedLocalesOf method of Intl.DateTimeFormat is called, the\n\t * following steps are taken:\n\t */\n\t/* 12.2.2 */\n\tdefineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {\n\t configurable: true,\n\t writable: true,\n\t value: fnBind.call(function (locales) {\n\t // Bound functions only have the `this` value altered if being used as a constructor,\n\t // this lets us imitate a native function that has no constructor\n\t if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore(),\n\t\n\t\n\t // 1. If options is not provided, then let options be undefined.\n\t options = arguments[1],\n\t\n\t\n\t // 2. Let availableLocales be the value of the [[availableLocales]] internal\n\t // property of the standard built-in object that is the initial value of\n\t // Intl.NumberFormat.\n\t\n\t availableLocales = this['[[availableLocales]]'],\n\t\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // 4. Return the result of calling the SupportedLocales abstract operation\n\t // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n\t // and options.\n\t return SupportedLocales(availableLocales, requestedLocales, options);\n\t }, internals.NumberFormat)\n\t});\n\t\n\t/**\n\t * This named accessor property returns a function that formats a number\n\t * according to the effective locale and the formatting options of this\n\t * DateTimeFormat object.\n\t */\n\t/* 12.3.2 */defineProperty(Intl.DateTimeFormat.prototype, 'format', {\n\t configurable: true,\n\t get: GetFormatDateTime\n\t});\n\t\n\tdefineProperty(Intl.DateTimeFormat.prototype, 'formatToParts', {\n\t configurable: true,\n\t get: GetFormatToPartsDateTime\n\t});\n\t\n\tfunction GetFormatDateTime() {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 12.3_b\n\t if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.DateTimeFormat object.');\n\t\n\t // The value of the [[Get]] attribute is a function that takes the following\n\t // steps:\n\t\n\t // 1. If the [[boundFormat]] internal property of this DateTimeFormat object\n\t // is undefined, then:\n\t if (internal['[[boundFormat]]'] === undefined) {\n\t // a. Let F be a Function object, with internal properties set as\n\t // specified for built-in functions in ES5, 15, or successor, and the\n\t // length property set to 0, that takes the argument date and\n\t // performs the following steps:\n\t var F = function F() {\n\t // i. If date is not provided or is undefined, then let x be the\n\t // result as if by the expression Date.now() where Date.now is\n\t // the standard built-in function defined in ES5, 15.9.4.4.\n\t // ii. Else let x be ToNumber(date).\n\t // iii. Return the result of calling the FormatDateTime abstract\n\t // operation (defined below) with arguments this and x.\n\t var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n\t return FormatDateTime(this, x);\n\t };\n\t // b. Let bind be the standard built-in function object defined in ES5,\n\t // 15.3.4.5.\n\t // c. Let bf be the result of calling the [[Call]] internal method of\n\t // bind with F as the this value and an argument list containing\n\t // the single item this.\n\t var bf = fnBind.call(F, this);\n\t // d. Set the [[boundFormat]] internal property of this NumberFormat\n\t // object to bf.\n\t internal['[[boundFormat]]'] = bf;\n\t }\n\t // Return the value of the [[boundFormat]] internal property of this\n\t // NumberFormat object.\n\t return internal['[[boundFormat]]'];\n\t}\n\t\n\tfunction GetFormatToPartsDateTime() {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.');\n\t\n\t if (internal['[[boundFormatToParts]]'] === undefined) {\n\t var F = function F() {\n\t var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n\t return FormatToPartsDateTime(this, x);\n\t };\n\t var bf = fnBind.call(F, this);\n\t internal['[[boundFormatToParts]]'] = bf;\n\t }\n\t return internal['[[boundFormatToParts]]'];\n\t}\n\t\n\tfunction CreateDateTimeParts(dateTimeFormat, x) {\n\t // 1. If x is not a finite Number, then throw a RangeError exception.\n\t if (!isFinite(x)) throw new RangeError('Invalid valid date passed to format');\n\t\n\t var internal = dateTimeFormat.__getInternalProperties(secret);\n\t\n\t // Creating restore point for properties on the RegExp object... please wait\n\t /* let regexpState = */createRegExpRestore(); // ###TODO: review this\n\t\n\t // 2. Let locale be the value of the [[locale]] internal property of dateTimeFormat.\n\t var locale = internal['[[locale]]'];\n\t\n\t // 3. Let nf be the result of creating a new NumberFormat object as if by the\n\t // expression new Intl.NumberFormat([locale], {useGrouping: false}) where\n\t // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n\t var nf = new Intl.NumberFormat([locale], { useGrouping: false });\n\t\n\t // 4. Let nf2 be the result of creating a new NumberFormat object as if by the\n\t // expression new Intl.NumberFormat([locale], {minimumIntegerDigits: 2, useGrouping:\n\t // false}) where Intl.NumberFormat is the standard built-in constructor defined in\n\t // 11.1.3.\n\t var nf2 = new Intl.NumberFormat([locale], { minimumIntegerDigits: 2, useGrouping: false });\n\t\n\t // 5. Let tm be the result of calling the ToLocalTime abstract operation (defined\n\t // below) with x, the value of the [[calendar]] internal property of dateTimeFormat,\n\t // and the value of the [[timeZone]] internal property of dateTimeFormat.\n\t var tm = ToLocalTime(x, internal['[[calendar]]'], internal['[[timeZone]]']);\n\t\n\t // 6. Let result be the value of the [[pattern]] internal property of dateTimeFormat.\n\t var pattern = internal['[[pattern]]'];\n\t\n\t // 7.\n\t var result = new List();\n\t\n\t // 8.\n\t var index = 0;\n\t\n\t // 9.\n\t var beginIndex = pattern.indexOf('{');\n\t\n\t // 10.\n\t var endIndex = 0;\n\t\n\t // Need the locale minus any extensions\n\t var dataLocale = internal['[[dataLocale]]'];\n\t\n\t // Need the calendar data from CLDR\n\t var localeData = internals.DateTimeFormat['[[localeData]]'][dataLocale].calendars;\n\t var ca = internal['[[calendar]]'];\n\t\n\t // 11.\n\t while (beginIndex !== -1) {\n\t var fv = void 0;\n\t // a.\n\t endIndex = pattern.indexOf('}', beginIndex);\n\t // b.\n\t if (endIndex === -1) {\n\t throw new Error('Unclosed pattern');\n\t }\n\t // c.\n\t if (beginIndex > index) {\n\t arrPush.call(result, {\n\t type: 'literal',\n\t value: pattern.substring(index, beginIndex)\n\t });\n\t }\n\t // d.\n\t var p = pattern.substring(beginIndex + 1, endIndex);\n\t // e.\n\t if (dateTimeComponents.hasOwnProperty(p)) {\n\t // i. Let f be the value of the [[

    ]] internal property of dateTimeFormat.\n\t var f = internal['[[' + p + ']]'];\n\t // ii. Let v be the value of tm.[[

    ]].\n\t var v = tm['[[' + p + ']]'];\n\t // iii. If p is \"year\" and v ≤ 0, then let v be 1 - v.\n\t if (p === 'year' && v <= 0) {\n\t v = 1 - v;\n\t }\n\t // iv. If p is \"month\", then increase v by 1.\n\t else if (p === 'month') {\n\t v++;\n\t }\n\t // v. If p is \"hour\" and the value of the [[hour12]] internal property of\n\t // dateTimeFormat is true, then\n\t else if (p === 'hour' && internal['[[hour12]]'] === true) {\n\t // 1. Let v be v modulo 12.\n\t v = v % 12;\n\t // 2. If v is 0 and the value of the [[hourNo0]] internal property of\n\t // dateTimeFormat is true, then let v be 12.\n\t if (v === 0 && internal['[[hourNo0]]'] === true) {\n\t v = 12;\n\t }\n\t }\n\t\n\t // vi. If f is \"numeric\", then\n\t if (f === 'numeric') {\n\t // 1. Let fv be the result of calling the FormatNumber abstract operation\n\t // (defined in 11.3.2) with arguments nf and v.\n\t fv = FormatNumber(nf, v);\n\t }\n\t // vii. Else if f is \"2-digit\", then\n\t else if (f === '2-digit') {\n\t // 1. Let fv be the result of calling the FormatNumber abstract operation\n\t // with arguments nf2 and v.\n\t fv = FormatNumber(nf2, v);\n\t // 2. If the length of fv is greater than 2, let fv be the substring of fv\n\t // containing the last two characters.\n\t if (fv.length > 2) {\n\t fv = fv.slice(-2);\n\t }\n\t }\n\t // viii. Else if f is \"narrow\", \"short\", or \"long\", then let fv be a String\n\t // value representing f in the desired form; the String value depends upon\n\t // the implementation and the effective locale and calendar of\n\t // dateTimeFormat. If p is \"month\", then the String value may also depend\n\t // on whether dateTimeFormat has a [[day]] internal property. If p is\n\t // \"timeZoneName\", then the String value may also depend on the value of\n\t // the [[inDST]] field of tm.\n\t else if (f in dateWidths) {\n\t switch (p) {\n\t case 'month':\n\t fv = resolveDateString(localeData, ca, 'months', f, tm['[[' + p + ']]']);\n\t break;\n\t\n\t case 'weekday':\n\t try {\n\t fv = resolveDateString(localeData, ca, 'days', f, tm['[[' + p + ']]']);\n\t // fv = resolveDateString(ca.days, f)[tm['[['+ p +']]']];\n\t } catch (e) {\n\t throw new Error('Could not find weekday data for locale ' + locale);\n\t }\n\t break;\n\t\n\t case 'timeZoneName':\n\t fv = ''; // ###TODO\n\t break;\n\t\n\t case 'era':\n\t try {\n\t fv = resolveDateString(localeData, ca, 'eras', f, tm['[[' + p + ']]']);\n\t } catch (e) {\n\t throw new Error('Could not find era data for locale ' + locale);\n\t }\n\t break;\n\t\n\t default:\n\t fv = tm['[[' + p + ']]'];\n\t }\n\t }\n\t // ix\n\t arrPush.call(result, {\n\t type: p,\n\t value: fv\n\t });\n\t // f.\n\t } else if (p === 'ampm') {\n\t // i.\n\t var _v = tm['[[hour]]'];\n\t // ii./iii.\n\t fv = resolveDateString(localeData, ca, 'dayPeriods', _v > 11 ? 'pm' : 'am', null);\n\t // iv.\n\t arrPush.call(result, {\n\t type: 'dayPeriod',\n\t value: fv\n\t });\n\t // g.\n\t } else {\n\t arrPush.call(result, {\n\t type: 'literal',\n\t value: pattern.substring(beginIndex, endIndex + 1)\n\t });\n\t }\n\t // h.\n\t index = endIndex + 1;\n\t // i.\n\t beginIndex = pattern.indexOf('{', index);\n\t }\n\t // 12.\n\t if (endIndex < pattern.length - 1) {\n\t arrPush.call(result, {\n\t type: 'literal',\n\t value: pattern.substr(endIndex + 1)\n\t });\n\t }\n\t // 13.\n\t return result;\n\t}\n\t\n\t/**\n\t * When the FormatDateTime abstract operation is called with arguments dateTimeFormat\n\t * (which must be an object initialized as a DateTimeFormat) and x (which must be a Number\n\t * value), it returns a String value representing x (interpreted as a time value as\n\t * specified in ES5, 15.9.1.1) according to the effective locale and the formatting\n\t * options of dateTimeFormat.\n\t */\n\tfunction FormatDateTime(dateTimeFormat, x) {\n\t var parts = CreateDateTimeParts(dateTimeFormat, x);\n\t var result = '';\n\t\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t result += part.value;\n\t }\n\t return result;\n\t}\n\t\n\tfunction FormatToPartsDateTime(dateTimeFormat, x) {\n\t var parts = CreateDateTimeParts(dateTimeFormat, x);\n\t var result = [];\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t result.push({\n\t type: part.type,\n\t value: part.value\n\t });\n\t }\n\t return result;\n\t}\n\t\n\t/**\n\t * When the ToLocalTime abstract operation is called with arguments date, calendar, and\n\t * timeZone, the following steps are taken:\n\t */\n\tfunction ToLocalTime(date, calendar, timeZone) {\n\t // 1. Apply calendrical calculations on date for the given calendar and time zone to\n\t // produce weekday, era, year, month, day, hour, minute, second, and inDST values.\n\t // The calculations should use best available information about the specified\n\t // calendar and time zone. If the calendar is \"gregory\", then the calculations must\n\t // match the algorithms specified in ES5, 15.9.1, except that calculations are not\n\t // bound by the restrictions on the use of best available information on time zones\n\t // for local time zone adjustment and daylight saving time adjustment imposed by\n\t // ES5, 15.9.1.7 and 15.9.1.8.\n\t // ###TODO###\n\t var d = new Date(date),\n\t m = 'get' + (timeZone || '');\n\t\n\t // 2. Return a Record with fields [[weekday]], [[era]], [[year]], [[month]], [[day]],\n\t // [[hour]], [[minute]], [[second]], and [[inDST]], each with the corresponding\n\t // calculated value.\n\t return new Record({\n\t '[[weekday]]': d[m + 'Day'](),\n\t '[[era]]': +(d[m + 'FullYear']() >= 0),\n\t '[[year]]': d[m + 'FullYear'](),\n\t '[[month]]': d[m + 'Month'](),\n\t '[[day]]': d[m + 'Date'](),\n\t '[[hour]]': d[m + 'Hours'](),\n\t '[[minute]]': d[m + 'Minutes'](),\n\t '[[second]]': d[m + 'Seconds'](),\n\t '[[inDST]]': false });\n\t}\n\t\n\t/**\n\t * The function returns a new object whose properties and attributes are set as if\n\t * constructed by an object literal assigning to each of the following properties the\n\t * value of the corresponding internal property of this DateTimeFormat object (see 12.4):\n\t * locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day,\n\t * hour, minute, second, and timeZoneName. Properties whose corresponding internal\n\t * properties are not present are not assigned.\n\t */\n\t/* 12.3.3 */ // ###TODO###\n\tdefineProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', {\n\t writable: true,\n\t configurable: true,\n\t value: function value() {\n\t var prop = void 0,\n\t descs = new Record(),\n\t props = ['locale', 'calendar', 'numberingSystem', 'timeZone', 'hour12', 'weekday', 'era', 'year', 'month', 'day', 'hour', 'minute', 'second', 'timeZoneName'],\n\t internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 12.3_b\n\t if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.');\n\t\n\t for (var i = 0, max = props.length; i < max; i++) {\n\t if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n\t }\n\t\n\t return objCreate({}, descs);\n\t }\n\t});\n\t\n\tvar ls = Intl.__localeSensitiveProtos = {\n\t Number: {},\n\t Date: {}\n\t};\n\t\n\t/**\n\t * When the toLocaleString method is called with optional arguments locales and options,\n\t * the following steps are taken:\n\t */\n\t/* 13.2.1 */ls.Number.toLocaleString = function () {\n\t // Satisfy test 13.2.1_1\n\t if (Object.prototype.toString.call(this) !== '[object Number]') throw new TypeError('`this` value must be a number for Number.prototype.toLocaleString()');\n\t\n\t // 1. Let x be this Number value (as defined in ES5, 15.7.4).\n\t // 2. If locales is not provided, then let locales be undefined.\n\t // 3. If options is not provided, then let options be undefined.\n\t // 4. Let numberFormat be the result of creating a new object as if by the\n\t // expression new Intl.NumberFormat(locales, options) where\n\t // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n\t // 5. Return the result of calling the FormatNumber abstract operation\n\t // (defined in 11.3.2) with arguments numberFormat and x.\n\t return FormatNumber(new NumberFormatConstructor(arguments[0], arguments[1]), this);\n\t};\n\t\n\t/**\n\t * When the toLocaleString method is called with optional arguments locales and options,\n\t * the following steps are taken:\n\t */\n\t/* 13.3.1 */ls.Date.toLocaleString = function () {\n\t // Satisfy test 13.3.0_1\n\t if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleString()');\n\t\n\t // 1. Let x be this time value (as defined in ES5, 15.9.5).\n\t var x = +this;\n\t\n\t // 2. If x is NaN, then return \"Invalid Date\".\n\t if (isNaN(x)) return 'Invalid Date';\n\t\n\t // 3. If locales is not provided, then let locales be undefined.\n\t var locales = arguments[0];\n\t\n\t // 4. If options is not provided, then let options be undefined.\n\t var options = arguments[1];\n\t\n\t // 5. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined in 12.1.1) with arguments options, \"any\", and \"all\".\n\t options = ToDateTimeOptions(options, 'any', 'all');\n\t\n\t // 6. Let dateTimeFormat be the result of creating a new object as if by the\n\t // expression new Intl.DateTimeFormat(locales, options) where\n\t // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n\t var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\t\n\t // 7. Return the result of calling the FormatDateTime abstract operation (defined\n\t // in 12.3.2) with arguments dateTimeFormat and x.\n\t return FormatDateTime(dateTimeFormat, x);\n\t};\n\t\n\t/**\n\t * When the toLocaleDateString method is called with optional arguments locales and\n\t * options, the following steps are taken:\n\t */\n\t/* 13.3.2 */ls.Date.toLocaleDateString = function () {\n\t // Satisfy test 13.3.0_1\n\t if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleDateString()');\n\t\n\t // 1. Let x be this time value (as defined in ES5, 15.9.5).\n\t var x = +this;\n\t\n\t // 2. If x is NaN, then return \"Invalid Date\".\n\t if (isNaN(x)) return 'Invalid Date';\n\t\n\t // 3. If locales is not provided, then let locales be undefined.\n\t var locales = arguments[0],\n\t\n\t\n\t // 4. If options is not provided, then let options be undefined.\n\t options = arguments[1];\n\t\n\t // 5. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined in 12.1.1) with arguments options, \"date\", and \"date\".\n\t options = ToDateTimeOptions(options, 'date', 'date');\n\t\n\t // 6. Let dateTimeFormat be the result of creating a new object as if by the\n\t // expression new Intl.DateTimeFormat(locales, options) where\n\t // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n\t var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\t\n\t // 7. Return the result of calling the FormatDateTime abstract operation (defined\n\t // in 12.3.2) with arguments dateTimeFormat and x.\n\t return FormatDateTime(dateTimeFormat, x);\n\t};\n\t\n\t/**\n\t * When the toLocaleTimeString method is called with optional arguments locales and\n\t * options, the following steps are taken:\n\t */\n\t/* 13.3.3 */ls.Date.toLocaleTimeString = function () {\n\t // Satisfy test 13.3.0_1\n\t if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleTimeString()');\n\t\n\t // 1. Let x be this time value (as defined in ES5, 15.9.5).\n\t var x = +this;\n\t\n\t // 2. If x is NaN, then return \"Invalid Date\".\n\t if (isNaN(x)) return 'Invalid Date';\n\t\n\t // 3. If locales is not provided, then let locales be undefined.\n\t var locales = arguments[0];\n\t\n\t // 4. If options is not provided, then let options be undefined.\n\t var options = arguments[1];\n\t\n\t // 5. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined in 12.1.1) with arguments options, \"time\", and \"time\".\n\t options = ToDateTimeOptions(options, 'time', 'time');\n\t\n\t // 6. Let dateTimeFormat be the result of creating a new object as if by the\n\t // expression new Intl.DateTimeFormat(locales, options) where\n\t // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n\t var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\t\n\t // 7. Return the result of calling the FormatDateTime abstract operation (defined\n\t // in 12.3.2) with arguments dateTimeFormat and x.\n\t return FormatDateTime(dateTimeFormat, x);\n\t};\n\t\n\tdefineProperty(Intl, '__applyLocaleSensitivePrototypes', {\n\t writable: true,\n\t configurable: true,\n\t value: function value() {\n\t defineProperty(Number.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Number.toLocaleString });\n\t // Need this here for IE 8, to avoid the _DontEnum_ bug\n\t defineProperty(Date.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Date.toLocaleString });\n\t\n\t for (var k in ls.Date) {\n\t if (hop.call(ls.Date, k)) defineProperty(Date.prototype, k, { writable: true, configurable: true, value: ls.Date[k] });\n\t }\n\t }\n\t});\n\t\n\t/**\n\t * Can't really ship a single script with data for hundreds of locales, so we provide\n\t * this __addLocaleData method as a means for the developer to add the data on an\n\t * as-needed basis\n\t */\n\tdefineProperty(Intl, '__addLocaleData', {\n\t value: function value(data) {\n\t if (!IsStructurallyValidLanguageTag(data.locale)) throw new Error(\"Object passed doesn't identify itself with a valid language tag\");\n\t\n\t addLocaleData(data, data.locale);\n\t }\n\t});\n\t\n\tfunction addLocaleData(data, tag) {\n\t // Both NumberFormat and DateTimeFormat require number data, so throw if it isn't present\n\t if (!data.number) throw new Error(\"Object passed doesn't contain locale data for Intl.NumberFormat\");\n\t\n\t var locale = void 0,\n\t locales = [tag],\n\t parts = tag.split('-');\n\t\n\t // Create fallbacks for locale data with scripts, e.g. Latn, Hans, Vaii, etc\n\t if (parts.length > 2 && parts[1].length === 4) arrPush.call(locales, parts[0] + '-' + parts[2]);\n\t\n\t while (locale = arrShift.call(locales)) {\n\t // Add to NumberFormat internal properties as per 11.2.3\n\t arrPush.call(internals.NumberFormat['[[availableLocales]]'], locale);\n\t internals.NumberFormat['[[localeData]]'][locale] = data.number;\n\t\n\t // ...and DateTimeFormat internal properties as per 12.2.3\n\t if (data.date) {\n\t data.date.nu = data.number.nu;\n\t arrPush.call(internals.DateTimeFormat['[[availableLocales]]'], locale);\n\t internals.DateTimeFormat['[[localeData]]'][locale] = data.date;\n\t }\n\t }\n\t\n\t // If this is the first set of locale data added, make it the default\n\t if (defaultLocale === undefined) setDefaultLocale(tag);\n\t}\n\t\n\tmodule.exports = Intl;\n\n/***/ },\n\n/***/ 890:\n872\n\n});\n\n\n/** WEBPACK FOOTER **\n ** 1.1.js\n **/","// Expose `IntlPolyfill` as global to add locale data into runtime later on.\nglobal.IntlPolyfill = require('./lib/core.js');\n\n// Require all locale data for `Intl`. This module will be\n// ignored when bundling for the browser with Browserify/Webpack.\nrequire('./locale-data/complete.js');\n\n// hack to export the polyfill as global Intl if needed\nif (!global.Intl) {\n global.Intl = global.IntlPolyfill;\n global.IntlPolyfill.__applyLocaleSensitivePrototypes();\n}\n\n// providing an idiomatic api for the nodejs version of this module\nmodule.exports = global.IntlPolyfill;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/index.js\n ** module id = 323\n ** module chunks = 1\n **/","IntlPolyfill.__addLocaleData({locale:\"en\",date:{ca:[\"gregory\",\"buddhist\",\"chinese\",\"coptic\",\"dangi\",\"ethioaa\",\"ethiopic\",\"generic\",\"hebrew\",\"indian\",\"islamic\",\"islamicc\",\"japanese\",\"persian\",\"roc\"],hourNo0:true,hour12:true,formats:{short:\"{1}, {0}\",medium:\"{1}, {0}\",full:\"{1} 'at' {0}\",long:\"{1} 'at' {0}\",availableFormats:{\"d\":\"d\",\"E\":\"ccc\",Ed:\"d E\",Ehm:\"E h:mm a\",EHm:\"E HH:mm\",Ehms:\"E h:mm:ss a\",EHms:\"E HH:mm:ss\",Gy:\"y G\",GyMMM:\"MMM y G\",GyMMMd:\"MMM d, y G\",GyMMMEd:\"E, MMM d, y G\",\"h\":\"h a\",\"H\":\"HH\",hm:\"h:mm a\",Hm:\"HH:mm\",hms:\"h:mm:ss a\",Hms:\"HH:mm:ss\",hmsv:\"h:mm:ss a v\",Hmsv:\"HH:mm:ss v\",hmv:\"h:mm a v\",Hmv:\"HH:mm v\",\"M\":\"L\",Md:\"M/d\",MEd:\"E, M/d\",MMM:\"LLL\",MMMd:\"MMM d\",MMMEd:\"E, MMM d\",MMMMd:\"MMMM d\",ms:\"mm:ss\",\"y\":\"y\",yM:\"M/y\",yMd:\"M/d/y\",yMEd:\"E, M/d/y\",yMMM:\"MMM y\",yMMMd:\"MMM d, y\",yMMMEd:\"E, MMM d, y\",yMMMM:\"MMMM y\",yQQQ:\"QQQ y\",yQQQQ:\"QQQQ y\"},dateFormats:{yMMMMEEEEd:\"EEEE, MMMM d, y\",yMMMMd:\"MMMM d, y\",yMMMd:\"MMM d, y\",yMd:\"M/d/yy\"},timeFormats:{hmmsszzzz:\"h:mm:ss a zzzz\",hmsz:\"h:mm:ss a z\",hms:\"h:mm:ss a\",hm:\"h:mm a\"}},calendars:{buddhist:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"BE\"],short:[\"BE\"],long:[\"BE\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},chinese:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Mo1\",\"Mo2\",\"Mo3\",\"Mo4\",\"Mo5\",\"Mo6\",\"Mo7\",\"Mo8\",\"Mo9\",\"Mo10\",\"Mo11\",\"Mo12\"],long:[\"Month1\",\"Month2\",\"Month3\",\"Month4\",\"Month5\",\"Month6\",\"Month7\",\"Month8\",\"Month9\",\"Month10\",\"Month11\",\"Month12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},coptic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"],long:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},dangi:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Mo1\",\"Mo2\",\"Mo3\",\"Mo4\",\"Mo5\",\"Mo6\",\"Mo7\",\"Mo8\",\"Mo9\",\"Mo10\",\"Mo11\",\"Mo12\"],long:[\"Month1\",\"Month2\",\"Month3\",\"Month4\",\"Month5\",\"Month6\",\"Month7\",\"Month8\",\"Month9\",\"Month10\",\"Month11\",\"Month12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethiopic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethioaa:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\"],short:[\"ERA0\"],long:[\"ERA0\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},generic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"],long:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},gregory:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"B\",\"A\",\"BCE\",\"CE\"],short:[\"BC\",\"AD\",\"BCE\",\"CE\"],long:[\"Before Christ\",\"Anno Domini\",\"Before Common Era\",\"Common Era\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},hebrew:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"7\"],short:[\"Tishri\",\"Heshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar I\",\"Adar\",\"Nisan\",\"Iyar\",\"Sivan\",\"Tamuz\",\"Av\",\"Elul\",\"Adar II\"],long:[\"Tishri\",\"Heshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar I\",\"Adar\",\"Nisan\",\"Iyar\",\"Sivan\",\"Tamuz\",\"Av\",\"Elul\",\"Adar II\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AM\"],short:[\"AM\"],long:[\"AM\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},indian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"],long:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Saka\"],short:[\"Saka\"],long:[\"Saka\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Muh.\",\"Saf.\",\"Rab. I\",\"Rab. II\",\"Jum. I\",\"Jum. II\",\"Raj.\",\"Sha.\",\"Ram.\",\"Shaw.\",\"Dhuʻl-Q.\",\"Dhuʻl-H.\"],long:[\"Muharram\",\"Safar\",\"Rabiʻ I\",\"Rabiʻ II\",\"Jumada I\",\"Jumada II\",\"Rajab\",\"Shaʻban\",\"Ramadan\",\"Shawwal\",\"Dhuʻl-Qiʻdah\",\"Dhuʻl-Hijjah\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamicc:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Muh.\",\"Saf.\",\"Rab. I\",\"Rab. II\",\"Jum. I\",\"Jum. II\",\"Raj.\",\"Sha.\",\"Ram.\",\"Shaw.\",\"Dhuʻl-Q.\",\"Dhuʻl-H.\"],long:[\"Muharram\",\"Safar\",\"Rabiʻ I\",\"Rabiʻ II\",\"Jumada I\",\"Jumada II\",\"Rajab\",\"Shaʻban\",\"Ramadan\",\"Shawwal\",\"Dhuʻl-Qiʻdah\",\"Dhuʻl-Hijjah\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},japanese:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"M\",\"T\",\"S\",\"H\"],short:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"],long:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},persian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"],long:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AP\"],short:[\"AP\"],long:[\"AP\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},roc:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Before R.O.C.\",\"Minguo\"],short:[\"Before R.O.C.\",\"Minguo\"],long:[\"Before R.O.C.\",\"Minguo\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}}}},number:{nu:[\"latn\"],patterns:{decimal:{positivePattern:\"{number}\",negativePattern:\"{minusSign}{number}\"},currency:{positivePattern:\"{currency}{number}\",negativePattern:\"{minusSign}{currency}{number}\"},percent:{positivePattern:\"{number}{percentSign}\",negativePattern:\"{minusSign}{number}{percentSign}\"}},symbols:{latn:{decimal:\".\",group:\",\",nan:\"NaN\",plusSign:\"+\",minusSign:\"-\",percentSign:\"%\",infinity:\"∞\"}},currencies:{AUD:\"A$\",BRL:\"R$\",CAD:\"CA$\",CNY:\"CN¥\",EUR:\"€\",GBP:\"£\",HKD:\"HK$\",ILS:\"₪\",INR:\"₹\",JPY:\"¥\",KRW:\"₩\",MXN:\"MX$\",NZD:\"NZ$\",TWD:\"NT$\",USD:\"$\",VND:\"₫\",XAF:\"FCFA\",XCD:\"EC$\",XOF:\"CFA\",XPF:\"CFPF\"}}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/locale-data/jsonp/en.js\n ** module id = 324\n ** module chunks = 1\n **/","IntlPolyfill.__addLocaleData({locale:\"fr\",date:{ca:[\"gregory\",\"buddhist\",\"chinese\",\"coptic\",\"dangi\",\"ethioaa\",\"ethiopic\",\"generic\",\"hebrew\",\"indian\",\"islamic\",\"islamicc\",\"japanese\",\"persian\",\"roc\"],hourNo0:true,hour12:false,formats:{short:\"{1} {0}\",medium:\"{1} 'à' {0}\",full:\"{1} 'à' {0}\",long:\"{1} 'à' {0}\",availableFormats:{\"d\":\"d\",\"E\":\"E\",Ed:\"E d\",Ehm:\"E h:mm a\",EHm:\"E HH:mm\",Ehms:\"E h:mm:ss a\",EHms:\"E HH:mm:ss\",Gy:\"y G\",GyMMM:\"MMM y G\",GyMMMd:\"d MMM y G\",GyMMMEd:\"E d MMM y G\",\"h\":\"h a\",\"H\":\"HH 'h'\",hm:\"h:mm a\",Hm:\"HH:mm\",hms:\"h:mm:ss a\",Hms:\"HH:mm:ss\",hmsv:\"h:mm:ss a v\",Hmsv:\"HH:mm:ss v\",hmv:\"h:mm a v\",Hmv:\"HH:mm v\",\"M\":\"L\",Md:\"dd/MM\",MEd:\"E dd/MM\",MMM:\"LLL\",MMMd:\"d MMM\",MMMEd:\"E d MMM\",MMMMd:\"d MMMM\",ms:\"mm:ss\",\"y\":\"y\",yM:\"MM/y\",yMd:\"dd/MM/y\",yMEd:\"E dd/MM/y\",yMMM:\"MMM y\",yMMMd:\"d MMM y\",yMMMEd:\"E d MMM y\",yMMMM:\"MMMM y\",yQQQ:\"QQQ y\",yQQQQ:\"QQQQ y\"},dateFormats:{yMMMMEEEEd:\"EEEE d MMMM y\",yMMMMd:\"d MMMM y\",yMMMd:\"d MMM y\",yMd:\"dd/MM/y\"},timeFormats:{hmmsszzzz:\"HH:mm:ss zzzz\",hmsz:\"HH:mm:ss z\",hms:\"HH:mm:ss\",hm:\"HH:mm\"}},calendars:{buddhist:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"E.B.\"],short:[\"ère b.\"],long:[\"ère bouddhiste\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},chinese:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"1yuè\",\"2yuè\",\"3yuè\",\"4yuè\",\"5yuè\",\"6yuè\",\"7yuè\",\"8yuè\",\"9yuè\",\"10yuè\",\"11yuè\",\"12yuè\"],long:[\"zhēngyuè\",\"èryuè\",\"sānyuè\",\"sìyuè\",\"wǔyuè\",\"liùyuè\",\"qīyuè\",\"bāyuè\",\"jiǔyuè\",\"shíyuè\",\"shíyīyuè\",\"shí’èryuè\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},coptic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"],long:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},dangi:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"1yuè\",\"2yuè\",\"3yuè\",\"4yuè\",\"5yuè\",\"6yuè\",\"7yuè\",\"8yuè\",\"9yuè\",\"10yuè\",\"11yuè\",\"12yuè\"],long:[\"zhēngyuè\",\"èryuè\",\"sānyuè\",\"sìyuè\",\"wǔyuè\",\"liùyuè\",\"qīyuè\",\"bāyuè\",\"jiǔyuè\",\"shíyuè\",\"shíyīyuè\",\"shí’èryuè\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethiopic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethioaa:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\"],short:[\"ERA0\"],long:[\"ERA0\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},generic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"],long:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},gregory:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"av. J.-C.\",\"ap. J.-C.\",\"AEC\",\"EC\"],short:[\"av. J.-C.\",\"ap. J.-C.\",\"AEC\",\"EC\"],long:[\"avant Jésus-Christ\",\"après Jésus-Christ\",\"avant l’ère commune\",\"de l’ère commune\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},hebrew:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"7\"],short:[\"Tisseri\",\"Hesvan\",\"Kislev\",\"Tébeth\",\"Schébat\",\"Adar I\",\"Adar\",\"Nissan\",\"Iyar\",\"Sivan\",\"Tamouz\",\"Ab\",\"Elloul\",\"Adar II\"],long:[\"Tisseri\",\"Hesvan\",\"Kislev\",\"Tébeth\",\"Schébat\",\"Adar I\",\"Adar\",\"Nissan\",\"Iyar\",\"Sivan\",\"Tamouz\",\"Ab\",\"Elloul\",\"Adar II\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AM\"],short:[\"AM\"],long:[\"AM\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},indian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"],long:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"Saka\"],short:[\"Saka\"],long:[\"Saka\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"mouh.\",\"saf.\",\"rab. aw.\",\"rab. th.\",\"joum. oul.\",\"joum. tha.\",\"raj.\",\"chaa.\",\"ram.\",\"chaw.\",\"dhou. q.\",\"dhou. h.\"],long:[\"mouharram\",\"safar\",\"rabia al awal\",\"rabia ath-thani\",\"joumada al oula\",\"joumada ath-thania\",\"rajab\",\"chaabane\",\"ramadan\",\"chawwal\",\"dhou al qi`da\",\"dhou al-hijja\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamicc:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"mouh.\",\"saf.\",\"rab. aw.\",\"rab. th.\",\"joum. oul.\",\"joum. tha.\",\"raj.\",\"chaa.\",\"ram.\",\"chaw.\",\"dhou. q.\",\"dhou. h.\"],long:[\"mouharram\",\"safar\",\"rabia al awal\",\"rabia ath-thani\",\"joumada al oula\",\"joumada ath-thania\",\"rajab\",\"chaabane\",\"ramadan\",\"chawwal\",\"dhou al qi`da\",\"dhou al-hijja\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},japanese:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"M\",\"T\",\"S\",\"H\"],short:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"],long:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},persian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"],long:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AP\"],short:[\"AP\"],long:[\"AP\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},roc:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"avant RdC\",\"RdC\"],short:[\"avant RdC\",\"RdC\"],long:[\"avant RdC\",\"RdC\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}}}},number:{nu:[\"latn\"],patterns:{decimal:{positivePattern:\"{number}\",negativePattern:\"{minusSign}{number}\"},currency:{positivePattern:\"{number} {currency}\",negativePattern:\"{minusSign}{number} {currency}\"},percent:{positivePattern:\"{number} {percentSign}\",negativePattern:\"{minusSign}{number} {percentSign}\"}},symbols:{latn:{decimal:\",\",group:\" \",nan:\"NaN\",plusSign:\"+\",minusSign:\"-\",percentSign:\"%\",infinity:\"∞\"}},currencies:{ARS:\"$AR\",AUD:\"$AU\",BEF:\"FB\",BMD:\"$BM\",BND:\"$BN\",BRL:\"R$\",BSD:\"$BS\",BZD:\"$BZ\",CAD:\"$CA\",CLP:\"$CL\",COP:\"$CO\",CYP:\"£CY\",EUR:\"€\",FJD:\"$FJ\",FKP:\"£FK\",FRF:\"F\",GBP:\"£GB\",GIP:\"£GI\",IEP:\"£IE\",ILP:\"£IL\",ILS:\"₪\",INR:\"₹\",ITL:\"₤IT\",KRW:\"₩\",LBP:\"£LB\",MTP:\"£MT\",MXN:\"$MX\",NAD:\"$NA\",NZD:\"$NZ\",RHD:\"$RH\",SBD:\"$SB\",SGD:\"$SG\",SRD:\"$SR\",TTD:\"$TT\",USD:\"$US\",UYU:\"$UY\",VND:\"₫\",WST:\"WS$\",XAF:\"FCFA\",XOF:\"CFA\",XPF:\"FCFP\"}}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/locale-data/jsonp/fr.js\n ** module id = 325\n ** module chunks = 1\n **/","'use strict';\n\nvar babelHelpers = {};\nbabelHelpers.typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nbabelHelpers;\n\nvar realDefineProp = function () {\n var sentinel = {};\n try {\n Object.defineProperty(sentinel, 'a', {});\n return 'a' in sentinel;\n } catch (e) {\n return false;\n }\n}();\n\n// Need a workaround for getters in ES3\nvar es3 = !realDefineProp && !Object.prototype.__defineGetter__;\n\n// We use this a lot (and need it for proto-less objects)\nvar hop = Object.prototype.hasOwnProperty;\n\n// Naive defineProperty for compatibility\nvar defineProperty = realDefineProp ? Object.defineProperty : function (obj, name, desc) {\n if ('get' in desc && obj.__defineGetter__) obj.__defineGetter__(name, desc.get);else if (!hop.call(obj, name) || 'value' in desc) obj[name] = desc.value;\n};\n\n// Array.prototype.indexOf, as good as we need it to be\nvar arrIndexOf = Array.prototype.indexOf || function (search) {\n /*jshint validthis:true */\n var t = this;\n if (!t.length) return -1;\n\n for (var i = arguments[1] || 0, max = t.length; i < max; i++) {\n if (t[i] === search) return i;\n }\n\n return -1;\n};\n\n// Create an object with the specified prototype (2nd arg required for Record)\nvar objCreate = Object.create || function (proto, props) {\n var obj = void 0;\n\n function F() {}\n F.prototype = proto;\n obj = new F();\n\n for (var k in props) {\n if (hop.call(props, k)) defineProperty(obj, k, props[k]);\n }\n\n return obj;\n};\n\n// Snapshot some (hopefully still) native built-ins\nvar arrSlice = Array.prototype.slice;\nvar arrConcat = Array.prototype.concat;\nvar arrPush = Array.prototype.push;\nvar arrJoin = Array.prototype.join;\nvar arrShift = Array.prototype.shift;\n\n// Naive Function.prototype.bind for compatibility\nvar fnBind = Function.prototype.bind || function (thisObj) {\n var fn = this,\n args = arrSlice.call(arguments, 1);\n\n // All our (presently) bound functions have either 1 or 0 arguments. By returning\n // different function signatures, we can pass some tests in ES3 environments\n if (fn.length === 1) {\n return function () {\n return fn.apply(thisObj, arrConcat.call(args, arrSlice.call(arguments)));\n };\n }\n return function () {\n return fn.apply(thisObj, arrConcat.call(args, arrSlice.call(arguments)));\n };\n};\n\n// Object housing internal properties for constructors\nvar internals = objCreate(null);\n\n// Keep internal properties internal\nvar secret = Math.random();\n\n// Helper functions\n// ================\n\n/**\n * A function to deal with the inaccuracy of calculating log10 in pre-ES6\n * JavaScript environments. Math.log(num) / Math.LN10 was responsible for\n * causing issue #62.\n */\nfunction log10Floor(n) {\n // ES6 provides the more accurate Math.log10\n if (typeof Math.log10 === 'function') return Math.floor(Math.log10(n));\n\n var x = Math.round(Math.log(n) * Math.LOG10E);\n return x - (Number('1e' + x) > n);\n}\n\n/**\n * A map that doesn't contain Object in its prototype chain\n */\nfunction Record(obj) {\n // Copy only own properties over unless this object is already a Record instance\n for (var k in obj) {\n if (obj instanceof Record || hop.call(obj, k)) defineProperty(this, k, { value: obj[k], enumerable: true, writable: true, configurable: true });\n }\n}\nRecord.prototype = objCreate(null);\n\n/**\n * An ordered list\n */\nfunction List() {\n defineProperty(this, 'length', { writable: true, value: 0 });\n\n if (arguments.length) arrPush.apply(this, arrSlice.call(arguments));\n}\nList.prototype = objCreate(null);\n\n/**\n * Constructs a regular expression to restore tainted RegExp properties\n */\nfunction createRegExpRestore() {\n var esc = /[.?*+^$[\\]\\\\(){}|-]/g,\n lm = RegExp.lastMatch || '',\n ml = RegExp.multiline ? 'm' : '',\n ret = { input: RegExp.input },\n reg = new List(),\n has = false,\n cap = {};\n\n // Create a snapshot of all the 'captured' properties\n for (var i = 1; i <= 9; i++) {\n has = (cap['$' + i] = RegExp['$' + i]) || has;\n } // Now we've snapshotted some properties, escape the lastMatch string\n lm = lm.replace(esc, '\\\\$&');\n\n // If any of the captured strings were non-empty, iterate over them all\n if (has) {\n for (var _i = 1; _i <= 9; _i++) {\n var m = cap['$' + _i];\n\n // If it's empty, add an empty capturing group\n if (!m) lm = '()' + lm;\n\n // Else find the string in lm and escape & wrap it to capture it\n else {\n m = m.replace(esc, '\\\\$&');\n lm = lm.replace(m, '(' + m + ')');\n }\n\n // Push it to the reg and chop lm to make sure further groups come after\n arrPush.call(reg, lm.slice(0, lm.indexOf('(') + 1));\n lm = lm.slice(lm.indexOf('(') + 1);\n }\n }\n\n // Create the regular expression that will reconstruct the RegExp properties\n ret.exp = new RegExp(arrJoin.call(reg, '') + lm, ml);\n\n return ret;\n}\n\n/**\n * Mimics ES5's abstract ToObject() function\n */\nfunction toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n return Object(arg);\n}\n\n/**\n * Returns \"internal\" properties for an object\n */\nfunction getInternalProperties(obj) {\n if (hop.call(obj, '__getInternalProperties')) return obj.__getInternalProperties(secret);\n\n return objCreate(null);\n}\n\n/**\n* Defines regular expressions for various operations related to the BCP 47 syntax,\n* as defined at http://tools.ietf.org/html/bcp47#section-2.1\n*/\n\n// extlang = 3ALPHA ; selected ISO 639 codes\n// *2(\"-\" 3ALPHA) ; permanently reserved\nvar extlang = '[a-z]{3}(?:-[a-z]{3}){0,2}';\n\n// language = 2*3ALPHA ; shortest ISO 639 code\n// [\"-\" extlang] ; sometimes followed by\n// ; extended language subtags\n// / 4ALPHA ; or reserved for future use\n// / 5*8ALPHA ; or registered language subtag\nvar language = '(?:[a-z]{2,3}(?:-' + extlang + ')?|[a-z]{4}|[a-z]{5,8})';\n\n// script = 4ALPHA ; ISO 15924 code\nvar script = '[a-z]{4}';\n\n// region = 2ALPHA ; ISO 3166-1 code\n// / 3DIGIT ; UN M.49 code\nvar region = '(?:[a-z]{2}|\\\\d{3})';\n\n// variant = 5*8alphanum ; registered variants\n// / (DIGIT 3alphanum)\nvar variant = '(?:[a-z0-9]{5,8}|\\\\d[a-z0-9]{3})';\n\n// ; Single alphanumerics\n// ; \"x\" reserved for private use\n// singleton = DIGIT ; 0 - 9\n// / %x41-57 ; A - W\n// / %x59-5A ; Y - Z\n// / %x61-77 ; a - w\n// / %x79-7A ; y - z\nvar singleton = '[0-9a-wy-z]';\n\n// extension = singleton 1*(\"-\" (2*8alphanum))\nvar extension = singleton + '(?:-[a-z0-9]{2,8})+';\n\n// privateuse = \"x\" 1*(\"-\" (1*8alphanum))\nvar privateuse = 'x(?:-[a-z0-9]{1,8})+';\n\n// irregular = \"en-GB-oed\" ; irregular tags do not match\n// / \"i-ami\" ; the 'langtag' production and\n// / \"i-bnn\" ; would not otherwise be\n// / \"i-default\" ; considered 'well-formed'\n// / \"i-enochian\" ; These tags are all valid,\n// / \"i-hak\" ; but most are deprecated\n// / \"i-klingon\" ; in favor of more modern\n// / \"i-lux\" ; subtags or subtag\n// / \"i-mingo\" ; combination\n// / \"i-navajo\"\n// / \"i-pwn\"\n// / \"i-tao\"\n// / \"i-tay\"\n// / \"i-tsu\"\n// / \"sgn-BE-FR\"\n// / \"sgn-BE-NL\"\n// / \"sgn-CH-DE\"\nvar irregular = '(?:en-GB-oed' + '|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)' + '|sgn-(?:BE-FR|BE-NL|CH-DE))';\n\n// regular = \"art-lojban\" ; these tags match the 'langtag'\n// / \"cel-gaulish\" ; production, but their subtags\n// / \"no-bok\" ; are not extended language\n// / \"no-nyn\" ; or variant subtags: their meaning\n// / \"zh-guoyu\" ; is defined by their registration\n// / \"zh-hakka\" ; and all of these are deprecated\n// / \"zh-min\" ; in favor of a more modern\n// / \"zh-min-nan\" ; subtag or sequence of subtags\n// / \"zh-xiang\"\nvar regular = '(?:art-lojban|cel-gaulish|no-bok|no-nyn' + '|zh-(?:guoyu|hakka|min|min-nan|xiang))';\n\n// grandfathered = irregular ; non-redundant tags registered\n// / regular ; during the RFC 3066 era\nvar grandfathered = '(?:' + irregular + '|' + regular + ')';\n\n// langtag = language\n// [\"-\" script]\n// [\"-\" region]\n// *(\"-\" variant)\n// *(\"-\" extension)\n// [\"-\" privateuse]\nvar langtag = language + '(?:-' + script + ')?(?:-' + region + ')?(?:-' + variant + ')*(?:-' + extension + ')*(?:-' + privateuse + ')?';\n\n// Language-Tag = langtag ; normal language tags\n// / privateuse ; private use tag\n// / grandfathered ; grandfathered tags\nvar expBCP47Syntax = RegExp('^(?:' + langtag + '|' + privateuse + '|' + grandfathered + ')$', 'i');\n\n// Match duplicate variants in a language tag\nvar expVariantDupes = RegExp('^(?!x).*?-(' + variant + ')-(?:\\\\w{4,8}-(?!x-))*\\\\1\\\\b', 'i');\n\n// Match duplicate singletons in a language tag (except in private use)\nvar expSingletonDupes = RegExp('^(?!x).*?-(' + singleton + ')-(?:\\\\w+-(?!x-))*\\\\1\\\\b', 'i');\n\n// Match all extension sequences\nvar expExtSequences = RegExp('-' + extension, 'ig');\n\n// Default locale is the first-added locale data for us\nvar defaultLocale = void 0;\nfunction setDefaultLocale(locale) {\n defaultLocale = locale;\n}\n\n// IANA Subtag Registry redundant tag and subtag maps\nvar redundantTags = {\n tags: {\n \"art-lojban\": \"jbo\",\n \"i-ami\": \"ami\",\n \"i-bnn\": \"bnn\",\n \"i-hak\": \"hak\",\n \"i-klingon\": \"tlh\",\n \"i-lux\": \"lb\",\n \"i-navajo\": \"nv\",\n \"i-pwn\": \"pwn\",\n \"i-tao\": \"tao\",\n \"i-tay\": \"tay\",\n \"i-tsu\": \"tsu\",\n \"no-bok\": \"nb\",\n \"no-nyn\": \"nn\",\n \"sgn-BE-FR\": \"sfb\",\n \"sgn-BE-NL\": \"vgt\",\n \"sgn-CH-DE\": \"sgg\",\n \"zh-guoyu\": \"cmn\",\n \"zh-hakka\": \"hak\",\n \"zh-min-nan\": \"nan\",\n \"zh-xiang\": \"hsn\",\n \"sgn-BR\": \"bzs\",\n \"sgn-CO\": \"csn\",\n \"sgn-DE\": \"gsg\",\n \"sgn-DK\": \"dsl\",\n \"sgn-ES\": \"ssp\",\n \"sgn-FR\": \"fsl\",\n \"sgn-GB\": \"bfi\",\n \"sgn-GR\": \"gss\",\n \"sgn-IE\": \"isg\",\n \"sgn-IT\": \"ise\",\n \"sgn-JP\": \"jsl\",\n \"sgn-MX\": \"mfs\",\n \"sgn-NI\": \"ncs\",\n \"sgn-NL\": \"dse\",\n \"sgn-NO\": \"nsl\",\n \"sgn-PT\": \"psr\",\n \"sgn-SE\": \"swl\",\n \"sgn-US\": \"ase\",\n \"sgn-ZA\": \"sfs\",\n \"zh-cmn\": \"cmn\",\n \"zh-cmn-Hans\": \"cmn-Hans\",\n \"zh-cmn-Hant\": \"cmn-Hant\",\n \"zh-gan\": \"gan\",\n \"zh-wuu\": \"wuu\",\n \"zh-yue\": \"yue\"\n },\n subtags: {\n BU: \"MM\",\n DD: \"DE\",\n FX: \"FR\",\n TP: \"TL\",\n YD: \"YE\",\n ZR: \"CD\",\n heploc: \"alalc97\",\n 'in': \"id\",\n iw: \"he\",\n ji: \"yi\",\n jw: \"jv\",\n mo: \"ro\",\n ayx: \"nun\",\n bjd: \"drl\",\n ccq: \"rki\",\n cjr: \"mom\",\n cka: \"cmr\",\n cmk: \"xch\",\n drh: \"khk\",\n drw: \"prs\",\n gav: \"dev\",\n hrr: \"jal\",\n ibi: \"opa\",\n kgh: \"kml\",\n lcq: \"ppr\",\n mst: \"mry\",\n myt: \"mry\",\n sca: \"hle\",\n tie: \"ras\",\n tkk: \"twm\",\n tlw: \"weo\",\n tnf: \"prs\",\n ybd: \"rki\",\n yma: \"lrr\"\n },\n extLang: {\n aao: [\"aao\", \"ar\"],\n abh: [\"abh\", \"ar\"],\n abv: [\"abv\", \"ar\"],\n acm: [\"acm\", \"ar\"],\n acq: [\"acq\", \"ar\"],\n acw: [\"acw\", \"ar\"],\n acx: [\"acx\", \"ar\"],\n acy: [\"acy\", \"ar\"],\n adf: [\"adf\", \"ar\"],\n ads: [\"ads\", \"sgn\"],\n aeb: [\"aeb\", \"ar\"],\n aec: [\"aec\", \"ar\"],\n aed: [\"aed\", \"sgn\"],\n aen: [\"aen\", \"sgn\"],\n afb: [\"afb\", \"ar\"],\n afg: [\"afg\", \"sgn\"],\n ajp: [\"ajp\", \"ar\"],\n apc: [\"apc\", \"ar\"],\n apd: [\"apd\", \"ar\"],\n arb: [\"arb\", \"ar\"],\n arq: [\"arq\", \"ar\"],\n ars: [\"ars\", \"ar\"],\n ary: [\"ary\", \"ar\"],\n arz: [\"arz\", \"ar\"],\n ase: [\"ase\", \"sgn\"],\n asf: [\"asf\", \"sgn\"],\n asp: [\"asp\", \"sgn\"],\n asq: [\"asq\", \"sgn\"],\n asw: [\"asw\", \"sgn\"],\n auz: [\"auz\", \"ar\"],\n avl: [\"avl\", \"ar\"],\n ayh: [\"ayh\", \"ar\"],\n ayl: [\"ayl\", \"ar\"],\n ayn: [\"ayn\", \"ar\"],\n ayp: [\"ayp\", \"ar\"],\n bbz: [\"bbz\", \"ar\"],\n bfi: [\"bfi\", \"sgn\"],\n bfk: [\"bfk\", \"sgn\"],\n bjn: [\"bjn\", \"ms\"],\n bog: [\"bog\", \"sgn\"],\n bqn: [\"bqn\", \"sgn\"],\n bqy: [\"bqy\", \"sgn\"],\n btj: [\"btj\", \"ms\"],\n bve: [\"bve\", \"ms\"],\n bvl: [\"bvl\", \"sgn\"],\n bvu: [\"bvu\", \"ms\"],\n bzs: [\"bzs\", \"sgn\"],\n cdo: [\"cdo\", \"zh\"],\n cds: [\"cds\", \"sgn\"],\n cjy: [\"cjy\", \"zh\"],\n cmn: [\"cmn\", \"zh\"],\n coa: [\"coa\", \"ms\"],\n cpx: [\"cpx\", \"zh\"],\n csc: [\"csc\", \"sgn\"],\n csd: [\"csd\", \"sgn\"],\n cse: [\"cse\", \"sgn\"],\n csf: [\"csf\", \"sgn\"],\n csg: [\"csg\", \"sgn\"],\n csl: [\"csl\", \"sgn\"],\n csn: [\"csn\", \"sgn\"],\n csq: [\"csq\", \"sgn\"],\n csr: [\"csr\", \"sgn\"],\n czh: [\"czh\", \"zh\"],\n czo: [\"czo\", \"zh\"],\n doq: [\"doq\", \"sgn\"],\n dse: [\"dse\", \"sgn\"],\n dsl: [\"dsl\", \"sgn\"],\n dup: [\"dup\", \"ms\"],\n ecs: [\"ecs\", \"sgn\"],\n esl: [\"esl\", \"sgn\"],\n esn: [\"esn\", \"sgn\"],\n eso: [\"eso\", \"sgn\"],\n eth: [\"eth\", \"sgn\"],\n fcs: [\"fcs\", \"sgn\"],\n fse: [\"fse\", \"sgn\"],\n fsl: [\"fsl\", \"sgn\"],\n fss: [\"fss\", \"sgn\"],\n gan: [\"gan\", \"zh\"],\n gds: [\"gds\", \"sgn\"],\n gom: [\"gom\", \"kok\"],\n gse: [\"gse\", \"sgn\"],\n gsg: [\"gsg\", \"sgn\"],\n gsm: [\"gsm\", \"sgn\"],\n gss: [\"gss\", \"sgn\"],\n gus: [\"gus\", \"sgn\"],\n hab: [\"hab\", \"sgn\"],\n haf: [\"haf\", \"sgn\"],\n hak: [\"hak\", \"zh\"],\n hds: [\"hds\", \"sgn\"],\n hji: [\"hji\", \"ms\"],\n hks: [\"hks\", \"sgn\"],\n hos: [\"hos\", \"sgn\"],\n hps: [\"hps\", \"sgn\"],\n hsh: [\"hsh\", \"sgn\"],\n hsl: [\"hsl\", \"sgn\"],\n hsn: [\"hsn\", \"zh\"],\n icl: [\"icl\", \"sgn\"],\n ils: [\"ils\", \"sgn\"],\n inl: [\"inl\", \"sgn\"],\n ins: [\"ins\", \"sgn\"],\n ise: [\"ise\", \"sgn\"],\n isg: [\"isg\", \"sgn\"],\n isr: [\"isr\", \"sgn\"],\n jak: [\"jak\", \"ms\"],\n jax: [\"jax\", \"ms\"],\n jcs: [\"jcs\", \"sgn\"],\n jhs: [\"jhs\", \"sgn\"],\n jls: [\"jls\", \"sgn\"],\n jos: [\"jos\", \"sgn\"],\n jsl: [\"jsl\", \"sgn\"],\n jus: [\"jus\", \"sgn\"],\n kgi: [\"kgi\", \"sgn\"],\n knn: [\"knn\", \"kok\"],\n kvb: [\"kvb\", \"ms\"],\n kvk: [\"kvk\", \"sgn\"],\n kvr: [\"kvr\", \"ms\"],\n kxd: [\"kxd\", \"ms\"],\n lbs: [\"lbs\", \"sgn\"],\n lce: [\"lce\", \"ms\"],\n lcf: [\"lcf\", \"ms\"],\n liw: [\"liw\", \"ms\"],\n lls: [\"lls\", \"sgn\"],\n lsg: [\"lsg\", \"sgn\"],\n lsl: [\"lsl\", \"sgn\"],\n lso: [\"lso\", \"sgn\"],\n lsp: [\"lsp\", \"sgn\"],\n lst: [\"lst\", \"sgn\"],\n lsy: [\"lsy\", \"sgn\"],\n ltg: [\"ltg\", \"lv\"],\n lvs: [\"lvs\", \"lv\"],\n lzh: [\"lzh\", \"zh\"],\n max: [\"max\", \"ms\"],\n mdl: [\"mdl\", \"sgn\"],\n meo: [\"meo\", \"ms\"],\n mfa: [\"mfa\", \"ms\"],\n mfb: [\"mfb\", \"ms\"],\n mfs: [\"mfs\", \"sgn\"],\n min: [\"min\", \"ms\"],\n mnp: [\"mnp\", \"zh\"],\n mqg: [\"mqg\", \"ms\"],\n mre: [\"mre\", \"sgn\"],\n msd: [\"msd\", \"sgn\"],\n msi: [\"msi\", \"ms\"],\n msr: [\"msr\", \"sgn\"],\n mui: [\"mui\", \"ms\"],\n mzc: [\"mzc\", \"sgn\"],\n mzg: [\"mzg\", \"sgn\"],\n mzy: [\"mzy\", \"sgn\"],\n nan: [\"nan\", \"zh\"],\n nbs: [\"nbs\", \"sgn\"],\n ncs: [\"ncs\", \"sgn\"],\n nsi: [\"nsi\", \"sgn\"],\n nsl: [\"nsl\", \"sgn\"],\n nsp: [\"nsp\", \"sgn\"],\n nsr: [\"nsr\", \"sgn\"],\n nzs: [\"nzs\", \"sgn\"],\n okl: [\"okl\", \"sgn\"],\n orn: [\"orn\", \"ms\"],\n ors: [\"ors\", \"ms\"],\n pel: [\"pel\", \"ms\"],\n pga: [\"pga\", \"ar\"],\n pks: [\"pks\", \"sgn\"],\n prl: [\"prl\", \"sgn\"],\n prz: [\"prz\", \"sgn\"],\n psc: [\"psc\", \"sgn\"],\n psd: [\"psd\", \"sgn\"],\n pse: [\"pse\", \"ms\"],\n psg: [\"psg\", \"sgn\"],\n psl: [\"psl\", \"sgn\"],\n pso: [\"pso\", \"sgn\"],\n psp: [\"psp\", \"sgn\"],\n psr: [\"psr\", \"sgn\"],\n pys: [\"pys\", \"sgn\"],\n rms: [\"rms\", \"sgn\"],\n rsi: [\"rsi\", \"sgn\"],\n rsl: [\"rsl\", \"sgn\"],\n sdl: [\"sdl\", \"sgn\"],\n sfb: [\"sfb\", \"sgn\"],\n sfs: [\"sfs\", \"sgn\"],\n sgg: [\"sgg\", \"sgn\"],\n sgx: [\"sgx\", \"sgn\"],\n shu: [\"shu\", \"ar\"],\n slf: [\"slf\", \"sgn\"],\n sls: [\"sls\", \"sgn\"],\n sqk: [\"sqk\", \"sgn\"],\n sqs: [\"sqs\", \"sgn\"],\n ssh: [\"ssh\", \"ar\"],\n ssp: [\"ssp\", \"sgn\"],\n ssr: [\"ssr\", \"sgn\"],\n svk: [\"svk\", \"sgn\"],\n swc: [\"swc\", \"sw\"],\n swh: [\"swh\", \"sw\"],\n swl: [\"swl\", \"sgn\"],\n syy: [\"syy\", \"sgn\"],\n tmw: [\"tmw\", \"ms\"],\n tse: [\"tse\", \"sgn\"],\n tsm: [\"tsm\", \"sgn\"],\n tsq: [\"tsq\", \"sgn\"],\n tss: [\"tss\", \"sgn\"],\n tsy: [\"tsy\", \"sgn\"],\n tza: [\"tza\", \"sgn\"],\n ugn: [\"ugn\", \"sgn\"],\n ugy: [\"ugy\", \"sgn\"],\n ukl: [\"ukl\", \"sgn\"],\n uks: [\"uks\", \"sgn\"],\n urk: [\"urk\", \"ms\"],\n uzn: [\"uzn\", \"uz\"],\n uzs: [\"uzs\", \"uz\"],\n vgt: [\"vgt\", \"sgn\"],\n vkk: [\"vkk\", \"ms\"],\n vkt: [\"vkt\", \"ms\"],\n vsi: [\"vsi\", \"sgn\"],\n vsl: [\"vsl\", \"sgn\"],\n vsv: [\"vsv\", \"sgn\"],\n wuu: [\"wuu\", \"zh\"],\n xki: [\"xki\", \"sgn\"],\n xml: [\"xml\", \"sgn\"],\n xmm: [\"xmm\", \"ms\"],\n xms: [\"xms\", \"sgn\"],\n yds: [\"yds\", \"sgn\"],\n ysl: [\"ysl\", \"sgn\"],\n yue: [\"yue\", \"zh\"],\n zib: [\"zib\", \"sgn\"],\n zlm: [\"zlm\", \"ms\"],\n zmi: [\"zmi\", \"ms\"],\n zsl: [\"zsl\", \"sgn\"],\n zsm: [\"zsm\", \"ms\"]\n }\n};\n\n/**\n * Convert only a-z to uppercase as per section 6.1 of the spec\n */\nfunction toLatinUpperCase(str) {\n var i = str.length;\n\n while (i--) {\n var ch = str.charAt(i);\n\n if (ch >= \"a\" && ch <= \"z\") str = str.slice(0, i) + ch.toUpperCase() + str.slice(i + 1);\n }\n\n return str;\n}\n\n/**\n * The IsStructurallyValidLanguageTag abstract operation verifies that the locale\n * argument (which must be a String value)\n *\n * - represents a well-formed BCP 47 language tag as specified in RFC 5646 section\n * 2.1, or successor,\n * - does not include duplicate variant subtags, and\n * - does not include duplicate singleton subtags.\n *\n * The abstract operation returns true if locale can be generated from the ABNF\n * grammar in section 2.1 of the RFC, starting with Language-Tag, and does not\n * contain duplicate variant or singleton subtags (other than as a private use\n * subtag). It returns false otherwise. Terminal value characters in the grammar are\n * interpreted as the Unicode equivalents of the ASCII octet values given.\n */\nfunction /* 6.2.2 */IsStructurallyValidLanguageTag(locale) {\n // represents a well-formed BCP 47 language tag as specified in RFC 5646\n if (!expBCP47Syntax.test(locale)) return false;\n\n // does not include duplicate variant subtags, and\n if (expVariantDupes.test(locale)) return false;\n\n // does not include duplicate singleton subtags.\n if (expSingletonDupes.test(locale)) return false;\n\n return true;\n}\n\n/**\n * The CanonicalizeLanguageTag abstract operation returns the canonical and case-\n * regularized form of the locale argument (which must be a String value that is\n * a structurally valid BCP 47 language tag as verified by the\n * IsStructurallyValidLanguageTag abstract operation). It takes the steps\n * specified in RFC 5646 section 4.5, or successor, to bring the language tag\n * into canonical form, and to regularize the case of the subtags, but does not\n * take the steps to bring a language tag into “extlang form” and to reorder\n * variant subtags.\n\n * The specifications for extensions to BCP 47 language tags, such as RFC 6067,\n * may include canonicalization rules for the extension subtag sequences they\n * define that go beyond the canonicalization rules of RFC 5646 section 4.5.\n * Implementations are allowed, but not required, to apply these additional rules.\n */\nfunction /* 6.2.3 */CanonicalizeLanguageTag(locale) {\n var match = void 0,\n parts = void 0;\n\n // A language tag is in 'canonical form' when the tag is well-formed\n // according to the rules in Sections 2.1 and 2.2\n\n // Section 2.1 says all subtags use lowercase...\n locale = locale.toLowerCase();\n\n // ...with 2 exceptions: 'two-letter and four-letter subtags that neither\n // appear at the start of the tag nor occur after singletons. Such two-letter\n // subtags are all uppercase (as in the tags \"en-CA-x-ca\" or \"sgn-BE-FR\") and\n // four-letter subtags are titlecase (as in the tag \"az-Latn-x-latn\").\n parts = locale.split('-');\n for (var i = 1, max = parts.length; i < max; i++) {\n // Two-letter subtags are all uppercase\n if (parts[i].length === 2) parts[i] = parts[i].toUpperCase();\n\n // Four-letter subtags are titlecase\n else if (parts[i].length === 4) parts[i] = parts[i].charAt(0).toUpperCase() + parts[i].slice(1);\n\n // Is it a singleton?\n else if (parts[i].length === 1 && parts[i] !== 'x') break;\n }\n locale = arrJoin.call(parts, '-');\n\n // The steps laid out in RFC 5646 section 4.5 are as follows:\n\n // 1. Extension sequences are ordered into case-insensitive ASCII order\n // by singleton subtag.\n if ((match = locale.match(expExtSequences)) && match.length > 1) {\n // The built-in sort() sorts by ASCII order, so use that\n match.sort();\n\n // Replace all extensions with the joined, sorted array\n locale = locale.replace(RegExp('(?:' + expExtSequences.source + ')+', 'i'), arrJoin.call(match, ''));\n }\n\n // 2. Redundant or grandfathered tags are replaced by their 'Preferred-\n // Value', if there is one.\n if (hop.call(redundantTags.tags, locale)) locale = redundantTags.tags[locale];\n\n // 3. Subtags are replaced by their 'Preferred-Value', if there is one.\n // For extlangs, the original primary language subtag is also\n // replaced if there is a primary language subtag in the 'Preferred-\n // Value'.\n parts = locale.split('-');\n\n for (var _i = 1, _max = parts.length; _i < _max; _i++) {\n if (hop.call(redundantTags.subtags, parts[_i])) parts[_i] = redundantTags.subtags[parts[_i]];else if (hop.call(redundantTags.extLang, parts[_i])) {\n parts[_i] = redundantTags.extLang[parts[_i]][0];\n\n // For extlang tags, the prefix needs to be removed if it is redundant\n if (_i === 1 && redundantTags.extLang[parts[1]][1] === parts[0]) {\n parts = arrSlice.call(parts, _i++);\n _max -= 1;\n }\n }\n }\n\n return arrJoin.call(parts, '-');\n}\n\n/**\n * The DefaultLocale abstract operation returns a String value representing the\n * structurally valid (6.2.2) and canonicalized (6.2.3) BCP 47 language tag for the\n * host environment’s current locale.\n */\nfunction /* 6.2.4 */DefaultLocale() {\n return defaultLocale;\n}\n\n// Sect 6.3 Currency Codes\n// =======================\n\nvar expCurrencyCode = /^[A-Z]{3}$/;\n\n/**\n * The IsWellFormedCurrencyCode abstract operation verifies that the currency argument\n * (after conversion to a String value) represents a well-formed 3-letter ISO currency\n * code. The following steps are taken:\n */\nfunction /* 6.3.1 */IsWellFormedCurrencyCode(currency) {\n // 1. Let `c` be ToString(currency)\n var c = String(currency);\n\n // 2. Let `normalized` be the result of mapping c to upper case as described\n // in 6.1.\n var normalized = toLatinUpperCase(c);\n\n // 3. If the string length of normalized is not 3, return false.\n // 4. If normalized contains any character that is not in the range \"A\" to \"Z\"\n // (U+0041 to U+005A), return false.\n if (expCurrencyCode.test(normalized) === false) return false;\n\n // 5. Return true\n return true;\n}\n\nvar expUnicodeExSeq = /-u(?:-[0-9a-z]{2,8})+/gi; // See `extension` below\n\nfunction /* 9.2.1 */CanonicalizeLocaleList(locales) {\n // The abstract operation CanonicalizeLocaleList takes the following steps:\n\n // 1. If locales is undefined, then a. Return a new empty List\n if (locales === undefined) return new List();\n\n // 2. Let seen be a new empty List.\n var seen = new List();\n\n // 3. If locales is a String value, then\n // a. Let locales be a new array created as if by the expression new\n // Array(locales) where Array is the standard built-in constructor with\n // that name and locales is the value of locales.\n locales = typeof locales === 'string' ? [locales] : locales;\n\n // 4. Let O be ToObject(locales).\n var O = toObject(locales);\n\n // 5. Let lenValue be the result of calling the [[Get]] internal method of\n // O with the argument \"length\".\n // 6. Let len be ToUint32(lenValue).\n var len = O.length;\n\n // 7. Let k be 0.\n var k = 0;\n\n // 8. Repeat, while k < len\n while (k < len) {\n // a. Let Pk be ToString(k).\n var Pk = String(k);\n\n // b. Let kPresent be the result of calling the [[HasProperty]] internal\n // method of O with argument Pk.\n var kPresent = Pk in O;\n\n // c. If kPresent is true, then\n if (kPresent) {\n // i. Let kValue be the result of calling the [[Get]] internal\n // method of O with argument Pk.\n var kValue = O[Pk];\n\n // ii. If the type of kValue is not String or Object, then throw a\n // TypeError exception.\n if (kValue === null || typeof kValue !== 'string' && (typeof kValue === \"undefined\" ? \"undefined\" : babelHelpers[\"typeof\"](kValue)) !== 'object') throw new TypeError('String or Object type expected');\n\n // iii. Let tag be ToString(kValue).\n var tag = String(kValue);\n\n // iv. If the result of calling the abstract operation\n // IsStructurallyValidLanguageTag (defined in 6.2.2), passing tag as\n // the argument, is false, then throw a RangeError exception.\n if (!IsStructurallyValidLanguageTag(tag)) throw new RangeError(\"'\" + tag + \"' is not a structurally valid language tag\");\n\n // v. Let tag be the result of calling the abstract operation\n // CanonicalizeLanguageTag (defined in 6.2.3), passing tag as the\n // argument.\n tag = CanonicalizeLanguageTag(tag);\n\n // vi. If tag is not an element of seen, then append tag as the last\n // element of seen.\n if (arrIndexOf.call(seen, tag) === -1) arrPush.call(seen, tag);\n }\n\n // d. Increase k by 1.\n k++;\n }\n\n // 9. Return seen.\n return seen;\n}\n\n/**\n * The BestAvailableLocale abstract operation compares the provided argument\n * locale, which must be a String value with a structurally valid and\n * canonicalized BCP 47 language tag, against the locales in availableLocales and\n * returns either the longest non-empty prefix of locale that is an element of\n * availableLocales, or undefined if there is no such element. It uses the\n * fallback mechanism of RFC 4647, section 3.4. The following steps are taken:\n */\nfunction /* 9.2.2 */BestAvailableLocale(availableLocales, locale) {\n // 1. Let candidate be locale\n var candidate = locale;\n\n // 2. Repeat\n while (candidate) {\n // a. If availableLocales contains an element equal to candidate, then return\n // candidate.\n if (arrIndexOf.call(availableLocales, candidate) > -1) return candidate;\n\n // b. Let pos be the character index of the last occurrence of \"-\"\n // (U+002D) within candidate. If that character does not occur, return\n // undefined.\n var pos = candidate.lastIndexOf('-');\n\n if (pos < 0) return;\n\n // c. If pos ≥ 2 and the character \"-\" occurs at index pos-2 of candidate,\n // then decrease pos by 2.\n if (pos >= 2 && candidate.charAt(pos - 2) === '-') pos -= 2;\n\n // d. Let candidate be the substring of candidate from position 0, inclusive,\n // to position pos, exclusive.\n candidate = candidate.substring(0, pos);\n }\n}\n\n/**\n * The LookupMatcher abstract operation compares requestedLocales, which must be\n * a List as returned by CanonicalizeLocaleList, against the locales in\n * availableLocales and determines the best available language to meet the\n * request. The following steps are taken:\n */\nfunction /* 9.2.3 */LookupMatcher(availableLocales, requestedLocales) {\n // 1. Let i be 0.\n var i = 0;\n\n // 2. Let len be the number of elements in requestedLocales.\n var len = requestedLocales.length;\n\n // 3. Let availableLocale be undefined.\n var availableLocale = void 0;\n\n var locale = void 0,\n noExtensionsLocale = void 0;\n\n // 4. Repeat while i < len and availableLocale is undefined:\n while (i < len && !availableLocale) {\n // a. Let locale be the element of requestedLocales at 0-origined list\n // position i.\n locale = requestedLocales[i];\n\n // b. Let noExtensionsLocale be the String value that is locale with all\n // Unicode locale extension sequences removed.\n noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n\n // c. Let availableLocale be the result of calling the\n // BestAvailableLocale abstract operation (defined in 9.2.2) with\n // arguments availableLocales and noExtensionsLocale.\n availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\n // d. Increase i by 1.\n i++;\n }\n\n // 5. Let result be a new Record.\n var result = new Record();\n\n // 6. If availableLocale is not undefined, then\n if (availableLocale !== undefined) {\n // a. Set result.[[locale]] to availableLocale.\n result['[[locale]]'] = availableLocale;\n\n // b. If locale and noExtensionsLocale are not the same String value, then\n if (String(locale) !== String(noExtensionsLocale)) {\n // i. Let extension be the String value consisting of the first\n // substring of locale that is a Unicode locale extension sequence.\n var extension = locale.match(expUnicodeExSeq)[0];\n\n // ii. Let extensionIndex be the character position of the initial\n // \"-\" of the first Unicode locale extension sequence within locale.\n var extensionIndex = locale.indexOf('-u-');\n\n // iii. Set result.[[extension]] to extension.\n result['[[extension]]'] = extension;\n\n // iv. Set result.[[extensionIndex]] to extensionIndex.\n result['[[extensionIndex]]'] = extensionIndex;\n }\n }\n // 7. Else\n else\n // a. Set result.[[locale]] to the value returned by the DefaultLocale abstract\n // operation (defined in 6.2.4).\n result['[[locale]]'] = DefaultLocale();\n\n // 8. Return result\n return result;\n}\n\n/**\n * The BestFitMatcher abstract operation compares requestedLocales, which must be\n * a List as returned by CanonicalizeLocaleList, against the locales in\n * availableLocales and determines the best available language to meet the\n * request. The algorithm is implementation dependent, but should produce results\n * that a typical user of the requested locales would perceive as at least as\n * good as those produced by the LookupMatcher abstract operation. Options\n * specified through Unicode locale extension sequences must be ignored by the\n * algorithm. Information about such subsequences is returned separately.\n * The abstract operation returns a record with a [[locale]] field, whose value\n * is the language tag of the selected locale, which must be an element of\n * availableLocales. If the language tag of the request locale that led to the\n * selected locale contained a Unicode locale extension sequence, then the\n * returned record also contains an [[extension]] field whose value is the first\n * Unicode locale extension sequence, and an [[extensionIndex]] field whose value\n * is the index of the first Unicode locale extension sequence within the request\n * locale language tag.\n */\nfunction /* 9.2.4 */BestFitMatcher(availableLocales, requestedLocales) {\n return LookupMatcher(availableLocales, requestedLocales);\n}\n\n/**\n * The ResolveLocale abstract operation compares a BCP 47 language priority list\n * requestedLocales against the locales in availableLocales and determines the\n * best available language to meet the request. availableLocales and\n * requestedLocales must be provided as List values, options as a Record.\n */\nfunction /* 9.2.5 */ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData) {\n if (availableLocales.length === 0) {\n throw new ReferenceError('No locale data has been provided for this object yet.');\n }\n\n // The following steps are taken:\n // 1. Let matcher be the value of options.[[localeMatcher]].\n var matcher = options['[[localeMatcher]]'];\n\n var r = void 0;\n\n // 2. If matcher is \"lookup\", then\n if (matcher === 'lookup')\n // a. Let r be the result of calling the LookupMatcher abstract operation\n // (defined in 9.2.3) with arguments availableLocales and\n // requestedLocales.\n r = LookupMatcher(availableLocales, requestedLocales);\n\n // 3. Else\n else\n // a. Let r be the result of calling the BestFitMatcher abstract\n // operation (defined in 9.2.4) with arguments availableLocales and\n // requestedLocales.\n r = BestFitMatcher(availableLocales, requestedLocales);\n\n // 4. Let foundLocale be the value of r.[[locale]].\n var foundLocale = r['[[locale]]'];\n\n var extensionSubtags = void 0,\n extensionSubtagsLength = void 0;\n\n // 5. If r has an [[extension]] field, then\n if (hop.call(r, '[[extension]]')) {\n // a. Let extension be the value of r.[[extension]].\n var extension = r['[[extension]]'];\n // b. Let split be the standard built-in function object defined in ES5,\n // 15.5.4.14.\n var split = String.prototype.split;\n // c. Let extensionSubtags be the result of calling the [[Call]] internal\n // method of split with extension as the this value and an argument\n // list containing the single item \"-\".\n extensionSubtags = split.call(extension, '-');\n // d. Let extensionSubtagsLength be the result of calling the [[Get]]\n // internal method of extensionSubtags with argument \"length\".\n extensionSubtagsLength = extensionSubtags.length;\n }\n\n // 6. Let result be a new Record.\n var result = new Record();\n\n // 7. Set result.[[dataLocale]] to foundLocale.\n result['[[dataLocale]]'] = foundLocale;\n\n // 8. Let supportedExtension be \"-u\".\n var supportedExtension = '-u';\n // 9. Let i be 0.\n var i = 0;\n // 10. Let len be the result of calling the [[Get]] internal method of\n // relevantExtensionKeys with argument \"length\".\n var len = relevantExtensionKeys.length;\n\n // 11 Repeat while i < len:\n while (i < len) {\n // a. Let key be the result of calling the [[Get]] internal method of\n // relevantExtensionKeys with argument ToString(i).\n var key = relevantExtensionKeys[i];\n // b. Let foundLocaleData be the result of calling the [[Get]] internal\n // method of localeData with the argument foundLocale.\n var foundLocaleData = localeData[foundLocale];\n // c. Let keyLocaleData be the result of calling the [[Get]] internal\n // method of foundLocaleData with the argument key.\n var keyLocaleData = foundLocaleData[key];\n // d. Let value be the result of calling the [[Get]] internal method of\n // keyLocaleData with argument \"0\".\n var value = keyLocaleData['0'];\n // e. Let supportedExtensionAddition be \"\".\n var supportedExtensionAddition = '';\n // f. Let indexOf be the standard built-in function object defined in\n // ES5, 15.4.4.14.\n var indexOf = arrIndexOf;\n\n // g. If extensionSubtags is not undefined, then\n if (extensionSubtags !== undefined) {\n // i. Let keyPos be the result of calling the [[Call]] internal\n // method of indexOf with extensionSubtags as the this value and\n // an argument list containing the single item key.\n var keyPos = indexOf.call(extensionSubtags, key);\n\n // ii. If keyPos ≠ -1, then\n if (keyPos !== -1) {\n // 1. If keyPos + 1 < extensionSubtagsLength and the length of the\n // result of calling the [[Get]] internal method of\n // extensionSubtags with argument ToString(keyPos +1) is greater\n // than 2, then\n if (keyPos + 1 < extensionSubtagsLength && extensionSubtags[keyPos + 1].length > 2) {\n // a. Let requestedValue be the result of calling the [[Get]]\n // internal method of extensionSubtags with argument\n // ToString(keyPos + 1).\n var requestedValue = extensionSubtags[keyPos + 1];\n // b. Let valuePos be the result of calling the [[Call]]\n // internal method of indexOf with keyLocaleData as the\n // this value and an argument list containing the single\n // item requestedValue.\n var valuePos = indexOf.call(keyLocaleData, requestedValue);\n\n // c. If valuePos ≠ -1, then\n if (valuePos !== -1) {\n // i. Let value be requestedValue.\n value = requestedValue,\n // ii. Let supportedExtensionAddition be the\n // concatenation of \"-\", key, \"-\", and value.\n supportedExtensionAddition = '-' + key + '-' + value;\n }\n }\n // 2. Else\n else {\n // a. Let valuePos be the result of calling the [[Call]]\n // internal method of indexOf with keyLocaleData as the this\n // value and an argument list containing the single item\n // \"true\".\n var _valuePos = indexOf(keyLocaleData, 'true');\n\n // b. If valuePos ≠ -1, then\n if (_valuePos !== -1)\n // i. Let value be \"true\".\n value = 'true';\n }\n }\n }\n // h. If options has a field [[]], then\n if (hop.call(options, '[[' + key + ']]')) {\n // i. Let optionsValue be the value of options.[[]].\n var optionsValue = options['[[' + key + ']]'];\n\n // ii. If the result of calling the [[Call]] internal method of indexOf\n // with keyLocaleData as the this value and an argument list\n // containing the single item optionsValue is not -1, then\n if (indexOf.call(keyLocaleData, optionsValue) !== -1) {\n // 1. If optionsValue is not equal to value, then\n if (optionsValue !== value) {\n // a. Let value be optionsValue.\n value = optionsValue;\n // b. Let supportedExtensionAddition be \"\".\n supportedExtensionAddition = '';\n }\n }\n }\n // i. Set result.[[]] to value.\n result['[[' + key + ']]'] = value;\n\n // j. Append supportedExtensionAddition to supportedExtension.\n supportedExtension += supportedExtensionAddition;\n\n // k. Increase i by 1.\n i++;\n }\n // 12. If the length of supportedExtension is greater than 2, then\n if (supportedExtension.length > 2) {\n // a.\n var privateIndex = foundLocale.indexOf(\"-x-\");\n // b.\n if (privateIndex === -1) {\n // i.\n foundLocale = foundLocale + supportedExtension;\n }\n // c.\n else {\n // i.\n var preExtension = foundLocale.substring(0, privateIndex);\n // ii.\n var postExtension = foundLocale.substring(privateIndex);\n // iii.\n foundLocale = preExtension + supportedExtension + postExtension;\n }\n // d. asserting - skipping\n // e.\n foundLocale = CanonicalizeLanguageTag(foundLocale);\n }\n // 13. Set result.[[locale]] to foundLocale.\n result['[[locale]]'] = foundLocale;\n\n // 14. Return result.\n return result;\n}\n\n/**\n * The LookupSupportedLocales abstract operation returns the subset of the\n * provided BCP 47 language priority list requestedLocales for which\n * availableLocales has a matching locale when using the BCP 47 Lookup algorithm.\n * Locales appear in the same order in the returned list as in requestedLocales.\n * The following steps are taken:\n */\nfunction /* 9.2.6 */LookupSupportedLocales(availableLocales, requestedLocales) {\n // 1. Let len be the number of elements in requestedLocales.\n var len = requestedLocales.length;\n // 2. Let subset be a new empty List.\n var subset = new List();\n // 3. Let k be 0.\n var k = 0;\n\n // 4. Repeat while k < len\n while (k < len) {\n // a. Let locale be the element of requestedLocales at 0-origined list\n // position k.\n var locale = requestedLocales[k];\n // b. Let noExtensionsLocale be the String value that is locale with all\n // Unicode locale extension sequences removed.\n var noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n // c. Let availableLocale be the result of calling the\n // BestAvailableLocale abstract operation (defined in 9.2.2) with\n // arguments availableLocales and noExtensionsLocale.\n var availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\n // d. If availableLocale is not undefined, then append locale to the end of\n // subset.\n if (availableLocale !== undefined) arrPush.call(subset, locale);\n\n // e. Increment k by 1.\n k++;\n }\n\n // 5. Let subsetArray be a new Array object whose elements are the same\n // values in the same order as the elements of subset.\n var subsetArray = arrSlice.call(subset);\n\n // 6. Return subsetArray.\n return subsetArray;\n}\n\n/**\n * The BestFitSupportedLocales abstract operation returns the subset of the\n * provided BCP 47 language priority list requestedLocales for which\n * availableLocales has a matching locale when using the Best Fit Matcher\n * algorithm. Locales appear in the same order in the returned list as in\n * requestedLocales. The steps taken are implementation dependent.\n */\nfunction /*9.2.7 */BestFitSupportedLocales(availableLocales, requestedLocales) {\n // ###TODO: implement this function as described by the specification###\n return LookupSupportedLocales(availableLocales, requestedLocales);\n}\n\n/**\n * The SupportedLocales abstract operation returns the subset of the provided BCP\n * 47 language priority list requestedLocales for which availableLocales has a\n * matching locale. Two algorithms are available to match the locales: the Lookup\n * algorithm described in RFC 4647 section 3.4, and an implementation dependent\n * best-fit algorithm. Locales appear in the same order in the returned list as\n * in requestedLocales. The following steps are taken:\n */\nfunction /*9.2.8 */SupportedLocales(availableLocales, requestedLocales, options) {\n var matcher = void 0,\n subset = void 0;\n\n // 1. If options is not undefined, then\n if (options !== undefined) {\n // a. Let options be ToObject(options).\n options = new Record(toObject(options));\n // b. Let matcher be the result of calling the [[Get]] internal method of\n // options with argument \"localeMatcher\".\n matcher = options.localeMatcher;\n\n // c. If matcher is not undefined, then\n if (matcher !== undefined) {\n // i. Let matcher be ToString(matcher).\n matcher = String(matcher);\n\n // ii. If matcher is not \"lookup\" or \"best fit\", then throw a RangeError\n // exception.\n if (matcher !== 'lookup' && matcher !== 'best fit') throw new RangeError('matcher should be \"lookup\" or \"best fit\"');\n }\n }\n // 2. If matcher is undefined or \"best fit\", then\n if (matcher === undefined || matcher === 'best fit')\n // a. Let subset be the result of calling the BestFitSupportedLocales\n // abstract operation (defined in 9.2.7) with arguments\n // availableLocales and requestedLocales.\n subset = BestFitSupportedLocales(availableLocales, requestedLocales);\n // 3. Else\n else\n // a. Let subset be the result of calling the LookupSupportedLocales\n // abstract operation (defined in 9.2.6) with arguments\n // availableLocales and requestedLocales.\n subset = LookupSupportedLocales(availableLocales, requestedLocales);\n\n // 4. For each named own property name P of subset,\n for (var P in subset) {\n if (!hop.call(subset, P)) continue;\n\n // a. Let desc be the result of calling the [[GetOwnProperty]] internal\n // method of subset with P.\n // b. Set desc.[[Writable]] to false.\n // c. Set desc.[[Configurable]] to false.\n // d. Call the [[DefineOwnProperty]] internal method of subset with P, desc,\n // and true as arguments.\n defineProperty(subset, P, {\n writable: false, configurable: false, value: subset[P]\n });\n }\n // \"Freeze\" the array so no new elements can be added\n defineProperty(subset, 'length', { writable: false });\n\n // 5. Return subset\n return subset;\n}\n\n/**\n * The GetOption abstract operation extracts the value of the property named\n * property from the provided options object, converts it to the required type,\n * checks whether it is one of a List of allowed values, and fills in a fallback\n * value if necessary.\n */\nfunction /*9.2.9 */GetOption(options, property, type, values, fallback) {\n // 1. Let value be the result of calling the [[Get]] internal method of\n // options with argument property.\n var value = options[property];\n\n // 2. If value is not undefined, then\n if (value !== undefined) {\n // a. Assert: type is \"boolean\" or \"string\".\n // b. If type is \"boolean\", then let value be ToBoolean(value).\n // c. If type is \"string\", then let value be ToString(value).\n value = type === 'boolean' ? Boolean(value) : type === 'string' ? String(value) : value;\n\n // d. If values is not undefined, then\n if (values !== undefined) {\n // i. If values does not contain an element equal to value, then throw a\n // RangeError exception.\n if (arrIndexOf.call(values, value) === -1) throw new RangeError(\"'\" + value + \"' is not an allowed value for `\" + property + '`');\n }\n\n // e. Return value.\n return value;\n }\n // Else return fallback.\n return fallback;\n}\n\n/**\n * The GetNumberOption abstract operation extracts a property value from the\n * provided options object, converts it to a Number value, checks whether it is\n * in the allowed range, and fills in a fallback value if necessary.\n */\nfunction /* 9.2.10 */GetNumberOption(options, property, minimum, maximum, fallback) {\n // 1. Let value be the result of calling the [[Get]] internal method of\n // options with argument property.\n var value = options[property];\n\n // 2. If value is not undefined, then\n if (value !== undefined) {\n // a. Let value be ToNumber(value).\n value = Number(value);\n\n // b. If value is NaN or less than minimum or greater than maximum, throw a\n // RangeError exception.\n if (isNaN(value) || value < minimum || value > maximum) throw new RangeError('Value is not a number or outside accepted range');\n\n // c. Return floor(value).\n return Math.floor(value);\n }\n // 3. Else return fallback.\n return fallback;\n}\n\n// 8 The Intl Object\nvar Intl = {};\n\n// 8.2 Function Properties of the Intl Object\n\n// 8.2.1\n// @spec[tc39/ecma402/master/spec/intl.html]\n// @clause[sec-intl.getcanonicallocales]\nIntl.getCanonicalLocales = function (locales) {\n // 1. Let ll be ? CanonicalizeLocaleList(locales).\n var ll = CanonicalizeLocaleList(locales);\n // 2. Return CreateArrayFromList(ll).\n {\n var result = [];\n for (var code in ll) {\n result.push(ll[code]);\n }\n return result;\n }\n};\n\n// Currency minor units output from get-4217 grunt task, formatted\nvar currencyMinorUnits = {\n BHD: 3, BYR: 0, XOF: 0, BIF: 0, XAF: 0, CLF: 4, CLP: 0, KMF: 0, DJF: 0,\n XPF: 0, GNF: 0, ISK: 0, IQD: 3, JPY: 0, JOD: 3, KRW: 0, KWD: 3, LYD: 3,\n OMR: 3, PYG: 0, RWF: 0, TND: 3, UGX: 0, UYI: 0, VUV: 0, VND: 0\n};\n\n// Define the NumberFormat constructor internally so it cannot be tainted\nfunction NumberFormatConstructor() {\n var locales = arguments[0];\n var options = arguments[1];\n\n if (!this || this === Intl) {\n return new Intl.NumberFormat(locales, options);\n }\n\n return InitializeNumberFormat(toObject(this), locales, options);\n}\n\ndefineProperty(Intl, 'NumberFormat', {\n configurable: true,\n writable: true,\n value: NumberFormatConstructor\n});\n\n// Must explicitly set prototypes as unwritable\ndefineProperty(Intl.NumberFormat, 'prototype', {\n writable: false\n});\n\n/**\n * The abstract operation InitializeNumberFormat accepts the arguments\n * numberFormat (which must be an object), locales, and options. It initializes\n * numberFormat as a NumberFormat object.\n */\nfunction /*11.1.1.1 */InitializeNumberFormat(numberFormat, locales, options) {\n // This will be a internal properties object if we're not already initialized\n var internal = getInternalProperties(numberFormat);\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore();\n\n // 1. If numberFormat has an [[initializedIntlObject]] internal property with\n // value true, throw a TypeError exception.\n if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\n // Need this to access the `internal` object\n defineProperty(numberFormat, '__getInternalProperties', {\n value: function value() {\n // NOTE: Non-standard, for internal use only\n if (arguments[0] === secret) return internal;\n }\n });\n\n // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n internal['[[initializedIntlObject]]'] = true;\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n var requestedLocales = CanonicalizeLocaleList(locales);\n\n // 4. If options is undefined, then\n if (options === undefined)\n // a. Let options be the result of creating a new object as if by the\n // expression new Object() where Object is the standard built-in constructor\n // with that name.\n options = {};\n\n // 5. Else\n else\n // a. Let options be ToObject(options).\n options = toObject(options);\n\n // 6. Let opt be a new Record.\n var opt = new Record(),\n\n\n // 7. Let matcher be the result of calling the GetOption abstract operation\n // (defined in 9.2.9) with the arguments options, \"localeMatcher\", \"string\",\n // a List containing the two String values \"lookup\" and \"best fit\", and\n // \"best fit\".\n matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\n // 8. Set opt.[[localeMatcher]] to matcher.\n opt['[[localeMatcher]]'] = matcher;\n\n // 9. Let NumberFormat be the standard built-in object that is the initial value\n // of Intl.NumberFormat.\n // 10. Let localeData be the value of the [[localeData]] internal property of\n // NumberFormat.\n var localeData = internals.NumberFormat['[[localeData]]'];\n\n // 11. Let r be the result of calling the ResolveLocale abstract operation\n // (defined in 9.2.5) with the [[availableLocales]] internal property of\n // NumberFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n // internal property of NumberFormat, and localeData.\n var r = ResolveLocale(internals.NumberFormat['[[availableLocales]]'], requestedLocales, opt, internals.NumberFormat['[[relevantExtensionKeys]]'], localeData);\n\n // 12. Set the [[locale]] internal property of numberFormat to the value of\n // r.[[locale]].\n internal['[[locale]]'] = r['[[locale]]'];\n\n // 13. Set the [[numberingSystem]] internal property of numberFormat to the value\n // of r.[[nu]].\n internal['[[numberingSystem]]'] = r['[[nu]]'];\n\n // The specification doesn't tell us to do this, but it's helpful later on\n internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\n // 14. Let dataLocale be the value of r.[[dataLocale]].\n var dataLocale = r['[[dataLocale]]'];\n\n // 15. Let s be the result of calling the GetOption abstract operation with the\n // arguments options, \"style\", \"string\", a List containing the three String\n // values \"decimal\", \"percent\", and \"currency\", and \"decimal\".\n var s = GetOption(options, 'style', 'string', new List('decimal', 'percent', 'currency'), 'decimal');\n\n // 16. Set the [[style]] internal property of numberFormat to s.\n internal['[[style]]'] = s;\n\n // 17. Let c be the result of calling the GetOption abstract operation with the\n // arguments options, \"currency\", \"string\", undefined, and undefined.\n var c = GetOption(options, 'currency', 'string');\n\n // 18. If c is not undefined and the result of calling the\n // IsWellFormedCurrencyCode abstract operation (defined in 6.3.1) with\n // argument c is false, then throw a RangeError exception.\n if (c !== undefined && !IsWellFormedCurrencyCode(c)) throw new RangeError(\"'\" + c + \"' is not a valid currency code\");\n\n // 19. If s is \"currency\" and c is undefined, throw a TypeError exception.\n if (s === 'currency' && c === undefined) throw new TypeError('Currency code is required when style is currency');\n\n var cDigits = void 0;\n\n // 20. If s is \"currency\", then\n if (s === 'currency') {\n // a. Let c be the result of converting c to upper case as specified in 6.1.\n c = c.toUpperCase();\n\n // b. Set the [[currency]] internal property of numberFormat to c.\n internal['[[currency]]'] = c;\n\n // c. Let cDigits be the result of calling the CurrencyDigits abstract\n // operation (defined below) with argument c.\n cDigits = CurrencyDigits(c);\n }\n\n // 21. Let cd be the result of calling the GetOption abstract operation with the\n // arguments options, \"currencyDisplay\", \"string\", a List containing the\n // three String values \"code\", \"symbol\", and \"name\", and \"symbol\".\n var cd = GetOption(options, 'currencyDisplay', 'string', new List('code', 'symbol', 'name'), 'symbol');\n\n // 22. If s is \"currency\", then set the [[currencyDisplay]] internal property of\n // numberFormat to cd.\n if (s === 'currency') internal['[[currencyDisplay]]'] = cd;\n\n // 23. Let mnid be the result of calling the GetNumberOption abstract operation\n // (defined in 9.2.10) with arguments options, \"minimumIntegerDigits\", 1, 21,\n // and 1.\n var mnid = GetNumberOption(options, 'minimumIntegerDigits', 1, 21, 1);\n\n // 24. Set the [[minimumIntegerDigits]] internal property of numberFormat to mnid.\n internal['[[minimumIntegerDigits]]'] = mnid;\n\n // 25. If s is \"currency\", then let mnfdDefault be cDigits; else let mnfdDefault\n // be 0.\n var mnfdDefault = s === 'currency' ? cDigits : 0;\n\n // 26. Let mnfd be the result of calling the GetNumberOption abstract operation\n // with arguments options, \"minimumFractionDigits\", 0, 20, and mnfdDefault.\n var mnfd = GetNumberOption(options, 'minimumFractionDigits', 0, 20, mnfdDefault);\n\n // 27. Set the [[minimumFractionDigits]] internal property of numberFormat to mnfd.\n internal['[[minimumFractionDigits]]'] = mnfd;\n\n // 28. If s is \"currency\", then let mxfdDefault be max(mnfd, cDigits); else if s\n // is \"percent\", then let mxfdDefault be max(mnfd, 0); else let mxfdDefault\n // be max(mnfd, 3).\n var mxfdDefault = s === 'currency' ? Math.max(mnfd, cDigits) : s === 'percent' ? Math.max(mnfd, 0) : Math.max(mnfd, 3);\n\n // 29. Let mxfd be the result of calling the GetNumberOption abstract operation\n // with arguments options, \"maximumFractionDigits\", mnfd, 20, and mxfdDefault.\n var mxfd = GetNumberOption(options, 'maximumFractionDigits', mnfd, 20, mxfdDefault);\n\n // 30. Set the [[maximumFractionDigits]] internal property of numberFormat to mxfd.\n internal['[[maximumFractionDigits]]'] = mxfd;\n\n // 31. Let mnsd be the result of calling the [[Get]] internal method of options\n // with argument \"minimumSignificantDigits\".\n var mnsd = options.minimumSignificantDigits;\n\n // 32. Let mxsd be the result of calling the [[Get]] internal method of options\n // with argument \"maximumSignificantDigits\".\n var mxsd = options.maximumSignificantDigits;\n\n // 33. If mnsd is not undefined or mxsd is not undefined, then:\n if (mnsd !== undefined || mxsd !== undefined) {\n // a. Let mnsd be the result of calling the GetNumberOption abstract\n // operation with arguments options, \"minimumSignificantDigits\", 1, 21,\n // and 1.\n mnsd = GetNumberOption(options, 'minimumSignificantDigits', 1, 21, 1);\n\n // b. Let mxsd be the result of calling the GetNumberOption abstract\n // operation with arguments options, \"maximumSignificantDigits\", mnsd,\n // 21, and 21.\n mxsd = GetNumberOption(options, 'maximumSignificantDigits', mnsd, 21, 21);\n\n // c. Set the [[minimumSignificantDigits]] internal property of numberFormat\n // to mnsd, and the [[maximumSignificantDigits]] internal property of\n // numberFormat to mxsd.\n internal['[[minimumSignificantDigits]]'] = mnsd;\n internal['[[maximumSignificantDigits]]'] = mxsd;\n }\n // 34. Let g be the result of calling the GetOption abstract operation with the\n // arguments options, \"useGrouping\", \"boolean\", undefined, and true.\n var g = GetOption(options, 'useGrouping', 'boolean', undefined, true);\n\n // 35. Set the [[useGrouping]] internal property of numberFormat to g.\n internal['[[useGrouping]]'] = g;\n\n // 36. Let dataLocaleData be the result of calling the [[Get]] internal method of\n // localeData with argument dataLocale.\n var dataLocaleData = localeData[dataLocale];\n\n // 37. Let patterns be the result of calling the [[Get]] internal method of\n // dataLocaleData with argument \"patterns\".\n var patterns = dataLocaleData.patterns;\n\n // 38. Assert: patterns is an object (see 11.2.3)\n\n // 39. Let stylePatterns be the result of calling the [[Get]] internal method of\n // patterns with argument s.\n var stylePatterns = patterns[s];\n\n // 40. Set the [[positivePattern]] internal property of numberFormat to the\n // result of calling the [[Get]] internal method of stylePatterns with the\n // argument \"positivePattern\".\n internal['[[positivePattern]]'] = stylePatterns.positivePattern;\n\n // 41. Set the [[negativePattern]] internal property of numberFormat to the\n // result of calling the [[Get]] internal method of stylePatterns with the\n // argument \"negativePattern\".\n internal['[[negativePattern]]'] = stylePatterns.negativePattern;\n\n // 42. Set the [[boundFormat]] internal property of numberFormat to undefined.\n internal['[[boundFormat]]'] = undefined;\n\n // 43. Set the [[initializedNumberFormat]] internal property of numberFormat to\n // true.\n internal['[[initializedNumberFormat]]'] = true;\n\n // In ES3, we need to pre-bind the format() function\n if (es3) numberFormat.format = GetFormatNumber.call(numberFormat);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // Return the newly initialised object\n return numberFormat;\n}\n\nfunction CurrencyDigits(currency) {\n // When the CurrencyDigits abstract operation is called with an argument currency\n // (which must be an upper case String value), the following steps are taken:\n\n // 1. If the ISO 4217 currency and funds code list contains currency as an\n // alphabetic code, then return the minor unit value corresponding to the\n // currency from the list; else return 2.\n return currencyMinorUnits[currency] !== undefined ? currencyMinorUnits[currency] : 2;\n}\n\n/* 11.2.3 */internals.NumberFormat = {\n '[[availableLocales]]': [],\n '[[relevantExtensionKeys]]': ['nu'],\n '[[localeData]]': {}\n};\n\n/**\n * When the supportedLocalesOf method of Intl.NumberFormat is called, the\n * following steps are taken:\n */\n/* 11.2.2 */\ndefineProperty(Intl.NumberFormat, 'supportedLocalesOf', {\n configurable: true,\n writable: true,\n value: fnBind.call(function (locales) {\n // Bound functions only have the `this` value altered if being used as a constructor,\n // this lets us imitate a native function that has no constructor\n if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore(),\n\n\n // 1. If options is not provided, then let options be undefined.\n options = arguments[1],\n\n\n // 2. Let availableLocales be the value of the [[availableLocales]] internal\n // property of the standard built-in object that is the initial value of\n // Intl.NumberFormat.\n\n availableLocales = this['[[availableLocales]]'],\n\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n requestedLocales = CanonicalizeLocaleList(locales);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // 4. Return the result of calling the SupportedLocales abstract operation\n // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n // and options.\n return SupportedLocales(availableLocales, requestedLocales, options);\n }, internals.NumberFormat)\n});\n\n/**\n * This named accessor property returns a function that formats a number\n * according to the effective locale and the formatting options of this\n * NumberFormat object.\n */\n/* 11.3.2 */defineProperty(Intl.NumberFormat.prototype, 'format', {\n configurable: true,\n get: GetFormatNumber\n});\n\nfunction GetFormatNumber() {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 11.3_b\n if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.NumberFormat object.');\n\n // The value of the [[Get]] attribute is a function that takes the following\n // steps:\n\n // 1. If the [[boundFormat]] internal property of this NumberFormat object\n // is undefined, then:\n if (internal['[[boundFormat]]'] === undefined) {\n // a. Let F be a Function object, with internal properties set as\n // specified for built-in functions in ES5, 15, or successor, and the\n // length property set to 1, that takes the argument value and\n // performs the following steps:\n var F = function F(value) {\n // i. If value is not provided, then let value be undefined.\n // ii. Let x be ToNumber(value).\n // iii. Return the result of calling the FormatNumber abstract\n // operation (defined below) with arguments this and x.\n return FormatNumber(this, /* x = */Number(value));\n };\n\n // b. Let bind be the standard built-in function object defined in ES5,\n // 15.3.4.5.\n // c. Let bf be the result of calling the [[Call]] internal method of\n // bind with F as the this value and an argument list containing\n // the single item this.\n var bf = fnBind.call(F, this);\n\n // d. Set the [[boundFormat]] internal property of this NumberFormat\n // object to bf.\n internal['[[boundFormat]]'] = bf;\n }\n // Return the value of the [[boundFormat]] internal property of this\n // NumberFormat object.\n return internal['[[boundFormat]]'];\n}\n\nIntl.NumberFormat.prototype.formatToParts = function (value) {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.NumberFormat object.');\n\n var x = Number(value);\n return FormatNumberToParts(this, x);\n};\n\n/*\n * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n * @clause[sec-formatnumbertoparts]\n */\nfunction FormatNumberToParts(numberFormat, x) {\n // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n var parts = PartitionNumberPattern(numberFormat, x);\n // 2. Let result be ArrayCreate(0).\n var result = [];\n // 3. Let n be 0.\n var n = 0;\n // 4. For each part in parts, do:\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n // a. Let O be ObjectCreate(%ObjectPrototype%).\n var O = {};\n // a. Perform ? CreateDataPropertyOrThrow(O, \"type\", part.[[type]]).\n O.type = part['[[type]]'];\n // a. Perform ? CreateDataPropertyOrThrow(O, \"value\", part.[[value]]).\n O.value = part['[[value]]'];\n // a. Perform ? CreateDataPropertyOrThrow(result, ? ToString(n), O).\n result[n] = O;\n // a. Increment n by 1.\n n += 1;\n }\n // 5. Return result.\n return result;\n}\n\n/*\n * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n * @clause[sec-partitionnumberpattern]\n */\nfunction PartitionNumberPattern(numberFormat, x) {\n\n var internal = getInternalProperties(numberFormat),\n locale = internal['[[dataLocale]]'],\n nums = internal['[[numberingSystem]]'],\n data = internals.NumberFormat['[[localeData]]'][locale],\n ild = data.symbols[nums] || data.symbols.latn,\n pattern = void 0;\n\n // 1. If x is not NaN and x < 0, then:\n if (!isNaN(x) && x < 0) {\n // a. Let x be -x.\n x = -x;\n // a. Let pattern be the value of numberFormat.[[negativePattern]].\n pattern = internal['[[negativePattern]]'];\n }\n // 2. Else,\n else {\n // a. Let pattern be the value of numberFormat.[[positivePattern]].\n pattern = internal['[[positivePattern]]'];\n }\n // 3. Let result be a new empty List.\n var result = new List();\n // 4. Let beginIndex be Call(%StringProto_indexOf%, pattern, \"{\", 0).\n var beginIndex = pattern.indexOf('{', 0);\n // 5. Let endIndex be 0.\n var endIndex = 0;\n // 6. Let nextIndex be 0.\n var nextIndex = 0;\n // 7. Let length be the number of code units in pattern.\n var length = pattern.length;\n // 8. Repeat while beginIndex is an integer index into pattern:\n while (beginIndex > -1 && beginIndex < length) {\n // a. Set endIndex to Call(%StringProto_indexOf%, pattern, \"}\", beginIndex)\n endIndex = pattern.indexOf('}', beginIndex);\n // a. If endIndex = -1, throw new Error exception.\n if (endIndex === -1) throw new Error();\n // a. If beginIndex is greater than nextIndex, then:\n if (beginIndex > nextIndex) {\n // i. Let literal be a substring of pattern from position nextIndex, inclusive, to position beginIndex, exclusive.\n var literal = pattern.substring(nextIndex, beginIndex);\n // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': literal });\n }\n // a. Let p be the substring of pattern from position beginIndex, exclusive, to position endIndex, exclusive.\n var p = pattern.substring(beginIndex + 1, endIndex);\n // a. If p is equal \"number\", then:\n if (p === \"number\") {\n // i. If x is NaN,\n if (isNaN(x)) {\n // 1. Let n be an ILD String value indicating the NaN value.\n var n = ild.nan;\n // 2. Add new part record { [[type]]: \"nan\", [[value]]: n } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'nan', '[[value]]': n });\n }\n // ii. Else if isFinite(x) is false,\n else if (!isFinite(x)) {\n // 1. Let n be an ILD String value indicating infinity.\n var _n = ild.infinity;\n // 2. Add new part record { [[type]]: \"infinity\", [[value]]: n } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'infinity', '[[value]]': _n });\n }\n // iii. Else,\n else {\n // 1. If the value of numberFormat.[[style]] is \"percent\" and isFinite(x), let x be 100 × x.\n if (internal['[[style]]'] === 'percent' && isFinite(x)) x *= 100;\n\n var _n2 = void 0;\n // 2. If the numberFormat.[[minimumSignificantDigits]] and numberFormat.[[maximumSignificantDigits]] are present, then\n if (hop.call(internal, '[[minimumSignificantDigits]]') && hop.call(internal, '[[maximumSignificantDigits]]')) {\n // a. Let n be ToRawPrecision(x, numberFormat.[[minimumSignificantDigits]], numberFormat.[[maximumSignificantDigits]]).\n _n2 = ToRawPrecision(x, internal['[[minimumSignificantDigits]]'], internal['[[maximumSignificantDigits]]']);\n }\n // 3. Else,\n else {\n // a. Let n be ToRawFixed(x, numberFormat.[[minimumIntegerDigits]], numberFormat.[[minimumFractionDigits]], numberFormat.[[maximumFractionDigits]]).\n _n2 = ToRawFixed(x, internal['[[minimumIntegerDigits]]'], internal['[[minimumFractionDigits]]'], internal['[[maximumFractionDigits]]']);\n }\n // 4. If the value of the numberFormat.[[numberingSystem]] matches one of the values in the \"Numbering System\" column of Table 2 below, then\n if (numSys[nums]) {\n (function () {\n // a. Let digits be an array whose 10 String valued elements are the UTF-16 string representations of the 10 digits specified in the \"Digits\" column of the matching row in Table 2.\n var digits = numSys[nums];\n // a. Replace each digit in n with the value of digits[digit].\n _n2 = String(_n2).replace(/\\d/g, function (digit) {\n return digits[digit];\n });\n })();\n }\n // 5. Else use an implementation dependent algorithm to map n to the appropriate representation of n in the given numbering system.\n else _n2 = String(_n2); // ###TODO###\n\n var integer = void 0;\n var fraction = void 0;\n // 6. Let decimalSepIndex be Call(%StringProto_indexOf%, n, \".\", 0).\n var decimalSepIndex = _n2.indexOf('.', 0);\n // 7. If decimalSepIndex > 0, then:\n if (decimalSepIndex > 0) {\n // a. Let integer be the substring of n from position 0, inclusive, to position decimalSepIndex, exclusive.\n integer = _n2.substring(0, decimalSepIndex);\n // a. Let fraction be the substring of n from position decimalSepIndex, exclusive, to the end of n.\n fraction = _n2.substring(decimalSepIndex + 1, decimalSepIndex.length);\n }\n // 8. Else:\n else {\n // a. Let integer be n.\n integer = _n2;\n // a. Let fraction be undefined.\n fraction = undefined;\n }\n // 9. If the value of the numberFormat.[[useGrouping]] is true,\n if (internal['[[useGrouping]]'] === true) {\n // a. Let groupSepSymbol be the ILND String representing the grouping separator.\n var groupSepSymbol = ild.group;\n // a. Let groups be a List whose elements are, in left to right order, the substrings defined by ILND set of locations within the integer.\n var groups = [];\n // ----> implementation:\n // Primary group represents the group closest to the decimal\n var pgSize = data.patterns.primaryGroupSize || 3;\n // Secondary group is every other group\n var sgSize = data.patterns.secondaryGroupSize || pgSize;\n // Group only if necessary\n if (integer.length > pgSize) {\n // Index of the primary grouping separator\n var end = integer.length - pgSize;\n // Starting index for our loop\n var idx = end % sgSize;\n var start = integer.slice(0, idx);\n if (start.length) arrPush.call(groups, start);\n // Loop to separate into secondary grouping digits\n while (idx < end) {\n arrPush.call(groups, integer.slice(idx, idx + sgSize));\n idx += sgSize;\n }\n // Add the primary grouping digits\n arrPush.call(groups, integer.slice(end));\n } else {\n arrPush.call(groups, integer);\n }\n // a. Assert: The number of elements in groups List is greater than 0.\n if (groups.length === 0) throw new Error();\n // a. Repeat, while groups List is not empty:\n while (groups.length) {\n // i. Remove the first element from groups and let integerGroup be the value of that element.\n var integerGroup = arrShift.call(groups);\n // ii. Add new part record { [[type]]: \"integer\", [[value]]: integerGroup } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integerGroup });\n // iii. If groups List is not empty, then:\n if (groups.length) {\n // 1. Add new part record { [[type]]: \"group\", [[value]]: groupSepSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'group', '[[value]]': groupSepSymbol });\n }\n }\n }\n // 10. Else,\n else {\n // a. Add new part record { [[type]]: \"integer\", [[value]]: integer } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integer });\n }\n // 11. If fraction is not undefined, then:\n if (fraction !== undefined) {\n // a. Let decimalSepSymbol be the ILND String representing the decimal separator.\n var decimalSepSymbol = ild.decimal;\n // a. Add new part record { [[type]]: \"decimal\", [[value]]: decimalSepSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'decimal', '[[value]]': decimalSepSymbol });\n // a. Add new part record { [[type]]: \"fraction\", [[value]]: fraction } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'fraction', '[[value]]': fraction });\n }\n }\n }\n // a. Else if p is equal \"plusSign\", then:\n else if (p === \"plusSign\") {\n // i. Let plusSignSymbol be the ILND String representing the plus sign.\n var plusSignSymbol = ild.plusSign;\n // ii. Add new part record { [[type]]: \"plusSign\", [[value]]: plusSignSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'plusSign', '[[value]]': plusSignSymbol });\n }\n // a. Else if p is equal \"minusSign\", then:\n else if (p === \"minusSign\") {\n // i. Let minusSignSymbol be the ILND String representing the minus sign.\n var minusSignSymbol = ild.minusSign;\n // ii. Add new part record { [[type]]: \"minusSign\", [[value]]: minusSignSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'minusSign', '[[value]]': minusSignSymbol });\n }\n // a. Else if p is equal \"percentSign\" and numberFormat.[[style]] is \"percent\", then:\n else if (p === \"percentSign\" && internal['[[style]]'] === \"percent\") {\n // i. Let percentSignSymbol be the ILND String representing the percent sign.\n var percentSignSymbol = ild.percentSign;\n // ii. Add new part record { [[type]]: \"percentSign\", [[value]]: percentSignSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': percentSignSymbol });\n }\n // a. Else if p is equal \"currency\" and numberFormat.[[style]] is \"currency\", then:\n else if (p === \"currency\" && internal['[[style]]'] === \"currency\") {\n // i. Let currency be the value of numberFormat.[[currency]].\n var currency = internal['[[currency]]'];\n\n var cd = void 0;\n\n // ii. If numberFormat.[[currencyDisplay]] is \"code\", then\n if (internal['[[currencyDisplay]]'] === \"code\") {\n // 1. Let cd be currency.\n cd = currency;\n }\n // iii. Else if numberFormat.[[currencyDisplay]] is \"symbol\", then\n else if (internal['[[currencyDisplay]]'] === \"symbol\") {\n // 1. Let cd be an ILD string representing currency in short form. If the implementation does not have such a representation of currency, use currency itself.\n cd = data.currencies[currency] || currency;\n }\n // iv. Else if numberFormat.[[currencyDisplay]] is \"name\", then\n else if (internal['[[currencyDisplay]]'] === \"name\") {\n // 1. Let cd be an ILD string representing currency in long form. If the implementation does not have such a representation of currency, then use currency itself.\n cd = currency;\n }\n // v. Add new part record { [[type]]: \"currency\", [[value]]: cd } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'currency', '[[value]]': cd });\n }\n // a. Else,\n else {\n // i. Let literal be the substring of pattern from position beginIndex, inclusive, to position endIndex, inclusive.\n var _literal = pattern.substring(beginIndex, endIndex);\n // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal });\n }\n // a. Set nextIndex to endIndex + 1.\n nextIndex = endIndex + 1;\n // a. Set beginIndex to Call(%StringProto_indexOf%, pattern, \"{\", nextIndex)\n beginIndex = pattern.indexOf('{', nextIndex);\n }\n // 9. If nextIndex is less than length, then:\n if (nextIndex < length) {\n // a. Let literal be the substring of pattern from position nextIndex, inclusive, to position length, exclusive.\n var _literal2 = pattern.substring(nextIndex, length);\n // a. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal2 });\n }\n // 10. Return result.\n return result;\n}\n\n/*\n * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n * @clause[sec-formatnumber]\n */\nfunction FormatNumber(numberFormat, x) {\n // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n var parts = PartitionNumberPattern(numberFormat, x);\n // 2. Let result be an empty String.\n var result = '';\n // 3. For each part in parts, do:\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n // a. Set result to a String value produced by concatenating result and part.[[value]].\n result += part['[[value]]'];\n }\n // 4. Return result.\n return result;\n}\n\n/**\n * When the ToRawPrecision abstract operation is called with arguments x (which\n * must be a finite non-negative number), minPrecision, and maxPrecision (both\n * must be integers between 1 and 21) the following steps are taken:\n */\nfunction ToRawPrecision(x, minPrecision, maxPrecision) {\n // 1. Let p be maxPrecision.\n var p = maxPrecision;\n\n var m = void 0,\n e = void 0;\n\n // 2. If x = 0, then\n if (x === 0) {\n // a. Let m be the String consisting of p occurrences of the character \"0\".\n m = arrJoin.call(Array(p + 1), '0');\n // b. Let e be 0.\n e = 0;\n }\n // 3. Else\n else {\n // a. Let e and n be integers such that 10ᵖ⁻¹ ≤ n < 10ᵖ and for which the\n // exact mathematical value of n × 10ᵉ⁻ᵖ⁺¹ – x is as close to zero as\n // possible. If there are two such sets of e and n, pick the e and n for\n // which n × 10ᵉ⁻ᵖ⁺¹ is larger.\n e = log10Floor(Math.abs(x));\n\n // Easier to get to m from here\n var f = Math.round(Math.exp(Math.abs(e - p + 1) * Math.LN10));\n\n // b. Let m be the String consisting of the digits of the decimal\n // representation of n (in order, with no leading zeroes)\n m = String(Math.round(e - p + 1 < 0 ? x * f : x / f));\n }\n\n // 4. If e ≥ p, then\n if (e >= p)\n // a. Return the concatenation of m and e-p+1 occurrences of the character \"0\".\n return m + arrJoin.call(Array(e - p + 1 + 1), '0');\n\n // 5. If e = p-1, then\n else if (e === p - 1)\n // a. Return m.\n return m;\n\n // 6. If e ≥ 0, then\n else if (e >= 0)\n // a. Let m be the concatenation of the first e+1 characters of m, the character\n // \".\", and the remaining p–(e+1) characters of m.\n m = m.slice(0, e + 1) + '.' + m.slice(e + 1);\n\n // 7. If e < 0, then\n else if (e < 0)\n // a. Let m be the concatenation of the String \"0.\", –(e+1) occurrences of the\n // character \"0\", and the string m.\n m = '0.' + arrJoin.call(Array(-(e + 1) + 1), '0') + m;\n\n // 8. If m contains the character \".\", and maxPrecision > minPrecision, then\n if (m.indexOf(\".\") >= 0 && maxPrecision > minPrecision) {\n // a. Let cut be maxPrecision – minPrecision.\n var cut = maxPrecision - minPrecision;\n\n // b. Repeat while cut > 0 and the last character of m is \"0\":\n while (cut > 0 && m.charAt(m.length - 1) === '0') {\n // i. Remove the last character from m.\n m = m.slice(0, -1);\n\n // ii. Decrease cut by 1.\n cut--;\n }\n\n // c. If the last character of m is \".\", then\n if (m.charAt(m.length - 1) === '.')\n // i. Remove the last character from m.\n m = m.slice(0, -1);\n }\n // 9. Return m.\n return m;\n}\n\n/**\n * @spec[tc39/ecma402/master/spec/numberformat.html]\n * @clause[sec-torawfixed]\n * When the ToRawFixed abstract operation is called with arguments x (which must\n * be a finite non-negative number), minInteger (which must be an integer between\n * 1 and 21), minFraction, and maxFraction (which must be integers between 0 and\n * 20) the following steps are taken:\n */\nfunction ToRawFixed(x, minInteger, minFraction, maxFraction) {\n // 1. Let f be maxFraction.\n var f = maxFraction;\n // 2. Let n be an integer for which the exact mathematical value of n ÷ 10f – x is as close to zero as possible. If there are two such n, pick the larger n.\n var n = Math.pow(10, f) * x; // diverging...\n // 3. If n = 0, let m be the String \"0\". Otherwise, let m be the String consisting of the digits of the decimal representation of n (in order, with no leading zeroes).\n var m = n === 0 ? \"0\" : n.toFixed(0); // divering...\n\n {\n // this diversion is needed to take into consideration big numbers, e.g.:\n // 1.2344501e+37 -> 12344501000000000000000000000000000000\n var idx = void 0;\n var exp = (idx = m.indexOf('e')) > -1 ? m.slice(idx + 1) : 0;\n if (exp) {\n m = m.slice(0, idx).replace('.', '');\n m += arrJoin.call(Array(exp - (m.length - 1) + 1), '0');\n }\n }\n\n var int = void 0;\n // 4. If f ≠ 0, then\n if (f !== 0) {\n // a. Let k be the number of characters in m.\n var k = m.length;\n // a. If k ≤ f, then\n if (k <= f) {\n // i. Let z be the String consisting of f+1–k occurrences of the character \"0\".\n var z = arrJoin.call(Array(f + 1 - k + 1), '0');\n // ii. Let m be the concatenation of Strings z and m.\n m = z + m;\n // iii. Let k be f+1.\n k = f + 1;\n }\n // a. Let a be the first k–f characters of m, and let b be the remaining f characters of m.\n var a = m.substring(0, k - f),\n b = m.substring(k - f, m.length);\n // a. Let m be the concatenation of the three Strings a, \".\", and b.\n m = a + \".\" + b;\n // a. Let int be the number of characters in a.\n int = a.length;\n }\n // 5. Else, let int be the number of characters in m.\n else int = m.length;\n // 6. Let cut be maxFraction – minFraction.\n var cut = maxFraction - minFraction;\n // 7. Repeat while cut > 0 and the last character of m is \"0\":\n while (cut > 0 && m.slice(-1) === \"0\") {\n // a. Remove the last character from m.\n m = m.slice(0, -1);\n // a. Decrease cut by 1.\n cut--;\n }\n // 8. If the last character of m is \".\", then\n if (m.slice(-1) === \".\") {\n // a. Remove the last character from m.\n m = m.slice(0, -1);\n }\n // 9. If int < minInteger, then\n if (int < minInteger) {\n // a. Let z be the String consisting of minInteger–int occurrences of the character \"0\".\n var _z = arrJoin.call(Array(minInteger - int + 1), '0');\n // a. Let m be the concatenation of Strings z and m.\n m = _z + m;\n }\n // 10. Return m.\n return m;\n}\n\n// Sect 11.3.2 Table 2, Numbering systems\n// ======================================\nvar numSys = {\n arab: [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"],\n arabext: [\"۰\", \"۱\", \"۲\", \"۳\", \"۴\", \"۵\", \"۶\", \"۷\", \"۸\", \"۹\"],\n bali: [\"᭐\", \"᭑\", \"᭒\", \"᭓\", \"᭔\", \"᭕\", \"᭖\", \"᭗\", \"᭘\", \"᭙\"],\n beng: [\"০\", \"১\", \"২\", \"৩\", \"৪\", \"৫\", \"৬\", \"৭\", \"৮\", \"৯\"],\n deva: [\"०\", \"१\", \"२\", \"३\", \"४\", \"५\", \"६\", \"७\", \"८\", \"९\"],\n fullwide: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n gujr: [\"૦\", \"૧\", \"૨\", \"૩\", \"૪\", \"૫\", \"૬\", \"૭\", \"૮\", \"૯\"],\n guru: [\"੦\", \"੧\", \"੨\", \"੩\", \"੪\", \"੫\", \"੬\", \"੭\", \"੮\", \"੯\"],\n hanidec: [\"〇\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\"],\n khmr: [\"០\", \"១\", \"២\", \"៣\", \"៤\", \"៥\", \"៦\", \"៧\", \"៨\", \"៩\"],\n knda: [\"೦\", \"೧\", \"೨\", \"೩\", \"೪\", \"೫\", \"೬\", \"೭\", \"೮\", \"೯\"],\n laoo: [\"໐\", \"໑\", \"໒\", \"໓\", \"໔\", \"໕\", \"໖\", \"໗\", \"໘\", \"໙\"],\n latn: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n limb: [\"᥆\", \"᥇\", \"᥈\", \"᥉\", \"᥊\", \"᥋\", \"᥌\", \"᥍\", \"᥎\", \"᥏\"],\n mlym: [\"൦\", \"൧\", \"൨\", \"൩\", \"൪\", \"൫\", \"൬\", \"൭\", \"൮\", \"൯\"],\n mong: [\"᠐\", \"᠑\", \"᠒\", \"᠓\", \"᠔\", \"᠕\", \"᠖\", \"᠗\", \"᠘\", \"᠙\"],\n mymr: [\"၀\", \"၁\", \"၂\", \"၃\", \"၄\", \"၅\", \"၆\", \"၇\", \"၈\", \"၉\"],\n orya: [\"୦\", \"୧\", \"୨\", \"୩\", \"୪\", \"୫\", \"୬\", \"୭\", \"୮\", \"୯\"],\n tamldec: [\"௦\", \"௧\", \"௨\", \"௩\", \"௪\", \"௫\", \"௬\", \"௭\", \"௮\", \"௯\"],\n telu: [\"౦\", \"౧\", \"౨\", \"౩\", \"౪\", \"౫\", \"౬\", \"౭\", \"౮\", \"౯\"],\n thai: [\"๐\", \"๑\", \"๒\", \"๓\", \"๔\", \"๕\", \"๖\", \"๗\", \"๘\", \"๙\"],\n tibt: [\"༠\", \"༡\", \"༢\", \"༣\", \"༤\", \"༥\", \"༦\", \"༧\", \"༨\", \"༩\"]\n};\n\n/**\n * This function provides access to the locale and formatting options computed\n * during initialization of the object.\n *\n * The function returns a new object whose properties and attributes are set as\n * if constructed by an object literal assigning to each of the following\n * properties the value of the corresponding internal property of this\n * NumberFormat object (see 11.4): locale, numberingSystem, style, currency,\n * currencyDisplay, minimumIntegerDigits, minimumFractionDigits,\n * maximumFractionDigits, minimumSignificantDigits, maximumSignificantDigits, and\n * useGrouping. Properties whose corresponding internal properties are not present\n * are not assigned.\n */\n/* 11.3.3 */defineProperty(Intl.NumberFormat.prototype, 'resolvedOptions', {\n configurable: true,\n writable: true,\n value: function value() {\n var prop = void 0,\n descs = new Record(),\n props = ['locale', 'numberingSystem', 'style', 'currency', 'currencyDisplay', 'minimumIntegerDigits', 'minimumFractionDigits', 'maximumFractionDigits', 'minimumSignificantDigits', 'maximumSignificantDigits', 'useGrouping'],\n internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 11.3_b\n if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.');\n\n for (var i = 0, max = props.length; i < max; i++) {\n if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n }\n\n return objCreate({}, descs);\n }\n});\n\n/* jslint esnext: true */\n\n// Match these datetime components in a CLDR pattern, except those in single quotes\nvar expDTComponents = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n// trim patterns after transformations\nvar expPatternTrimmer = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n// Skip over patterns with these datetime components because we don't have data\n// to back them up:\n// timezone, weekday, amoung others\nvar unwantedDTCs = /[rqQASjJgwWIQq]/; // xXVO were removed from this list in favor of computing matches with timeZoneName values but printing as empty string\n\nvar dtKeys = [\"weekday\", \"era\", \"year\", \"month\", \"day\", \"weekday\", \"quarter\"];\nvar tmKeys = [\"hour\", \"minute\", \"second\", \"hour12\", \"timeZoneName\"];\n\nfunction isDateFormatOnly(obj) {\n for (var i = 0; i < tmKeys.length; i += 1) {\n if (obj.hasOwnProperty(tmKeys[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction isTimeFormatOnly(obj) {\n for (var i = 0; i < dtKeys.length; i += 1) {\n if (obj.hasOwnProperty(dtKeys[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction joinDateAndTimeFormats(dateFormatObj, timeFormatObj) {\n var o = { _: {} };\n for (var i = 0; i < dtKeys.length; i += 1) {\n if (dateFormatObj[dtKeys[i]]) {\n o[dtKeys[i]] = dateFormatObj[dtKeys[i]];\n }\n if (dateFormatObj._[dtKeys[i]]) {\n o._[dtKeys[i]] = dateFormatObj._[dtKeys[i]];\n }\n }\n for (var j = 0; j < tmKeys.length; j += 1) {\n if (timeFormatObj[tmKeys[j]]) {\n o[tmKeys[j]] = timeFormatObj[tmKeys[j]];\n }\n if (timeFormatObj._[tmKeys[j]]) {\n o._[tmKeys[j]] = timeFormatObj._[tmKeys[j]];\n }\n }\n return o;\n}\n\nfunction computeFinalPatterns(formatObj) {\n // From http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns:\n // 'In patterns, two single quotes represents a literal single quote, either\n // inside or outside single quotes. Text within single quotes is not\n // interpreted in any way (except for two adjacent single quotes).'\n formatObj.pattern12 = formatObj.extendedPattern.replace(/'([^']*)'/g, function ($0, literal) {\n return literal ? literal : \"'\";\n });\n\n // pattern 12 is always the default. we can produce the 24 by removing {ampm}\n formatObj.pattern = formatObj.pattern12.replace('{ampm}', '').replace(expPatternTrimmer, '');\n return formatObj;\n}\n\nfunction expDTComponentsMeta($0, formatObj) {\n switch ($0.charAt(0)) {\n // --- Era\n case 'G':\n formatObj.era = ['short', 'short', 'short', 'long', 'narrow'][$0.length - 1];\n return '{era}';\n\n // --- Year\n case 'y':\n case 'Y':\n case 'u':\n case 'U':\n case 'r':\n formatObj.year = $0.length === 2 ? '2-digit' : 'numeric';\n return '{year}';\n\n // --- Quarter (not supported in this polyfill)\n case 'Q':\n case 'q':\n formatObj.quarter = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n return '{quarter}';\n\n // --- Month\n case 'M':\n case 'L':\n formatObj.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n return '{month}';\n\n // --- Week (not supported in this polyfill)\n case 'w':\n // week of the year\n formatObj.week = $0.length === 2 ? '2-digit' : 'numeric';\n return '{weekday}';\n case 'W':\n // week of the month\n formatObj.week = 'numeric';\n return '{weekday}';\n\n // --- Day\n case 'd':\n // day of the month\n formatObj.day = $0.length === 2 ? '2-digit' : 'numeric';\n return '{day}';\n case 'D': // day of the year\n case 'F': // day of the week\n case 'g':\n // 1..n: Modified Julian day\n formatObj.day = 'numeric';\n return '{day}';\n\n // --- Week Day\n case 'E':\n // day of the week\n formatObj.weekday = ['short', 'short', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n return '{weekday}';\n case 'e':\n // local day of the week\n formatObj.weekday = ['numeric', '2-digit', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n return '{weekday}';\n case 'c':\n // stand alone local day of the week\n formatObj.weekday = ['numeric', undefined, 'short', 'long', 'narrow', 'short'][$0.length - 1];\n return '{weekday}';\n\n // --- Period\n case 'a': // AM, PM\n case 'b': // am, pm, noon, midnight\n case 'B':\n // flexible day periods\n formatObj.hour12 = true;\n return '{ampm}';\n\n // --- Hour\n case 'h':\n case 'H':\n formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n return '{hour}';\n case 'k':\n case 'K':\n formatObj.hour12 = true; // 12-hour-cycle time formats (using h or K)\n formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n return '{hour}';\n\n // --- Minute\n case 'm':\n formatObj.minute = $0.length === 2 ? '2-digit' : 'numeric';\n return '{minute}';\n\n // --- Second\n case 's':\n formatObj.second = $0.length === 2 ? '2-digit' : 'numeric';\n return '{second}';\n case 'S':\n case 'A':\n formatObj.second = 'numeric';\n return '{second}';\n\n // --- Timezone\n case 'z': // 1..3, 4: specific non-location format\n case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n case 'O': // 1, 4: miliseconds in day short, long\n case 'v': // 1, 4: generic non-location format\n case 'V': // 1, 2, 3, 4: time zone ID or city\n case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n case 'x':\n // 1, 2, 3, 4: The ISO8601 varios formats\n // this polyfill only supports much, for now, we are just doing something dummy\n formatObj.timeZoneName = $0.length < 4 ? 'short' : 'long';\n return '{timeZoneName}';\n }\n}\n\n/**\n * Converts the CLDR availableFormats into the objects and patterns required by\n * the ECMAScript Internationalization API specification.\n */\nfunction createDateTimeFormat(skeleton, pattern) {\n // we ignore certain patterns that are unsupported to avoid this expensive op.\n if (unwantedDTCs.test(pattern)) return undefined;\n\n var formatObj = {\n originalPattern: pattern,\n _: {}\n };\n\n // Replace the pattern string with the one required by the specification, whilst\n // at the same time evaluating it for the subsets and formats\n formatObj.extendedPattern = pattern.replace(expDTComponents, function ($0) {\n // See which symbol we're dealing with\n return expDTComponentsMeta($0, formatObj._);\n });\n\n // Match the skeleton string with the one required by the specification\n // this implementation is based on the Date Field Symbol Table:\n // http://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n // Note: we are adding extra data to the formatObject even though this polyfill\n // might not support it.\n skeleton.replace(expDTComponents, function ($0) {\n // See which symbol we're dealing with\n return expDTComponentsMeta($0, formatObj);\n });\n\n return computeFinalPatterns(formatObj);\n}\n\n/**\n * Processes DateTime formats from CLDR to an easier-to-parse format.\n * the result of this operation should be cached the first time a particular\n * calendar is analyzed.\n *\n * The specification requires we support at least the following subsets of\n * date/time components:\n *\n * - 'weekday', 'year', 'month', 'day', 'hour', 'minute', 'second'\n * - 'weekday', 'year', 'month', 'day'\n * - 'year', 'month', 'day'\n * - 'year', 'month'\n * - 'month', 'day'\n * - 'hour', 'minute', 'second'\n * - 'hour', 'minute'\n *\n * We need to cherry pick at least these subsets from the CLDR data and convert\n * them into the pattern objects used in the ECMA-402 API.\n */\nfunction createDateTimeFormats(formats) {\n var availableFormats = formats.availableFormats;\n var timeFormats = formats.timeFormats;\n var dateFormats = formats.dateFormats;\n var result = [];\n var skeleton = void 0,\n pattern = void 0,\n computed = void 0,\n i = void 0,\n j = void 0;\n var timeRelatedFormats = [];\n var dateRelatedFormats = [];\n\n // Map available (custom) formats into a pattern for createDateTimeFormats\n for (skeleton in availableFormats) {\n if (availableFormats.hasOwnProperty(skeleton)) {\n pattern = availableFormats[skeleton];\n computed = createDateTimeFormat(skeleton, pattern);\n if (computed) {\n result.push(computed);\n // in some cases, the format is only displaying date specific props\n // or time specific props, in which case we need to also produce the\n // combined formats.\n if (isDateFormatOnly(computed)) {\n dateRelatedFormats.push(computed);\n } else if (isTimeFormatOnly(computed)) {\n timeRelatedFormats.push(computed);\n }\n }\n }\n }\n\n // Map time formats into a pattern for createDateTimeFormats\n for (skeleton in timeFormats) {\n if (timeFormats.hasOwnProperty(skeleton)) {\n pattern = timeFormats[skeleton];\n computed = createDateTimeFormat(skeleton, pattern);\n if (computed) {\n result.push(computed);\n timeRelatedFormats.push(computed);\n }\n }\n }\n\n // Map date formats into a pattern for createDateTimeFormats\n for (skeleton in dateFormats) {\n if (dateFormats.hasOwnProperty(skeleton)) {\n pattern = dateFormats[skeleton];\n computed = createDateTimeFormat(skeleton, pattern);\n if (computed) {\n result.push(computed);\n dateRelatedFormats.push(computed);\n }\n }\n }\n\n // combine custom time and custom date formats when they are orthogonals to complete the\n // formats supported by CLDR.\n // This Algo is based on section \"Missing Skeleton Fields\" from:\n // http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems\n for (i = 0; i < timeRelatedFormats.length; i += 1) {\n for (j = 0; j < dateRelatedFormats.length; j += 1) {\n if (dateRelatedFormats[j].month === 'long') {\n pattern = dateRelatedFormats[j].weekday ? formats.full : formats.long;\n } else if (dateRelatedFormats[j].month === 'short') {\n pattern = formats.medium;\n } else {\n pattern = formats.short;\n }\n computed = joinDateAndTimeFormats(dateRelatedFormats[j], timeRelatedFormats[i]);\n computed.originalPattern = pattern;\n computed.extendedPattern = pattern.replace('{0}', timeRelatedFormats[i].extendedPattern).replace('{1}', dateRelatedFormats[j].extendedPattern).replace(/^[,\\s]+|[,\\s]+$/gi, '');\n result.push(computeFinalPatterns(computed));\n }\n }\n\n return result;\n}\n\n// An object map of date component keys, saves using a regex later\nvar dateWidths = objCreate(null, { narrow: {}, short: {}, long: {} });\n\n/**\n * Returns a string for a date component, resolved using multiple inheritance as specified\n * as specified in the Unicode Technical Standard 35.\n */\nfunction resolveDateString(data, ca, component, width, key) {\n // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance:\n // 'In clearly specified instances, resources may inherit from within the same locale.\n // For example, ... the Buddhist calendar inherits from the Gregorian calendar.'\n var obj = data[ca] && data[ca][component] ? data[ca][component] : data.gregory[component],\n\n\n // \"sideways\" inheritance resolves strings when a key doesn't exist\n alts = {\n narrow: ['short', 'long'],\n short: ['long', 'narrow'],\n long: ['short', 'narrow']\n },\n\n\n //\n resolved = hop.call(obj, width) ? obj[width] : hop.call(obj, alts[width][0]) ? obj[alts[width][0]] : obj[alts[width][1]];\n\n // `key` wouldn't be specified for components 'dayPeriods'\n return key !== null ? resolved[key] : resolved;\n}\n\n// Define the DateTimeFormat constructor internally so it cannot be tainted\nfunction DateTimeFormatConstructor() {\n var locales = arguments[0];\n var options = arguments[1];\n\n if (!this || this === Intl) {\n return new Intl.DateTimeFormat(locales, options);\n }\n return InitializeDateTimeFormat(toObject(this), locales, options);\n}\n\ndefineProperty(Intl, 'DateTimeFormat', {\n configurable: true,\n writable: true,\n value: DateTimeFormatConstructor\n});\n\n// Must explicitly set prototypes as unwritable\ndefineProperty(DateTimeFormatConstructor, 'prototype', {\n writable: false\n});\n\n/**\n * The abstract operation InitializeDateTimeFormat accepts the arguments dateTimeFormat\n * (which must be an object), locales, and options. It initializes dateTimeFormat as a\n * DateTimeFormat object.\n */\nfunction /* 12.1.1.1 */InitializeDateTimeFormat(dateTimeFormat, locales, options) {\n // This will be a internal properties object if we're not already initialized\n var internal = getInternalProperties(dateTimeFormat);\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore();\n\n // 1. If dateTimeFormat has an [[initializedIntlObject]] internal property with\n // value true, throw a TypeError exception.\n if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\n // Need this to access the `internal` object\n defineProperty(dateTimeFormat, '__getInternalProperties', {\n value: function value() {\n // NOTE: Non-standard, for internal use only\n if (arguments[0] === secret) return internal;\n }\n });\n\n // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n internal['[[initializedIntlObject]]'] = true;\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n var requestedLocales = CanonicalizeLocaleList(locales);\n\n // 4. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined below) with arguments options, \"any\", and \"date\".\n options = ToDateTimeOptions(options, 'any', 'date');\n\n // 5. Let opt be a new Record.\n var opt = new Record();\n\n // 6. Let matcher be the result of calling the GetOption abstract operation\n // (defined in 9.2.9) with arguments options, \"localeMatcher\", \"string\", a List\n // containing the two String values \"lookup\" and \"best fit\", and \"best fit\".\n var matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\n // 7. Set opt.[[localeMatcher]] to matcher.\n opt['[[localeMatcher]]'] = matcher;\n\n // 8. Let DateTimeFormat be the standard built-in object that is the initial\n // value of Intl.DateTimeFormat.\n var DateTimeFormat = internals.DateTimeFormat; // This is what we *really* need\n\n // 9. Let localeData be the value of the [[localeData]] internal property of\n // DateTimeFormat.\n var localeData = DateTimeFormat['[[localeData]]'];\n\n // 10. Let r be the result of calling the ResolveLocale abstract operation\n // (defined in 9.2.5) with the [[availableLocales]] internal property of\n // DateTimeFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n // internal property of DateTimeFormat, and localeData.\n var r = ResolveLocale(DateTimeFormat['[[availableLocales]]'], requestedLocales, opt, DateTimeFormat['[[relevantExtensionKeys]]'], localeData);\n\n // 11. Set the [[locale]] internal property of dateTimeFormat to the value of\n // r.[[locale]].\n internal['[[locale]]'] = r['[[locale]]'];\n\n // 12. Set the [[calendar]] internal property of dateTimeFormat to the value of\n // r.[[ca]].\n internal['[[calendar]]'] = r['[[ca]]'];\n\n // 13. Set the [[numberingSystem]] internal property of dateTimeFormat to the value of\n // r.[[nu]].\n internal['[[numberingSystem]]'] = r['[[nu]]'];\n\n // The specification doesn't tell us to do this, but it's helpful later on\n internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\n // 14. Let dataLocale be the value of r.[[dataLocale]].\n var dataLocale = r['[[dataLocale]]'];\n\n // 15. Let tz be the result of calling the [[Get]] internal method of options with\n // argument \"timeZone\".\n var tz = options.timeZone;\n\n // 16. If tz is not undefined, then\n if (tz !== undefined) {\n // a. Let tz be ToString(tz).\n // b. Convert tz to upper case as described in 6.1.\n // NOTE: If an implementation accepts additional time zone values, as permitted\n // under certain conditions by the Conformance clause, different casing\n // rules apply.\n tz = toLatinUpperCase(tz);\n\n // c. If tz is not \"UTC\", then throw a RangeError exception.\n // ###TODO: accept more time zones###\n if (tz !== 'UTC') throw new RangeError('timeZone is not supported.');\n }\n\n // 17. Set the [[timeZone]] internal property of dateTimeFormat to tz.\n internal['[[timeZone]]'] = tz;\n\n // 18. Let opt be a new Record.\n opt = new Record();\n\n // 19. For each row of Table 3, except the header row, do:\n for (var prop in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, prop)) continue;\n\n // 20. Let prop be the name given in the Property column of the row.\n // 21. Let value be the result of calling the GetOption abstract operation,\n // passing as argument options, the name given in the Property column of the\n // row, \"string\", a List containing the strings given in the Values column of\n // the row, and undefined.\n var value = GetOption(options, prop, 'string', dateTimeComponents[prop]);\n\n // 22. Set opt.[[]] to value.\n opt['[[' + prop + ']]'] = value;\n }\n\n // Assigned a value below\n var bestFormat = void 0;\n\n // 23. Let dataLocaleData be the result of calling the [[Get]] internal method of\n // localeData with argument dataLocale.\n var dataLocaleData = localeData[dataLocale];\n\n // 24. Let formats be the result of calling the [[Get]] internal method of\n // dataLocaleData with argument \"formats\".\n // Note: we process the CLDR formats into the spec'd structure\n var formats = ToDateTimeFormats(dataLocaleData.formats);\n\n // 25. Let matcher be the result of calling the GetOption abstract operation with\n // arguments options, \"formatMatcher\", \"string\", a List containing the two String\n // values \"basic\" and \"best fit\", and \"best fit\".\n matcher = GetOption(options, 'formatMatcher', 'string', new List('basic', 'best fit'), 'best fit');\n\n // Optimization: caching the processed formats as a one time operation by\n // replacing the initial structure from localeData\n dataLocaleData.formats = formats;\n\n // 26. If matcher is \"basic\", then\n if (matcher === 'basic') {\n // 27. Let bestFormat be the result of calling the BasicFormatMatcher abstract\n // operation (defined below) with opt and formats.\n bestFormat = BasicFormatMatcher(opt, formats);\n\n // 28. Else\n } else {\n {\n // diverging\n var _hr = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n opt.hour12 = _hr === undefined ? dataLocaleData.hour12 : _hr;\n }\n // 29. Let bestFormat be the result of calling the BestFitFormatMatcher\n // abstract operation (defined below) with opt and formats.\n bestFormat = BestFitFormatMatcher(opt, formats);\n }\n\n // 30. For each row in Table 3, except the header row, do\n for (var _prop in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, _prop)) continue;\n\n // a. Let prop be the name given in the Property column of the row.\n // b. Let pDesc be the result of calling the [[GetOwnProperty]] internal method of\n // bestFormat with argument prop.\n // c. If pDesc is not undefined, then\n if (hop.call(bestFormat, _prop)) {\n // i. Let p be the result of calling the [[Get]] internal method of bestFormat\n // with argument prop.\n var p = bestFormat[_prop];\n {\n // diverging\n p = bestFormat._ && hop.call(bestFormat._, _prop) ? bestFormat._[_prop] : p;\n }\n\n // ii. Set the [[]] internal property of dateTimeFormat to p.\n internal['[[' + _prop + ']]'] = p;\n }\n }\n\n var pattern = void 0; // Assigned a value below\n\n // 31. Let hr12 be the result of calling the GetOption abstract operation with\n // arguments options, \"hour12\", \"boolean\", undefined, and undefined.\n var hr12 = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n\n // 32. If dateTimeFormat has an internal property [[hour]], then\n if (internal['[[hour]]']) {\n // a. If hr12 is undefined, then let hr12 be the result of calling the [[Get]]\n // internal method of dataLocaleData with argument \"hour12\".\n hr12 = hr12 === undefined ? dataLocaleData.hour12 : hr12;\n\n // b. Set the [[hour12]] internal property of dateTimeFormat to hr12.\n internal['[[hour12]]'] = hr12;\n\n // c. If hr12 is true, then\n if (hr12 === true) {\n // i. Let hourNo0 be the result of calling the [[Get]] internal method of\n // dataLocaleData with argument \"hourNo0\".\n var hourNo0 = dataLocaleData.hourNo0;\n\n // ii. Set the [[hourNo0]] internal property of dateTimeFormat to hourNo0.\n internal['[[hourNo0]]'] = hourNo0;\n\n // iii. Let pattern be the result of calling the [[Get]] internal method of\n // bestFormat with argument \"pattern12\".\n pattern = bestFormat.pattern12;\n }\n\n // d. Else\n else\n // i. Let pattern be the result of calling the [[Get]] internal method of\n // bestFormat with argument \"pattern\".\n pattern = bestFormat.pattern;\n }\n\n // 33. Else\n else\n // a. Let pattern be the result of calling the [[Get]] internal method of\n // bestFormat with argument \"pattern\".\n pattern = bestFormat.pattern;\n\n // 34. Set the [[pattern]] internal property of dateTimeFormat to pattern.\n internal['[[pattern]]'] = pattern;\n\n // 35. Set the [[boundFormat]] internal property of dateTimeFormat to undefined.\n internal['[[boundFormat]]'] = undefined;\n\n // 36. Set the [[initializedDateTimeFormat]] internal property of dateTimeFormat to\n // true.\n internal['[[initializedDateTimeFormat]]'] = true;\n\n // In ES3, we need to pre-bind the format() function\n if (es3) dateTimeFormat.format = GetFormatDateTime.call(dateTimeFormat);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // Return the newly initialised object\n return dateTimeFormat;\n}\n\n/**\n * Several DateTimeFormat algorithms use values from the following table, which provides\n * property names and allowable values for the components of date and time formats:\n */\nvar dateTimeComponents = {\n weekday: [\"narrow\", \"short\", \"long\"],\n era: [\"narrow\", \"short\", \"long\"],\n year: [\"2-digit\", \"numeric\"],\n month: [\"2-digit\", \"numeric\", \"narrow\", \"short\", \"long\"],\n day: [\"2-digit\", \"numeric\"],\n hour: [\"2-digit\", \"numeric\"],\n minute: [\"2-digit\", \"numeric\"],\n second: [\"2-digit\", \"numeric\"],\n timeZoneName: [\"short\", \"long\"]\n};\n\n/**\n * When the ToDateTimeOptions abstract operation is called with arguments options,\n * required, and defaults, the following steps are taken:\n */\nfunction ToDateTimeFormats(formats) {\n if (Object.prototype.toString.call(formats) === '[object Array]') {\n return formats;\n }\n return createDateTimeFormats(formats);\n}\n\n/**\n * When the ToDateTimeOptions abstract operation is called with arguments options,\n * required, and defaults, the following steps are taken:\n */\nfunction ToDateTimeOptions(options, required, defaults) {\n // 1. If options is undefined, then let options be null, else let options be\n // ToObject(options).\n if (options === undefined) options = null;else {\n // (#12) options needs to be a Record, but it also needs to inherit properties\n var opt2 = toObject(options);\n options = new Record();\n\n for (var k in opt2) {\n options[k] = opt2[k];\n }\n }\n\n // 2. Let create be the standard built-in function object defined in ES5, 15.2.3.5.\n var create = objCreate;\n\n // 3. Let options be the result of calling the [[Call]] internal method of create with\n // undefined as the this value and an argument list containing the single item\n // options.\n options = create(options);\n\n // 4. Let needDefaults be true.\n var needDefaults = true;\n\n // 5. If required is \"date\" or \"any\", then\n if (required === 'date' || required === 'any') {\n // a. For each of the property names \"weekday\", \"year\", \"month\", \"day\":\n // i. If the result of calling the [[Get]] internal method of options with the\n // property name is not undefined, then let needDefaults be false.\n if (options.weekday !== undefined || options.year !== undefined || options.month !== undefined || options.day !== undefined) needDefaults = false;\n }\n\n // 6. If required is \"time\" or \"any\", then\n if (required === 'time' || required === 'any') {\n // a. For each of the property names \"hour\", \"minute\", \"second\":\n // i. If the result of calling the [[Get]] internal method of options with the\n // property name is not undefined, then let needDefaults be false.\n if (options.hour !== undefined || options.minute !== undefined || options.second !== undefined) needDefaults = false;\n }\n\n // 7. If needDefaults is true and defaults is either \"date\" or \"all\", then\n if (needDefaults && (defaults === 'date' || defaults === 'all'))\n // a. For each of the property names \"year\", \"month\", \"day\":\n // i. Call the [[DefineOwnProperty]] internal method of options with the\n // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n options.year = options.month = options.day = 'numeric';\n\n // 8. If needDefaults is true and defaults is either \"time\" or \"all\", then\n if (needDefaults && (defaults === 'time' || defaults === 'all'))\n // a. For each of the property names \"hour\", \"minute\", \"second\":\n // i. Call the [[DefineOwnProperty]] internal method of options with the\n // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n options.hour = options.minute = options.second = 'numeric';\n\n // 9. Return options.\n return options;\n}\n\n/**\n * When the BasicFormatMatcher abstract operation is called with two arguments options and\n * formats, the following steps are taken:\n */\nfunction BasicFormatMatcher(options, formats) {\n // 1. Let removalPenalty be 120.\n var removalPenalty = 120;\n\n // 2. Let additionPenalty be 20.\n var additionPenalty = 20;\n\n // 3. Let longLessPenalty be 8.\n var longLessPenalty = 8;\n\n // 4. Let longMorePenalty be 6.\n var longMorePenalty = 6;\n\n // 5. Let shortLessPenalty be 6.\n var shortLessPenalty = 6;\n\n // 6. Let shortMorePenalty be 3.\n var shortMorePenalty = 3;\n\n // 7. Let bestScore be -Infinity.\n var bestScore = -Infinity;\n\n // 8. Let bestFormat be undefined.\n var bestFormat = void 0;\n\n // 9. Let i be 0.\n var i = 0;\n\n // 10. Assert: formats is an Array object.\n\n // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n var len = formats.length;\n\n // 12. Repeat while i < len:\n while (i < len) {\n // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n var format = formats[i];\n\n // b. Let score be 0.\n var score = 0;\n\n // c. For each property shown in Table 3:\n for (var property in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, property)) continue;\n\n // i. Let optionsProp be options.[[]].\n var optionsProp = options['[[' + property + ']]'];\n\n // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n // with argument property.\n // iii. If formatPropDesc is not undefined, then\n // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n var formatProp = hop.call(format, property) ? format[property] : undefined;\n\n // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n // additionPenalty.\n if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\n // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n // removalPenalty.\n else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\n // vi. Else\n else {\n // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n // \"long\"].\n var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\n // 2. Let optionsPropIndex be the index of optionsProp within values.\n var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\n // 3. Let formatPropIndex be the index of formatProp within values.\n var formatPropIndex = arrIndexOf.call(values, formatProp);\n\n // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta === 2) score -= longMorePenalty;\n\n // 6. Else if delta = 1, decrease score by shortMorePenalty.\n else if (delta === 1) score -= shortMorePenalty;\n\n // 7. Else if delta = -1, decrease score by shortLessPenalty.\n else if (delta === -1) score -= shortLessPenalty;\n\n // 8. Else if delta = -2, decrease score by longLessPenalty.\n else if (delta === -2) score -= longLessPenalty;\n }\n }\n\n // d. If score > bestScore, then\n if (score > bestScore) {\n // i. Let bestScore be score.\n bestScore = score;\n\n // ii. Let bestFormat be format.\n bestFormat = format;\n }\n\n // e. Increase i by 1.\n i++;\n }\n\n // 13. Return bestFormat.\n return bestFormat;\n}\n\n/**\n * When the BestFitFormatMatcher abstract operation is called with two arguments options\n * and formats, it performs implementation dependent steps, which should return a set of\n * component representations that a typical user of the selected locale would perceive as\n * at least as good as the one returned by BasicFormatMatcher.\n *\n * This polyfill defines the algorithm to be the same as BasicFormatMatcher,\n * with the addition of bonus points awarded where the requested format is of\n * the same data type as the potentially matching format.\n *\n * This algo relies on the concept of closest distance matching described here:\n * http://unicode.org/reports/tr35/tr35-dates.html#Matching_Skeletons\n * Typically a “best match” is found using a closest distance match, such as:\n *\n * Symbols requesting a best choice for the locale are replaced.\n * j → one of {H, k, h, K}; C → one of {a, b, B}\n * -> Covered by cldr.js matching process\n *\n * For fields with symbols representing the same type (year, month, day, etc):\n * Most symbols have a small distance from each other.\n * M ≅ L; E ≅ c; a ≅ b ≅ B; H ≅ k ≅ h ≅ K; ...\n * -> Covered by cldr.js matching process\n *\n * Width differences among fields, other than those marking text vs numeric, are given small distance from each other.\n * MMM ≅ MMMM\n * MM ≅ M\n * Numeric and text fields are given a larger distance from each other.\n * MMM ≈ MM\n * Symbols representing substantial differences (week of year vs week of month) are given much larger a distances from each other.\n * d ≋ D; ...\n * Missing or extra fields cause a match to fail. (But see Missing Skeleton Fields).\n *\n *\n * For example,\n *\n * { month: 'numeric', day: 'numeric' }\n *\n * should match\n *\n * { month: '2-digit', day: '2-digit' }\n *\n * rather than\n *\n * { month: 'short', day: 'numeric' }\n *\n * This makes sense because a user requesting a formatted date with numeric parts would\n * not expect to see the returned format containing narrow, short or long part names\n */\nfunction BestFitFormatMatcher(options, formats) {\n\n // 1. Let removalPenalty be 120.\n var removalPenalty = 120;\n\n // 2. Let additionPenalty be 20.\n var additionPenalty = 20;\n\n // 3. Let longLessPenalty be 8.\n var longLessPenalty = 8;\n\n // 4. Let longMorePenalty be 6.\n var longMorePenalty = 6;\n\n // 5. Let shortLessPenalty be 6.\n var shortLessPenalty = 6;\n\n // 6. Let shortMorePenalty be 3.\n var shortMorePenalty = 3;\n\n var hour12Penalty = 1;\n\n // 7. Let bestScore be -Infinity.\n var bestScore = -Infinity;\n\n // 8. Let bestFormat be undefined.\n var bestFormat = void 0;\n\n // 9. Let i be 0.\n var i = 0;\n\n // 10. Assert: formats is an Array object.\n\n // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n var len = formats.length;\n\n // 12. Repeat while i < len:\n while (i < len) {\n // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n var format = formats[i];\n\n // b. Let score be 0.\n var score = 0;\n\n // c. For each property shown in Table 3:\n for (var property in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, property)) continue;\n\n // i. Let optionsProp be options.[[]].\n var optionsProp = options['[[' + property + ']]'];\n\n // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n // with argument property.\n // iii. If formatPropDesc is not undefined, then\n // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n var formatProp = hop.call(format, property) ? format[property] : undefined;\n\n // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n // additionPenalty.\n if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\n // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n // removalPenalty.\n else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\n // vi. Else\n else {\n // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n // \"long\"].\n var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\n // 2. Let optionsPropIndex be the index of optionsProp within values.\n var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\n // 3. Let formatPropIndex be the index of formatProp within values.\n var formatPropIndex = arrIndexOf.call(values, formatProp);\n\n // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\n {\n // diverging from spec\n // When the bestFit argument is true, subtract additional penalty where data types are not the same\n if (formatPropIndex <= 1 && optionsPropIndex >= 2 || formatPropIndex >= 2 && optionsPropIndex <= 1) {\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta > 0) score -= longMorePenalty;else if (delta < 0) score -= longLessPenalty;\n } else {\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta > 1) score -= shortMorePenalty;else if (delta < -1) score -= shortLessPenalty;\n }\n }\n }\n }\n\n {\n // diverging to also take into consideration differences between 12 or 24 hours\n // which is special for the best fit only.\n if (format._.hour12 !== options.hour12) {\n score -= hour12Penalty;\n }\n }\n\n // d. If score > bestScore, then\n if (score > bestScore) {\n // i. Let bestScore be score.\n bestScore = score;\n // ii. Let bestFormat be format.\n bestFormat = format;\n }\n\n // e. Increase i by 1.\n i++;\n }\n\n // 13. Return bestFormat.\n return bestFormat;\n}\n\n/* 12.2.3 */internals.DateTimeFormat = {\n '[[availableLocales]]': [],\n '[[relevantExtensionKeys]]': ['ca', 'nu'],\n '[[localeData]]': {}\n};\n\n/**\n * When the supportedLocalesOf method of Intl.DateTimeFormat is called, the\n * following steps are taken:\n */\n/* 12.2.2 */\ndefineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {\n configurable: true,\n writable: true,\n value: fnBind.call(function (locales) {\n // Bound functions only have the `this` value altered if being used as a constructor,\n // this lets us imitate a native function that has no constructor\n if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore(),\n\n\n // 1. If options is not provided, then let options be undefined.\n options = arguments[1],\n\n\n // 2. Let availableLocales be the value of the [[availableLocales]] internal\n // property of the standard built-in object that is the initial value of\n // Intl.NumberFormat.\n\n availableLocales = this['[[availableLocales]]'],\n\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n requestedLocales = CanonicalizeLocaleList(locales);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // 4. Return the result of calling the SupportedLocales abstract operation\n // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n // and options.\n return SupportedLocales(availableLocales, requestedLocales, options);\n }, internals.NumberFormat)\n});\n\n/**\n * This named accessor property returns a function that formats a number\n * according to the effective locale and the formatting options of this\n * DateTimeFormat object.\n */\n/* 12.3.2 */defineProperty(Intl.DateTimeFormat.prototype, 'format', {\n configurable: true,\n get: GetFormatDateTime\n});\n\ndefineProperty(Intl.DateTimeFormat.prototype, 'formatToParts', {\n configurable: true,\n get: GetFormatToPartsDateTime\n});\n\nfunction GetFormatDateTime() {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 12.3_b\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.DateTimeFormat object.');\n\n // The value of the [[Get]] attribute is a function that takes the following\n // steps:\n\n // 1. If the [[boundFormat]] internal property of this DateTimeFormat object\n // is undefined, then:\n if (internal['[[boundFormat]]'] === undefined) {\n // a. Let F be a Function object, with internal properties set as\n // specified for built-in functions in ES5, 15, or successor, and the\n // length property set to 0, that takes the argument date and\n // performs the following steps:\n var F = function F() {\n // i. If date is not provided or is undefined, then let x be the\n // result as if by the expression Date.now() where Date.now is\n // the standard built-in function defined in ES5, 15.9.4.4.\n // ii. Else let x be ToNumber(date).\n // iii. Return the result of calling the FormatDateTime abstract\n // operation (defined below) with arguments this and x.\n var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n return FormatDateTime(this, x);\n };\n // b. Let bind be the standard built-in function object defined in ES5,\n // 15.3.4.5.\n // c. Let bf be the result of calling the [[Call]] internal method of\n // bind with F as the this value and an argument list containing\n // the single item this.\n var bf = fnBind.call(F, this);\n // d. Set the [[boundFormat]] internal property of this NumberFormat\n // object to bf.\n internal['[[boundFormat]]'] = bf;\n }\n // Return the value of the [[boundFormat]] internal property of this\n // NumberFormat object.\n return internal['[[boundFormat]]'];\n}\n\nfunction GetFormatToPartsDateTime() {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.');\n\n if (internal['[[boundFormatToParts]]'] === undefined) {\n var F = function F() {\n var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n return FormatToPartsDateTime(this, x);\n };\n var bf = fnBind.call(F, this);\n internal['[[boundFormatToParts]]'] = bf;\n }\n return internal['[[boundFormatToParts]]'];\n}\n\nfunction CreateDateTimeParts(dateTimeFormat, x) {\n // 1. If x is not a finite Number, then throw a RangeError exception.\n if (!isFinite(x)) throw new RangeError('Invalid valid date passed to format');\n\n var internal = dateTimeFormat.__getInternalProperties(secret);\n\n // Creating restore point for properties on the RegExp object... please wait\n /* let regexpState = */createRegExpRestore(); // ###TODO: review this\n\n // 2. Let locale be the value of the [[locale]] internal property of dateTimeFormat.\n var locale = internal['[[locale]]'];\n\n // 3. Let nf be the result of creating a new NumberFormat object as if by the\n // expression new Intl.NumberFormat([locale], {useGrouping: false}) where\n // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n var nf = new Intl.NumberFormat([locale], { useGrouping: false });\n\n // 4. Let nf2 be the result of creating a new NumberFormat object as if by the\n // expression new Intl.NumberFormat([locale], {minimumIntegerDigits: 2, useGrouping:\n // false}) where Intl.NumberFormat is the standard built-in constructor defined in\n // 11.1.3.\n var nf2 = new Intl.NumberFormat([locale], { minimumIntegerDigits: 2, useGrouping: false });\n\n // 5. Let tm be the result of calling the ToLocalTime abstract operation (defined\n // below) with x, the value of the [[calendar]] internal property of dateTimeFormat,\n // and the value of the [[timeZone]] internal property of dateTimeFormat.\n var tm = ToLocalTime(x, internal['[[calendar]]'], internal['[[timeZone]]']);\n\n // 6. Let result be the value of the [[pattern]] internal property of dateTimeFormat.\n var pattern = internal['[[pattern]]'];\n\n // 7.\n var result = new List();\n\n // 8.\n var index = 0;\n\n // 9.\n var beginIndex = pattern.indexOf('{');\n\n // 10.\n var endIndex = 0;\n\n // Need the locale minus any extensions\n var dataLocale = internal['[[dataLocale]]'];\n\n // Need the calendar data from CLDR\n var localeData = internals.DateTimeFormat['[[localeData]]'][dataLocale].calendars;\n var ca = internal['[[calendar]]'];\n\n // 11.\n while (beginIndex !== -1) {\n var fv = void 0;\n // a.\n endIndex = pattern.indexOf('}', beginIndex);\n // b.\n if (endIndex === -1) {\n throw new Error('Unclosed pattern');\n }\n // c.\n if (beginIndex > index) {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substring(index, beginIndex)\n });\n }\n // d.\n var p = pattern.substring(beginIndex + 1, endIndex);\n // e.\n if (dateTimeComponents.hasOwnProperty(p)) {\n // i. Let f be the value of the [[

    ]] internal property of dateTimeFormat.\n var f = internal['[[' + p + ']]'];\n // ii. Let v be the value of tm.[[

    ]].\n var v = tm['[[' + p + ']]'];\n // iii. If p is \"year\" and v ≤ 0, then let v be 1 - v.\n if (p === 'year' && v <= 0) {\n v = 1 - v;\n }\n // iv. If p is \"month\", then increase v by 1.\n else if (p === 'month') {\n v++;\n }\n // v. If p is \"hour\" and the value of the [[hour12]] internal property of\n // dateTimeFormat is true, then\n else if (p === 'hour' && internal['[[hour12]]'] === true) {\n // 1. Let v be v modulo 12.\n v = v % 12;\n // 2. If v is 0 and the value of the [[hourNo0]] internal property of\n // dateTimeFormat is true, then let v be 12.\n if (v === 0 && internal['[[hourNo0]]'] === true) {\n v = 12;\n }\n }\n\n // vi. If f is \"numeric\", then\n if (f === 'numeric') {\n // 1. Let fv be the result of calling the FormatNumber abstract operation\n // (defined in 11.3.2) with arguments nf and v.\n fv = FormatNumber(nf, v);\n }\n // vii. Else if f is \"2-digit\", then\n else if (f === '2-digit') {\n // 1. Let fv be the result of calling the FormatNumber abstract operation\n // with arguments nf2 and v.\n fv = FormatNumber(nf2, v);\n // 2. If the length of fv is greater than 2, let fv be the substring of fv\n // containing the last two characters.\n if (fv.length > 2) {\n fv = fv.slice(-2);\n }\n }\n // viii. Else if f is \"narrow\", \"short\", or \"long\", then let fv be a String\n // value representing f in the desired form; the String value depends upon\n // the implementation and the effective locale and calendar of\n // dateTimeFormat. If p is \"month\", then the String value may also depend\n // on whether dateTimeFormat has a [[day]] internal property. If p is\n // \"timeZoneName\", then the String value may also depend on the value of\n // the [[inDST]] field of tm.\n else if (f in dateWidths) {\n switch (p) {\n case 'month':\n fv = resolveDateString(localeData, ca, 'months', f, tm['[[' + p + ']]']);\n break;\n\n case 'weekday':\n try {\n fv = resolveDateString(localeData, ca, 'days', f, tm['[[' + p + ']]']);\n // fv = resolveDateString(ca.days, f)[tm['[['+ p +']]']];\n } catch (e) {\n throw new Error('Could not find weekday data for locale ' + locale);\n }\n break;\n\n case 'timeZoneName':\n fv = ''; // ###TODO\n break;\n\n case 'era':\n try {\n fv = resolveDateString(localeData, ca, 'eras', f, tm['[[' + p + ']]']);\n } catch (e) {\n throw new Error('Could not find era data for locale ' + locale);\n }\n break;\n\n default:\n fv = tm['[[' + p + ']]'];\n }\n }\n // ix\n arrPush.call(result, {\n type: p,\n value: fv\n });\n // f.\n } else if (p === 'ampm') {\n // i.\n var _v = tm['[[hour]]'];\n // ii./iii.\n fv = resolveDateString(localeData, ca, 'dayPeriods', _v > 11 ? 'pm' : 'am', null);\n // iv.\n arrPush.call(result, {\n type: 'dayPeriod',\n value: fv\n });\n // g.\n } else {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substring(beginIndex, endIndex + 1)\n });\n }\n // h.\n index = endIndex + 1;\n // i.\n beginIndex = pattern.indexOf('{', index);\n }\n // 12.\n if (endIndex < pattern.length - 1) {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substr(endIndex + 1)\n });\n }\n // 13.\n return result;\n}\n\n/**\n * When the FormatDateTime abstract operation is called with arguments dateTimeFormat\n * (which must be an object initialized as a DateTimeFormat) and x (which must be a Number\n * value), it returns a String value representing x (interpreted as a time value as\n * specified in ES5, 15.9.1.1) according to the effective locale and the formatting\n * options of dateTimeFormat.\n */\nfunction FormatDateTime(dateTimeFormat, x) {\n var parts = CreateDateTimeParts(dateTimeFormat, x);\n var result = '';\n\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n result += part.value;\n }\n return result;\n}\n\nfunction FormatToPartsDateTime(dateTimeFormat, x) {\n var parts = CreateDateTimeParts(dateTimeFormat, x);\n var result = [];\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n result.push({\n type: part.type,\n value: part.value\n });\n }\n return result;\n}\n\n/**\n * When the ToLocalTime abstract operation is called with arguments date, calendar, and\n * timeZone, the following steps are taken:\n */\nfunction ToLocalTime(date, calendar, timeZone) {\n // 1. Apply calendrical calculations on date for the given calendar and time zone to\n // produce weekday, era, year, month, day, hour, minute, second, and inDST values.\n // The calculations should use best available information about the specified\n // calendar and time zone. If the calendar is \"gregory\", then the calculations must\n // match the algorithms specified in ES5, 15.9.1, except that calculations are not\n // bound by the restrictions on the use of best available information on time zones\n // for local time zone adjustment and daylight saving time adjustment imposed by\n // ES5, 15.9.1.7 and 15.9.1.8.\n // ###TODO###\n var d = new Date(date),\n m = 'get' + (timeZone || '');\n\n // 2. Return a Record with fields [[weekday]], [[era]], [[year]], [[month]], [[day]],\n // [[hour]], [[minute]], [[second]], and [[inDST]], each with the corresponding\n // calculated value.\n return new Record({\n '[[weekday]]': d[m + 'Day'](),\n '[[era]]': +(d[m + 'FullYear']() >= 0),\n '[[year]]': d[m + 'FullYear'](),\n '[[month]]': d[m + 'Month'](),\n '[[day]]': d[m + 'Date'](),\n '[[hour]]': d[m + 'Hours'](),\n '[[minute]]': d[m + 'Minutes'](),\n '[[second]]': d[m + 'Seconds'](),\n '[[inDST]]': false });\n}\n\n/**\n * The function returns a new object whose properties and attributes are set as if\n * constructed by an object literal assigning to each of the following properties the\n * value of the corresponding internal property of this DateTimeFormat object (see 12.4):\n * locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day,\n * hour, minute, second, and timeZoneName. Properties whose corresponding internal\n * properties are not present are not assigned.\n */\n/* 12.3.3 */ // ###TODO###\ndefineProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', {\n writable: true,\n configurable: true,\n value: function value() {\n var prop = void 0,\n descs = new Record(),\n props = ['locale', 'calendar', 'numberingSystem', 'timeZone', 'hour12', 'weekday', 'era', 'year', 'month', 'day', 'hour', 'minute', 'second', 'timeZoneName'],\n internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 12.3_b\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.');\n\n for (var i = 0, max = props.length; i < max; i++) {\n if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n }\n\n return objCreate({}, descs);\n }\n});\n\nvar ls = Intl.__localeSensitiveProtos = {\n Number: {},\n Date: {}\n};\n\n/**\n * When the toLocaleString method is called with optional arguments locales and options,\n * the following steps are taken:\n */\n/* 13.2.1 */ls.Number.toLocaleString = function () {\n // Satisfy test 13.2.1_1\n if (Object.prototype.toString.call(this) !== '[object Number]') throw new TypeError('`this` value must be a number for Number.prototype.toLocaleString()');\n\n // 1. Let x be this Number value (as defined in ES5, 15.7.4).\n // 2. If locales is not provided, then let locales be undefined.\n // 3. If options is not provided, then let options be undefined.\n // 4. Let numberFormat be the result of creating a new object as if by the\n // expression new Intl.NumberFormat(locales, options) where\n // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n // 5. Return the result of calling the FormatNumber abstract operation\n // (defined in 11.3.2) with arguments numberFormat and x.\n return FormatNumber(new NumberFormatConstructor(arguments[0], arguments[1]), this);\n};\n\n/**\n * When the toLocaleString method is called with optional arguments locales and options,\n * the following steps are taken:\n */\n/* 13.3.1 */ls.Date.toLocaleString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0];\n\n // 4. If options is not provided, then let options be undefined.\n var options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"any\", and \"all\".\n options = ToDateTimeOptions(options, 'any', 'all');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\n/**\n * When the toLocaleDateString method is called with optional arguments locales and\n * options, the following steps are taken:\n */\n/* 13.3.2 */ls.Date.toLocaleDateString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleDateString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0],\n\n\n // 4. If options is not provided, then let options be undefined.\n options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"date\", and \"date\".\n options = ToDateTimeOptions(options, 'date', 'date');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\n/**\n * When the toLocaleTimeString method is called with optional arguments locales and\n * options, the following steps are taken:\n */\n/* 13.3.3 */ls.Date.toLocaleTimeString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleTimeString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0];\n\n // 4. If options is not provided, then let options be undefined.\n var options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"time\", and \"time\".\n options = ToDateTimeOptions(options, 'time', 'time');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\ndefineProperty(Intl, '__applyLocaleSensitivePrototypes', {\n writable: true,\n configurable: true,\n value: function value() {\n defineProperty(Number.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Number.toLocaleString });\n // Need this here for IE 8, to avoid the _DontEnum_ bug\n defineProperty(Date.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Date.toLocaleString });\n\n for (var k in ls.Date) {\n if (hop.call(ls.Date, k)) defineProperty(Date.prototype, k, { writable: true, configurable: true, value: ls.Date[k] });\n }\n }\n});\n\n/**\n * Can't really ship a single script with data for hundreds of locales, so we provide\n * this __addLocaleData method as a means for the developer to add the data on an\n * as-needed basis\n */\ndefineProperty(Intl, '__addLocaleData', {\n value: function value(data) {\n if (!IsStructurallyValidLanguageTag(data.locale)) throw new Error(\"Object passed doesn't identify itself with a valid language tag\");\n\n addLocaleData(data, data.locale);\n }\n});\n\nfunction addLocaleData(data, tag) {\n // Both NumberFormat and DateTimeFormat require number data, so throw if it isn't present\n if (!data.number) throw new Error(\"Object passed doesn't contain locale data for Intl.NumberFormat\");\n\n var locale = void 0,\n locales = [tag],\n parts = tag.split('-');\n\n // Create fallbacks for locale data with scripts, e.g. Latn, Hans, Vaii, etc\n if (parts.length > 2 && parts[1].length === 4) arrPush.call(locales, parts[0] + '-' + parts[2]);\n\n while (locale = arrShift.call(locales)) {\n // Add to NumberFormat internal properties as per 11.2.3\n arrPush.call(internals.NumberFormat['[[availableLocales]]'], locale);\n internals.NumberFormat['[[localeData]]'][locale] = data.number;\n\n // ...and DateTimeFormat internal properties as per 12.2.3\n if (data.date) {\n data.date.nu = data.number.nu;\n arrPush.call(internals.DateTimeFormat['[[availableLocales]]'], locale);\n internals.DateTimeFormat['[[localeData]]'][locale] = data.date;\n }\n }\n\n // If this is the first set of locale data added, make it the default\n if (defaultLocale === undefined) setDefaultLocale(tag);\n}\n\nmodule.exports = Intl;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/lib/core.js\n ** module id = 889\n ** module chunks = 1\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///1.1.js","webpack:///./~/intl/index.js","webpack:///./~/intl/locale-data/jsonp/en.js","webpack:///./~/intl/locale-data/jsonp/fr.js","webpack:///./~/intl/lib/core.js"],"names":["webpackJsonp","324","module","exports","__webpack_require__","global","IntlPolyfill","Intl","__applyLocaleSensitivePrototypes","call","this","325","__addLocaleData","locale","date","ca","hourNo0","hour12","formats","short","medium","full","long","availableFormats","d","E","Ed","Ehm","EHm","Ehms","EHms","Gy","GyMMM","GyMMMd","GyMMMEd","h","H","hm","Hm","hms","Hms","hmsv","Hmsv","hmv","Hmv","M","Md","MEd","MMM","MMMd","MMMEd","MMMMd","ms","y","yM","yMd","yMEd","yMMM","yMMMd","yMMMEd","yMMMM","yQQQ","yQQQQ","dateFormats","yMMMMEEEEd","yMMMMd","timeFormats","hmmsszzzz","hmsz","calendars","buddhist","months","narrow","days","eras","dayPeriods","am","pm","chinese","coptic","dangi","ethiopic","ethioaa","generic","gregory","hebrew","indian","islamic","islamicc","japanese","persian","roc","number","nu","patterns","decimal","positivePattern","negativePattern","currency","percent","symbols","latn","group","nan","plusSign","minusSign","percentSign","infinity","currencies","AUD","BRL","CAD","CNY","EUR","GBP","HKD","ILS","INR","JPY","KRW","MXN","NZD","TWD","USD","VND","XAF","XCD","XOF","XPF","326","ARS","BEF","BMD","BND","BSD","BZD","CLP","COP","CYP","FJD","FKP","FRF","GIP","IEP","ILP","ITL","LBP","MTP","NAD","RHD","SBD","SGD","SRD","TTD","UYU","WST","888","log10Floor","n","Math","log10","floor","x","round","log","LOG10E","Number","Record","obj","k","hop","defineProperty","value","enumerable","writable","configurable","List","arguments","length","arrPush","apply","arrSlice","createRegExpRestore","esc","lm","RegExp","lastMatch","ml","multiline","ret","input","reg","has","cap","i","replace","_i","m","slice","indexOf","exp","arrJoin","toObject","arg","TypeError","Object","getInternalProperties","__getInternalProperties","secret","objCreate","setDefaultLocale","defaultLocale","toLatinUpperCase","str","ch","charAt","toUpperCase","IsStructurallyValidLanguageTag","expBCP47Syntax","test","expVariantDupes","expSingletonDupes","CanonicalizeLanguageTag","match","parts","toLowerCase","split","max","expExtSequences","sort","source","redundantTags","tags","_max","subtags","extLang","DefaultLocale","IsWellFormedCurrencyCode","c","String","normalized","expCurrencyCode","CanonicalizeLocaleList","locales","undefined","seen","O","len","Pk","kPresent","kValue","babelHelpers","tag","RangeError","arrIndexOf","BestAvailableLocale","availableLocales","candidate","pos","lastIndexOf","substring","LookupMatcher","requestedLocales","availableLocale","noExtensionsLocale","expUnicodeExSeq","result","extension","extensionIndex","BestFitMatcher","ResolveLocale","options","relevantExtensionKeys","localeData","ReferenceError","matcher","r","foundLocale","extensionSubtags","extensionSubtagsLength","prototype","supportedExtension","key","foundLocaleData","keyLocaleData","supportedExtensionAddition","keyPos","requestedValue","valuePos","_valuePos","optionsValue","privateIndex","preExtension","postExtension","LookupSupportedLocales","subset","subsetArray","BestFitSupportedLocales","SupportedLocales","localeMatcher","P","GetOption","property","type","values","fallback","Boolean","GetNumberOption","minimum","maximum","isNaN","NumberFormatConstructor","InitializeNumberFormat","NumberFormat","numberFormat","internal","regexpState","opt","internals","dataLocale","s","cDigits","CurrencyDigits","cd","mnid","mnfdDefault","mnfd","mxfdDefault","mxfd","mnsd","minimumSignificantDigits","mxsd","maximumSignificantDigits","g","dataLocaleData","stylePatterns","es3","format","GetFormatNumber","currencyMinorUnits","F","FormatNumber","bf","fnBind","FormatNumberToParts","PartitionNumberPattern","part","nums","data","ild","pattern","beginIndex","endIndex","nextIndex","Error","literal","[[type]]","[[value]]","p","isFinite","_n2","ToRawPrecision","ToRawFixed","numSys","digits","digit","integer","fraction","decimalSepIndex","groupSepSymbol","groups","pgSize","primaryGroupSize","sgSize","secondaryGroupSize","end","idx","start","integerGroup","arrShift","decimalSepSymbol","_n","plusSignSymbol","minusSignSymbol","percentSignSymbol","_literal","_literal2","minPrecision","maxPrecision","e","Array","abs","f","LN10","cut","minInteger","minFraction","maxFraction","pow","toFixed","int","z","a","b","_z","isDateFormatOnly","tmKeys","hasOwnProperty","isTimeFormatOnly","dtKeys","joinDateAndTimeFormats","dateFormatObj","timeFormatObj","o","_","j","computeFinalPatterns","formatObj","pattern12","extendedPattern","$0","expPatternTrimmer","expDTComponentsMeta","era","year","quarter","month","week","day","weekday","hour","minute","second","timeZoneName","createDateTimeFormat","skeleton","unwantedDTCs","originalPattern","expDTComponents","createDateTimeFormats","computed","timeRelatedFormats","dateRelatedFormats","push","resolveDateString","component","width","alts","resolved","DateTimeFormatConstructor","InitializeDateTimeFormat","DateTimeFormat","dateTimeFormat","ToDateTimeOptions","tz","timeZone","prop","dateTimeComponents","bestFormat","ToDateTimeFormats","BasicFormatMatcher","_hr","BestFitFormatMatcher","_prop","hr12","GetFormatDateTime","toString","required","defaults","opt2","create","needDefaults","removalPenalty","additionPenalty","longLessPenalty","longMorePenalty","shortLessPenalty","shortMorePenalty","bestScore","Infinity","score","optionsProp","formatProp","optionsPropIndex","formatPropIndex","delta","min","hour12Penalty","Date","now","FormatDateTime","GetFormatToPartsDateTime","FormatToPartsDateTime","CreateDateTimeParts","nf","useGrouping","nf2","minimumIntegerDigits","tm","ToLocalTime","index","fv","v","dateWidths","_v","substr","calendar","[[weekday]]","[[era]]","[[year]]","[[month]]","[[day]]","[[hour]]","[[minute]]","[[second]]","[[inDST]]","addLocaleData","typeof","Symbol","iterator","constructor","realDefineProp","sentinel","__defineGetter__","name","desc","get","search","t","proto","props","arrConcat","concat","join","shift","Function","bind","thisObj","fn","args","random","extlang","language","script","region","variant","singleton","privateuse","irregular","regular","grandfathered","langtag","art-lojban","i-ami","i-bnn","i-hak","i-klingon","i-lux","i-navajo","i-pwn","i-tao","i-tay","i-tsu","no-bok","no-nyn","sgn-BE-FR","sgn-BE-NL","sgn-CH-DE","zh-guoyu","zh-hakka","zh-min-nan","zh-xiang","sgn-BR","sgn-CO","sgn-DE","sgn-DK","sgn-ES","sgn-FR","sgn-GB","sgn-GR","sgn-IE","sgn-IT","sgn-JP","sgn-MX","sgn-NI","sgn-NL","sgn-NO","sgn-PT","sgn-SE","sgn-US","sgn-ZA","zh-cmn","zh-cmn-Hans","zh-cmn-Hant","zh-gan","zh-wuu","zh-yue","BU","DD","FX","TP","YD","ZR","heploc","in","iw","ji","jw","mo","ayx","bjd","ccq","cjr","cka","cmk","drh","drw","gav","hrr","ibi","kgh","lcq","mst","myt","sca","tie","tkk","tlw","tnf","ybd","yma","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","aed","aen","afb","afg","ajp","apc","apd","arb","arq","ars","ary","arz","ase","asf","asp","asq","asw","auz","avl","ayh","ayl","ayn","ayp","bbz","bfi","bfk","bjn","bog","bqn","bqy","btj","bve","bvl","bvu","bzs","cdo","cds","cjy","cmn","coa","cpx","csc","csd","cse","csf","csg","csl","csn","csq","csr","czh","czo","doq","dse","dsl","dup","ecs","esl","esn","eso","eth","fcs","fse","fsl","fss","gan","gds","gom","gse","gsg","gsm","gss","gus","hab","haf","hak","hds","hji","hks","hos","hps","hsh","hsl","hsn","icl","ils","inl","ins","ise","isg","isr","jak","jax","jcs","jhs","jls","jos","jsl","jus","kgi","knn","kvb","kvk","kvr","kxd","lbs","lce","lcf","liw","lls","lsg","lsl","lso","lsp","lst","lsy","ltg","lvs","lzh","mdl","meo","mfa","mfb","mfs","mnp","mqg","mre","msd","msi","msr","mui","mzc","mzg","mzy","nbs","ncs","nsi","nsl","nsp","nsr","nzs","okl","orn","ors","pel","pga","pks","prl","prz","psc","psd","pse","psg","psl","pso","psp","psr","pys","rms","rsi","rsl","sdl","sfb","sfs","sgg","sgx","shu","slf","sls","sqk","sqs","ssh","ssp","ssr","svk","swc","swh","swl","syy","tmw","tse","tsm","tsq","tss","tsy","tza","ugn","ugy","ukl","uks","urk","uzn","uzs","vgt","vkk","vkt","vsi","vsl","vsv","wuu","xki","xml","xmm","xms","yds","ysl","yue","zib","zlm","zmi","zsl","zsm","getCanonicalLocales","ll","code","BHD","BYR","BIF","CLF","KMF","DJF","GNF","ISK","IQD","JOD","KWD","LYD","OMR","PYG","RWF","TND","UGX","UYI","VUV","[[availableLocales]]","[[relevantExtensionKeys]]","[[localeData]]","formatToParts","arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt","descs","ls","__localeSensitiveProtos","toLocaleString","toLocaleDateString","toLocaleTimeString","889"],"mappings":"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,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAthB,KAAA,YACAuhB,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAxR,KAAA,YACAyR,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAjqB,KAAA,YACAkqB,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,aACAC,KAAA,aACAC,KAAA,YACAC,KAAA,aACAC,KAAA,YACAC,KAAA,YACAC,KAAA,aACAC,KAAA,cA0IArmB,GAAA,aAwBAwB,GAAA,0BA6jBAlQ,KAOAA,IAAAg1B,oBAAA,SAAApmB,GAEA,GAAAqmB,GAAAtmB,EAAAC,GAGAuB,IACA,QAAA+kB,KAAAD,GACA9kB,EAAAiL,KAAA6Z,EAAAC,GAEA,OAAA/kB,GAKA,IAAAyE,KACAugB,IAAA,EAAAC,IAAA,EAAA5tB,IAAA,EAAA6tB,IAAA,EAAA/tB,IAAA,EAAAguB,IAAA,EAAArtB,IAAA,EAAAstB,IAAA,EAAAC,IAAA,EACA/tB,IAAA,EAAAguB,IAAA,EAAAC,IAAA,EAAAC,IAAA,EAAA5uB,IAAA,EAAA6uB,IAAA,EAAA5uB,IAAA,EAAA6uB,IAAA,EAAAC,IAAA,EACAC,IAAA,EAAAC,IAAA,EAAAC,IAAA,EAAAC,IAAA,EAAAC,IAAA,EAAAC,IAAA,EAAAC,IAAA,EAAAhvB,IAAA,EAeA+C,IAAApK,GAAA,gBACAwK,cAAA,EACAD,UAAA,EACAF,MAAA2I,IAIA5I,GAAApK,GAAAkT,aAAA,aACA3I,UAAA,IAoPAgJ,GAAAL,cACAojB,0BACAC,6BAAA,MACAC,qBAQApsB,GAAApK,GAAAkT,aAAA,sBACA1I,cAAA,EACAD,UAAA,EACAF,MAAA2K,GAAA9U,KAAA,SAAA0O,GAGA,IAAAzE,GAAAjK,KAAAC,KAAA,iCAAAkM,WAAA,4CAGA,IAAAgH,GAAAtI,IAIAyF,EAAA9F,UAAA,GAOA+E,EAAAtP,KAAA,wBAKA4P,EAAApB,EAAAC,EAQA,OALAyE,GAAApH,IAAAmB,KAAAiG,EAAA9H,OAKA4G,EAAA1C,EAAAM,EAAAS,IACK+C,GAAAL,gBAQL9I,GAAApK,GAAAkT,aAAAjC,UAAA,UACAzG,cAAA,EACA+V,IAAA5L,IA2CA3U,GAAAkT,aAAAjC,UAAAwlB,cAAA,SAAApsB,GACA,GAAA+I,GAAA,OAAAjT,MAAA,WAAAiP,GAAA,OAAAjP,OAAAoM,EAAApM,KACA,KAAAiT,MAAA,wCAAA/G,WAAA,mFAEA,IAAA1C,GAAAI,OAAAM,EACA,OAAA4K,GAAA9U,KAAAwJ,GAocA,IAAAyM,KACAsgB,MAAA,yCACAC,SAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,UAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,SAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAvxB,MAAA,yCACAwxB,MAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,SAAA,yCACAC,MAAA,yCACAC,MAAA,yCACAC,MAAA,yCAgBA1tB,IAAApK,GAAAkT,aAAAjC,UAAA,mBACAzG,cAAA,EACAD,UAAA,EACAF,MAAA,WACA,GAAA4R,GAAA,OACA8b,EAAA,GAAA/tB,GACA2W,GAAA,4MACAvN,EAAA,OAAAjT,MAAA,WAAAiP,GAAA,OAAAjP,OAAAoM,EAAApM,KAGA,KAAAiT,MAAA,wCAAA/G,WAAA,qFAEA,QAAAV,GAAA,EAAAiC,EAAA+S,EAAAhW,OAA2CgB,EAAAiC,EAASjC,IACpDxB,GAAAjK,KAAAkT,EAAA6I,EAAA,KAAA0E,EAAAhV,GAAA,QAAAosB,EAAApX,EAAAhV,KAAsFtB,MAAA+I,EAAA6I,GAAA1R,UAAA,EAAAC,cAAA,EAAAF,YAAA,GAGtF,OAAAoC,OAA2BqrB,KAO3B,IAAAhd,IAAA,4KAEAjB,GAAA,qCAIAe,GAAA,kBAEA3B,IAAA,0DACAH,IAAA,kDA2SAiG,GAAAtS,GAAA,MAAkCzI,UAAWrD,WAAWG,WAuCxDqJ,IAAApK,GAAA,kBACAwK,cAAA,EACAD,UAAA,EACAF,MAAAqR,IAIAtR,GAAAsR,EAAA,aACAnR,UAAA,GAuPA,IAAA2R,KACA5B,SAAA,yBACAN,KAAA,yBACAC,MAAA,qBACAE,OAAA,6CACAE,KAAA,qBACAE,MAAA,qBACAC,QAAA,qBACAC,QAAA,qBACAC,cAAA,gBAoWAnH,IAAAqI,gBACA0a,0BACAC,6BAAA,WACAC,qBAQApsB,GAAApK,GAAA4b,eAAA,sBACApR,cAAA,EACAD,UAAA,EACAF,MAAA2K,GAAA9U,KAAA,SAAA0O,GAGA,IAAAzE,GAAAjK,KAAAC,KAAA,iCAAAkM,WAAA,4CAGA,IAAAgH,GAAAtI,IAIAyF,EAAA9F,UAAA,GAOA+E,EAAAtP,KAAA,wBAKA4P,EAAApB,EAAAC,EAQA,OALAyE,GAAApH,IAAAmB,KAAAiG,EAAA9H,OAKA4G,EAAA1C,EAAAM,EAAAS,IACK+C,GAAAL,gBAQL9I,GAAApK,GAAA4b,eAAA3K,UAAA,UACAzG,cAAA,EACA+V,IAAA7D,IAGAtS,GAAApK,GAAA4b,eAAA3K,UAAA,iBACAzG,cAAA,EACA+V,IAAAnC,IAgUAhU,GAAApK,GAAA4b,eAAA3K,UAAA,mBACA1G,UAAA,EACAC,cAAA,EACAH,MAAA,WACA,GAAA4R,GAAA,OACA8b,EAAA,GAAA/tB,GACA2W,GAAA,wIACAvN,EAAA,OAAAjT,MAAA,WAAAiP,GAAA,OAAAjP,OAAAoM,EAAApM,KAGA,KAAAiT,MAAA,0CAAA/G,WAAA,uFAEA,QAAAV,GAAA,EAAAiC,EAAA+S,EAAAhW,OAA2CgB,EAAAiC,EAASjC,IACpDxB,GAAAjK,KAAAkT,EAAA6I,EAAA,KAAA0E,EAAAhV,GAAA,QAAAosB,EAAApX,EAAAhV,KAAsFtB,MAAA+I,EAAA6I,GAAA1R,UAAA,EAAAC,cAAA,EAAAF,YAAA,GAGtF,OAAAoC,OAA2BqrB,KAI3B,IAAAC,IAAAh4B,GAAAi4B,yBACAluB,UACAkU,QAOA+Z,IAAAjuB,OAAAmuB,eAAA,WAEA,uBAAA5rB,OAAA2E,UAAA0L,SAAAzc,KAAAC,MAAA,SAAAkM,WAAA,sEAUA,OAAAyI,GAAA,GAAA9B,GAAAtI,UAAA,GAAAA,UAAA,IAAAvK,OAOA63B,GAAA/Z,KAAAia,eAAA,WAEA,qBAAA5rB,OAAA2E,UAAA0L,SAAAzc,KAAAC,MAAA,SAAAkM,WAAA,2EAGA,IAAA1C,IAAAxJ,IAGA,IAAA4S,MAAApJ,GAAA,oBAGA,IAAAiF,GAAAlE,UAAA,GAGA8F,EAAA9F,UAAA,EAIA8F,GAAAsL,EAAAtL,EAAA,YAKA,IAAAqL,GAAA,GAAAH,GAAA9M,EAAA4B,EAIA,OAAA2N,GAAAtC,EAAAlS,IAOAquB,GAAA/Z,KAAAka,mBAAA,WAEA,qBAAA7rB,OAAA2E,UAAA0L,SAAAzc,KAAAC,MAAA,SAAAkM,WAAA,+EAGA,IAAA1C,IAAAxJ,IAGA,IAAA4S,MAAApJ,GAAA,oBAGA,IAAAiF,GAAAlE,UAAA,GAIA8F,EAAA9F,UAAA,EAIA8F,GAAAsL,EAAAtL,EAAA,cAKA,IAAAqL,GAAA,GAAAH,GAAA9M,EAAA4B,EAIA,OAAA2N,GAAAtC,EAAAlS,IAOAquB,GAAA/Z,KAAAma,mBAAA,WAEA,qBAAA9rB,OAAA2E,UAAA0L,SAAAzc,KAAAC,MAAA,SAAAkM,WAAA,+EAGA,IAAA1C,IAAAxJ,IAGA,IAAA4S,MAAApJ,GAAA,oBAGA,IAAAiF,GAAAlE,UAAA,GAGA8F,EAAA9F,UAAA,EAIA8F,GAAAsL,EAAAtL,EAAA,cAKA,IAAAqL,GAAA,GAAAH,GAAA9M,EAAA4B,EAIA,OAAA2N,GAAAtC,EAAAlS,IAGAS,GAAApK,GAAA,oCACAuK,UAAA,EACAC,cAAA,EACAH,MAAA,WACAD,GAAAL,OAAAkH,UAAA,kBAA4D1G,UAAA,EAAAC,cAAA,EAAAH,MAAA2tB,GAAAjuB,OAAAmuB,iBAE5D9tB,GAAA6T,KAAAhN,UAAA,kBAA0D1G,UAAA,EAAAC,cAAA,EAAAH,MAAA2tB,GAAA/Z,KAAAia,gBAE1D,QAAAhuB,KAAA8tB,IAAA/Z,KACA9T,GAAAjK,KAAA83B,GAAA/Z,KAAA/T,IAAAE,GAAA6T,KAAAhN,UAAA/G,GAAyEK,UAAA,EAAAC,cAAA,EAAAH,MAAA2tB,GAAA/Z,KAAA/T,QAUzEE,GAAApK,GAAA,mBACAqK,MAAA,SAAAgL,GACA,IAAAnI,EAAAmI,EAAA/U,QAAA,SAAAqV,OAAA,kEAEAkK,GAAAxK,IAAA/U,WAgCAX,EAAAC,QAAAI,IJ8CMq4B,IACN","file":"1.1.js","sourcesContent":["webpackJsonp([1],{\n\n/***/ 324:\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {// Expose `IntlPolyfill` as global to add locale data into runtime later on.\n\tglobal.IntlPolyfill = __webpack_require__(888);\n\t\n\t// Require all locale data for `Intl`. This module will be\n\t// ignored when bundling for the browser with Browserify/Webpack.\n\t__webpack_require__(889);\n\t\n\t// hack to export the polyfill as global Intl if needed\n\tif (!global.Intl) {\n\t global.Intl = global.IntlPolyfill;\n\t global.IntlPolyfill.__applyLocaleSensitivePrototypes();\n\t}\n\t\n\t// providing an idiomatic api for the nodejs version of this module\n\tmodule.exports = global.IntlPolyfill;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n\n/***/ 325:\n/***/ function(module, exports) {\n\n\tIntlPolyfill.__addLocaleData({locale:\"en\",date:{ca:[\"gregory\",\"buddhist\",\"chinese\",\"coptic\",\"dangi\",\"ethioaa\",\"ethiopic\",\"generic\",\"hebrew\",\"indian\",\"islamic\",\"islamicc\",\"japanese\",\"persian\",\"roc\"],hourNo0:true,hour12:true,formats:{short:\"{1}, {0}\",medium:\"{1}, {0}\",full:\"{1} 'at' {0}\",long:\"{1} 'at' {0}\",availableFormats:{\"d\":\"d\",\"E\":\"ccc\",Ed:\"d E\",Ehm:\"E h:mm a\",EHm:\"E HH:mm\",Ehms:\"E h:mm:ss a\",EHms:\"E HH:mm:ss\",Gy:\"y G\",GyMMM:\"MMM y G\",GyMMMd:\"MMM d, y G\",GyMMMEd:\"E, MMM d, y G\",\"h\":\"h a\",\"H\":\"HH\",hm:\"h:mm a\",Hm:\"HH:mm\",hms:\"h:mm:ss a\",Hms:\"HH:mm:ss\",hmsv:\"h:mm:ss a v\",Hmsv:\"HH:mm:ss v\",hmv:\"h:mm a v\",Hmv:\"HH:mm v\",\"M\":\"L\",Md:\"M/d\",MEd:\"E, M/d\",MMM:\"LLL\",MMMd:\"MMM d\",MMMEd:\"E, MMM d\",MMMMd:\"MMMM d\",ms:\"mm:ss\",\"y\":\"y\",yM:\"M/y\",yMd:\"M/d/y\",yMEd:\"E, M/d/y\",yMMM:\"MMM y\",yMMMd:\"MMM d, y\",yMMMEd:\"E, MMM d, y\",yMMMM:\"MMMM y\",yQQQ:\"QQQ y\",yQQQQ:\"QQQQ y\"},dateFormats:{yMMMMEEEEd:\"EEEE, MMMM d, y\",yMMMMd:\"MMMM d, y\",yMMMd:\"MMM d, y\",yMd:\"M/d/yy\"},timeFormats:{hmmsszzzz:\"h:mm:ss a zzzz\",hmsz:\"h:mm:ss a z\",hms:\"h:mm:ss a\",hm:\"h:mm a\"}},calendars:{buddhist:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"BE\"],short:[\"BE\"],long:[\"BE\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},chinese:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Mo1\",\"Mo2\",\"Mo3\",\"Mo4\",\"Mo5\",\"Mo6\",\"Mo7\",\"Mo8\",\"Mo9\",\"Mo10\",\"Mo11\",\"Mo12\"],long:[\"Month1\",\"Month2\",\"Month3\",\"Month4\",\"Month5\",\"Month6\",\"Month7\",\"Month8\",\"Month9\",\"Month10\",\"Month11\",\"Month12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},coptic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"],long:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},dangi:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Mo1\",\"Mo2\",\"Mo3\",\"Mo4\",\"Mo5\",\"Mo6\",\"Mo7\",\"Mo8\",\"Mo9\",\"Mo10\",\"Mo11\",\"Mo12\"],long:[\"Month1\",\"Month2\",\"Month3\",\"Month4\",\"Month5\",\"Month6\",\"Month7\",\"Month8\",\"Month9\",\"Month10\",\"Month11\",\"Month12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethiopic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethioaa:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\"],short:[\"ERA0\"],long:[\"ERA0\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},generic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"],long:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},gregory:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"B\",\"A\",\"BCE\",\"CE\"],short:[\"BC\",\"AD\",\"BCE\",\"CE\"],long:[\"Before Christ\",\"Anno Domini\",\"Before Common Era\",\"Common Era\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},hebrew:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"7\"],short:[\"Tishri\",\"Heshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar I\",\"Adar\",\"Nisan\",\"Iyar\",\"Sivan\",\"Tamuz\",\"Av\",\"Elul\",\"Adar II\"],long:[\"Tishri\",\"Heshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar I\",\"Adar\",\"Nisan\",\"Iyar\",\"Sivan\",\"Tamuz\",\"Av\",\"Elul\",\"Adar II\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AM\"],short:[\"AM\"],long:[\"AM\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},indian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"],long:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Saka\"],short:[\"Saka\"],long:[\"Saka\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Muh.\",\"Saf.\",\"Rab. I\",\"Rab. II\",\"Jum. I\",\"Jum. II\",\"Raj.\",\"Sha.\",\"Ram.\",\"Shaw.\",\"Dhuʻl-Q.\",\"Dhuʻl-H.\"],long:[\"Muharram\",\"Safar\",\"Rabiʻ I\",\"Rabiʻ II\",\"Jumada I\",\"Jumada II\",\"Rajab\",\"Shaʻban\",\"Ramadan\",\"Shawwal\",\"Dhuʻl-Qiʻdah\",\"Dhuʻl-Hijjah\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamicc:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Muh.\",\"Saf.\",\"Rab. I\",\"Rab. II\",\"Jum. I\",\"Jum. II\",\"Raj.\",\"Sha.\",\"Ram.\",\"Shaw.\",\"Dhuʻl-Q.\",\"Dhuʻl-H.\"],long:[\"Muharram\",\"Safar\",\"Rabiʻ I\",\"Rabiʻ II\",\"Jumada I\",\"Jumada II\",\"Rajab\",\"Shaʻban\",\"Ramadan\",\"Shawwal\",\"Dhuʻl-Qiʻdah\",\"Dhuʻl-Hijjah\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},japanese:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"M\",\"T\",\"S\",\"H\"],short:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"],long:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},persian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"],long:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AP\"],short:[\"AP\"],long:[\"AP\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},roc:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Before R.O.C.\",\"Minguo\"],short:[\"Before R.O.C.\",\"Minguo\"],long:[\"Before R.O.C.\",\"Minguo\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}}}},number:{nu:[\"latn\"],patterns:{decimal:{positivePattern:\"{number}\",negativePattern:\"{minusSign}{number}\"},currency:{positivePattern:\"{currency}{number}\",negativePattern:\"{minusSign}{currency}{number}\"},percent:{positivePattern:\"{number}{percentSign}\",negativePattern:\"{minusSign}{number}{percentSign}\"}},symbols:{latn:{decimal:\".\",group:\",\",nan:\"NaN\",plusSign:\"+\",minusSign:\"-\",percentSign:\"%\",infinity:\"∞\"}},currencies:{AUD:\"A$\",BRL:\"R$\",CAD:\"CA$\",CNY:\"CN¥\",EUR:\"€\",GBP:\"£\",HKD:\"HK$\",ILS:\"₪\",INR:\"₹\",JPY:\"¥\",KRW:\"₩\",MXN:\"MX$\",NZD:\"NZ$\",TWD:\"NT$\",USD:\"$\",VND:\"₫\",XAF:\"FCFA\",XCD:\"EC$\",XOF:\"CFA\",XPF:\"CFPF\"}}});\n\n/***/ },\n\n/***/ 326:\n/***/ function(module, exports) {\n\n\tIntlPolyfill.__addLocaleData({locale:\"fr\",date:{ca:[\"gregory\",\"buddhist\",\"chinese\",\"coptic\",\"dangi\",\"ethioaa\",\"ethiopic\",\"generic\",\"hebrew\",\"indian\",\"islamic\",\"islamicc\",\"japanese\",\"persian\",\"roc\"],hourNo0:true,hour12:false,formats:{short:\"{1} {0}\",medium:\"{1} 'à' {0}\",full:\"{1} 'à' {0}\",long:\"{1} 'à' {0}\",availableFormats:{\"d\":\"d\",\"E\":\"E\",Ed:\"E d\",Ehm:\"E h:mm a\",EHm:\"E HH:mm\",Ehms:\"E h:mm:ss a\",EHms:\"E HH:mm:ss\",Gy:\"y G\",GyMMM:\"MMM y G\",GyMMMd:\"d MMM y G\",GyMMMEd:\"E d MMM y G\",\"h\":\"h a\",\"H\":\"HH 'h'\",hm:\"h:mm a\",Hm:\"HH:mm\",hms:\"h:mm:ss a\",Hms:\"HH:mm:ss\",hmsv:\"h:mm:ss a v\",Hmsv:\"HH:mm:ss v\",hmv:\"h:mm a v\",Hmv:\"HH:mm v\",\"M\":\"L\",Md:\"dd/MM\",MEd:\"E dd/MM\",MMM:\"LLL\",MMMd:\"d MMM\",MMMEd:\"E d MMM\",MMMMd:\"d MMMM\",ms:\"mm:ss\",\"y\":\"y\",yM:\"MM/y\",yMd:\"dd/MM/y\",yMEd:\"E dd/MM/y\",yMMM:\"MMM y\",yMMMd:\"d MMM y\",yMMMEd:\"E d MMM y\",yMMMM:\"MMMM y\",yQQQ:\"QQQ y\",yQQQQ:\"QQQQ y\"},dateFormats:{yMMMMEEEEd:\"EEEE d MMMM y\",yMMMMd:\"d MMMM y\",yMMMd:\"d MMM y\",yMd:\"dd/MM/y\"},timeFormats:{hmmsszzzz:\"HH:mm:ss zzzz\",hmsz:\"HH:mm:ss z\",hms:\"HH:mm:ss\",hm:\"HH:mm\"}},calendars:{buddhist:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"E.B.\"],short:[\"ère b.\"],long:[\"ère bouddhiste\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},chinese:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"1yuè\",\"2yuè\",\"3yuè\",\"4yuè\",\"5yuè\",\"6yuè\",\"7yuè\",\"8yuè\",\"9yuè\",\"10yuè\",\"11yuè\",\"12yuè\"],long:[\"zhēngyuè\",\"èryuè\",\"sānyuè\",\"sìyuè\",\"wǔyuè\",\"liùyuè\",\"qīyuè\",\"bāyuè\",\"jiǔyuè\",\"shíyuè\",\"shíyīyuè\",\"shí’èryuè\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},coptic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"],long:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},dangi:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"1yuè\",\"2yuè\",\"3yuè\",\"4yuè\",\"5yuè\",\"6yuè\",\"7yuè\",\"8yuè\",\"9yuè\",\"10yuè\",\"11yuè\",\"12yuè\"],long:[\"zhēngyuè\",\"èryuè\",\"sānyuè\",\"sìyuè\",\"wǔyuè\",\"liùyuè\",\"qīyuè\",\"bāyuè\",\"jiǔyuè\",\"shíyuè\",\"shíyīyuè\",\"shí’èryuè\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethiopic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethioaa:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\"],short:[\"ERA0\"],long:[\"ERA0\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},generic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"],long:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},gregory:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"av. J.-C.\",\"ap. J.-C.\",\"AEC\",\"EC\"],short:[\"av. J.-C.\",\"ap. J.-C.\",\"AEC\",\"EC\"],long:[\"avant Jésus-Christ\",\"après Jésus-Christ\",\"avant l’ère commune\",\"de l’ère commune\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},hebrew:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"7\"],short:[\"Tisseri\",\"Hesvan\",\"Kislev\",\"Tébeth\",\"Schébat\",\"Adar I\",\"Adar\",\"Nissan\",\"Iyar\",\"Sivan\",\"Tamouz\",\"Ab\",\"Elloul\",\"Adar II\"],long:[\"Tisseri\",\"Hesvan\",\"Kislev\",\"Tébeth\",\"Schébat\",\"Adar I\",\"Adar\",\"Nissan\",\"Iyar\",\"Sivan\",\"Tamouz\",\"Ab\",\"Elloul\",\"Adar II\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AM\"],short:[\"AM\"],long:[\"AM\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},indian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"],long:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"Saka\"],short:[\"Saka\"],long:[\"Saka\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"mouh.\",\"saf.\",\"rab. aw.\",\"rab. th.\",\"joum. oul.\",\"joum. tha.\",\"raj.\",\"chaa.\",\"ram.\",\"chaw.\",\"dhou. q.\",\"dhou. h.\"],long:[\"mouharram\",\"safar\",\"rabia al awal\",\"rabia ath-thani\",\"joumada al oula\",\"joumada ath-thania\",\"rajab\",\"chaabane\",\"ramadan\",\"chawwal\",\"dhou al qi`da\",\"dhou al-hijja\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamicc:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"mouh.\",\"saf.\",\"rab. aw.\",\"rab. th.\",\"joum. oul.\",\"joum. tha.\",\"raj.\",\"chaa.\",\"ram.\",\"chaw.\",\"dhou. q.\",\"dhou. h.\"],long:[\"mouharram\",\"safar\",\"rabia al awal\",\"rabia ath-thani\",\"joumada al oula\",\"joumada ath-thania\",\"rajab\",\"chaabane\",\"ramadan\",\"chawwal\",\"dhou al qi`da\",\"dhou al-hijja\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},japanese:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"M\",\"T\",\"S\",\"H\"],short:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"],long:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},persian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"],long:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AP\"],short:[\"AP\"],long:[\"AP\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},roc:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"avant RdC\",\"RdC\"],short:[\"avant RdC\",\"RdC\"],long:[\"avant RdC\",\"RdC\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}}}},number:{nu:[\"latn\"],patterns:{decimal:{positivePattern:\"{number}\",negativePattern:\"{minusSign}{number}\"},currency:{positivePattern:\"{number} {currency}\",negativePattern:\"{minusSign}{number} {currency}\"},percent:{positivePattern:\"{number} {percentSign}\",negativePattern:\"{minusSign}{number} {percentSign}\"}},symbols:{latn:{decimal:\",\",group:\" \",nan:\"NaN\",plusSign:\"+\",minusSign:\"-\",percentSign:\"%\",infinity:\"∞\"}},currencies:{ARS:\"$AR\",AUD:\"$AU\",BEF:\"FB\",BMD:\"$BM\",BND:\"$BN\",BRL:\"R$\",BSD:\"$BS\",BZD:\"$BZ\",CAD:\"$CA\",CLP:\"$CL\",COP:\"$CO\",CYP:\"£CY\",EUR:\"€\",FJD:\"$FJ\",FKP:\"£FK\",FRF:\"F\",GBP:\"£GB\",GIP:\"£GI\",IEP:\"£IE\",ILP:\"£IL\",ILS:\"₪\",INR:\"₹\",ITL:\"₤IT\",KRW:\"₩\",LBP:\"£LB\",MTP:\"£MT\",MXN:\"$MX\",NAD:\"$NA\",NZD:\"$NZ\",RHD:\"$RH\",SBD:\"$SB\",SGD:\"$SG\",SRD:\"$SR\",TTD:\"$TT\",USD:\"$US\",UYU:\"$UY\",VND:\"₫\",WST:\"WS$\",XAF:\"FCFA\",XOF:\"CFA\",XPF:\"FCFP\"}}});\n\n/***/ },\n\n/***/ 888:\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar babelHelpers = {};\n\tbabelHelpers.typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n\t return typeof obj;\n\t} : function (obj) {\n\t return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n\t};\n\tbabelHelpers;\n\t\n\tvar realDefineProp = function () {\n\t var sentinel = {};\n\t try {\n\t Object.defineProperty(sentinel, 'a', {});\n\t return 'a' in sentinel;\n\t } catch (e) {\n\t return false;\n\t }\n\t}();\n\t\n\t// Need a workaround for getters in ES3\n\tvar es3 = !realDefineProp && !Object.prototype.__defineGetter__;\n\t\n\t// We use this a lot (and need it for proto-less objects)\n\tvar hop = Object.prototype.hasOwnProperty;\n\t\n\t// Naive defineProperty for compatibility\n\tvar defineProperty = realDefineProp ? Object.defineProperty : function (obj, name, desc) {\n\t if ('get' in desc && obj.__defineGetter__) obj.__defineGetter__(name, desc.get);else if (!hop.call(obj, name) || 'value' in desc) obj[name] = desc.value;\n\t};\n\t\n\t// Array.prototype.indexOf, as good as we need it to be\n\tvar arrIndexOf = Array.prototype.indexOf || function (search) {\n\t /*jshint validthis:true */\n\t var t = this;\n\t if (!t.length) return -1;\n\t\n\t for (var i = arguments[1] || 0, max = t.length; i < max; i++) {\n\t if (t[i] === search) return i;\n\t }\n\t\n\t return -1;\n\t};\n\t\n\t// Create an object with the specified prototype (2nd arg required for Record)\n\tvar objCreate = Object.create || function (proto, props) {\n\t var obj = void 0;\n\t\n\t function F() {}\n\t F.prototype = proto;\n\t obj = new F();\n\t\n\t for (var k in props) {\n\t if (hop.call(props, k)) defineProperty(obj, k, props[k]);\n\t }\n\t\n\t return obj;\n\t};\n\t\n\t// Snapshot some (hopefully still) native built-ins\n\tvar arrSlice = Array.prototype.slice;\n\tvar arrConcat = Array.prototype.concat;\n\tvar arrPush = Array.prototype.push;\n\tvar arrJoin = Array.prototype.join;\n\tvar arrShift = Array.prototype.shift;\n\t\n\t// Naive Function.prototype.bind for compatibility\n\tvar fnBind = Function.prototype.bind || function (thisObj) {\n\t var fn = this,\n\t args = arrSlice.call(arguments, 1);\n\t\n\t // All our (presently) bound functions have either 1 or 0 arguments. By returning\n\t // different function signatures, we can pass some tests in ES3 environments\n\t if (fn.length === 1) {\n\t return function () {\n\t return fn.apply(thisObj, arrConcat.call(args, arrSlice.call(arguments)));\n\t };\n\t }\n\t return function () {\n\t return fn.apply(thisObj, arrConcat.call(args, arrSlice.call(arguments)));\n\t };\n\t};\n\t\n\t// Object housing internal properties for constructors\n\tvar internals = objCreate(null);\n\t\n\t// Keep internal properties internal\n\tvar secret = Math.random();\n\t\n\t// Helper functions\n\t// ================\n\t\n\t/**\n\t * A function to deal with the inaccuracy of calculating log10 in pre-ES6\n\t * JavaScript environments. Math.log(num) / Math.LN10 was responsible for\n\t * causing issue #62.\n\t */\n\tfunction log10Floor(n) {\n\t // ES6 provides the more accurate Math.log10\n\t if (typeof Math.log10 === 'function') return Math.floor(Math.log10(n));\n\t\n\t var x = Math.round(Math.log(n) * Math.LOG10E);\n\t return x - (Number('1e' + x) > n);\n\t}\n\t\n\t/**\n\t * A map that doesn't contain Object in its prototype chain\n\t */\n\tfunction Record(obj) {\n\t // Copy only own properties over unless this object is already a Record instance\n\t for (var k in obj) {\n\t if (obj instanceof Record || hop.call(obj, k)) defineProperty(this, k, { value: obj[k], enumerable: true, writable: true, configurable: true });\n\t }\n\t}\n\tRecord.prototype = objCreate(null);\n\t\n\t/**\n\t * An ordered list\n\t */\n\tfunction List() {\n\t defineProperty(this, 'length', { writable: true, value: 0 });\n\t\n\t if (arguments.length) arrPush.apply(this, arrSlice.call(arguments));\n\t}\n\tList.prototype = objCreate(null);\n\t\n\t/**\n\t * Constructs a regular expression to restore tainted RegExp properties\n\t */\n\tfunction createRegExpRestore() {\n\t var esc = /[.?*+^$[\\]\\\\(){}|-]/g,\n\t lm = RegExp.lastMatch || '',\n\t ml = RegExp.multiline ? 'm' : '',\n\t ret = { input: RegExp.input },\n\t reg = new List(),\n\t has = false,\n\t cap = {};\n\t\n\t // Create a snapshot of all the 'captured' properties\n\t for (var i = 1; i <= 9; i++) {\n\t has = (cap['$' + i] = RegExp['$' + i]) || has;\n\t } // Now we've snapshotted some properties, escape the lastMatch string\n\t lm = lm.replace(esc, '\\\\$&');\n\t\n\t // If any of the captured strings were non-empty, iterate over them all\n\t if (has) {\n\t for (var _i = 1; _i <= 9; _i++) {\n\t var m = cap['$' + _i];\n\t\n\t // If it's empty, add an empty capturing group\n\t if (!m) lm = '()' + lm;\n\t\n\t // Else find the string in lm and escape & wrap it to capture it\n\t else {\n\t m = m.replace(esc, '\\\\$&');\n\t lm = lm.replace(m, '(' + m + ')');\n\t }\n\t\n\t // Push it to the reg and chop lm to make sure further groups come after\n\t arrPush.call(reg, lm.slice(0, lm.indexOf('(') + 1));\n\t lm = lm.slice(lm.indexOf('(') + 1);\n\t }\n\t }\n\t\n\t // Create the regular expression that will reconstruct the RegExp properties\n\t ret.exp = new RegExp(arrJoin.call(reg, '') + lm, ml);\n\t\n\t return ret;\n\t}\n\t\n\t/**\n\t * Mimics ES5's abstract ToObject() function\n\t */\n\tfunction toObject(arg) {\n\t if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\t\n\t return Object(arg);\n\t}\n\t\n\t/**\n\t * Returns \"internal\" properties for an object\n\t */\n\tfunction getInternalProperties(obj) {\n\t if (hop.call(obj, '__getInternalProperties')) return obj.__getInternalProperties(secret);\n\t\n\t return objCreate(null);\n\t}\n\t\n\t/**\n\t* Defines regular expressions for various operations related to the BCP 47 syntax,\n\t* as defined at http://tools.ietf.org/html/bcp47#section-2.1\n\t*/\n\t\n\t// extlang = 3ALPHA ; selected ISO 639 codes\n\t// *2(\"-\" 3ALPHA) ; permanently reserved\n\tvar extlang = '[a-z]{3}(?:-[a-z]{3}){0,2}';\n\t\n\t// language = 2*3ALPHA ; shortest ISO 639 code\n\t// [\"-\" extlang] ; sometimes followed by\n\t// ; extended language subtags\n\t// / 4ALPHA ; or reserved for future use\n\t// / 5*8ALPHA ; or registered language subtag\n\tvar language = '(?:[a-z]{2,3}(?:-' + extlang + ')?|[a-z]{4}|[a-z]{5,8})';\n\t\n\t// script = 4ALPHA ; ISO 15924 code\n\tvar script = '[a-z]{4}';\n\t\n\t// region = 2ALPHA ; ISO 3166-1 code\n\t// / 3DIGIT ; UN M.49 code\n\tvar region = '(?:[a-z]{2}|\\\\d{3})';\n\t\n\t// variant = 5*8alphanum ; registered variants\n\t// / (DIGIT 3alphanum)\n\tvar variant = '(?:[a-z0-9]{5,8}|\\\\d[a-z0-9]{3})';\n\t\n\t// ; Single alphanumerics\n\t// ; \"x\" reserved for private use\n\t// singleton = DIGIT ; 0 - 9\n\t// / %x41-57 ; A - W\n\t// / %x59-5A ; Y - Z\n\t// / %x61-77 ; a - w\n\t// / %x79-7A ; y - z\n\tvar singleton = '[0-9a-wy-z]';\n\t\n\t// extension = singleton 1*(\"-\" (2*8alphanum))\n\tvar extension = singleton + '(?:-[a-z0-9]{2,8})+';\n\t\n\t// privateuse = \"x\" 1*(\"-\" (1*8alphanum))\n\tvar privateuse = 'x(?:-[a-z0-9]{1,8})+';\n\t\n\t// irregular = \"en-GB-oed\" ; irregular tags do not match\n\t// / \"i-ami\" ; the 'langtag' production and\n\t// / \"i-bnn\" ; would not otherwise be\n\t// / \"i-default\" ; considered 'well-formed'\n\t// / \"i-enochian\" ; These tags are all valid,\n\t// / \"i-hak\" ; but most are deprecated\n\t// / \"i-klingon\" ; in favor of more modern\n\t// / \"i-lux\" ; subtags or subtag\n\t// / \"i-mingo\" ; combination\n\t// / \"i-navajo\"\n\t// / \"i-pwn\"\n\t// / \"i-tao\"\n\t// / \"i-tay\"\n\t// / \"i-tsu\"\n\t// / \"sgn-BE-FR\"\n\t// / \"sgn-BE-NL\"\n\t// / \"sgn-CH-DE\"\n\tvar irregular = '(?:en-GB-oed' + '|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)' + '|sgn-(?:BE-FR|BE-NL|CH-DE))';\n\t\n\t// regular = \"art-lojban\" ; these tags match the 'langtag'\n\t// / \"cel-gaulish\" ; production, but their subtags\n\t// / \"no-bok\" ; are not extended language\n\t// / \"no-nyn\" ; or variant subtags: their meaning\n\t// / \"zh-guoyu\" ; is defined by their registration\n\t// / \"zh-hakka\" ; and all of these are deprecated\n\t// / \"zh-min\" ; in favor of a more modern\n\t// / \"zh-min-nan\" ; subtag or sequence of subtags\n\t// / \"zh-xiang\"\n\tvar regular = '(?:art-lojban|cel-gaulish|no-bok|no-nyn' + '|zh-(?:guoyu|hakka|min|min-nan|xiang))';\n\t\n\t// grandfathered = irregular ; non-redundant tags registered\n\t// / regular ; during the RFC 3066 era\n\tvar grandfathered = '(?:' + irregular + '|' + regular + ')';\n\t\n\t// langtag = language\n\t// [\"-\" script]\n\t// [\"-\" region]\n\t// *(\"-\" variant)\n\t// *(\"-\" extension)\n\t// [\"-\" privateuse]\n\tvar langtag = language + '(?:-' + script + ')?(?:-' + region + ')?(?:-' + variant + ')*(?:-' + extension + ')*(?:-' + privateuse + ')?';\n\t\n\t// Language-Tag = langtag ; normal language tags\n\t// / privateuse ; private use tag\n\t// / grandfathered ; grandfathered tags\n\tvar expBCP47Syntax = RegExp('^(?:' + langtag + '|' + privateuse + '|' + grandfathered + ')$', 'i');\n\t\n\t// Match duplicate variants in a language tag\n\tvar expVariantDupes = RegExp('^(?!x).*?-(' + variant + ')-(?:\\\\w{4,8}-(?!x-))*\\\\1\\\\b', 'i');\n\t\n\t// Match duplicate singletons in a language tag (except in private use)\n\tvar expSingletonDupes = RegExp('^(?!x).*?-(' + singleton + ')-(?:\\\\w+-(?!x-))*\\\\1\\\\b', 'i');\n\t\n\t// Match all extension sequences\n\tvar expExtSequences = RegExp('-' + extension, 'ig');\n\t\n\t// Default locale is the first-added locale data for us\n\tvar defaultLocale = void 0;\n\tfunction setDefaultLocale(locale) {\n\t defaultLocale = locale;\n\t}\n\t\n\t// IANA Subtag Registry redundant tag and subtag maps\n\tvar redundantTags = {\n\t tags: {\n\t \"art-lojban\": \"jbo\",\n\t \"i-ami\": \"ami\",\n\t \"i-bnn\": \"bnn\",\n\t \"i-hak\": \"hak\",\n\t \"i-klingon\": \"tlh\",\n\t \"i-lux\": \"lb\",\n\t \"i-navajo\": \"nv\",\n\t \"i-pwn\": \"pwn\",\n\t \"i-tao\": \"tao\",\n\t \"i-tay\": \"tay\",\n\t \"i-tsu\": \"tsu\",\n\t \"no-bok\": \"nb\",\n\t \"no-nyn\": \"nn\",\n\t \"sgn-BE-FR\": \"sfb\",\n\t \"sgn-BE-NL\": \"vgt\",\n\t \"sgn-CH-DE\": \"sgg\",\n\t \"zh-guoyu\": \"cmn\",\n\t \"zh-hakka\": \"hak\",\n\t \"zh-min-nan\": \"nan\",\n\t \"zh-xiang\": \"hsn\",\n\t \"sgn-BR\": \"bzs\",\n\t \"sgn-CO\": \"csn\",\n\t \"sgn-DE\": \"gsg\",\n\t \"sgn-DK\": \"dsl\",\n\t \"sgn-ES\": \"ssp\",\n\t \"sgn-FR\": \"fsl\",\n\t \"sgn-GB\": \"bfi\",\n\t \"sgn-GR\": \"gss\",\n\t \"sgn-IE\": \"isg\",\n\t \"sgn-IT\": \"ise\",\n\t \"sgn-JP\": \"jsl\",\n\t \"sgn-MX\": \"mfs\",\n\t \"sgn-NI\": \"ncs\",\n\t \"sgn-NL\": \"dse\",\n\t \"sgn-NO\": \"nsl\",\n\t \"sgn-PT\": \"psr\",\n\t \"sgn-SE\": \"swl\",\n\t \"sgn-US\": \"ase\",\n\t \"sgn-ZA\": \"sfs\",\n\t \"zh-cmn\": \"cmn\",\n\t \"zh-cmn-Hans\": \"cmn-Hans\",\n\t \"zh-cmn-Hant\": \"cmn-Hant\",\n\t \"zh-gan\": \"gan\",\n\t \"zh-wuu\": \"wuu\",\n\t \"zh-yue\": \"yue\"\n\t },\n\t subtags: {\n\t BU: \"MM\",\n\t DD: \"DE\",\n\t FX: \"FR\",\n\t TP: \"TL\",\n\t YD: \"YE\",\n\t ZR: \"CD\",\n\t heploc: \"alalc97\",\n\t 'in': \"id\",\n\t iw: \"he\",\n\t ji: \"yi\",\n\t jw: \"jv\",\n\t mo: \"ro\",\n\t ayx: \"nun\",\n\t bjd: \"drl\",\n\t ccq: \"rki\",\n\t cjr: \"mom\",\n\t cka: \"cmr\",\n\t cmk: \"xch\",\n\t drh: \"khk\",\n\t drw: \"prs\",\n\t gav: \"dev\",\n\t hrr: \"jal\",\n\t ibi: \"opa\",\n\t kgh: \"kml\",\n\t lcq: \"ppr\",\n\t mst: \"mry\",\n\t myt: \"mry\",\n\t sca: \"hle\",\n\t tie: \"ras\",\n\t tkk: \"twm\",\n\t tlw: \"weo\",\n\t tnf: \"prs\",\n\t ybd: \"rki\",\n\t yma: \"lrr\"\n\t },\n\t extLang: {\n\t aao: [\"aao\", \"ar\"],\n\t abh: [\"abh\", \"ar\"],\n\t abv: [\"abv\", \"ar\"],\n\t acm: [\"acm\", \"ar\"],\n\t acq: [\"acq\", \"ar\"],\n\t acw: [\"acw\", \"ar\"],\n\t acx: [\"acx\", \"ar\"],\n\t acy: [\"acy\", \"ar\"],\n\t adf: [\"adf\", \"ar\"],\n\t ads: [\"ads\", \"sgn\"],\n\t aeb: [\"aeb\", \"ar\"],\n\t aec: [\"aec\", \"ar\"],\n\t aed: [\"aed\", \"sgn\"],\n\t aen: [\"aen\", \"sgn\"],\n\t afb: [\"afb\", \"ar\"],\n\t afg: [\"afg\", \"sgn\"],\n\t ajp: [\"ajp\", \"ar\"],\n\t apc: [\"apc\", \"ar\"],\n\t apd: [\"apd\", \"ar\"],\n\t arb: [\"arb\", \"ar\"],\n\t arq: [\"arq\", \"ar\"],\n\t ars: [\"ars\", \"ar\"],\n\t ary: [\"ary\", \"ar\"],\n\t arz: [\"arz\", \"ar\"],\n\t ase: [\"ase\", \"sgn\"],\n\t asf: [\"asf\", \"sgn\"],\n\t asp: [\"asp\", \"sgn\"],\n\t asq: [\"asq\", \"sgn\"],\n\t asw: [\"asw\", \"sgn\"],\n\t auz: [\"auz\", \"ar\"],\n\t avl: [\"avl\", \"ar\"],\n\t ayh: [\"ayh\", \"ar\"],\n\t ayl: [\"ayl\", \"ar\"],\n\t ayn: [\"ayn\", \"ar\"],\n\t ayp: [\"ayp\", \"ar\"],\n\t bbz: [\"bbz\", \"ar\"],\n\t bfi: [\"bfi\", \"sgn\"],\n\t bfk: [\"bfk\", \"sgn\"],\n\t bjn: [\"bjn\", \"ms\"],\n\t bog: [\"bog\", \"sgn\"],\n\t bqn: [\"bqn\", \"sgn\"],\n\t bqy: [\"bqy\", \"sgn\"],\n\t btj: [\"btj\", \"ms\"],\n\t bve: [\"bve\", \"ms\"],\n\t bvl: [\"bvl\", \"sgn\"],\n\t bvu: [\"bvu\", \"ms\"],\n\t bzs: [\"bzs\", \"sgn\"],\n\t cdo: [\"cdo\", \"zh\"],\n\t cds: [\"cds\", \"sgn\"],\n\t cjy: [\"cjy\", \"zh\"],\n\t cmn: [\"cmn\", \"zh\"],\n\t coa: [\"coa\", \"ms\"],\n\t cpx: [\"cpx\", \"zh\"],\n\t csc: [\"csc\", \"sgn\"],\n\t csd: [\"csd\", \"sgn\"],\n\t cse: [\"cse\", \"sgn\"],\n\t csf: [\"csf\", \"sgn\"],\n\t csg: [\"csg\", \"sgn\"],\n\t csl: [\"csl\", \"sgn\"],\n\t csn: [\"csn\", \"sgn\"],\n\t csq: [\"csq\", \"sgn\"],\n\t csr: [\"csr\", \"sgn\"],\n\t czh: [\"czh\", \"zh\"],\n\t czo: [\"czo\", \"zh\"],\n\t doq: [\"doq\", \"sgn\"],\n\t dse: [\"dse\", \"sgn\"],\n\t dsl: [\"dsl\", \"sgn\"],\n\t dup: [\"dup\", \"ms\"],\n\t ecs: [\"ecs\", \"sgn\"],\n\t esl: [\"esl\", \"sgn\"],\n\t esn: [\"esn\", \"sgn\"],\n\t eso: [\"eso\", \"sgn\"],\n\t eth: [\"eth\", \"sgn\"],\n\t fcs: [\"fcs\", \"sgn\"],\n\t fse: [\"fse\", \"sgn\"],\n\t fsl: [\"fsl\", \"sgn\"],\n\t fss: [\"fss\", \"sgn\"],\n\t gan: [\"gan\", \"zh\"],\n\t gds: [\"gds\", \"sgn\"],\n\t gom: [\"gom\", \"kok\"],\n\t gse: [\"gse\", \"sgn\"],\n\t gsg: [\"gsg\", \"sgn\"],\n\t gsm: [\"gsm\", \"sgn\"],\n\t gss: [\"gss\", \"sgn\"],\n\t gus: [\"gus\", \"sgn\"],\n\t hab: [\"hab\", \"sgn\"],\n\t haf: [\"haf\", \"sgn\"],\n\t hak: [\"hak\", \"zh\"],\n\t hds: [\"hds\", \"sgn\"],\n\t hji: [\"hji\", \"ms\"],\n\t hks: [\"hks\", \"sgn\"],\n\t hos: [\"hos\", \"sgn\"],\n\t hps: [\"hps\", \"sgn\"],\n\t hsh: [\"hsh\", \"sgn\"],\n\t hsl: [\"hsl\", \"sgn\"],\n\t hsn: [\"hsn\", \"zh\"],\n\t icl: [\"icl\", \"sgn\"],\n\t ils: [\"ils\", \"sgn\"],\n\t inl: [\"inl\", \"sgn\"],\n\t ins: [\"ins\", \"sgn\"],\n\t ise: [\"ise\", \"sgn\"],\n\t isg: [\"isg\", \"sgn\"],\n\t isr: [\"isr\", \"sgn\"],\n\t jak: [\"jak\", \"ms\"],\n\t jax: [\"jax\", \"ms\"],\n\t jcs: [\"jcs\", \"sgn\"],\n\t jhs: [\"jhs\", \"sgn\"],\n\t jls: [\"jls\", \"sgn\"],\n\t jos: [\"jos\", \"sgn\"],\n\t jsl: [\"jsl\", \"sgn\"],\n\t jus: [\"jus\", \"sgn\"],\n\t kgi: [\"kgi\", \"sgn\"],\n\t knn: [\"knn\", \"kok\"],\n\t kvb: [\"kvb\", \"ms\"],\n\t kvk: [\"kvk\", \"sgn\"],\n\t kvr: [\"kvr\", \"ms\"],\n\t kxd: [\"kxd\", \"ms\"],\n\t lbs: [\"lbs\", \"sgn\"],\n\t lce: [\"lce\", \"ms\"],\n\t lcf: [\"lcf\", \"ms\"],\n\t liw: [\"liw\", \"ms\"],\n\t lls: [\"lls\", \"sgn\"],\n\t lsg: [\"lsg\", \"sgn\"],\n\t lsl: [\"lsl\", \"sgn\"],\n\t lso: [\"lso\", \"sgn\"],\n\t lsp: [\"lsp\", \"sgn\"],\n\t lst: [\"lst\", \"sgn\"],\n\t lsy: [\"lsy\", \"sgn\"],\n\t ltg: [\"ltg\", \"lv\"],\n\t lvs: [\"lvs\", \"lv\"],\n\t lzh: [\"lzh\", \"zh\"],\n\t max: [\"max\", \"ms\"],\n\t mdl: [\"mdl\", \"sgn\"],\n\t meo: [\"meo\", \"ms\"],\n\t mfa: [\"mfa\", \"ms\"],\n\t mfb: [\"mfb\", \"ms\"],\n\t mfs: [\"mfs\", \"sgn\"],\n\t min: [\"min\", \"ms\"],\n\t mnp: [\"mnp\", \"zh\"],\n\t mqg: [\"mqg\", \"ms\"],\n\t mre: [\"mre\", \"sgn\"],\n\t msd: [\"msd\", \"sgn\"],\n\t msi: [\"msi\", \"ms\"],\n\t msr: [\"msr\", \"sgn\"],\n\t mui: [\"mui\", \"ms\"],\n\t mzc: [\"mzc\", \"sgn\"],\n\t mzg: [\"mzg\", \"sgn\"],\n\t mzy: [\"mzy\", \"sgn\"],\n\t nan: [\"nan\", \"zh\"],\n\t nbs: [\"nbs\", \"sgn\"],\n\t ncs: [\"ncs\", \"sgn\"],\n\t nsi: [\"nsi\", \"sgn\"],\n\t nsl: [\"nsl\", \"sgn\"],\n\t nsp: [\"nsp\", \"sgn\"],\n\t nsr: [\"nsr\", \"sgn\"],\n\t nzs: [\"nzs\", \"sgn\"],\n\t okl: [\"okl\", \"sgn\"],\n\t orn: [\"orn\", \"ms\"],\n\t ors: [\"ors\", \"ms\"],\n\t pel: [\"pel\", \"ms\"],\n\t pga: [\"pga\", \"ar\"],\n\t pks: [\"pks\", \"sgn\"],\n\t prl: [\"prl\", \"sgn\"],\n\t prz: [\"prz\", \"sgn\"],\n\t psc: [\"psc\", \"sgn\"],\n\t psd: [\"psd\", \"sgn\"],\n\t pse: [\"pse\", \"ms\"],\n\t psg: [\"psg\", \"sgn\"],\n\t psl: [\"psl\", \"sgn\"],\n\t pso: [\"pso\", \"sgn\"],\n\t psp: [\"psp\", \"sgn\"],\n\t psr: [\"psr\", \"sgn\"],\n\t pys: [\"pys\", \"sgn\"],\n\t rms: [\"rms\", \"sgn\"],\n\t rsi: [\"rsi\", \"sgn\"],\n\t rsl: [\"rsl\", \"sgn\"],\n\t sdl: [\"sdl\", \"sgn\"],\n\t sfb: [\"sfb\", \"sgn\"],\n\t sfs: [\"sfs\", \"sgn\"],\n\t sgg: [\"sgg\", \"sgn\"],\n\t sgx: [\"sgx\", \"sgn\"],\n\t shu: [\"shu\", \"ar\"],\n\t slf: [\"slf\", \"sgn\"],\n\t sls: [\"sls\", \"sgn\"],\n\t sqk: [\"sqk\", \"sgn\"],\n\t sqs: [\"sqs\", \"sgn\"],\n\t ssh: [\"ssh\", \"ar\"],\n\t ssp: [\"ssp\", \"sgn\"],\n\t ssr: [\"ssr\", \"sgn\"],\n\t svk: [\"svk\", \"sgn\"],\n\t swc: [\"swc\", \"sw\"],\n\t swh: [\"swh\", \"sw\"],\n\t swl: [\"swl\", \"sgn\"],\n\t syy: [\"syy\", \"sgn\"],\n\t tmw: [\"tmw\", \"ms\"],\n\t tse: [\"tse\", \"sgn\"],\n\t tsm: [\"tsm\", \"sgn\"],\n\t tsq: [\"tsq\", \"sgn\"],\n\t tss: [\"tss\", \"sgn\"],\n\t tsy: [\"tsy\", \"sgn\"],\n\t tza: [\"tza\", \"sgn\"],\n\t ugn: [\"ugn\", \"sgn\"],\n\t ugy: [\"ugy\", \"sgn\"],\n\t ukl: [\"ukl\", \"sgn\"],\n\t uks: [\"uks\", \"sgn\"],\n\t urk: [\"urk\", \"ms\"],\n\t uzn: [\"uzn\", \"uz\"],\n\t uzs: [\"uzs\", \"uz\"],\n\t vgt: [\"vgt\", \"sgn\"],\n\t vkk: [\"vkk\", \"ms\"],\n\t vkt: [\"vkt\", \"ms\"],\n\t vsi: [\"vsi\", \"sgn\"],\n\t vsl: [\"vsl\", \"sgn\"],\n\t vsv: [\"vsv\", \"sgn\"],\n\t wuu: [\"wuu\", \"zh\"],\n\t xki: [\"xki\", \"sgn\"],\n\t xml: [\"xml\", \"sgn\"],\n\t xmm: [\"xmm\", \"ms\"],\n\t xms: [\"xms\", \"sgn\"],\n\t yds: [\"yds\", \"sgn\"],\n\t ysl: [\"ysl\", \"sgn\"],\n\t yue: [\"yue\", \"zh\"],\n\t zib: [\"zib\", \"sgn\"],\n\t zlm: [\"zlm\", \"ms\"],\n\t zmi: [\"zmi\", \"ms\"],\n\t zsl: [\"zsl\", \"sgn\"],\n\t zsm: [\"zsm\", \"ms\"]\n\t }\n\t};\n\t\n\t/**\n\t * Convert only a-z to uppercase as per section 6.1 of the spec\n\t */\n\tfunction toLatinUpperCase(str) {\n\t var i = str.length;\n\t\n\t while (i--) {\n\t var ch = str.charAt(i);\n\t\n\t if (ch >= \"a\" && ch <= \"z\") str = str.slice(0, i) + ch.toUpperCase() + str.slice(i + 1);\n\t }\n\t\n\t return str;\n\t}\n\t\n\t/**\n\t * The IsStructurallyValidLanguageTag abstract operation verifies that the locale\n\t * argument (which must be a String value)\n\t *\n\t * - represents a well-formed BCP 47 language tag as specified in RFC 5646 section\n\t * 2.1, or successor,\n\t * - does not include duplicate variant subtags, and\n\t * - does not include duplicate singleton subtags.\n\t *\n\t * The abstract operation returns true if locale can be generated from the ABNF\n\t * grammar in section 2.1 of the RFC, starting with Language-Tag, and does not\n\t * contain duplicate variant or singleton subtags (other than as a private use\n\t * subtag). It returns false otherwise. Terminal value characters in the grammar are\n\t * interpreted as the Unicode equivalents of the ASCII octet values given.\n\t */\n\tfunction /* 6.2.2 */IsStructurallyValidLanguageTag(locale) {\n\t // represents a well-formed BCP 47 language tag as specified in RFC 5646\n\t if (!expBCP47Syntax.test(locale)) return false;\n\t\n\t // does not include duplicate variant subtags, and\n\t if (expVariantDupes.test(locale)) return false;\n\t\n\t // does not include duplicate singleton subtags.\n\t if (expSingletonDupes.test(locale)) return false;\n\t\n\t return true;\n\t}\n\t\n\t/**\n\t * The CanonicalizeLanguageTag abstract operation returns the canonical and case-\n\t * regularized form of the locale argument (which must be a String value that is\n\t * a structurally valid BCP 47 language tag as verified by the\n\t * IsStructurallyValidLanguageTag abstract operation). It takes the steps\n\t * specified in RFC 5646 section 4.5, or successor, to bring the language tag\n\t * into canonical form, and to regularize the case of the subtags, but does not\n\t * take the steps to bring a language tag into “extlang form” and to reorder\n\t * variant subtags.\n\t\n\t * The specifications for extensions to BCP 47 language tags, such as RFC 6067,\n\t * may include canonicalization rules for the extension subtag sequences they\n\t * define that go beyond the canonicalization rules of RFC 5646 section 4.5.\n\t * Implementations are allowed, but not required, to apply these additional rules.\n\t */\n\tfunction /* 6.2.3 */CanonicalizeLanguageTag(locale) {\n\t var match = void 0,\n\t parts = void 0;\n\t\n\t // A language tag is in 'canonical form' when the tag is well-formed\n\t // according to the rules in Sections 2.1 and 2.2\n\t\n\t // Section 2.1 says all subtags use lowercase...\n\t locale = locale.toLowerCase();\n\t\n\t // ...with 2 exceptions: 'two-letter and four-letter subtags that neither\n\t // appear at the start of the tag nor occur after singletons. Such two-letter\n\t // subtags are all uppercase (as in the tags \"en-CA-x-ca\" or \"sgn-BE-FR\") and\n\t // four-letter subtags are titlecase (as in the tag \"az-Latn-x-latn\").\n\t parts = locale.split('-');\n\t for (var i = 1, max = parts.length; i < max; i++) {\n\t // Two-letter subtags are all uppercase\n\t if (parts[i].length === 2) parts[i] = parts[i].toUpperCase();\n\t\n\t // Four-letter subtags are titlecase\n\t else if (parts[i].length === 4) parts[i] = parts[i].charAt(0).toUpperCase() + parts[i].slice(1);\n\t\n\t // Is it a singleton?\n\t else if (parts[i].length === 1 && parts[i] !== 'x') break;\n\t }\n\t locale = arrJoin.call(parts, '-');\n\t\n\t // The steps laid out in RFC 5646 section 4.5 are as follows:\n\t\n\t // 1. Extension sequences are ordered into case-insensitive ASCII order\n\t // by singleton subtag.\n\t if ((match = locale.match(expExtSequences)) && match.length > 1) {\n\t // The built-in sort() sorts by ASCII order, so use that\n\t match.sort();\n\t\n\t // Replace all extensions with the joined, sorted array\n\t locale = locale.replace(RegExp('(?:' + expExtSequences.source + ')+', 'i'), arrJoin.call(match, ''));\n\t }\n\t\n\t // 2. Redundant or grandfathered tags are replaced by their 'Preferred-\n\t // Value', if there is one.\n\t if (hop.call(redundantTags.tags, locale)) locale = redundantTags.tags[locale];\n\t\n\t // 3. Subtags are replaced by their 'Preferred-Value', if there is one.\n\t // For extlangs, the original primary language subtag is also\n\t // replaced if there is a primary language subtag in the 'Preferred-\n\t // Value'.\n\t parts = locale.split('-');\n\t\n\t for (var _i = 1, _max = parts.length; _i < _max; _i++) {\n\t if (hop.call(redundantTags.subtags, parts[_i])) parts[_i] = redundantTags.subtags[parts[_i]];else if (hop.call(redundantTags.extLang, parts[_i])) {\n\t parts[_i] = redundantTags.extLang[parts[_i]][0];\n\t\n\t // For extlang tags, the prefix needs to be removed if it is redundant\n\t if (_i === 1 && redundantTags.extLang[parts[1]][1] === parts[0]) {\n\t parts = arrSlice.call(parts, _i++);\n\t _max -= 1;\n\t }\n\t }\n\t }\n\t\n\t return arrJoin.call(parts, '-');\n\t}\n\t\n\t/**\n\t * The DefaultLocale abstract operation returns a String value representing the\n\t * structurally valid (6.2.2) and canonicalized (6.2.3) BCP 47 language tag for the\n\t * host environment’s current locale.\n\t */\n\tfunction /* 6.2.4 */DefaultLocale() {\n\t return defaultLocale;\n\t}\n\t\n\t// Sect 6.3 Currency Codes\n\t// =======================\n\t\n\tvar expCurrencyCode = /^[A-Z]{3}$/;\n\t\n\t/**\n\t * The IsWellFormedCurrencyCode abstract operation verifies that the currency argument\n\t * (after conversion to a String value) represents a well-formed 3-letter ISO currency\n\t * code. The following steps are taken:\n\t */\n\tfunction /* 6.3.1 */IsWellFormedCurrencyCode(currency) {\n\t // 1. Let `c` be ToString(currency)\n\t var c = String(currency);\n\t\n\t // 2. Let `normalized` be the result of mapping c to upper case as described\n\t // in 6.1.\n\t var normalized = toLatinUpperCase(c);\n\t\n\t // 3. If the string length of normalized is not 3, return false.\n\t // 4. If normalized contains any character that is not in the range \"A\" to \"Z\"\n\t // (U+0041 to U+005A), return false.\n\t if (expCurrencyCode.test(normalized) === false) return false;\n\t\n\t // 5. Return true\n\t return true;\n\t}\n\t\n\tvar expUnicodeExSeq = /-u(?:-[0-9a-z]{2,8})+/gi; // See `extension` below\n\t\n\tfunction /* 9.2.1 */CanonicalizeLocaleList(locales) {\n\t // The abstract operation CanonicalizeLocaleList takes the following steps:\n\t\n\t // 1. If locales is undefined, then a. Return a new empty List\n\t if (locales === undefined) return new List();\n\t\n\t // 2. Let seen be a new empty List.\n\t var seen = new List();\n\t\n\t // 3. If locales is a String value, then\n\t // a. Let locales be a new array created as if by the expression new\n\t // Array(locales) where Array is the standard built-in constructor with\n\t // that name and locales is the value of locales.\n\t locales = typeof locales === 'string' ? [locales] : locales;\n\t\n\t // 4. Let O be ToObject(locales).\n\t var O = toObject(locales);\n\t\n\t // 5. Let lenValue be the result of calling the [[Get]] internal method of\n\t // O with the argument \"length\".\n\t // 6. Let len be ToUint32(lenValue).\n\t var len = O.length;\n\t\n\t // 7. Let k be 0.\n\t var k = 0;\n\t\n\t // 8. Repeat, while k < len\n\t while (k < len) {\n\t // a. Let Pk be ToString(k).\n\t var Pk = String(k);\n\t\n\t // b. Let kPresent be the result of calling the [[HasProperty]] internal\n\t // method of O with argument Pk.\n\t var kPresent = Pk in O;\n\t\n\t // c. If kPresent is true, then\n\t if (kPresent) {\n\t // i. Let kValue be the result of calling the [[Get]] internal\n\t // method of O with argument Pk.\n\t var kValue = O[Pk];\n\t\n\t // ii. If the type of kValue is not String or Object, then throw a\n\t // TypeError exception.\n\t if (kValue === null || typeof kValue !== 'string' && (typeof kValue === \"undefined\" ? \"undefined\" : babelHelpers[\"typeof\"](kValue)) !== 'object') throw new TypeError('String or Object type expected');\n\t\n\t // iii. Let tag be ToString(kValue).\n\t var tag = String(kValue);\n\t\n\t // iv. If the result of calling the abstract operation\n\t // IsStructurallyValidLanguageTag (defined in 6.2.2), passing tag as\n\t // the argument, is false, then throw a RangeError exception.\n\t if (!IsStructurallyValidLanguageTag(tag)) throw new RangeError(\"'\" + tag + \"' is not a structurally valid language tag\");\n\t\n\t // v. Let tag be the result of calling the abstract operation\n\t // CanonicalizeLanguageTag (defined in 6.2.3), passing tag as the\n\t // argument.\n\t tag = CanonicalizeLanguageTag(tag);\n\t\n\t // vi. If tag is not an element of seen, then append tag as the last\n\t // element of seen.\n\t if (arrIndexOf.call(seen, tag) === -1) arrPush.call(seen, tag);\n\t }\n\t\n\t // d. Increase k by 1.\n\t k++;\n\t }\n\t\n\t // 9. Return seen.\n\t return seen;\n\t}\n\t\n\t/**\n\t * The BestAvailableLocale abstract operation compares the provided argument\n\t * locale, which must be a String value with a structurally valid and\n\t * canonicalized BCP 47 language tag, against the locales in availableLocales and\n\t * returns either the longest non-empty prefix of locale that is an element of\n\t * availableLocales, or undefined if there is no such element. It uses the\n\t * fallback mechanism of RFC 4647, section 3.4. The following steps are taken:\n\t */\n\tfunction /* 9.2.2 */BestAvailableLocale(availableLocales, locale) {\n\t // 1. Let candidate be locale\n\t var candidate = locale;\n\t\n\t // 2. Repeat\n\t while (candidate) {\n\t // a. If availableLocales contains an element equal to candidate, then return\n\t // candidate.\n\t if (arrIndexOf.call(availableLocales, candidate) > -1) return candidate;\n\t\n\t // b. Let pos be the character index of the last occurrence of \"-\"\n\t // (U+002D) within candidate. If that character does not occur, return\n\t // undefined.\n\t var pos = candidate.lastIndexOf('-');\n\t\n\t if (pos < 0) return;\n\t\n\t // c. If pos ≥ 2 and the character \"-\" occurs at index pos-2 of candidate,\n\t // then decrease pos by 2.\n\t if (pos >= 2 && candidate.charAt(pos - 2) === '-') pos -= 2;\n\t\n\t // d. Let candidate be the substring of candidate from position 0, inclusive,\n\t // to position pos, exclusive.\n\t candidate = candidate.substring(0, pos);\n\t }\n\t}\n\t\n\t/**\n\t * The LookupMatcher abstract operation compares requestedLocales, which must be\n\t * a List as returned by CanonicalizeLocaleList, against the locales in\n\t * availableLocales and determines the best available language to meet the\n\t * request. The following steps are taken:\n\t */\n\tfunction /* 9.2.3 */LookupMatcher(availableLocales, requestedLocales) {\n\t // 1. Let i be 0.\n\t var i = 0;\n\t\n\t // 2. Let len be the number of elements in requestedLocales.\n\t var len = requestedLocales.length;\n\t\n\t // 3. Let availableLocale be undefined.\n\t var availableLocale = void 0;\n\t\n\t var locale = void 0,\n\t noExtensionsLocale = void 0;\n\t\n\t // 4. Repeat while i < len and availableLocale is undefined:\n\t while (i < len && !availableLocale) {\n\t // a. Let locale be the element of requestedLocales at 0-origined list\n\t // position i.\n\t locale = requestedLocales[i];\n\t\n\t // b. Let noExtensionsLocale be the String value that is locale with all\n\t // Unicode locale extension sequences removed.\n\t noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n\t\n\t // c. Let availableLocale be the result of calling the\n\t // BestAvailableLocale abstract operation (defined in 9.2.2) with\n\t // arguments availableLocales and noExtensionsLocale.\n\t availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\t\n\t // d. Increase i by 1.\n\t i++;\n\t }\n\t\n\t // 5. Let result be a new Record.\n\t var result = new Record();\n\t\n\t // 6. If availableLocale is not undefined, then\n\t if (availableLocale !== undefined) {\n\t // a. Set result.[[locale]] to availableLocale.\n\t result['[[locale]]'] = availableLocale;\n\t\n\t // b. If locale and noExtensionsLocale are not the same String value, then\n\t if (String(locale) !== String(noExtensionsLocale)) {\n\t // i. Let extension be the String value consisting of the first\n\t // substring of locale that is a Unicode locale extension sequence.\n\t var extension = locale.match(expUnicodeExSeq)[0];\n\t\n\t // ii. Let extensionIndex be the character position of the initial\n\t // \"-\" of the first Unicode locale extension sequence within locale.\n\t var extensionIndex = locale.indexOf('-u-');\n\t\n\t // iii. Set result.[[extension]] to extension.\n\t result['[[extension]]'] = extension;\n\t\n\t // iv. Set result.[[extensionIndex]] to extensionIndex.\n\t result['[[extensionIndex]]'] = extensionIndex;\n\t }\n\t }\n\t // 7. Else\n\t else\n\t // a. Set result.[[locale]] to the value returned by the DefaultLocale abstract\n\t // operation (defined in 6.2.4).\n\t result['[[locale]]'] = DefaultLocale();\n\t\n\t // 8. Return result\n\t return result;\n\t}\n\t\n\t/**\n\t * The BestFitMatcher abstract operation compares requestedLocales, which must be\n\t * a List as returned by CanonicalizeLocaleList, against the locales in\n\t * availableLocales and determines the best available language to meet the\n\t * request. The algorithm is implementation dependent, but should produce results\n\t * that a typical user of the requested locales would perceive as at least as\n\t * good as those produced by the LookupMatcher abstract operation. Options\n\t * specified through Unicode locale extension sequences must be ignored by the\n\t * algorithm. Information about such subsequences is returned separately.\n\t * The abstract operation returns a record with a [[locale]] field, whose value\n\t * is the language tag of the selected locale, which must be an element of\n\t * availableLocales. If the language tag of the request locale that led to the\n\t * selected locale contained a Unicode locale extension sequence, then the\n\t * returned record also contains an [[extension]] field whose value is the first\n\t * Unicode locale extension sequence, and an [[extensionIndex]] field whose value\n\t * is the index of the first Unicode locale extension sequence within the request\n\t * locale language tag.\n\t */\n\tfunction /* 9.2.4 */BestFitMatcher(availableLocales, requestedLocales) {\n\t return LookupMatcher(availableLocales, requestedLocales);\n\t}\n\t\n\t/**\n\t * The ResolveLocale abstract operation compares a BCP 47 language priority list\n\t * requestedLocales against the locales in availableLocales and determines the\n\t * best available language to meet the request. availableLocales and\n\t * requestedLocales must be provided as List values, options as a Record.\n\t */\n\tfunction /* 9.2.5 */ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData) {\n\t if (availableLocales.length === 0) {\n\t throw new ReferenceError('No locale data has been provided for this object yet.');\n\t }\n\t\n\t // The following steps are taken:\n\t // 1. Let matcher be the value of options.[[localeMatcher]].\n\t var matcher = options['[[localeMatcher]]'];\n\t\n\t var r = void 0;\n\t\n\t // 2. If matcher is \"lookup\", then\n\t if (matcher === 'lookup')\n\t // a. Let r be the result of calling the LookupMatcher abstract operation\n\t // (defined in 9.2.3) with arguments availableLocales and\n\t // requestedLocales.\n\t r = LookupMatcher(availableLocales, requestedLocales);\n\t\n\t // 3. Else\n\t else\n\t // a. Let r be the result of calling the BestFitMatcher abstract\n\t // operation (defined in 9.2.4) with arguments availableLocales and\n\t // requestedLocales.\n\t r = BestFitMatcher(availableLocales, requestedLocales);\n\t\n\t // 4. Let foundLocale be the value of r.[[locale]].\n\t var foundLocale = r['[[locale]]'];\n\t\n\t var extensionSubtags = void 0,\n\t extensionSubtagsLength = void 0;\n\t\n\t // 5. If r has an [[extension]] field, then\n\t if (hop.call(r, '[[extension]]')) {\n\t // a. Let extension be the value of r.[[extension]].\n\t var extension = r['[[extension]]'];\n\t // b. Let split be the standard built-in function object defined in ES5,\n\t // 15.5.4.14.\n\t var split = String.prototype.split;\n\t // c. Let extensionSubtags be the result of calling the [[Call]] internal\n\t // method of split with extension as the this value and an argument\n\t // list containing the single item \"-\".\n\t extensionSubtags = split.call(extension, '-');\n\t // d. Let extensionSubtagsLength be the result of calling the [[Get]]\n\t // internal method of extensionSubtags with argument \"length\".\n\t extensionSubtagsLength = extensionSubtags.length;\n\t }\n\t\n\t // 6. Let result be a new Record.\n\t var result = new Record();\n\t\n\t // 7. Set result.[[dataLocale]] to foundLocale.\n\t result['[[dataLocale]]'] = foundLocale;\n\t\n\t // 8. Let supportedExtension be \"-u\".\n\t var supportedExtension = '-u';\n\t // 9. Let i be 0.\n\t var i = 0;\n\t // 10. Let len be the result of calling the [[Get]] internal method of\n\t // relevantExtensionKeys with argument \"length\".\n\t var len = relevantExtensionKeys.length;\n\t\n\t // 11 Repeat while i < len:\n\t while (i < len) {\n\t // a. Let key be the result of calling the [[Get]] internal method of\n\t // relevantExtensionKeys with argument ToString(i).\n\t var key = relevantExtensionKeys[i];\n\t // b. Let foundLocaleData be the result of calling the [[Get]] internal\n\t // method of localeData with the argument foundLocale.\n\t var foundLocaleData = localeData[foundLocale];\n\t // c. Let keyLocaleData be the result of calling the [[Get]] internal\n\t // method of foundLocaleData with the argument key.\n\t var keyLocaleData = foundLocaleData[key];\n\t // d. Let value be the result of calling the [[Get]] internal method of\n\t // keyLocaleData with argument \"0\".\n\t var value = keyLocaleData['0'];\n\t // e. Let supportedExtensionAddition be \"\".\n\t var supportedExtensionAddition = '';\n\t // f. Let indexOf be the standard built-in function object defined in\n\t // ES5, 15.4.4.14.\n\t var indexOf = arrIndexOf;\n\t\n\t // g. If extensionSubtags is not undefined, then\n\t if (extensionSubtags !== undefined) {\n\t // i. Let keyPos be the result of calling the [[Call]] internal\n\t // method of indexOf with extensionSubtags as the this value and\n\t // an argument list containing the single item key.\n\t var keyPos = indexOf.call(extensionSubtags, key);\n\t\n\t // ii. If keyPos ≠ -1, then\n\t if (keyPos !== -1) {\n\t // 1. If keyPos + 1 < extensionSubtagsLength and the length of the\n\t // result of calling the [[Get]] internal method of\n\t // extensionSubtags with argument ToString(keyPos +1) is greater\n\t // than 2, then\n\t if (keyPos + 1 < extensionSubtagsLength && extensionSubtags[keyPos + 1].length > 2) {\n\t // a. Let requestedValue be the result of calling the [[Get]]\n\t // internal method of extensionSubtags with argument\n\t // ToString(keyPos + 1).\n\t var requestedValue = extensionSubtags[keyPos + 1];\n\t // b. Let valuePos be the result of calling the [[Call]]\n\t // internal method of indexOf with keyLocaleData as the\n\t // this value and an argument list containing the single\n\t // item requestedValue.\n\t var valuePos = indexOf.call(keyLocaleData, requestedValue);\n\t\n\t // c. If valuePos ≠ -1, then\n\t if (valuePos !== -1) {\n\t // i. Let value be requestedValue.\n\t value = requestedValue,\n\t // ii. Let supportedExtensionAddition be the\n\t // concatenation of \"-\", key, \"-\", and value.\n\t supportedExtensionAddition = '-' + key + '-' + value;\n\t }\n\t }\n\t // 2. Else\n\t else {\n\t // a. Let valuePos be the result of calling the [[Call]]\n\t // internal method of indexOf with keyLocaleData as the this\n\t // value and an argument list containing the single item\n\t // \"true\".\n\t var _valuePos = indexOf(keyLocaleData, 'true');\n\t\n\t // b. If valuePos ≠ -1, then\n\t if (_valuePos !== -1)\n\t // i. Let value be \"true\".\n\t value = 'true';\n\t }\n\t }\n\t }\n\t // h. If options has a field [[]], then\n\t if (hop.call(options, '[[' + key + ']]')) {\n\t // i. Let optionsValue be the value of options.[[]].\n\t var optionsValue = options['[[' + key + ']]'];\n\t\n\t // ii. If the result of calling the [[Call]] internal method of indexOf\n\t // with keyLocaleData as the this value and an argument list\n\t // containing the single item optionsValue is not -1, then\n\t if (indexOf.call(keyLocaleData, optionsValue) !== -1) {\n\t // 1. If optionsValue is not equal to value, then\n\t if (optionsValue !== value) {\n\t // a. Let value be optionsValue.\n\t value = optionsValue;\n\t // b. Let supportedExtensionAddition be \"\".\n\t supportedExtensionAddition = '';\n\t }\n\t }\n\t }\n\t // i. Set result.[[]] to value.\n\t result['[[' + key + ']]'] = value;\n\t\n\t // j. Append supportedExtensionAddition to supportedExtension.\n\t supportedExtension += supportedExtensionAddition;\n\t\n\t // k. Increase i by 1.\n\t i++;\n\t }\n\t // 12. If the length of supportedExtension is greater than 2, then\n\t if (supportedExtension.length > 2) {\n\t // a.\n\t var privateIndex = foundLocale.indexOf(\"-x-\");\n\t // b.\n\t if (privateIndex === -1) {\n\t // i.\n\t foundLocale = foundLocale + supportedExtension;\n\t }\n\t // c.\n\t else {\n\t // i.\n\t var preExtension = foundLocale.substring(0, privateIndex);\n\t // ii.\n\t var postExtension = foundLocale.substring(privateIndex);\n\t // iii.\n\t foundLocale = preExtension + supportedExtension + postExtension;\n\t }\n\t // d. asserting - skipping\n\t // e.\n\t foundLocale = CanonicalizeLanguageTag(foundLocale);\n\t }\n\t // 13. Set result.[[locale]] to foundLocale.\n\t result['[[locale]]'] = foundLocale;\n\t\n\t // 14. Return result.\n\t return result;\n\t}\n\t\n\t/**\n\t * The LookupSupportedLocales abstract operation returns the subset of the\n\t * provided BCP 47 language priority list requestedLocales for which\n\t * availableLocales has a matching locale when using the BCP 47 Lookup algorithm.\n\t * Locales appear in the same order in the returned list as in requestedLocales.\n\t * The following steps are taken:\n\t */\n\tfunction /* 9.2.6 */LookupSupportedLocales(availableLocales, requestedLocales) {\n\t // 1. Let len be the number of elements in requestedLocales.\n\t var len = requestedLocales.length;\n\t // 2. Let subset be a new empty List.\n\t var subset = new List();\n\t // 3. Let k be 0.\n\t var k = 0;\n\t\n\t // 4. Repeat while k < len\n\t while (k < len) {\n\t // a. Let locale be the element of requestedLocales at 0-origined list\n\t // position k.\n\t var locale = requestedLocales[k];\n\t // b. Let noExtensionsLocale be the String value that is locale with all\n\t // Unicode locale extension sequences removed.\n\t var noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n\t // c. Let availableLocale be the result of calling the\n\t // BestAvailableLocale abstract operation (defined in 9.2.2) with\n\t // arguments availableLocales and noExtensionsLocale.\n\t var availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\t\n\t // d. If availableLocale is not undefined, then append locale to the end of\n\t // subset.\n\t if (availableLocale !== undefined) arrPush.call(subset, locale);\n\t\n\t // e. Increment k by 1.\n\t k++;\n\t }\n\t\n\t // 5. Let subsetArray be a new Array object whose elements are the same\n\t // values in the same order as the elements of subset.\n\t var subsetArray = arrSlice.call(subset);\n\t\n\t // 6. Return subsetArray.\n\t return subsetArray;\n\t}\n\t\n\t/**\n\t * The BestFitSupportedLocales abstract operation returns the subset of the\n\t * provided BCP 47 language priority list requestedLocales for which\n\t * availableLocales has a matching locale when using the Best Fit Matcher\n\t * algorithm. Locales appear in the same order in the returned list as in\n\t * requestedLocales. The steps taken are implementation dependent.\n\t */\n\tfunction /*9.2.7 */BestFitSupportedLocales(availableLocales, requestedLocales) {\n\t // ###TODO: implement this function as described by the specification###\n\t return LookupSupportedLocales(availableLocales, requestedLocales);\n\t}\n\t\n\t/**\n\t * The SupportedLocales abstract operation returns the subset of the provided BCP\n\t * 47 language priority list requestedLocales for which availableLocales has a\n\t * matching locale. Two algorithms are available to match the locales: the Lookup\n\t * algorithm described in RFC 4647 section 3.4, and an implementation dependent\n\t * best-fit algorithm. Locales appear in the same order in the returned list as\n\t * in requestedLocales. The following steps are taken:\n\t */\n\tfunction /*9.2.8 */SupportedLocales(availableLocales, requestedLocales, options) {\n\t var matcher = void 0,\n\t subset = void 0;\n\t\n\t // 1. If options is not undefined, then\n\t if (options !== undefined) {\n\t // a. Let options be ToObject(options).\n\t options = new Record(toObject(options));\n\t // b. Let matcher be the result of calling the [[Get]] internal method of\n\t // options with argument \"localeMatcher\".\n\t matcher = options.localeMatcher;\n\t\n\t // c. If matcher is not undefined, then\n\t if (matcher !== undefined) {\n\t // i. Let matcher be ToString(matcher).\n\t matcher = String(matcher);\n\t\n\t // ii. If matcher is not \"lookup\" or \"best fit\", then throw a RangeError\n\t // exception.\n\t if (matcher !== 'lookup' && matcher !== 'best fit') throw new RangeError('matcher should be \"lookup\" or \"best fit\"');\n\t }\n\t }\n\t // 2. If matcher is undefined or \"best fit\", then\n\t if (matcher === undefined || matcher === 'best fit')\n\t // a. Let subset be the result of calling the BestFitSupportedLocales\n\t // abstract operation (defined in 9.2.7) with arguments\n\t // availableLocales and requestedLocales.\n\t subset = BestFitSupportedLocales(availableLocales, requestedLocales);\n\t // 3. Else\n\t else\n\t // a. Let subset be the result of calling the LookupSupportedLocales\n\t // abstract operation (defined in 9.2.6) with arguments\n\t // availableLocales and requestedLocales.\n\t subset = LookupSupportedLocales(availableLocales, requestedLocales);\n\t\n\t // 4. For each named own property name P of subset,\n\t for (var P in subset) {\n\t if (!hop.call(subset, P)) continue;\n\t\n\t // a. Let desc be the result of calling the [[GetOwnProperty]] internal\n\t // method of subset with P.\n\t // b. Set desc.[[Writable]] to false.\n\t // c. Set desc.[[Configurable]] to false.\n\t // d. Call the [[DefineOwnProperty]] internal method of subset with P, desc,\n\t // and true as arguments.\n\t defineProperty(subset, P, {\n\t writable: false, configurable: false, value: subset[P]\n\t });\n\t }\n\t // \"Freeze\" the array so no new elements can be added\n\t defineProperty(subset, 'length', { writable: false });\n\t\n\t // 5. Return subset\n\t return subset;\n\t}\n\t\n\t/**\n\t * The GetOption abstract operation extracts the value of the property named\n\t * property from the provided options object, converts it to the required type,\n\t * checks whether it is one of a List of allowed values, and fills in a fallback\n\t * value if necessary.\n\t */\n\tfunction /*9.2.9 */GetOption(options, property, type, values, fallback) {\n\t // 1. Let value be the result of calling the [[Get]] internal method of\n\t // options with argument property.\n\t var value = options[property];\n\t\n\t // 2. If value is not undefined, then\n\t if (value !== undefined) {\n\t // a. Assert: type is \"boolean\" or \"string\".\n\t // b. If type is \"boolean\", then let value be ToBoolean(value).\n\t // c. If type is \"string\", then let value be ToString(value).\n\t value = type === 'boolean' ? Boolean(value) : type === 'string' ? String(value) : value;\n\t\n\t // d. If values is not undefined, then\n\t if (values !== undefined) {\n\t // i. If values does not contain an element equal to value, then throw a\n\t // RangeError exception.\n\t if (arrIndexOf.call(values, value) === -1) throw new RangeError(\"'\" + value + \"' is not an allowed value for `\" + property + '`');\n\t }\n\t\n\t // e. Return value.\n\t return value;\n\t }\n\t // Else return fallback.\n\t return fallback;\n\t}\n\t\n\t/**\n\t * The GetNumberOption abstract operation extracts a property value from the\n\t * provided options object, converts it to a Number value, checks whether it is\n\t * in the allowed range, and fills in a fallback value if necessary.\n\t */\n\tfunction /* 9.2.10 */GetNumberOption(options, property, minimum, maximum, fallback) {\n\t // 1. Let value be the result of calling the [[Get]] internal method of\n\t // options with argument property.\n\t var value = options[property];\n\t\n\t // 2. If value is not undefined, then\n\t if (value !== undefined) {\n\t // a. Let value be ToNumber(value).\n\t value = Number(value);\n\t\n\t // b. If value is NaN or less than minimum or greater than maximum, throw a\n\t // RangeError exception.\n\t if (isNaN(value) || value < minimum || value > maximum) throw new RangeError('Value is not a number or outside accepted range');\n\t\n\t // c. Return floor(value).\n\t return Math.floor(value);\n\t }\n\t // 3. Else return fallback.\n\t return fallback;\n\t}\n\t\n\t// 8 The Intl Object\n\tvar Intl = {};\n\t\n\t// 8.2 Function Properties of the Intl Object\n\t\n\t// 8.2.1\n\t// @spec[tc39/ecma402/master/spec/intl.html]\n\t// @clause[sec-intl.getcanonicallocales]\n\tIntl.getCanonicalLocales = function (locales) {\n\t // 1. Let ll be ? CanonicalizeLocaleList(locales).\n\t var ll = CanonicalizeLocaleList(locales);\n\t // 2. Return CreateArrayFromList(ll).\n\t {\n\t var result = [];\n\t for (var code in ll) {\n\t result.push(ll[code]);\n\t }\n\t return result;\n\t }\n\t};\n\t\n\t// Currency minor units output from get-4217 grunt task, formatted\n\tvar currencyMinorUnits = {\n\t BHD: 3, BYR: 0, XOF: 0, BIF: 0, XAF: 0, CLF: 4, CLP: 0, KMF: 0, DJF: 0,\n\t XPF: 0, GNF: 0, ISK: 0, IQD: 3, JPY: 0, JOD: 3, KRW: 0, KWD: 3, LYD: 3,\n\t OMR: 3, PYG: 0, RWF: 0, TND: 3, UGX: 0, UYI: 0, VUV: 0, VND: 0\n\t};\n\t\n\t// Define the NumberFormat constructor internally so it cannot be tainted\n\tfunction NumberFormatConstructor() {\n\t var locales = arguments[0];\n\t var options = arguments[1];\n\t\n\t if (!this || this === Intl) {\n\t return new Intl.NumberFormat(locales, options);\n\t }\n\t\n\t return InitializeNumberFormat(toObject(this), locales, options);\n\t}\n\t\n\tdefineProperty(Intl, 'NumberFormat', {\n\t configurable: true,\n\t writable: true,\n\t value: NumberFormatConstructor\n\t});\n\t\n\t// Must explicitly set prototypes as unwritable\n\tdefineProperty(Intl.NumberFormat, 'prototype', {\n\t writable: false\n\t});\n\t\n\t/**\n\t * The abstract operation InitializeNumberFormat accepts the arguments\n\t * numberFormat (which must be an object), locales, and options. It initializes\n\t * numberFormat as a NumberFormat object.\n\t */\n\tfunction /*11.1.1.1 */InitializeNumberFormat(numberFormat, locales, options) {\n\t // This will be a internal properties object if we're not already initialized\n\t var internal = getInternalProperties(numberFormat);\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore();\n\t\n\t // 1. If numberFormat has an [[initializedIntlObject]] internal property with\n\t // value true, throw a TypeError exception.\n\t if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\t\n\t // Need this to access the `internal` object\n\t defineProperty(numberFormat, '__getInternalProperties', {\n\t value: function value() {\n\t // NOTE: Non-standard, for internal use only\n\t if (arguments[0] === secret) return internal;\n\t }\n\t });\n\t\n\t // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n\t internal['[[initializedIntlObject]]'] = true;\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t var requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // 4. If options is undefined, then\n\t if (options === undefined)\n\t // a. Let options be the result of creating a new object as if by the\n\t // expression new Object() where Object is the standard built-in constructor\n\t // with that name.\n\t options = {};\n\t\n\t // 5. Else\n\t else\n\t // a. Let options be ToObject(options).\n\t options = toObject(options);\n\t\n\t // 6. Let opt be a new Record.\n\t var opt = new Record(),\n\t\n\t\n\t // 7. Let matcher be the result of calling the GetOption abstract operation\n\t // (defined in 9.2.9) with the arguments options, \"localeMatcher\", \"string\",\n\t // a List containing the two String values \"lookup\" and \"best fit\", and\n\t // \"best fit\".\n\t matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\t\n\t // 8. Set opt.[[localeMatcher]] to matcher.\n\t opt['[[localeMatcher]]'] = matcher;\n\t\n\t // 9. Let NumberFormat be the standard built-in object that is the initial value\n\t // of Intl.NumberFormat.\n\t // 10. Let localeData be the value of the [[localeData]] internal property of\n\t // NumberFormat.\n\t var localeData = internals.NumberFormat['[[localeData]]'];\n\t\n\t // 11. Let r be the result of calling the ResolveLocale abstract operation\n\t // (defined in 9.2.5) with the [[availableLocales]] internal property of\n\t // NumberFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n\t // internal property of NumberFormat, and localeData.\n\t var r = ResolveLocale(internals.NumberFormat['[[availableLocales]]'], requestedLocales, opt, internals.NumberFormat['[[relevantExtensionKeys]]'], localeData);\n\t\n\t // 12. Set the [[locale]] internal property of numberFormat to the value of\n\t // r.[[locale]].\n\t internal['[[locale]]'] = r['[[locale]]'];\n\t\n\t // 13. Set the [[numberingSystem]] internal property of numberFormat to the value\n\t // of r.[[nu]].\n\t internal['[[numberingSystem]]'] = r['[[nu]]'];\n\t\n\t // The specification doesn't tell us to do this, but it's helpful later on\n\t internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\t\n\t // 14. Let dataLocale be the value of r.[[dataLocale]].\n\t var dataLocale = r['[[dataLocale]]'];\n\t\n\t // 15. Let s be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"style\", \"string\", a List containing the three String\n\t // values \"decimal\", \"percent\", and \"currency\", and \"decimal\".\n\t var s = GetOption(options, 'style', 'string', new List('decimal', 'percent', 'currency'), 'decimal');\n\t\n\t // 16. Set the [[style]] internal property of numberFormat to s.\n\t internal['[[style]]'] = s;\n\t\n\t // 17. Let c be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"currency\", \"string\", undefined, and undefined.\n\t var c = GetOption(options, 'currency', 'string');\n\t\n\t // 18. If c is not undefined and the result of calling the\n\t // IsWellFormedCurrencyCode abstract operation (defined in 6.3.1) with\n\t // argument c is false, then throw a RangeError exception.\n\t if (c !== undefined && !IsWellFormedCurrencyCode(c)) throw new RangeError(\"'\" + c + \"' is not a valid currency code\");\n\t\n\t // 19. If s is \"currency\" and c is undefined, throw a TypeError exception.\n\t if (s === 'currency' && c === undefined) throw new TypeError('Currency code is required when style is currency');\n\t\n\t var cDigits = void 0;\n\t\n\t // 20. If s is \"currency\", then\n\t if (s === 'currency') {\n\t // a. Let c be the result of converting c to upper case as specified in 6.1.\n\t c = c.toUpperCase();\n\t\n\t // b. Set the [[currency]] internal property of numberFormat to c.\n\t internal['[[currency]]'] = c;\n\t\n\t // c. Let cDigits be the result of calling the CurrencyDigits abstract\n\t // operation (defined below) with argument c.\n\t cDigits = CurrencyDigits(c);\n\t }\n\t\n\t // 21. Let cd be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"currencyDisplay\", \"string\", a List containing the\n\t // three String values \"code\", \"symbol\", and \"name\", and \"symbol\".\n\t var cd = GetOption(options, 'currencyDisplay', 'string', new List('code', 'symbol', 'name'), 'symbol');\n\t\n\t // 22. If s is \"currency\", then set the [[currencyDisplay]] internal property of\n\t // numberFormat to cd.\n\t if (s === 'currency') internal['[[currencyDisplay]]'] = cd;\n\t\n\t // 23. Let mnid be the result of calling the GetNumberOption abstract operation\n\t // (defined in 9.2.10) with arguments options, \"minimumIntegerDigits\", 1, 21,\n\t // and 1.\n\t var mnid = GetNumberOption(options, 'minimumIntegerDigits', 1, 21, 1);\n\t\n\t // 24. Set the [[minimumIntegerDigits]] internal property of numberFormat to mnid.\n\t internal['[[minimumIntegerDigits]]'] = mnid;\n\t\n\t // 25. If s is \"currency\", then let mnfdDefault be cDigits; else let mnfdDefault\n\t // be 0.\n\t var mnfdDefault = s === 'currency' ? cDigits : 0;\n\t\n\t // 26. Let mnfd be the result of calling the GetNumberOption abstract operation\n\t // with arguments options, \"minimumFractionDigits\", 0, 20, and mnfdDefault.\n\t var mnfd = GetNumberOption(options, 'minimumFractionDigits', 0, 20, mnfdDefault);\n\t\n\t // 27. Set the [[minimumFractionDigits]] internal property of numberFormat to mnfd.\n\t internal['[[minimumFractionDigits]]'] = mnfd;\n\t\n\t // 28. If s is \"currency\", then let mxfdDefault be max(mnfd, cDigits); else if s\n\t // is \"percent\", then let mxfdDefault be max(mnfd, 0); else let mxfdDefault\n\t // be max(mnfd, 3).\n\t var mxfdDefault = s === 'currency' ? Math.max(mnfd, cDigits) : s === 'percent' ? Math.max(mnfd, 0) : Math.max(mnfd, 3);\n\t\n\t // 29. Let mxfd be the result of calling the GetNumberOption abstract operation\n\t // with arguments options, \"maximumFractionDigits\", mnfd, 20, and mxfdDefault.\n\t var mxfd = GetNumberOption(options, 'maximumFractionDigits', mnfd, 20, mxfdDefault);\n\t\n\t // 30. Set the [[maximumFractionDigits]] internal property of numberFormat to mxfd.\n\t internal['[[maximumFractionDigits]]'] = mxfd;\n\t\n\t // 31. Let mnsd be the result of calling the [[Get]] internal method of options\n\t // with argument \"minimumSignificantDigits\".\n\t var mnsd = options.minimumSignificantDigits;\n\t\n\t // 32. Let mxsd be the result of calling the [[Get]] internal method of options\n\t // with argument \"maximumSignificantDigits\".\n\t var mxsd = options.maximumSignificantDigits;\n\t\n\t // 33. If mnsd is not undefined or mxsd is not undefined, then:\n\t if (mnsd !== undefined || mxsd !== undefined) {\n\t // a. Let mnsd be the result of calling the GetNumberOption abstract\n\t // operation with arguments options, \"minimumSignificantDigits\", 1, 21,\n\t // and 1.\n\t mnsd = GetNumberOption(options, 'minimumSignificantDigits', 1, 21, 1);\n\t\n\t // b. Let mxsd be the result of calling the GetNumberOption abstract\n\t // operation with arguments options, \"maximumSignificantDigits\", mnsd,\n\t // 21, and 21.\n\t mxsd = GetNumberOption(options, 'maximumSignificantDigits', mnsd, 21, 21);\n\t\n\t // c. Set the [[minimumSignificantDigits]] internal property of numberFormat\n\t // to mnsd, and the [[maximumSignificantDigits]] internal property of\n\t // numberFormat to mxsd.\n\t internal['[[minimumSignificantDigits]]'] = mnsd;\n\t internal['[[maximumSignificantDigits]]'] = mxsd;\n\t }\n\t // 34. Let g be the result of calling the GetOption abstract operation with the\n\t // arguments options, \"useGrouping\", \"boolean\", undefined, and true.\n\t var g = GetOption(options, 'useGrouping', 'boolean', undefined, true);\n\t\n\t // 35. Set the [[useGrouping]] internal property of numberFormat to g.\n\t internal['[[useGrouping]]'] = g;\n\t\n\t // 36. Let dataLocaleData be the result of calling the [[Get]] internal method of\n\t // localeData with argument dataLocale.\n\t var dataLocaleData = localeData[dataLocale];\n\t\n\t // 37. Let patterns be the result of calling the [[Get]] internal method of\n\t // dataLocaleData with argument \"patterns\".\n\t var patterns = dataLocaleData.patterns;\n\t\n\t // 38. Assert: patterns is an object (see 11.2.3)\n\t\n\t // 39. Let stylePatterns be the result of calling the [[Get]] internal method of\n\t // patterns with argument s.\n\t var stylePatterns = patterns[s];\n\t\n\t // 40. Set the [[positivePattern]] internal property of numberFormat to the\n\t // result of calling the [[Get]] internal method of stylePatterns with the\n\t // argument \"positivePattern\".\n\t internal['[[positivePattern]]'] = stylePatterns.positivePattern;\n\t\n\t // 41. Set the [[negativePattern]] internal property of numberFormat to the\n\t // result of calling the [[Get]] internal method of stylePatterns with the\n\t // argument \"negativePattern\".\n\t internal['[[negativePattern]]'] = stylePatterns.negativePattern;\n\t\n\t // 42. Set the [[boundFormat]] internal property of numberFormat to undefined.\n\t internal['[[boundFormat]]'] = undefined;\n\t\n\t // 43. Set the [[initializedNumberFormat]] internal property of numberFormat to\n\t // true.\n\t internal['[[initializedNumberFormat]]'] = true;\n\t\n\t // In ES3, we need to pre-bind the format() function\n\t if (es3) numberFormat.format = GetFormatNumber.call(numberFormat);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // Return the newly initialised object\n\t return numberFormat;\n\t}\n\t\n\tfunction CurrencyDigits(currency) {\n\t // When the CurrencyDigits abstract operation is called with an argument currency\n\t // (which must be an upper case String value), the following steps are taken:\n\t\n\t // 1. If the ISO 4217 currency and funds code list contains currency as an\n\t // alphabetic code, then return the minor unit value corresponding to the\n\t // currency from the list; else return 2.\n\t return currencyMinorUnits[currency] !== undefined ? currencyMinorUnits[currency] : 2;\n\t}\n\t\n\t/* 11.2.3 */internals.NumberFormat = {\n\t '[[availableLocales]]': [],\n\t '[[relevantExtensionKeys]]': ['nu'],\n\t '[[localeData]]': {}\n\t};\n\t\n\t/**\n\t * When the supportedLocalesOf method of Intl.NumberFormat is called, the\n\t * following steps are taken:\n\t */\n\t/* 11.2.2 */\n\tdefineProperty(Intl.NumberFormat, 'supportedLocalesOf', {\n\t configurable: true,\n\t writable: true,\n\t value: fnBind.call(function (locales) {\n\t // Bound functions only have the `this` value altered if being used as a constructor,\n\t // this lets us imitate a native function that has no constructor\n\t if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore(),\n\t\n\t\n\t // 1. If options is not provided, then let options be undefined.\n\t options = arguments[1],\n\t\n\t\n\t // 2. Let availableLocales be the value of the [[availableLocales]] internal\n\t // property of the standard built-in object that is the initial value of\n\t // Intl.NumberFormat.\n\t\n\t availableLocales = this['[[availableLocales]]'],\n\t\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // 4. Return the result of calling the SupportedLocales abstract operation\n\t // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n\t // and options.\n\t return SupportedLocales(availableLocales, requestedLocales, options);\n\t }, internals.NumberFormat)\n\t});\n\t\n\t/**\n\t * This named accessor property returns a function that formats a number\n\t * according to the effective locale and the formatting options of this\n\t * NumberFormat object.\n\t */\n\t/* 11.3.2 */defineProperty(Intl.NumberFormat.prototype, 'format', {\n\t configurable: true,\n\t get: GetFormatNumber\n\t});\n\t\n\tfunction GetFormatNumber() {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 11.3_b\n\t if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.NumberFormat object.');\n\t\n\t // The value of the [[Get]] attribute is a function that takes the following\n\t // steps:\n\t\n\t // 1. If the [[boundFormat]] internal property of this NumberFormat object\n\t // is undefined, then:\n\t if (internal['[[boundFormat]]'] === undefined) {\n\t // a. Let F be a Function object, with internal properties set as\n\t // specified for built-in functions in ES5, 15, or successor, and the\n\t // length property set to 1, that takes the argument value and\n\t // performs the following steps:\n\t var F = function F(value) {\n\t // i. If value is not provided, then let value be undefined.\n\t // ii. Let x be ToNumber(value).\n\t // iii. Return the result of calling the FormatNumber abstract\n\t // operation (defined below) with arguments this and x.\n\t return FormatNumber(this, /* x = */Number(value));\n\t };\n\t\n\t // b. Let bind be the standard built-in function object defined in ES5,\n\t // 15.3.4.5.\n\t // c. Let bf be the result of calling the [[Call]] internal method of\n\t // bind with F as the this value and an argument list containing\n\t // the single item this.\n\t var bf = fnBind.call(F, this);\n\t\n\t // d. Set the [[boundFormat]] internal property of this NumberFormat\n\t // object to bf.\n\t internal['[[boundFormat]]'] = bf;\n\t }\n\t // Return the value of the [[boundFormat]] internal property of this\n\t // NumberFormat object.\n\t return internal['[[boundFormat]]'];\n\t}\n\t\n\tIntl.NumberFormat.prototype.formatToParts = function (value) {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.NumberFormat object.');\n\t\n\t var x = Number(value);\n\t return FormatNumberToParts(this, x);\n\t};\n\t\n\t/*\n\t * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n\t * @clause[sec-formatnumbertoparts]\n\t */\n\tfunction FormatNumberToParts(numberFormat, x) {\n\t // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n\t var parts = PartitionNumberPattern(numberFormat, x);\n\t // 2. Let result be ArrayCreate(0).\n\t var result = [];\n\t // 3. Let n be 0.\n\t var n = 0;\n\t // 4. For each part in parts, do:\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t // a. Let O be ObjectCreate(%ObjectPrototype%).\n\t var O = {};\n\t // a. Perform ? CreateDataPropertyOrThrow(O, \"type\", part.[[type]]).\n\t O.type = part['[[type]]'];\n\t // a. Perform ? CreateDataPropertyOrThrow(O, \"value\", part.[[value]]).\n\t O.value = part['[[value]]'];\n\t // a. Perform ? CreateDataPropertyOrThrow(result, ? ToString(n), O).\n\t result[n] = O;\n\t // a. Increment n by 1.\n\t n += 1;\n\t }\n\t // 5. Return result.\n\t return result;\n\t}\n\t\n\t/*\n\t * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n\t * @clause[sec-partitionnumberpattern]\n\t */\n\tfunction PartitionNumberPattern(numberFormat, x) {\n\t\n\t var internal = getInternalProperties(numberFormat),\n\t locale = internal['[[dataLocale]]'],\n\t nums = internal['[[numberingSystem]]'],\n\t data = internals.NumberFormat['[[localeData]]'][locale],\n\t ild = data.symbols[nums] || data.symbols.latn,\n\t pattern = void 0;\n\t\n\t // 1. If x is not NaN and x < 0, then:\n\t if (!isNaN(x) && x < 0) {\n\t // a. Let x be -x.\n\t x = -x;\n\t // a. Let pattern be the value of numberFormat.[[negativePattern]].\n\t pattern = internal['[[negativePattern]]'];\n\t }\n\t // 2. Else,\n\t else {\n\t // a. Let pattern be the value of numberFormat.[[positivePattern]].\n\t pattern = internal['[[positivePattern]]'];\n\t }\n\t // 3. Let result be a new empty List.\n\t var result = new List();\n\t // 4. Let beginIndex be Call(%StringProto_indexOf%, pattern, \"{\", 0).\n\t var beginIndex = pattern.indexOf('{', 0);\n\t // 5. Let endIndex be 0.\n\t var endIndex = 0;\n\t // 6. Let nextIndex be 0.\n\t var nextIndex = 0;\n\t // 7. Let length be the number of code units in pattern.\n\t var length = pattern.length;\n\t // 8. Repeat while beginIndex is an integer index into pattern:\n\t while (beginIndex > -1 && beginIndex < length) {\n\t // a. Set endIndex to Call(%StringProto_indexOf%, pattern, \"}\", beginIndex)\n\t endIndex = pattern.indexOf('}', beginIndex);\n\t // a. If endIndex = -1, throw new Error exception.\n\t if (endIndex === -1) throw new Error();\n\t // a. If beginIndex is greater than nextIndex, then:\n\t if (beginIndex > nextIndex) {\n\t // i. Let literal be a substring of pattern from position nextIndex, inclusive, to position beginIndex, exclusive.\n\t var literal = pattern.substring(nextIndex, beginIndex);\n\t // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': literal });\n\t }\n\t // a. Let p be the substring of pattern from position beginIndex, exclusive, to position endIndex, exclusive.\n\t var p = pattern.substring(beginIndex + 1, endIndex);\n\t // a. If p is equal \"number\", then:\n\t if (p === \"number\") {\n\t // i. If x is NaN,\n\t if (isNaN(x)) {\n\t // 1. Let n be an ILD String value indicating the NaN value.\n\t var n = ild.nan;\n\t // 2. Add new part record { [[type]]: \"nan\", [[value]]: n } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'nan', '[[value]]': n });\n\t }\n\t // ii. Else if isFinite(x) is false,\n\t else if (!isFinite(x)) {\n\t // 1. Let n be an ILD String value indicating infinity.\n\t var _n = ild.infinity;\n\t // 2. Add new part record { [[type]]: \"infinity\", [[value]]: n } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'infinity', '[[value]]': _n });\n\t }\n\t // iii. Else,\n\t else {\n\t // 1. If the value of numberFormat.[[style]] is \"percent\" and isFinite(x), let x be 100 × x.\n\t if (internal['[[style]]'] === 'percent' && isFinite(x)) x *= 100;\n\t\n\t var _n2 = void 0;\n\t // 2. If the numberFormat.[[minimumSignificantDigits]] and numberFormat.[[maximumSignificantDigits]] are present, then\n\t if (hop.call(internal, '[[minimumSignificantDigits]]') && hop.call(internal, '[[maximumSignificantDigits]]')) {\n\t // a. Let n be ToRawPrecision(x, numberFormat.[[minimumSignificantDigits]], numberFormat.[[maximumSignificantDigits]]).\n\t _n2 = ToRawPrecision(x, internal['[[minimumSignificantDigits]]'], internal['[[maximumSignificantDigits]]']);\n\t }\n\t // 3. Else,\n\t else {\n\t // a. Let n be ToRawFixed(x, numberFormat.[[minimumIntegerDigits]], numberFormat.[[minimumFractionDigits]], numberFormat.[[maximumFractionDigits]]).\n\t _n2 = ToRawFixed(x, internal['[[minimumIntegerDigits]]'], internal['[[minimumFractionDigits]]'], internal['[[maximumFractionDigits]]']);\n\t }\n\t // 4. If the value of the numberFormat.[[numberingSystem]] matches one of the values in the \"Numbering System\" column of Table 2 below, then\n\t if (numSys[nums]) {\n\t (function () {\n\t // a. Let digits be an array whose 10 String valued elements are the UTF-16 string representations of the 10 digits specified in the \"Digits\" column of the matching row in Table 2.\n\t var digits = numSys[nums];\n\t // a. Replace each digit in n with the value of digits[digit].\n\t _n2 = String(_n2).replace(/\\d/g, function (digit) {\n\t return digits[digit];\n\t });\n\t })();\n\t }\n\t // 5. Else use an implementation dependent algorithm to map n to the appropriate representation of n in the given numbering system.\n\t else _n2 = String(_n2); // ###TODO###\n\t\n\t var integer = void 0;\n\t var fraction = void 0;\n\t // 6. Let decimalSepIndex be Call(%StringProto_indexOf%, n, \".\", 0).\n\t var decimalSepIndex = _n2.indexOf('.', 0);\n\t // 7. If decimalSepIndex > 0, then:\n\t if (decimalSepIndex > 0) {\n\t // a. Let integer be the substring of n from position 0, inclusive, to position decimalSepIndex, exclusive.\n\t integer = _n2.substring(0, decimalSepIndex);\n\t // a. Let fraction be the substring of n from position decimalSepIndex, exclusive, to the end of n.\n\t fraction = _n2.substring(decimalSepIndex + 1, decimalSepIndex.length);\n\t }\n\t // 8. Else:\n\t else {\n\t // a. Let integer be n.\n\t integer = _n2;\n\t // a. Let fraction be undefined.\n\t fraction = undefined;\n\t }\n\t // 9. If the value of the numberFormat.[[useGrouping]] is true,\n\t if (internal['[[useGrouping]]'] === true) {\n\t // a. Let groupSepSymbol be the ILND String representing the grouping separator.\n\t var groupSepSymbol = ild.group;\n\t // a. Let groups be a List whose elements are, in left to right order, the substrings defined by ILND set of locations within the integer.\n\t var groups = [];\n\t // ----> implementation:\n\t // Primary group represents the group closest to the decimal\n\t var pgSize = data.patterns.primaryGroupSize || 3;\n\t // Secondary group is every other group\n\t var sgSize = data.patterns.secondaryGroupSize || pgSize;\n\t // Group only if necessary\n\t if (integer.length > pgSize) {\n\t // Index of the primary grouping separator\n\t var end = integer.length - pgSize;\n\t // Starting index for our loop\n\t var idx = end % sgSize;\n\t var start = integer.slice(0, idx);\n\t if (start.length) arrPush.call(groups, start);\n\t // Loop to separate into secondary grouping digits\n\t while (idx < end) {\n\t arrPush.call(groups, integer.slice(idx, idx + sgSize));\n\t idx += sgSize;\n\t }\n\t // Add the primary grouping digits\n\t arrPush.call(groups, integer.slice(end));\n\t } else {\n\t arrPush.call(groups, integer);\n\t }\n\t // a. Assert: The number of elements in groups List is greater than 0.\n\t if (groups.length === 0) throw new Error();\n\t // a. Repeat, while groups List is not empty:\n\t while (groups.length) {\n\t // i. Remove the first element from groups and let integerGroup be the value of that element.\n\t var integerGroup = arrShift.call(groups);\n\t // ii. Add new part record { [[type]]: \"integer\", [[value]]: integerGroup } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integerGroup });\n\t // iii. If groups List is not empty, then:\n\t if (groups.length) {\n\t // 1. Add new part record { [[type]]: \"group\", [[value]]: groupSepSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'group', '[[value]]': groupSepSymbol });\n\t }\n\t }\n\t }\n\t // 10. Else,\n\t else {\n\t // a. Add new part record { [[type]]: \"integer\", [[value]]: integer } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integer });\n\t }\n\t // 11. If fraction is not undefined, then:\n\t if (fraction !== undefined) {\n\t // a. Let decimalSepSymbol be the ILND String representing the decimal separator.\n\t var decimalSepSymbol = ild.decimal;\n\t // a. Add new part record { [[type]]: \"decimal\", [[value]]: decimalSepSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'decimal', '[[value]]': decimalSepSymbol });\n\t // a. Add new part record { [[type]]: \"fraction\", [[value]]: fraction } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'fraction', '[[value]]': fraction });\n\t }\n\t }\n\t }\n\t // a. Else if p is equal \"plusSign\", then:\n\t else if (p === \"plusSign\") {\n\t // i. Let plusSignSymbol be the ILND String representing the plus sign.\n\t var plusSignSymbol = ild.plusSign;\n\t // ii. Add new part record { [[type]]: \"plusSign\", [[value]]: plusSignSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'plusSign', '[[value]]': plusSignSymbol });\n\t }\n\t // a. Else if p is equal \"minusSign\", then:\n\t else if (p === \"minusSign\") {\n\t // i. Let minusSignSymbol be the ILND String representing the minus sign.\n\t var minusSignSymbol = ild.minusSign;\n\t // ii. Add new part record { [[type]]: \"minusSign\", [[value]]: minusSignSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'minusSign', '[[value]]': minusSignSymbol });\n\t }\n\t // a. Else if p is equal \"percentSign\" and numberFormat.[[style]] is \"percent\", then:\n\t else if (p === \"percentSign\" && internal['[[style]]'] === \"percent\") {\n\t // i. Let percentSignSymbol be the ILND String representing the percent sign.\n\t var percentSignSymbol = ild.percentSign;\n\t // ii. Add new part record { [[type]]: \"percentSign\", [[value]]: percentSignSymbol } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': percentSignSymbol });\n\t }\n\t // a. Else if p is equal \"currency\" and numberFormat.[[style]] is \"currency\", then:\n\t else if (p === \"currency\" && internal['[[style]]'] === \"currency\") {\n\t // i. Let currency be the value of numberFormat.[[currency]].\n\t var currency = internal['[[currency]]'];\n\t\n\t var cd = void 0;\n\t\n\t // ii. If numberFormat.[[currencyDisplay]] is \"code\", then\n\t if (internal['[[currencyDisplay]]'] === \"code\") {\n\t // 1. Let cd be currency.\n\t cd = currency;\n\t }\n\t // iii. Else if numberFormat.[[currencyDisplay]] is \"symbol\", then\n\t else if (internal['[[currencyDisplay]]'] === \"symbol\") {\n\t // 1. Let cd be an ILD string representing currency in short form. If the implementation does not have such a representation of currency, use currency itself.\n\t cd = data.currencies[currency] || currency;\n\t }\n\t // iv. Else if numberFormat.[[currencyDisplay]] is \"name\", then\n\t else if (internal['[[currencyDisplay]]'] === \"name\") {\n\t // 1. Let cd be an ILD string representing currency in long form. If the implementation does not have such a representation of currency, then use currency itself.\n\t cd = currency;\n\t }\n\t // v. Add new part record { [[type]]: \"currency\", [[value]]: cd } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'currency', '[[value]]': cd });\n\t }\n\t // a. Else,\n\t else {\n\t // i. Let literal be the substring of pattern from position beginIndex, inclusive, to position endIndex, inclusive.\n\t var _literal = pattern.substring(beginIndex, endIndex);\n\t // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal });\n\t }\n\t // a. Set nextIndex to endIndex + 1.\n\t nextIndex = endIndex + 1;\n\t // a. Set beginIndex to Call(%StringProto_indexOf%, pattern, \"{\", nextIndex)\n\t beginIndex = pattern.indexOf('{', nextIndex);\n\t }\n\t // 9. If nextIndex is less than length, then:\n\t if (nextIndex < length) {\n\t // a. Let literal be the substring of pattern from position nextIndex, inclusive, to position length, exclusive.\n\t var _literal2 = pattern.substring(nextIndex, length);\n\t // a. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n\t arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal2 });\n\t }\n\t // 10. Return result.\n\t return result;\n\t}\n\t\n\t/*\n\t * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n\t * @clause[sec-formatnumber]\n\t */\n\tfunction FormatNumber(numberFormat, x) {\n\t // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n\t var parts = PartitionNumberPattern(numberFormat, x);\n\t // 2. Let result be an empty String.\n\t var result = '';\n\t // 3. For each part in parts, do:\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t // a. Set result to a String value produced by concatenating result and part.[[value]].\n\t result += part['[[value]]'];\n\t }\n\t // 4. Return result.\n\t return result;\n\t}\n\t\n\t/**\n\t * When the ToRawPrecision abstract operation is called with arguments x (which\n\t * must be a finite non-negative number), minPrecision, and maxPrecision (both\n\t * must be integers between 1 and 21) the following steps are taken:\n\t */\n\tfunction ToRawPrecision(x, minPrecision, maxPrecision) {\n\t // 1. Let p be maxPrecision.\n\t var p = maxPrecision;\n\t\n\t var m = void 0,\n\t e = void 0;\n\t\n\t // 2. If x = 0, then\n\t if (x === 0) {\n\t // a. Let m be the String consisting of p occurrences of the character \"0\".\n\t m = arrJoin.call(Array(p + 1), '0');\n\t // b. Let e be 0.\n\t e = 0;\n\t }\n\t // 3. Else\n\t else {\n\t // a. Let e and n be integers such that 10ᵖ⁻¹ ≤ n < 10ᵖ and for which the\n\t // exact mathematical value of n × 10ᵉ⁻ᵖ⁺¹ – x is as close to zero as\n\t // possible. If there are two such sets of e and n, pick the e and n for\n\t // which n × 10ᵉ⁻ᵖ⁺¹ is larger.\n\t e = log10Floor(Math.abs(x));\n\t\n\t // Easier to get to m from here\n\t var f = Math.round(Math.exp(Math.abs(e - p + 1) * Math.LN10));\n\t\n\t // b. Let m be the String consisting of the digits of the decimal\n\t // representation of n (in order, with no leading zeroes)\n\t m = String(Math.round(e - p + 1 < 0 ? x * f : x / f));\n\t }\n\t\n\t // 4. If e ≥ p, then\n\t if (e >= p)\n\t // a. Return the concatenation of m and e-p+1 occurrences of the character \"0\".\n\t return m + arrJoin.call(Array(e - p + 1 + 1), '0');\n\t\n\t // 5. If e = p-1, then\n\t else if (e === p - 1)\n\t // a. Return m.\n\t return m;\n\t\n\t // 6. If e ≥ 0, then\n\t else if (e >= 0)\n\t // a. Let m be the concatenation of the first e+1 characters of m, the character\n\t // \".\", and the remaining p–(e+1) characters of m.\n\t m = m.slice(0, e + 1) + '.' + m.slice(e + 1);\n\t\n\t // 7. If e < 0, then\n\t else if (e < 0)\n\t // a. Let m be the concatenation of the String \"0.\", –(e+1) occurrences of the\n\t // character \"0\", and the string m.\n\t m = '0.' + arrJoin.call(Array(-(e + 1) + 1), '0') + m;\n\t\n\t // 8. If m contains the character \".\", and maxPrecision > minPrecision, then\n\t if (m.indexOf(\".\") >= 0 && maxPrecision > minPrecision) {\n\t // a. Let cut be maxPrecision – minPrecision.\n\t var cut = maxPrecision - minPrecision;\n\t\n\t // b. Repeat while cut > 0 and the last character of m is \"0\":\n\t while (cut > 0 && m.charAt(m.length - 1) === '0') {\n\t // i. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t\n\t // ii. Decrease cut by 1.\n\t cut--;\n\t }\n\t\n\t // c. If the last character of m is \".\", then\n\t if (m.charAt(m.length - 1) === '.')\n\t // i. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t }\n\t // 9. Return m.\n\t return m;\n\t}\n\t\n\t/**\n\t * @spec[tc39/ecma402/master/spec/numberformat.html]\n\t * @clause[sec-torawfixed]\n\t * When the ToRawFixed abstract operation is called with arguments x (which must\n\t * be a finite non-negative number), minInteger (which must be an integer between\n\t * 1 and 21), minFraction, and maxFraction (which must be integers between 0 and\n\t * 20) the following steps are taken:\n\t */\n\tfunction ToRawFixed(x, minInteger, minFraction, maxFraction) {\n\t // 1. Let f be maxFraction.\n\t var f = maxFraction;\n\t // 2. Let n be an integer for which the exact mathematical value of n ÷ 10f – x is as close to zero as possible. If there are two such n, pick the larger n.\n\t var n = Math.pow(10, f) * x; // diverging...\n\t // 3. If n = 0, let m be the String \"0\". Otherwise, let m be the String consisting of the digits of the decimal representation of n (in order, with no leading zeroes).\n\t var m = n === 0 ? \"0\" : n.toFixed(0); // divering...\n\t\n\t {\n\t // this diversion is needed to take into consideration big numbers, e.g.:\n\t // 1.2344501e+37 -> 12344501000000000000000000000000000000\n\t var idx = void 0;\n\t var exp = (idx = m.indexOf('e')) > -1 ? m.slice(idx + 1) : 0;\n\t if (exp) {\n\t m = m.slice(0, idx).replace('.', '');\n\t m += arrJoin.call(Array(exp - (m.length - 1) + 1), '0');\n\t }\n\t }\n\t\n\t var int = void 0;\n\t // 4. If f ≠ 0, then\n\t if (f !== 0) {\n\t // a. Let k be the number of characters in m.\n\t var k = m.length;\n\t // a. If k ≤ f, then\n\t if (k <= f) {\n\t // i. Let z be the String consisting of f+1–k occurrences of the character \"0\".\n\t var z = arrJoin.call(Array(f + 1 - k + 1), '0');\n\t // ii. Let m be the concatenation of Strings z and m.\n\t m = z + m;\n\t // iii. Let k be f+1.\n\t k = f + 1;\n\t }\n\t // a. Let a be the first k–f characters of m, and let b be the remaining f characters of m.\n\t var a = m.substring(0, k - f),\n\t b = m.substring(k - f, m.length);\n\t // a. Let m be the concatenation of the three Strings a, \".\", and b.\n\t m = a + \".\" + b;\n\t // a. Let int be the number of characters in a.\n\t int = a.length;\n\t }\n\t // 5. Else, let int be the number of characters in m.\n\t else int = m.length;\n\t // 6. Let cut be maxFraction – minFraction.\n\t var cut = maxFraction - minFraction;\n\t // 7. Repeat while cut > 0 and the last character of m is \"0\":\n\t while (cut > 0 && m.slice(-1) === \"0\") {\n\t // a. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t // a. Decrease cut by 1.\n\t cut--;\n\t }\n\t // 8. If the last character of m is \".\", then\n\t if (m.slice(-1) === \".\") {\n\t // a. Remove the last character from m.\n\t m = m.slice(0, -1);\n\t }\n\t // 9. If int < minInteger, then\n\t if (int < minInteger) {\n\t // a. Let z be the String consisting of minInteger–int occurrences of the character \"0\".\n\t var _z = arrJoin.call(Array(minInteger - int + 1), '0');\n\t // a. Let m be the concatenation of Strings z and m.\n\t m = _z + m;\n\t }\n\t // 10. Return m.\n\t return m;\n\t}\n\t\n\t// Sect 11.3.2 Table 2, Numbering systems\n\t// ======================================\n\tvar numSys = {\n\t arab: [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"],\n\t arabext: [\"۰\", \"۱\", \"۲\", \"۳\", \"۴\", \"۵\", \"۶\", \"۷\", \"۸\", \"۹\"],\n\t bali: [\"᭐\", \"᭑\", \"᭒\", \"᭓\", \"᭔\", \"᭕\", \"᭖\", \"᭗\", \"᭘\", \"᭙\"],\n\t beng: [\"০\", \"১\", \"২\", \"৩\", \"৪\", \"৫\", \"৬\", \"৭\", \"৮\", \"৯\"],\n\t deva: [\"०\", \"१\", \"२\", \"३\", \"४\", \"५\", \"६\", \"७\", \"८\", \"९\"],\n\t fullwide: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n\t gujr: [\"૦\", \"૧\", \"૨\", \"૩\", \"૪\", \"૫\", \"૬\", \"૭\", \"૮\", \"૯\"],\n\t guru: [\"੦\", \"੧\", \"੨\", \"੩\", \"੪\", \"੫\", \"੬\", \"੭\", \"੮\", \"੯\"],\n\t hanidec: [\"〇\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\"],\n\t khmr: [\"០\", \"១\", \"២\", \"៣\", \"៤\", \"៥\", \"៦\", \"៧\", \"៨\", \"៩\"],\n\t knda: [\"೦\", \"೧\", \"೨\", \"೩\", \"೪\", \"೫\", \"೬\", \"೭\", \"೮\", \"೯\"],\n\t laoo: [\"໐\", \"໑\", \"໒\", \"໓\", \"໔\", \"໕\", \"໖\", \"໗\", \"໘\", \"໙\"],\n\t latn: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n\t limb: [\"᥆\", \"᥇\", \"᥈\", \"᥉\", \"᥊\", \"᥋\", \"᥌\", \"᥍\", \"᥎\", \"᥏\"],\n\t mlym: [\"൦\", \"൧\", \"൨\", \"൩\", \"൪\", \"൫\", \"൬\", \"൭\", \"൮\", \"൯\"],\n\t mong: [\"᠐\", \"᠑\", \"᠒\", \"᠓\", \"᠔\", \"᠕\", \"᠖\", \"᠗\", \"᠘\", \"᠙\"],\n\t mymr: [\"၀\", \"၁\", \"၂\", \"၃\", \"၄\", \"၅\", \"၆\", \"၇\", \"၈\", \"၉\"],\n\t orya: [\"୦\", \"୧\", \"୨\", \"୩\", \"୪\", \"୫\", \"୬\", \"୭\", \"୮\", \"୯\"],\n\t tamldec: [\"௦\", \"௧\", \"௨\", \"௩\", \"௪\", \"௫\", \"௬\", \"௭\", \"௮\", \"௯\"],\n\t telu: [\"౦\", \"౧\", \"౨\", \"౩\", \"౪\", \"౫\", \"౬\", \"౭\", \"౮\", \"౯\"],\n\t thai: [\"๐\", \"๑\", \"๒\", \"๓\", \"๔\", \"๕\", \"๖\", \"๗\", \"๘\", \"๙\"],\n\t tibt: [\"༠\", \"༡\", \"༢\", \"༣\", \"༤\", \"༥\", \"༦\", \"༧\", \"༨\", \"༩\"]\n\t};\n\t\n\t/**\n\t * This function provides access to the locale and formatting options computed\n\t * during initialization of the object.\n\t *\n\t * The function returns a new object whose properties and attributes are set as\n\t * if constructed by an object literal assigning to each of the following\n\t * properties the value of the corresponding internal property of this\n\t * NumberFormat object (see 11.4): locale, numberingSystem, style, currency,\n\t * currencyDisplay, minimumIntegerDigits, minimumFractionDigits,\n\t * maximumFractionDigits, minimumSignificantDigits, maximumSignificantDigits, and\n\t * useGrouping. Properties whose corresponding internal properties are not present\n\t * are not assigned.\n\t */\n\t/* 11.3.3 */defineProperty(Intl.NumberFormat.prototype, 'resolvedOptions', {\n\t configurable: true,\n\t writable: true,\n\t value: function value() {\n\t var prop = void 0,\n\t descs = new Record(),\n\t props = ['locale', 'numberingSystem', 'style', 'currency', 'currencyDisplay', 'minimumIntegerDigits', 'minimumFractionDigits', 'maximumFractionDigits', 'minimumSignificantDigits', 'maximumSignificantDigits', 'useGrouping'],\n\t internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 11.3_b\n\t if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.');\n\t\n\t for (var i = 0, max = props.length; i < max; i++) {\n\t if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n\t }\n\t\n\t return objCreate({}, descs);\n\t }\n\t});\n\t\n\t/* jslint esnext: true */\n\t\n\t// Match these datetime components in a CLDR pattern, except those in single quotes\n\tvar expDTComponents = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n\t// trim patterns after transformations\n\tvar expPatternTrimmer = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n\t// Skip over patterns with these datetime components because we don't have data\n\t// to back them up:\n\t// timezone, weekday, amoung others\n\tvar unwantedDTCs = /[rqQASjJgwWIQq]/; // xXVO were removed from this list in favor of computing matches with timeZoneName values but printing as empty string\n\t\n\tvar dtKeys = [\"weekday\", \"era\", \"year\", \"month\", \"day\", \"weekday\", \"quarter\"];\n\tvar tmKeys = [\"hour\", \"minute\", \"second\", \"hour12\", \"timeZoneName\"];\n\t\n\tfunction isDateFormatOnly(obj) {\n\t for (var i = 0; i < tmKeys.length; i += 1) {\n\t if (obj.hasOwnProperty(tmKeys[i])) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}\n\t\n\tfunction isTimeFormatOnly(obj) {\n\t for (var i = 0; i < dtKeys.length; i += 1) {\n\t if (obj.hasOwnProperty(dtKeys[i])) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}\n\t\n\tfunction joinDateAndTimeFormats(dateFormatObj, timeFormatObj) {\n\t var o = { _: {} };\n\t for (var i = 0; i < dtKeys.length; i += 1) {\n\t if (dateFormatObj[dtKeys[i]]) {\n\t o[dtKeys[i]] = dateFormatObj[dtKeys[i]];\n\t }\n\t if (dateFormatObj._[dtKeys[i]]) {\n\t o._[dtKeys[i]] = dateFormatObj._[dtKeys[i]];\n\t }\n\t }\n\t for (var j = 0; j < tmKeys.length; j += 1) {\n\t if (timeFormatObj[tmKeys[j]]) {\n\t o[tmKeys[j]] = timeFormatObj[tmKeys[j]];\n\t }\n\t if (timeFormatObj._[tmKeys[j]]) {\n\t o._[tmKeys[j]] = timeFormatObj._[tmKeys[j]];\n\t }\n\t }\n\t return o;\n\t}\n\t\n\tfunction computeFinalPatterns(formatObj) {\n\t // From http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns:\n\t // 'In patterns, two single quotes represents a literal single quote, either\n\t // inside or outside single quotes. Text within single quotes is not\n\t // interpreted in any way (except for two adjacent single quotes).'\n\t formatObj.pattern12 = formatObj.extendedPattern.replace(/'([^']*)'/g, function ($0, literal) {\n\t return literal ? literal : \"'\";\n\t });\n\t\n\t // pattern 12 is always the default. we can produce the 24 by removing {ampm}\n\t formatObj.pattern = formatObj.pattern12.replace('{ampm}', '').replace(expPatternTrimmer, '');\n\t return formatObj;\n\t}\n\t\n\tfunction expDTComponentsMeta($0, formatObj) {\n\t switch ($0.charAt(0)) {\n\t // --- Era\n\t case 'G':\n\t formatObj.era = ['short', 'short', 'short', 'long', 'narrow'][$0.length - 1];\n\t return '{era}';\n\t\n\t // --- Year\n\t case 'y':\n\t case 'Y':\n\t case 'u':\n\t case 'U':\n\t case 'r':\n\t formatObj.year = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{year}';\n\t\n\t // --- Quarter (not supported in this polyfill)\n\t case 'Q':\n\t case 'q':\n\t formatObj.quarter = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n\t return '{quarter}';\n\t\n\t // --- Month\n\t case 'M':\n\t case 'L':\n\t formatObj.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n\t return '{month}';\n\t\n\t // --- Week (not supported in this polyfill)\n\t case 'w':\n\t // week of the year\n\t formatObj.week = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{weekday}';\n\t case 'W':\n\t // week of the month\n\t formatObj.week = 'numeric';\n\t return '{weekday}';\n\t\n\t // --- Day\n\t case 'd':\n\t // day of the month\n\t formatObj.day = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{day}';\n\t case 'D': // day of the year\n\t case 'F': // day of the week\n\t case 'g':\n\t // 1..n: Modified Julian day\n\t formatObj.day = 'numeric';\n\t return '{day}';\n\t\n\t // --- Week Day\n\t case 'E':\n\t // day of the week\n\t formatObj.weekday = ['short', 'short', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n\t return '{weekday}';\n\t case 'e':\n\t // local day of the week\n\t formatObj.weekday = ['numeric', '2-digit', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n\t return '{weekday}';\n\t case 'c':\n\t // stand alone local day of the week\n\t formatObj.weekday = ['numeric', undefined, 'short', 'long', 'narrow', 'short'][$0.length - 1];\n\t return '{weekday}';\n\t\n\t // --- Period\n\t case 'a': // AM, PM\n\t case 'b': // am, pm, noon, midnight\n\t case 'B':\n\t // flexible day periods\n\t formatObj.hour12 = true;\n\t return '{ampm}';\n\t\n\t // --- Hour\n\t case 'h':\n\t case 'H':\n\t formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{hour}';\n\t case 'k':\n\t case 'K':\n\t formatObj.hour12 = true; // 12-hour-cycle time formats (using h or K)\n\t formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{hour}';\n\t\n\t // --- Minute\n\t case 'm':\n\t formatObj.minute = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{minute}';\n\t\n\t // --- Second\n\t case 's':\n\t formatObj.second = $0.length === 2 ? '2-digit' : 'numeric';\n\t return '{second}';\n\t case 'S':\n\t case 'A':\n\t formatObj.second = 'numeric';\n\t return '{second}';\n\t\n\t // --- Timezone\n\t case 'z': // 1..3, 4: specific non-location format\n\t case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n\t case 'O': // 1, 4: miliseconds in day short, long\n\t case 'v': // 1, 4: generic non-location format\n\t case 'V': // 1, 2, 3, 4: time zone ID or city\n\t case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n\t case 'x':\n\t // 1, 2, 3, 4: The ISO8601 varios formats\n\t // this polyfill only supports much, for now, we are just doing something dummy\n\t formatObj.timeZoneName = $0.length < 4 ? 'short' : 'long';\n\t return '{timeZoneName}';\n\t }\n\t}\n\t\n\t/**\n\t * Converts the CLDR availableFormats into the objects and patterns required by\n\t * the ECMAScript Internationalization API specification.\n\t */\n\tfunction createDateTimeFormat(skeleton, pattern) {\n\t // we ignore certain patterns that are unsupported to avoid this expensive op.\n\t if (unwantedDTCs.test(pattern)) return undefined;\n\t\n\t var formatObj = {\n\t originalPattern: pattern,\n\t _: {}\n\t };\n\t\n\t // Replace the pattern string with the one required by the specification, whilst\n\t // at the same time evaluating it for the subsets and formats\n\t formatObj.extendedPattern = pattern.replace(expDTComponents, function ($0) {\n\t // See which symbol we're dealing with\n\t return expDTComponentsMeta($0, formatObj._);\n\t });\n\t\n\t // Match the skeleton string with the one required by the specification\n\t // this implementation is based on the Date Field Symbol Table:\n\t // http://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n\t // Note: we are adding extra data to the formatObject even though this polyfill\n\t // might not support it.\n\t skeleton.replace(expDTComponents, function ($0) {\n\t // See which symbol we're dealing with\n\t return expDTComponentsMeta($0, formatObj);\n\t });\n\t\n\t return computeFinalPatterns(formatObj);\n\t}\n\t\n\t/**\n\t * Processes DateTime formats from CLDR to an easier-to-parse format.\n\t * the result of this operation should be cached the first time a particular\n\t * calendar is analyzed.\n\t *\n\t * The specification requires we support at least the following subsets of\n\t * date/time components:\n\t *\n\t * - 'weekday', 'year', 'month', 'day', 'hour', 'minute', 'second'\n\t * - 'weekday', 'year', 'month', 'day'\n\t * - 'year', 'month', 'day'\n\t * - 'year', 'month'\n\t * - 'month', 'day'\n\t * - 'hour', 'minute', 'second'\n\t * - 'hour', 'minute'\n\t *\n\t * We need to cherry pick at least these subsets from the CLDR data and convert\n\t * them into the pattern objects used in the ECMA-402 API.\n\t */\n\tfunction createDateTimeFormats(formats) {\n\t var availableFormats = formats.availableFormats;\n\t var timeFormats = formats.timeFormats;\n\t var dateFormats = formats.dateFormats;\n\t var result = [];\n\t var skeleton = void 0,\n\t pattern = void 0,\n\t computed = void 0,\n\t i = void 0,\n\t j = void 0;\n\t var timeRelatedFormats = [];\n\t var dateRelatedFormats = [];\n\t\n\t // Map available (custom) formats into a pattern for createDateTimeFormats\n\t for (skeleton in availableFormats) {\n\t if (availableFormats.hasOwnProperty(skeleton)) {\n\t pattern = availableFormats[skeleton];\n\t computed = createDateTimeFormat(skeleton, pattern);\n\t if (computed) {\n\t result.push(computed);\n\t // in some cases, the format is only displaying date specific props\n\t // or time specific props, in which case we need to also produce the\n\t // combined formats.\n\t if (isDateFormatOnly(computed)) {\n\t dateRelatedFormats.push(computed);\n\t } else if (isTimeFormatOnly(computed)) {\n\t timeRelatedFormats.push(computed);\n\t }\n\t }\n\t }\n\t }\n\t\n\t // Map time formats into a pattern for createDateTimeFormats\n\t for (skeleton in timeFormats) {\n\t if (timeFormats.hasOwnProperty(skeleton)) {\n\t pattern = timeFormats[skeleton];\n\t computed = createDateTimeFormat(skeleton, pattern);\n\t if (computed) {\n\t result.push(computed);\n\t timeRelatedFormats.push(computed);\n\t }\n\t }\n\t }\n\t\n\t // Map date formats into a pattern for createDateTimeFormats\n\t for (skeleton in dateFormats) {\n\t if (dateFormats.hasOwnProperty(skeleton)) {\n\t pattern = dateFormats[skeleton];\n\t computed = createDateTimeFormat(skeleton, pattern);\n\t if (computed) {\n\t result.push(computed);\n\t dateRelatedFormats.push(computed);\n\t }\n\t }\n\t }\n\t\n\t // combine custom time and custom date formats when they are orthogonals to complete the\n\t // formats supported by CLDR.\n\t // This Algo is based on section \"Missing Skeleton Fields\" from:\n\t // http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems\n\t for (i = 0; i < timeRelatedFormats.length; i += 1) {\n\t for (j = 0; j < dateRelatedFormats.length; j += 1) {\n\t if (dateRelatedFormats[j].month === 'long') {\n\t pattern = dateRelatedFormats[j].weekday ? formats.full : formats.long;\n\t } else if (dateRelatedFormats[j].month === 'short') {\n\t pattern = formats.medium;\n\t } else {\n\t pattern = formats.short;\n\t }\n\t computed = joinDateAndTimeFormats(dateRelatedFormats[j], timeRelatedFormats[i]);\n\t computed.originalPattern = pattern;\n\t computed.extendedPattern = pattern.replace('{0}', timeRelatedFormats[i].extendedPattern).replace('{1}', dateRelatedFormats[j].extendedPattern).replace(/^[,\\s]+|[,\\s]+$/gi, '');\n\t result.push(computeFinalPatterns(computed));\n\t }\n\t }\n\t\n\t return result;\n\t}\n\t\n\t// An object map of date component keys, saves using a regex later\n\tvar dateWidths = objCreate(null, { narrow: {}, short: {}, long: {} });\n\t\n\t/**\n\t * Returns a string for a date component, resolved using multiple inheritance as specified\n\t * as specified in the Unicode Technical Standard 35.\n\t */\n\tfunction resolveDateString(data, ca, component, width, key) {\n\t // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance:\n\t // 'In clearly specified instances, resources may inherit from within the same locale.\n\t // For example, ... the Buddhist calendar inherits from the Gregorian calendar.'\n\t var obj = data[ca] && data[ca][component] ? data[ca][component] : data.gregory[component],\n\t\n\t\n\t // \"sideways\" inheritance resolves strings when a key doesn't exist\n\t alts = {\n\t narrow: ['short', 'long'],\n\t short: ['long', 'narrow'],\n\t long: ['short', 'narrow']\n\t },\n\t\n\t\n\t //\n\t resolved = hop.call(obj, width) ? obj[width] : hop.call(obj, alts[width][0]) ? obj[alts[width][0]] : obj[alts[width][1]];\n\t\n\t // `key` wouldn't be specified for components 'dayPeriods'\n\t return key !== null ? resolved[key] : resolved;\n\t}\n\t\n\t// Define the DateTimeFormat constructor internally so it cannot be tainted\n\tfunction DateTimeFormatConstructor() {\n\t var locales = arguments[0];\n\t var options = arguments[1];\n\t\n\t if (!this || this === Intl) {\n\t return new Intl.DateTimeFormat(locales, options);\n\t }\n\t return InitializeDateTimeFormat(toObject(this), locales, options);\n\t}\n\t\n\tdefineProperty(Intl, 'DateTimeFormat', {\n\t configurable: true,\n\t writable: true,\n\t value: DateTimeFormatConstructor\n\t});\n\t\n\t// Must explicitly set prototypes as unwritable\n\tdefineProperty(DateTimeFormatConstructor, 'prototype', {\n\t writable: false\n\t});\n\t\n\t/**\n\t * The abstract operation InitializeDateTimeFormat accepts the arguments dateTimeFormat\n\t * (which must be an object), locales, and options. It initializes dateTimeFormat as a\n\t * DateTimeFormat object.\n\t */\n\tfunction /* 12.1.1.1 */InitializeDateTimeFormat(dateTimeFormat, locales, options) {\n\t // This will be a internal properties object if we're not already initialized\n\t var internal = getInternalProperties(dateTimeFormat);\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore();\n\t\n\t // 1. If dateTimeFormat has an [[initializedIntlObject]] internal property with\n\t // value true, throw a TypeError exception.\n\t if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\t\n\t // Need this to access the `internal` object\n\t defineProperty(dateTimeFormat, '__getInternalProperties', {\n\t value: function value() {\n\t // NOTE: Non-standard, for internal use only\n\t if (arguments[0] === secret) return internal;\n\t }\n\t });\n\t\n\t // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n\t internal['[[initializedIntlObject]]'] = true;\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t var requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // 4. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined below) with arguments options, \"any\", and \"date\".\n\t options = ToDateTimeOptions(options, 'any', 'date');\n\t\n\t // 5. Let opt be a new Record.\n\t var opt = new Record();\n\t\n\t // 6. Let matcher be the result of calling the GetOption abstract operation\n\t // (defined in 9.2.9) with arguments options, \"localeMatcher\", \"string\", a List\n\t // containing the two String values \"lookup\" and \"best fit\", and \"best fit\".\n\t var matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\t\n\t // 7. Set opt.[[localeMatcher]] to matcher.\n\t opt['[[localeMatcher]]'] = matcher;\n\t\n\t // 8. Let DateTimeFormat be the standard built-in object that is the initial\n\t // value of Intl.DateTimeFormat.\n\t var DateTimeFormat = internals.DateTimeFormat; // This is what we *really* need\n\t\n\t // 9. Let localeData be the value of the [[localeData]] internal property of\n\t // DateTimeFormat.\n\t var localeData = DateTimeFormat['[[localeData]]'];\n\t\n\t // 10. Let r be the result of calling the ResolveLocale abstract operation\n\t // (defined in 9.2.5) with the [[availableLocales]] internal property of\n\t // DateTimeFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n\t // internal property of DateTimeFormat, and localeData.\n\t var r = ResolveLocale(DateTimeFormat['[[availableLocales]]'], requestedLocales, opt, DateTimeFormat['[[relevantExtensionKeys]]'], localeData);\n\t\n\t // 11. Set the [[locale]] internal property of dateTimeFormat to the value of\n\t // r.[[locale]].\n\t internal['[[locale]]'] = r['[[locale]]'];\n\t\n\t // 12. Set the [[calendar]] internal property of dateTimeFormat to the value of\n\t // r.[[ca]].\n\t internal['[[calendar]]'] = r['[[ca]]'];\n\t\n\t // 13. Set the [[numberingSystem]] internal property of dateTimeFormat to the value of\n\t // r.[[nu]].\n\t internal['[[numberingSystem]]'] = r['[[nu]]'];\n\t\n\t // The specification doesn't tell us to do this, but it's helpful later on\n\t internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\t\n\t // 14. Let dataLocale be the value of r.[[dataLocale]].\n\t var dataLocale = r['[[dataLocale]]'];\n\t\n\t // 15. Let tz be the result of calling the [[Get]] internal method of options with\n\t // argument \"timeZone\".\n\t var tz = options.timeZone;\n\t\n\t // 16. If tz is not undefined, then\n\t if (tz !== undefined) {\n\t // a. Let tz be ToString(tz).\n\t // b. Convert tz to upper case as described in 6.1.\n\t // NOTE: If an implementation accepts additional time zone values, as permitted\n\t // under certain conditions by the Conformance clause, different casing\n\t // rules apply.\n\t tz = toLatinUpperCase(tz);\n\t\n\t // c. If tz is not \"UTC\", then throw a RangeError exception.\n\t // ###TODO: accept more time zones###\n\t if (tz !== 'UTC') throw new RangeError('timeZone is not supported.');\n\t }\n\t\n\t // 17. Set the [[timeZone]] internal property of dateTimeFormat to tz.\n\t internal['[[timeZone]]'] = tz;\n\t\n\t // 18. Let opt be a new Record.\n\t opt = new Record();\n\t\n\t // 19. For each row of Table 3, except the header row, do:\n\t for (var prop in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, prop)) continue;\n\t\n\t // 20. Let prop be the name given in the Property column of the row.\n\t // 21. Let value be the result of calling the GetOption abstract operation,\n\t // passing as argument options, the name given in the Property column of the\n\t // row, \"string\", a List containing the strings given in the Values column of\n\t // the row, and undefined.\n\t var value = GetOption(options, prop, 'string', dateTimeComponents[prop]);\n\t\n\t // 22. Set opt.[[]] to value.\n\t opt['[[' + prop + ']]'] = value;\n\t }\n\t\n\t // Assigned a value below\n\t var bestFormat = void 0;\n\t\n\t // 23. Let dataLocaleData be the result of calling the [[Get]] internal method of\n\t // localeData with argument dataLocale.\n\t var dataLocaleData = localeData[dataLocale];\n\t\n\t // 24. Let formats be the result of calling the [[Get]] internal method of\n\t // dataLocaleData with argument \"formats\".\n\t // Note: we process the CLDR formats into the spec'd structure\n\t var formats = ToDateTimeFormats(dataLocaleData.formats);\n\t\n\t // 25. Let matcher be the result of calling the GetOption abstract operation with\n\t // arguments options, \"formatMatcher\", \"string\", a List containing the two String\n\t // values \"basic\" and \"best fit\", and \"best fit\".\n\t matcher = GetOption(options, 'formatMatcher', 'string', new List('basic', 'best fit'), 'best fit');\n\t\n\t // Optimization: caching the processed formats as a one time operation by\n\t // replacing the initial structure from localeData\n\t dataLocaleData.formats = formats;\n\t\n\t // 26. If matcher is \"basic\", then\n\t if (matcher === 'basic') {\n\t // 27. Let bestFormat be the result of calling the BasicFormatMatcher abstract\n\t // operation (defined below) with opt and formats.\n\t bestFormat = BasicFormatMatcher(opt, formats);\n\t\n\t // 28. Else\n\t } else {\n\t {\n\t // diverging\n\t var _hr = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n\t opt.hour12 = _hr === undefined ? dataLocaleData.hour12 : _hr;\n\t }\n\t // 29. Let bestFormat be the result of calling the BestFitFormatMatcher\n\t // abstract operation (defined below) with opt and formats.\n\t bestFormat = BestFitFormatMatcher(opt, formats);\n\t }\n\t\n\t // 30. For each row in Table 3, except the header row, do\n\t for (var _prop in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, _prop)) continue;\n\t\n\t // a. Let prop be the name given in the Property column of the row.\n\t // b. Let pDesc be the result of calling the [[GetOwnProperty]] internal method of\n\t // bestFormat with argument prop.\n\t // c. If pDesc is not undefined, then\n\t if (hop.call(bestFormat, _prop)) {\n\t // i. Let p be the result of calling the [[Get]] internal method of bestFormat\n\t // with argument prop.\n\t var p = bestFormat[_prop];\n\t {\n\t // diverging\n\t p = bestFormat._ && hop.call(bestFormat._, _prop) ? bestFormat._[_prop] : p;\n\t }\n\t\n\t // ii. Set the [[]] internal property of dateTimeFormat to p.\n\t internal['[[' + _prop + ']]'] = p;\n\t }\n\t }\n\t\n\t var pattern = void 0; // Assigned a value below\n\t\n\t // 31. Let hr12 be the result of calling the GetOption abstract operation with\n\t // arguments options, \"hour12\", \"boolean\", undefined, and undefined.\n\t var hr12 = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n\t\n\t // 32. If dateTimeFormat has an internal property [[hour]], then\n\t if (internal['[[hour]]']) {\n\t // a. If hr12 is undefined, then let hr12 be the result of calling the [[Get]]\n\t // internal method of dataLocaleData with argument \"hour12\".\n\t hr12 = hr12 === undefined ? dataLocaleData.hour12 : hr12;\n\t\n\t // b. Set the [[hour12]] internal property of dateTimeFormat to hr12.\n\t internal['[[hour12]]'] = hr12;\n\t\n\t // c. If hr12 is true, then\n\t if (hr12 === true) {\n\t // i. Let hourNo0 be the result of calling the [[Get]] internal method of\n\t // dataLocaleData with argument \"hourNo0\".\n\t var hourNo0 = dataLocaleData.hourNo0;\n\t\n\t // ii. Set the [[hourNo0]] internal property of dateTimeFormat to hourNo0.\n\t internal['[[hourNo0]]'] = hourNo0;\n\t\n\t // iii. Let pattern be the result of calling the [[Get]] internal method of\n\t // bestFormat with argument \"pattern12\".\n\t pattern = bestFormat.pattern12;\n\t }\n\t\n\t // d. Else\n\t else\n\t // i. Let pattern be the result of calling the [[Get]] internal method of\n\t // bestFormat with argument \"pattern\".\n\t pattern = bestFormat.pattern;\n\t }\n\t\n\t // 33. Else\n\t else\n\t // a. Let pattern be the result of calling the [[Get]] internal method of\n\t // bestFormat with argument \"pattern\".\n\t pattern = bestFormat.pattern;\n\t\n\t // 34. Set the [[pattern]] internal property of dateTimeFormat to pattern.\n\t internal['[[pattern]]'] = pattern;\n\t\n\t // 35. Set the [[boundFormat]] internal property of dateTimeFormat to undefined.\n\t internal['[[boundFormat]]'] = undefined;\n\t\n\t // 36. Set the [[initializedDateTimeFormat]] internal property of dateTimeFormat to\n\t // true.\n\t internal['[[initializedDateTimeFormat]]'] = true;\n\t\n\t // In ES3, we need to pre-bind the format() function\n\t if (es3) dateTimeFormat.format = GetFormatDateTime.call(dateTimeFormat);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // Return the newly initialised object\n\t return dateTimeFormat;\n\t}\n\t\n\t/**\n\t * Several DateTimeFormat algorithms use values from the following table, which provides\n\t * property names and allowable values for the components of date and time formats:\n\t */\n\tvar dateTimeComponents = {\n\t weekday: [\"narrow\", \"short\", \"long\"],\n\t era: [\"narrow\", \"short\", \"long\"],\n\t year: [\"2-digit\", \"numeric\"],\n\t month: [\"2-digit\", \"numeric\", \"narrow\", \"short\", \"long\"],\n\t day: [\"2-digit\", \"numeric\"],\n\t hour: [\"2-digit\", \"numeric\"],\n\t minute: [\"2-digit\", \"numeric\"],\n\t second: [\"2-digit\", \"numeric\"],\n\t timeZoneName: [\"short\", \"long\"]\n\t};\n\t\n\t/**\n\t * When the ToDateTimeOptions abstract operation is called with arguments options,\n\t * required, and defaults, the following steps are taken:\n\t */\n\tfunction ToDateTimeFormats(formats) {\n\t if (Object.prototype.toString.call(formats) === '[object Array]') {\n\t return formats;\n\t }\n\t return createDateTimeFormats(formats);\n\t}\n\t\n\t/**\n\t * When the ToDateTimeOptions abstract operation is called with arguments options,\n\t * required, and defaults, the following steps are taken:\n\t */\n\tfunction ToDateTimeOptions(options, required, defaults) {\n\t // 1. If options is undefined, then let options be null, else let options be\n\t // ToObject(options).\n\t if (options === undefined) options = null;else {\n\t // (#12) options needs to be a Record, but it also needs to inherit properties\n\t var opt2 = toObject(options);\n\t options = new Record();\n\t\n\t for (var k in opt2) {\n\t options[k] = opt2[k];\n\t }\n\t }\n\t\n\t // 2. Let create be the standard built-in function object defined in ES5, 15.2.3.5.\n\t var create = objCreate;\n\t\n\t // 3. Let options be the result of calling the [[Call]] internal method of create with\n\t // undefined as the this value and an argument list containing the single item\n\t // options.\n\t options = create(options);\n\t\n\t // 4. Let needDefaults be true.\n\t var needDefaults = true;\n\t\n\t // 5. If required is \"date\" or \"any\", then\n\t if (required === 'date' || required === 'any') {\n\t // a. For each of the property names \"weekday\", \"year\", \"month\", \"day\":\n\t // i. If the result of calling the [[Get]] internal method of options with the\n\t // property name is not undefined, then let needDefaults be false.\n\t if (options.weekday !== undefined || options.year !== undefined || options.month !== undefined || options.day !== undefined) needDefaults = false;\n\t }\n\t\n\t // 6. If required is \"time\" or \"any\", then\n\t if (required === 'time' || required === 'any') {\n\t // a. For each of the property names \"hour\", \"minute\", \"second\":\n\t // i. If the result of calling the [[Get]] internal method of options with the\n\t // property name is not undefined, then let needDefaults be false.\n\t if (options.hour !== undefined || options.minute !== undefined || options.second !== undefined) needDefaults = false;\n\t }\n\t\n\t // 7. If needDefaults is true and defaults is either \"date\" or \"all\", then\n\t if (needDefaults && (defaults === 'date' || defaults === 'all'))\n\t // a. For each of the property names \"year\", \"month\", \"day\":\n\t // i. Call the [[DefineOwnProperty]] internal method of options with the\n\t // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n\t // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n\t options.year = options.month = options.day = 'numeric';\n\t\n\t // 8. If needDefaults is true and defaults is either \"time\" or \"all\", then\n\t if (needDefaults && (defaults === 'time' || defaults === 'all'))\n\t // a. For each of the property names \"hour\", \"minute\", \"second\":\n\t // i. Call the [[DefineOwnProperty]] internal method of options with the\n\t // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n\t // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n\t options.hour = options.minute = options.second = 'numeric';\n\t\n\t // 9. Return options.\n\t return options;\n\t}\n\t\n\t/**\n\t * When the BasicFormatMatcher abstract operation is called with two arguments options and\n\t * formats, the following steps are taken:\n\t */\n\tfunction BasicFormatMatcher(options, formats) {\n\t // 1. Let removalPenalty be 120.\n\t var removalPenalty = 120;\n\t\n\t // 2. Let additionPenalty be 20.\n\t var additionPenalty = 20;\n\t\n\t // 3. Let longLessPenalty be 8.\n\t var longLessPenalty = 8;\n\t\n\t // 4. Let longMorePenalty be 6.\n\t var longMorePenalty = 6;\n\t\n\t // 5. Let shortLessPenalty be 6.\n\t var shortLessPenalty = 6;\n\t\n\t // 6. Let shortMorePenalty be 3.\n\t var shortMorePenalty = 3;\n\t\n\t // 7. Let bestScore be -Infinity.\n\t var bestScore = -Infinity;\n\t\n\t // 8. Let bestFormat be undefined.\n\t var bestFormat = void 0;\n\t\n\t // 9. Let i be 0.\n\t var i = 0;\n\t\n\t // 10. Assert: formats is an Array object.\n\t\n\t // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n\t var len = formats.length;\n\t\n\t // 12. Repeat while i < len:\n\t while (i < len) {\n\t // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n\t var format = formats[i];\n\t\n\t // b. Let score be 0.\n\t var score = 0;\n\t\n\t // c. For each property shown in Table 3:\n\t for (var property in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, property)) continue;\n\t\n\t // i. Let optionsProp be options.[[]].\n\t var optionsProp = options['[[' + property + ']]'];\n\t\n\t // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n\t // with argument property.\n\t // iii. If formatPropDesc is not undefined, then\n\t // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n\t var formatProp = hop.call(format, property) ? format[property] : undefined;\n\t\n\t // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n\t // additionPenalty.\n\t if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\t\n\t // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n\t // removalPenalty.\n\t else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\t\n\t // vi. Else\n\t else {\n\t // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n\t // \"long\"].\n\t var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\t\n\t // 2. Let optionsPropIndex be the index of optionsProp within values.\n\t var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\t\n\t // 3. Let formatPropIndex be the index of formatProp within values.\n\t var formatPropIndex = arrIndexOf.call(values, formatProp);\n\t\n\t // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n\t var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\t\n\t // 5. If delta = 2, decrease score by longMorePenalty.\n\t if (delta === 2) score -= longMorePenalty;\n\t\n\t // 6. Else if delta = 1, decrease score by shortMorePenalty.\n\t else if (delta === 1) score -= shortMorePenalty;\n\t\n\t // 7. Else if delta = -1, decrease score by shortLessPenalty.\n\t else if (delta === -1) score -= shortLessPenalty;\n\t\n\t // 8. Else if delta = -2, decrease score by longLessPenalty.\n\t else if (delta === -2) score -= longLessPenalty;\n\t }\n\t }\n\t\n\t // d. If score > bestScore, then\n\t if (score > bestScore) {\n\t // i. Let bestScore be score.\n\t bestScore = score;\n\t\n\t // ii. Let bestFormat be format.\n\t bestFormat = format;\n\t }\n\t\n\t // e. Increase i by 1.\n\t i++;\n\t }\n\t\n\t // 13. Return bestFormat.\n\t return bestFormat;\n\t}\n\t\n\t/**\n\t * When the BestFitFormatMatcher abstract operation is called with two arguments options\n\t * and formats, it performs implementation dependent steps, which should return a set of\n\t * component representations that a typical user of the selected locale would perceive as\n\t * at least as good as the one returned by BasicFormatMatcher.\n\t *\n\t * This polyfill defines the algorithm to be the same as BasicFormatMatcher,\n\t * with the addition of bonus points awarded where the requested format is of\n\t * the same data type as the potentially matching format.\n\t *\n\t * This algo relies on the concept of closest distance matching described here:\n\t * http://unicode.org/reports/tr35/tr35-dates.html#Matching_Skeletons\n\t * Typically a “best match” is found using a closest distance match, such as:\n\t *\n\t * Symbols requesting a best choice for the locale are replaced.\n\t * j → one of {H, k, h, K}; C → one of {a, b, B}\n\t * -> Covered by cldr.js matching process\n\t *\n\t * For fields with symbols representing the same type (year, month, day, etc):\n\t * Most symbols have a small distance from each other.\n\t * M ≅ L; E ≅ c; a ≅ b ≅ B; H ≅ k ≅ h ≅ K; ...\n\t * -> Covered by cldr.js matching process\n\t *\n\t * Width differences among fields, other than those marking text vs numeric, are given small distance from each other.\n\t * MMM ≅ MMMM\n\t * MM ≅ M\n\t * Numeric and text fields are given a larger distance from each other.\n\t * MMM ≈ MM\n\t * Symbols representing substantial differences (week of year vs week of month) are given much larger a distances from each other.\n\t * d ≋ D; ...\n\t * Missing or extra fields cause a match to fail. (But see Missing Skeleton Fields).\n\t *\n\t *\n\t * For example,\n\t *\n\t * { month: 'numeric', day: 'numeric' }\n\t *\n\t * should match\n\t *\n\t * { month: '2-digit', day: '2-digit' }\n\t *\n\t * rather than\n\t *\n\t * { month: 'short', day: 'numeric' }\n\t *\n\t * This makes sense because a user requesting a formatted date with numeric parts would\n\t * not expect to see the returned format containing narrow, short or long part names\n\t */\n\tfunction BestFitFormatMatcher(options, formats) {\n\t\n\t // 1. Let removalPenalty be 120.\n\t var removalPenalty = 120;\n\t\n\t // 2. Let additionPenalty be 20.\n\t var additionPenalty = 20;\n\t\n\t // 3. Let longLessPenalty be 8.\n\t var longLessPenalty = 8;\n\t\n\t // 4. Let longMorePenalty be 6.\n\t var longMorePenalty = 6;\n\t\n\t // 5. Let shortLessPenalty be 6.\n\t var shortLessPenalty = 6;\n\t\n\t // 6. Let shortMorePenalty be 3.\n\t var shortMorePenalty = 3;\n\t\n\t var hour12Penalty = 1;\n\t\n\t // 7. Let bestScore be -Infinity.\n\t var bestScore = -Infinity;\n\t\n\t // 8. Let bestFormat be undefined.\n\t var bestFormat = void 0;\n\t\n\t // 9. Let i be 0.\n\t var i = 0;\n\t\n\t // 10. Assert: formats is an Array object.\n\t\n\t // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n\t var len = formats.length;\n\t\n\t // 12. Repeat while i < len:\n\t while (i < len) {\n\t // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n\t var format = formats[i];\n\t\n\t // b. Let score be 0.\n\t var score = 0;\n\t\n\t // c. For each property shown in Table 3:\n\t for (var property in dateTimeComponents) {\n\t if (!hop.call(dateTimeComponents, property)) continue;\n\t\n\t // i. Let optionsProp be options.[[]].\n\t var optionsProp = options['[[' + property + ']]'];\n\t\n\t // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n\t // with argument property.\n\t // iii. If formatPropDesc is not undefined, then\n\t // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n\t var formatProp = hop.call(format, property) ? format[property] : undefined;\n\t\n\t // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n\t // additionPenalty.\n\t if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\t\n\t // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n\t // removalPenalty.\n\t else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\t\n\t // vi. Else\n\t else {\n\t // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n\t // \"long\"].\n\t var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\t\n\t // 2. Let optionsPropIndex be the index of optionsProp within values.\n\t var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\t\n\t // 3. Let formatPropIndex be the index of formatProp within values.\n\t var formatPropIndex = arrIndexOf.call(values, formatProp);\n\t\n\t // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n\t var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\t\n\t {\n\t // diverging from spec\n\t // When the bestFit argument is true, subtract additional penalty where data types are not the same\n\t if (formatPropIndex <= 1 && optionsPropIndex >= 2 || formatPropIndex >= 2 && optionsPropIndex <= 1) {\n\t // 5. If delta = 2, decrease score by longMorePenalty.\n\t if (delta > 0) score -= longMorePenalty;else if (delta < 0) score -= longLessPenalty;\n\t } else {\n\t // 5. If delta = 2, decrease score by longMorePenalty.\n\t if (delta > 1) score -= shortMorePenalty;else if (delta < -1) score -= shortLessPenalty;\n\t }\n\t }\n\t }\n\t }\n\t\n\t {\n\t // diverging to also take into consideration differences between 12 or 24 hours\n\t // which is special for the best fit only.\n\t if (format._.hour12 !== options.hour12) {\n\t score -= hour12Penalty;\n\t }\n\t }\n\t\n\t // d. If score > bestScore, then\n\t if (score > bestScore) {\n\t // i. Let bestScore be score.\n\t bestScore = score;\n\t // ii. Let bestFormat be format.\n\t bestFormat = format;\n\t }\n\t\n\t // e. Increase i by 1.\n\t i++;\n\t }\n\t\n\t // 13. Return bestFormat.\n\t return bestFormat;\n\t}\n\t\n\t/* 12.2.3 */internals.DateTimeFormat = {\n\t '[[availableLocales]]': [],\n\t '[[relevantExtensionKeys]]': ['ca', 'nu'],\n\t '[[localeData]]': {}\n\t};\n\t\n\t/**\n\t * When the supportedLocalesOf method of Intl.DateTimeFormat is called, the\n\t * following steps are taken:\n\t */\n\t/* 12.2.2 */\n\tdefineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {\n\t configurable: true,\n\t writable: true,\n\t value: fnBind.call(function (locales) {\n\t // Bound functions only have the `this` value altered if being used as a constructor,\n\t // this lets us imitate a native function that has no constructor\n\t if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\t\n\t // Create an object whose props can be used to restore the values of RegExp props\n\t var regexpState = createRegExpRestore(),\n\t\n\t\n\t // 1. If options is not provided, then let options be undefined.\n\t options = arguments[1],\n\t\n\t\n\t // 2. Let availableLocales be the value of the [[availableLocales]] internal\n\t // property of the standard built-in object that is the initial value of\n\t // Intl.NumberFormat.\n\t\n\t availableLocales = this['[[availableLocales]]'],\n\t\n\t\n\t // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n\t // abstract operation (defined in 9.2.1) with argument locales.\n\t requestedLocales = CanonicalizeLocaleList(locales);\n\t\n\t // Restore the RegExp properties\n\t regexpState.exp.test(regexpState.input);\n\t\n\t // 4. Return the result of calling the SupportedLocales abstract operation\n\t // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n\t // and options.\n\t return SupportedLocales(availableLocales, requestedLocales, options);\n\t }, internals.NumberFormat)\n\t});\n\t\n\t/**\n\t * This named accessor property returns a function that formats a number\n\t * according to the effective locale and the formatting options of this\n\t * DateTimeFormat object.\n\t */\n\t/* 12.3.2 */defineProperty(Intl.DateTimeFormat.prototype, 'format', {\n\t configurable: true,\n\t get: GetFormatDateTime\n\t});\n\t\n\tdefineProperty(Intl.DateTimeFormat.prototype, 'formatToParts', {\n\t configurable: true,\n\t get: GetFormatToPartsDateTime\n\t});\n\t\n\tfunction GetFormatDateTime() {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 12.3_b\n\t if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.DateTimeFormat object.');\n\t\n\t // The value of the [[Get]] attribute is a function that takes the following\n\t // steps:\n\t\n\t // 1. If the [[boundFormat]] internal property of this DateTimeFormat object\n\t // is undefined, then:\n\t if (internal['[[boundFormat]]'] === undefined) {\n\t // a. Let F be a Function object, with internal properties set as\n\t // specified for built-in functions in ES5, 15, or successor, and the\n\t // length property set to 0, that takes the argument date and\n\t // performs the following steps:\n\t var F = function F() {\n\t // i. If date is not provided or is undefined, then let x be the\n\t // result as if by the expression Date.now() where Date.now is\n\t // the standard built-in function defined in ES5, 15.9.4.4.\n\t // ii. Else let x be ToNumber(date).\n\t // iii. Return the result of calling the FormatDateTime abstract\n\t // operation (defined below) with arguments this and x.\n\t var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n\t return FormatDateTime(this, x);\n\t };\n\t // b. Let bind be the standard built-in function object defined in ES5,\n\t // 15.3.4.5.\n\t // c. Let bf be the result of calling the [[Call]] internal method of\n\t // bind with F as the this value and an argument list containing\n\t // the single item this.\n\t var bf = fnBind.call(F, this);\n\t // d. Set the [[boundFormat]] internal property of this NumberFormat\n\t // object to bf.\n\t internal['[[boundFormat]]'] = bf;\n\t }\n\t // Return the value of the [[boundFormat]] internal property of this\n\t // NumberFormat object.\n\t return internal['[[boundFormat]]'];\n\t}\n\t\n\tfunction GetFormatToPartsDateTime() {\n\t var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.');\n\t\n\t if (internal['[[boundFormatToParts]]'] === undefined) {\n\t var F = function F() {\n\t var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n\t return FormatToPartsDateTime(this, x);\n\t };\n\t var bf = fnBind.call(F, this);\n\t internal['[[boundFormatToParts]]'] = bf;\n\t }\n\t return internal['[[boundFormatToParts]]'];\n\t}\n\t\n\tfunction CreateDateTimeParts(dateTimeFormat, x) {\n\t // 1. If x is not a finite Number, then throw a RangeError exception.\n\t if (!isFinite(x)) throw new RangeError('Invalid valid date passed to format');\n\t\n\t var internal = dateTimeFormat.__getInternalProperties(secret);\n\t\n\t // Creating restore point for properties on the RegExp object... please wait\n\t /* let regexpState = */createRegExpRestore(); // ###TODO: review this\n\t\n\t // 2. Let locale be the value of the [[locale]] internal property of dateTimeFormat.\n\t var locale = internal['[[locale]]'];\n\t\n\t // 3. Let nf be the result of creating a new NumberFormat object as if by the\n\t // expression new Intl.NumberFormat([locale], {useGrouping: false}) where\n\t // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n\t var nf = new Intl.NumberFormat([locale], { useGrouping: false });\n\t\n\t // 4. Let nf2 be the result of creating a new NumberFormat object as if by the\n\t // expression new Intl.NumberFormat([locale], {minimumIntegerDigits: 2, useGrouping:\n\t // false}) where Intl.NumberFormat is the standard built-in constructor defined in\n\t // 11.1.3.\n\t var nf2 = new Intl.NumberFormat([locale], { minimumIntegerDigits: 2, useGrouping: false });\n\t\n\t // 5. Let tm be the result of calling the ToLocalTime abstract operation (defined\n\t // below) with x, the value of the [[calendar]] internal property of dateTimeFormat,\n\t // and the value of the [[timeZone]] internal property of dateTimeFormat.\n\t var tm = ToLocalTime(x, internal['[[calendar]]'], internal['[[timeZone]]']);\n\t\n\t // 6. Let result be the value of the [[pattern]] internal property of dateTimeFormat.\n\t var pattern = internal['[[pattern]]'];\n\t\n\t // 7.\n\t var result = new List();\n\t\n\t // 8.\n\t var index = 0;\n\t\n\t // 9.\n\t var beginIndex = pattern.indexOf('{');\n\t\n\t // 10.\n\t var endIndex = 0;\n\t\n\t // Need the locale minus any extensions\n\t var dataLocale = internal['[[dataLocale]]'];\n\t\n\t // Need the calendar data from CLDR\n\t var localeData = internals.DateTimeFormat['[[localeData]]'][dataLocale].calendars;\n\t var ca = internal['[[calendar]]'];\n\t\n\t // 11.\n\t while (beginIndex !== -1) {\n\t var fv = void 0;\n\t // a.\n\t endIndex = pattern.indexOf('}', beginIndex);\n\t // b.\n\t if (endIndex === -1) {\n\t throw new Error('Unclosed pattern');\n\t }\n\t // c.\n\t if (beginIndex > index) {\n\t arrPush.call(result, {\n\t type: 'literal',\n\t value: pattern.substring(index, beginIndex)\n\t });\n\t }\n\t // d.\n\t var p = pattern.substring(beginIndex + 1, endIndex);\n\t // e.\n\t if (dateTimeComponents.hasOwnProperty(p)) {\n\t // i. Let f be the value of the [[

    ]] internal property of dateTimeFormat.\n\t var f = internal['[[' + p + ']]'];\n\t // ii. Let v be the value of tm.[[

    ]].\n\t var v = tm['[[' + p + ']]'];\n\t // iii. If p is \"year\" and v ≤ 0, then let v be 1 - v.\n\t if (p === 'year' && v <= 0) {\n\t v = 1 - v;\n\t }\n\t // iv. If p is \"month\", then increase v by 1.\n\t else if (p === 'month') {\n\t v++;\n\t }\n\t // v. If p is \"hour\" and the value of the [[hour12]] internal property of\n\t // dateTimeFormat is true, then\n\t else if (p === 'hour' && internal['[[hour12]]'] === true) {\n\t // 1. Let v be v modulo 12.\n\t v = v % 12;\n\t // 2. If v is 0 and the value of the [[hourNo0]] internal property of\n\t // dateTimeFormat is true, then let v be 12.\n\t if (v === 0 && internal['[[hourNo0]]'] === true) {\n\t v = 12;\n\t }\n\t }\n\t\n\t // vi. If f is \"numeric\", then\n\t if (f === 'numeric') {\n\t // 1. Let fv be the result of calling the FormatNumber abstract operation\n\t // (defined in 11.3.2) with arguments nf and v.\n\t fv = FormatNumber(nf, v);\n\t }\n\t // vii. Else if f is \"2-digit\", then\n\t else if (f === '2-digit') {\n\t // 1. Let fv be the result of calling the FormatNumber abstract operation\n\t // with arguments nf2 and v.\n\t fv = FormatNumber(nf2, v);\n\t // 2. If the length of fv is greater than 2, let fv be the substring of fv\n\t // containing the last two characters.\n\t if (fv.length > 2) {\n\t fv = fv.slice(-2);\n\t }\n\t }\n\t // viii. Else if f is \"narrow\", \"short\", or \"long\", then let fv be a String\n\t // value representing f in the desired form; the String value depends upon\n\t // the implementation and the effective locale and calendar of\n\t // dateTimeFormat. If p is \"month\", then the String value may also depend\n\t // on whether dateTimeFormat has a [[day]] internal property. If p is\n\t // \"timeZoneName\", then the String value may also depend on the value of\n\t // the [[inDST]] field of tm.\n\t else if (f in dateWidths) {\n\t switch (p) {\n\t case 'month':\n\t fv = resolveDateString(localeData, ca, 'months', f, tm['[[' + p + ']]']);\n\t break;\n\t\n\t case 'weekday':\n\t try {\n\t fv = resolveDateString(localeData, ca, 'days', f, tm['[[' + p + ']]']);\n\t // fv = resolveDateString(ca.days, f)[tm['[['+ p +']]']];\n\t } catch (e) {\n\t throw new Error('Could not find weekday data for locale ' + locale);\n\t }\n\t break;\n\t\n\t case 'timeZoneName':\n\t fv = ''; // ###TODO\n\t break;\n\t\n\t case 'era':\n\t try {\n\t fv = resolveDateString(localeData, ca, 'eras', f, tm['[[' + p + ']]']);\n\t } catch (e) {\n\t throw new Error('Could not find era data for locale ' + locale);\n\t }\n\t break;\n\t\n\t default:\n\t fv = tm['[[' + p + ']]'];\n\t }\n\t }\n\t // ix\n\t arrPush.call(result, {\n\t type: p,\n\t value: fv\n\t });\n\t // f.\n\t } else if (p === 'ampm') {\n\t // i.\n\t var _v = tm['[[hour]]'];\n\t // ii./iii.\n\t fv = resolveDateString(localeData, ca, 'dayPeriods', _v > 11 ? 'pm' : 'am', null);\n\t // iv.\n\t arrPush.call(result, {\n\t type: 'dayPeriod',\n\t value: fv\n\t });\n\t // g.\n\t } else {\n\t arrPush.call(result, {\n\t type: 'literal',\n\t value: pattern.substring(beginIndex, endIndex + 1)\n\t });\n\t }\n\t // h.\n\t index = endIndex + 1;\n\t // i.\n\t beginIndex = pattern.indexOf('{', index);\n\t }\n\t // 12.\n\t if (endIndex < pattern.length - 1) {\n\t arrPush.call(result, {\n\t type: 'literal',\n\t value: pattern.substr(endIndex + 1)\n\t });\n\t }\n\t // 13.\n\t return result;\n\t}\n\t\n\t/**\n\t * When the FormatDateTime abstract operation is called with arguments dateTimeFormat\n\t * (which must be an object initialized as a DateTimeFormat) and x (which must be a Number\n\t * value), it returns a String value representing x (interpreted as a time value as\n\t * specified in ES5, 15.9.1.1) according to the effective locale and the formatting\n\t * options of dateTimeFormat.\n\t */\n\tfunction FormatDateTime(dateTimeFormat, x) {\n\t var parts = CreateDateTimeParts(dateTimeFormat, x);\n\t var result = '';\n\t\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t result += part.value;\n\t }\n\t return result;\n\t}\n\t\n\tfunction FormatToPartsDateTime(dateTimeFormat, x) {\n\t var parts = CreateDateTimeParts(dateTimeFormat, x);\n\t var result = [];\n\t for (var i = 0; parts.length > i; i++) {\n\t var part = parts[i];\n\t result.push({\n\t type: part.type,\n\t value: part.value\n\t });\n\t }\n\t return result;\n\t}\n\t\n\t/**\n\t * When the ToLocalTime abstract operation is called with arguments date, calendar, and\n\t * timeZone, the following steps are taken:\n\t */\n\tfunction ToLocalTime(date, calendar, timeZone) {\n\t // 1. Apply calendrical calculations on date for the given calendar and time zone to\n\t // produce weekday, era, year, month, day, hour, minute, second, and inDST values.\n\t // The calculations should use best available information about the specified\n\t // calendar and time zone. If the calendar is \"gregory\", then the calculations must\n\t // match the algorithms specified in ES5, 15.9.1, except that calculations are not\n\t // bound by the restrictions on the use of best available information on time zones\n\t // for local time zone adjustment and daylight saving time adjustment imposed by\n\t // ES5, 15.9.1.7 and 15.9.1.8.\n\t // ###TODO###\n\t var d = new Date(date),\n\t m = 'get' + (timeZone || '');\n\t\n\t // 2. Return a Record with fields [[weekday]], [[era]], [[year]], [[month]], [[day]],\n\t // [[hour]], [[minute]], [[second]], and [[inDST]], each with the corresponding\n\t // calculated value.\n\t return new Record({\n\t '[[weekday]]': d[m + 'Day'](),\n\t '[[era]]': +(d[m + 'FullYear']() >= 0),\n\t '[[year]]': d[m + 'FullYear'](),\n\t '[[month]]': d[m + 'Month'](),\n\t '[[day]]': d[m + 'Date'](),\n\t '[[hour]]': d[m + 'Hours'](),\n\t '[[minute]]': d[m + 'Minutes'](),\n\t '[[second]]': d[m + 'Seconds'](),\n\t '[[inDST]]': false });\n\t}\n\t\n\t/**\n\t * The function returns a new object whose properties and attributes are set as if\n\t * constructed by an object literal assigning to each of the following properties the\n\t * value of the corresponding internal property of this DateTimeFormat object (see 12.4):\n\t * locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day,\n\t * hour, minute, second, and timeZoneName. Properties whose corresponding internal\n\t * properties are not present are not assigned.\n\t */\n\t/* 12.3.3 */ // ###TODO###\n\tdefineProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', {\n\t writable: true,\n\t configurable: true,\n\t value: function value() {\n\t var prop = void 0,\n\t descs = new Record(),\n\t props = ['locale', 'calendar', 'numberingSystem', 'timeZone', 'hour12', 'weekday', 'era', 'year', 'month', 'day', 'hour', 'minute', 'second', 'timeZoneName'],\n\t internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\t\n\t // Satisfy test 12.3_b\n\t if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.');\n\t\n\t for (var i = 0, max = props.length; i < max; i++) {\n\t if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n\t }\n\t\n\t return objCreate({}, descs);\n\t }\n\t});\n\t\n\tvar ls = Intl.__localeSensitiveProtos = {\n\t Number: {},\n\t Date: {}\n\t};\n\t\n\t/**\n\t * When the toLocaleString method is called with optional arguments locales and options,\n\t * the following steps are taken:\n\t */\n\t/* 13.2.1 */ls.Number.toLocaleString = function () {\n\t // Satisfy test 13.2.1_1\n\t if (Object.prototype.toString.call(this) !== '[object Number]') throw new TypeError('`this` value must be a number for Number.prototype.toLocaleString()');\n\t\n\t // 1. Let x be this Number value (as defined in ES5, 15.7.4).\n\t // 2. If locales is not provided, then let locales be undefined.\n\t // 3. If options is not provided, then let options be undefined.\n\t // 4. Let numberFormat be the result of creating a new object as if by the\n\t // expression new Intl.NumberFormat(locales, options) where\n\t // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n\t // 5. Return the result of calling the FormatNumber abstract operation\n\t // (defined in 11.3.2) with arguments numberFormat and x.\n\t return FormatNumber(new NumberFormatConstructor(arguments[0], arguments[1]), this);\n\t};\n\t\n\t/**\n\t * When the toLocaleString method is called with optional arguments locales and options,\n\t * the following steps are taken:\n\t */\n\t/* 13.3.1 */ls.Date.toLocaleString = function () {\n\t // Satisfy test 13.3.0_1\n\t if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleString()');\n\t\n\t // 1. Let x be this time value (as defined in ES5, 15.9.5).\n\t var x = +this;\n\t\n\t // 2. If x is NaN, then return \"Invalid Date\".\n\t if (isNaN(x)) return 'Invalid Date';\n\t\n\t // 3. If locales is not provided, then let locales be undefined.\n\t var locales = arguments[0];\n\t\n\t // 4. If options is not provided, then let options be undefined.\n\t var options = arguments[1];\n\t\n\t // 5. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined in 12.1.1) with arguments options, \"any\", and \"all\".\n\t options = ToDateTimeOptions(options, 'any', 'all');\n\t\n\t // 6. Let dateTimeFormat be the result of creating a new object as if by the\n\t // expression new Intl.DateTimeFormat(locales, options) where\n\t // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n\t var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\t\n\t // 7. Return the result of calling the FormatDateTime abstract operation (defined\n\t // in 12.3.2) with arguments dateTimeFormat and x.\n\t return FormatDateTime(dateTimeFormat, x);\n\t};\n\t\n\t/**\n\t * When the toLocaleDateString method is called with optional arguments locales and\n\t * options, the following steps are taken:\n\t */\n\t/* 13.3.2 */ls.Date.toLocaleDateString = function () {\n\t // Satisfy test 13.3.0_1\n\t if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleDateString()');\n\t\n\t // 1. Let x be this time value (as defined in ES5, 15.9.5).\n\t var x = +this;\n\t\n\t // 2. If x is NaN, then return \"Invalid Date\".\n\t if (isNaN(x)) return 'Invalid Date';\n\t\n\t // 3. If locales is not provided, then let locales be undefined.\n\t var locales = arguments[0],\n\t\n\t\n\t // 4. If options is not provided, then let options be undefined.\n\t options = arguments[1];\n\t\n\t // 5. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined in 12.1.1) with arguments options, \"date\", and \"date\".\n\t options = ToDateTimeOptions(options, 'date', 'date');\n\t\n\t // 6. Let dateTimeFormat be the result of creating a new object as if by the\n\t // expression new Intl.DateTimeFormat(locales, options) where\n\t // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n\t var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\t\n\t // 7. Return the result of calling the FormatDateTime abstract operation (defined\n\t // in 12.3.2) with arguments dateTimeFormat and x.\n\t return FormatDateTime(dateTimeFormat, x);\n\t};\n\t\n\t/**\n\t * When the toLocaleTimeString method is called with optional arguments locales and\n\t * options, the following steps are taken:\n\t */\n\t/* 13.3.3 */ls.Date.toLocaleTimeString = function () {\n\t // Satisfy test 13.3.0_1\n\t if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleTimeString()');\n\t\n\t // 1. Let x be this time value (as defined in ES5, 15.9.5).\n\t var x = +this;\n\t\n\t // 2. If x is NaN, then return \"Invalid Date\".\n\t if (isNaN(x)) return 'Invalid Date';\n\t\n\t // 3. If locales is not provided, then let locales be undefined.\n\t var locales = arguments[0];\n\t\n\t // 4. If options is not provided, then let options be undefined.\n\t var options = arguments[1];\n\t\n\t // 5. Let options be the result of calling the ToDateTimeOptions abstract\n\t // operation (defined in 12.1.1) with arguments options, \"time\", and \"time\".\n\t options = ToDateTimeOptions(options, 'time', 'time');\n\t\n\t // 6. Let dateTimeFormat be the result of creating a new object as if by the\n\t // expression new Intl.DateTimeFormat(locales, options) where\n\t // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n\t var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\t\n\t // 7. Return the result of calling the FormatDateTime abstract operation (defined\n\t // in 12.3.2) with arguments dateTimeFormat and x.\n\t return FormatDateTime(dateTimeFormat, x);\n\t};\n\t\n\tdefineProperty(Intl, '__applyLocaleSensitivePrototypes', {\n\t writable: true,\n\t configurable: true,\n\t value: function value() {\n\t defineProperty(Number.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Number.toLocaleString });\n\t // Need this here for IE 8, to avoid the _DontEnum_ bug\n\t defineProperty(Date.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Date.toLocaleString });\n\t\n\t for (var k in ls.Date) {\n\t if (hop.call(ls.Date, k)) defineProperty(Date.prototype, k, { writable: true, configurable: true, value: ls.Date[k] });\n\t }\n\t }\n\t});\n\t\n\t/**\n\t * Can't really ship a single script with data for hundreds of locales, so we provide\n\t * this __addLocaleData method as a means for the developer to add the data on an\n\t * as-needed basis\n\t */\n\tdefineProperty(Intl, '__addLocaleData', {\n\t value: function value(data) {\n\t if (!IsStructurallyValidLanguageTag(data.locale)) throw new Error(\"Object passed doesn't identify itself with a valid language tag\");\n\t\n\t addLocaleData(data, data.locale);\n\t }\n\t});\n\t\n\tfunction addLocaleData(data, tag) {\n\t // Both NumberFormat and DateTimeFormat require number data, so throw if it isn't present\n\t if (!data.number) throw new Error(\"Object passed doesn't contain locale data for Intl.NumberFormat\");\n\t\n\t var locale = void 0,\n\t locales = [tag],\n\t parts = tag.split('-');\n\t\n\t // Create fallbacks for locale data with scripts, e.g. Latn, Hans, Vaii, etc\n\t if (parts.length > 2 && parts[1].length === 4) arrPush.call(locales, parts[0] + '-' + parts[2]);\n\t\n\t while (locale = arrShift.call(locales)) {\n\t // Add to NumberFormat internal properties as per 11.2.3\n\t arrPush.call(internals.NumberFormat['[[availableLocales]]'], locale);\n\t internals.NumberFormat['[[localeData]]'][locale] = data.number;\n\t\n\t // ...and DateTimeFormat internal properties as per 12.2.3\n\t if (data.date) {\n\t data.date.nu = data.number.nu;\n\t arrPush.call(internals.DateTimeFormat['[[availableLocales]]'], locale);\n\t internals.DateTimeFormat['[[localeData]]'][locale] = data.date;\n\t }\n\t }\n\t\n\t // If this is the first set of locale data added, make it the default\n\t if (defaultLocale === undefined) setDefaultLocale(tag);\n\t}\n\t\n\tmodule.exports = Intl;\n\n/***/ },\n\n/***/ 889:\n871\n\n});\n\n\n/** WEBPACK FOOTER **\n ** 1.1.js\n **/","// Expose `IntlPolyfill` as global to add locale data into runtime later on.\nglobal.IntlPolyfill = require('./lib/core.js');\n\n// Require all locale data for `Intl`. This module will be\n// ignored when bundling for the browser with Browserify/Webpack.\nrequire('./locale-data/complete.js');\n\n// hack to export the polyfill as global Intl if needed\nif (!global.Intl) {\n global.Intl = global.IntlPolyfill;\n global.IntlPolyfill.__applyLocaleSensitivePrototypes();\n}\n\n// providing an idiomatic api for the nodejs version of this module\nmodule.exports = global.IntlPolyfill;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/index.js\n ** module id = 324\n ** module chunks = 1\n **/","IntlPolyfill.__addLocaleData({locale:\"en\",date:{ca:[\"gregory\",\"buddhist\",\"chinese\",\"coptic\",\"dangi\",\"ethioaa\",\"ethiopic\",\"generic\",\"hebrew\",\"indian\",\"islamic\",\"islamicc\",\"japanese\",\"persian\",\"roc\"],hourNo0:true,hour12:true,formats:{short:\"{1}, {0}\",medium:\"{1}, {0}\",full:\"{1} 'at' {0}\",long:\"{1} 'at' {0}\",availableFormats:{\"d\":\"d\",\"E\":\"ccc\",Ed:\"d E\",Ehm:\"E h:mm a\",EHm:\"E HH:mm\",Ehms:\"E h:mm:ss a\",EHms:\"E HH:mm:ss\",Gy:\"y G\",GyMMM:\"MMM y G\",GyMMMd:\"MMM d, y G\",GyMMMEd:\"E, MMM d, y G\",\"h\":\"h a\",\"H\":\"HH\",hm:\"h:mm a\",Hm:\"HH:mm\",hms:\"h:mm:ss a\",Hms:\"HH:mm:ss\",hmsv:\"h:mm:ss a v\",Hmsv:\"HH:mm:ss v\",hmv:\"h:mm a v\",Hmv:\"HH:mm v\",\"M\":\"L\",Md:\"M/d\",MEd:\"E, M/d\",MMM:\"LLL\",MMMd:\"MMM d\",MMMEd:\"E, MMM d\",MMMMd:\"MMMM d\",ms:\"mm:ss\",\"y\":\"y\",yM:\"M/y\",yMd:\"M/d/y\",yMEd:\"E, M/d/y\",yMMM:\"MMM y\",yMMMd:\"MMM d, y\",yMMMEd:\"E, MMM d, y\",yMMMM:\"MMMM y\",yQQQ:\"QQQ y\",yQQQQ:\"QQQQ y\"},dateFormats:{yMMMMEEEEd:\"EEEE, MMMM d, y\",yMMMMd:\"MMMM d, y\",yMMMd:\"MMM d, y\",yMd:\"M/d/yy\"},timeFormats:{hmmsszzzz:\"h:mm:ss a zzzz\",hmsz:\"h:mm:ss a z\",hms:\"h:mm:ss a\",hm:\"h:mm a\"}},calendars:{buddhist:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"BE\"],short:[\"BE\"],long:[\"BE\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},chinese:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Mo1\",\"Mo2\",\"Mo3\",\"Mo4\",\"Mo5\",\"Mo6\",\"Mo7\",\"Mo8\",\"Mo9\",\"Mo10\",\"Mo11\",\"Mo12\"],long:[\"Month1\",\"Month2\",\"Month3\",\"Month4\",\"Month5\",\"Month6\",\"Month7\",\"Month8\",\"Month9\",\"Month10\",\"Month11\",\"Month12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},coptic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"],long:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},dangi:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Mo1\",\"Mo2\",\"Mo3\",\"Mo4\",\"Mo5\",\"Mo6\",\"Mo7\",\"Mo8\",\"Mo9\",\"Mo10\",\"Mo11\",\"Mo12\"],long:[\"Month1\",\"Month2\",\"Month3\",\"Month4\",\"Month5\",\"Month6\",\"Month7\",\"Month8\",\"Month9\",\"Month10\",\"Month11\",\"Month12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethiopic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethioaa:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\"],short:[\"ERA0\"],long:[\"ERA0\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},generic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"],long:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},gregory:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"B\",\"A\",\"BCE\",\"CE\"],short:[\"BC\",\"AD\",\"BCE\",\"CE\"],long:[\"Before Christ\",\"Anno Domini\",\"Before Common Era\",\"Common Era\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},hebrew:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"7\"],short:[\"Tishri\",\"Heshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar I\",\"Adar\",\"Nisan\",\"Iyar\",\"Sivan\",\"Tamuz\",\"Av\",\"Elul\",\"Adar II\"],long:[\"Tishri\",\"Heshvan\",\"Kislev\",\"Tevet\",\"Shevat\",\"Adar I\",\"Adar\",\"Nisan\",\"Iyar\",\"Sivan\",\"Tamuz\",\"Av\",\"Elul\",\"Adar II\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AM\"],short:[\"AM\"],long:[\"AM\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},indian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"],long:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Saka\"],short:[\"Saka\"],long:[\"Saka\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Muh.\",\"Saf.\",\"Rab. I\",\"Rab. II\",\"Jum. I\",\"Jum. II\",\"Raj.\",\"Sha.\",\"Ram.\",\"Shaw.\",\"Dhuʻl-Q.\",\"Dhuʻl-H.\"],long:[\"Muharram\",\"Safar\",\"Rabiʻ I\",\"Rabiʻ II\",\"Jumada I\",\"Jumada II\",\"Rajab\",\"Shaʻban\",\"Ramadan\",\"Shawwal\",\"Dhuʻl-Qiʻdah\",\"Dhuʻl-Hijjah\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamicc:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Muh.\",\"Saf.\",\"Rab. I\",\"Rab. II\",\"Jum. I\",\"Jum. II\",\"Raj.\",\"Sha.\",\"Ram.\",\"Shaw.\",\"Dhuʻl-Q.\",\"Dhuʻl-H.\"],long:[\"Muharram\",\"Safar\",\"Rabiʻ I\",\"Rabiʻ II\",\"Jumada I\",\"Jumada II\",\"Rajab\",\"Shaʻban\",\"Ramadan\",\"Shawwal\",\"Dhuʻl-Qiʻdah\",\"Dhuʻl-Hijjah\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},japanese:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"M\",\"T\",\"S\",\"H\"],short:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"],long:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},persian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"],long:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"AP\"],short:[\"AP\"],long:[\"AP\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},roc:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"],long:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]},days:{narrow:[\"S\",\"M\",\"T\",\"W\",\"T\",\"F\",\"S\"],short:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],long:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]},eras:{narrow:[\"Before R.O.C.\",\"Minguo\"],short:[\"Before R.O.C.\",\"Minguo\"],long:[\"Before R.O.C.\",\"Minguo\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}}}},number:{nu:[\"latn\"],patterns:{decimal:{positivePattern:\"{number}\",negativePattern:\"{minusSign}{number}\"},currency:{positivePattern:\"{currency}{number}\",negativePattern:\"{minusSign}{currency}{number}\"},percent:{positivePattern:\"{number}{percentSign}\",negativePattern:\"{minusSign}{number}{percentSign}\"}},symbols:{latn:{decimal:\".\",group:\",\",nan:\"NaN\",plusSign:\"+\",minusSign:\"-\",percentSign:\"%\",infinity:\"∞\"}},currencies:{AUD:\"A$\",BRL:\"R$\",CAD:\"CA$\",CNY:\"CN¥\",EUR:\"€\",GBP:\"£\",HKD:\"HK$\",ILS:\"₪\",INR:\"₹\",JPY:\"¥\",KRW:\"₩\",MXN:\"MX$\",NZD:\"NZ$\",TWD:\"NT$\",USD:\"$\",VND:\"₫\",XAF:\"FCFA\",XCD:\"EC$\",XOF:\"CFA\",XPF:\"CFPF\"}}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/locale-data/jsonp/en.js\n ** module id = 325\n ** module chunks = 1\n **/","IntlPolyfill.__addLocaleData({locale:\"fr\",date:{ca:[\"gregory\",\"buddhist\",\"chinese\",\"coptic\",\"dangi\",\"ethioaa\",\"ethiopic\",\"generic\",\"hebrew\",\"indian\",\"islamic\",\"islamicc\",\"japanese\",\"persian\",\"roc\"],hourNo0:true,hour12:false,formats:{short:\"{1} {0}\",medium:\"{1} 'à' {0}\",full:\"{1} 'à' {0}\",long:\"{1} 'à' {0}\",availableFormats:{\"d\":\"d\",\"E\":\"E\",Ed:\"E d\",Ehm:\"E h:mm a\",EHm:\"E HH:mm\",Ehms:\"E h:mm:ss a\",EHms:\"E HH:mm:ss\",Gy:\"y G\",GyMMM:\"MMM y G\",GyMMMd:\"d MMM y G\",GyMMMEd:\"E d MMM y G\",\"h\":\"h a\",\"H\":\"HH 'h'\",hm:\"h:mm a\",Hm:\"HH:mm\",hms:\"h:mm:ss a\",Hms:\"HH:mm:ss\",hmsv:\"h:mm:ss a v\",Hmsv:\"HH:mm:ss v\",hmv:\"h:mm a v\",Hmv:\"HH:mm v\",\"M\":\"L\",Md:\"dd/MM\",MEd:\"E dd/MM\",MMM:\"LLL\",MMMd:\"d MMM\",MMMEd:\"E d MMM\",MMMMd:\"d MMMM\",ms:\"mm:ss\",\"y\":\"y\",yM:\"MM/y\",yMd:\"dd/MM/y\",yMEd:\"E dd/MM/y\",yMMM:\"MMM y\",yMMMd:\"d MMM y\",yMMMEd:\"E d MMM y\",yMMMM:\"MMMM y\",yQQQ:\"QQQ y\",yQQQQ:\"QQQQ y\"},dateFormats:{yMMMMEEEEd:\"EEEE d MMMM y\",yMMMMd:\"d MMMM y\",yMMMd:\"d MMM y\",yMd:\"dd/MM/y\"},timeFormats:{hmmsszzzz:\"HH:mm:ss zzzz\",hmsz:\"HH:mm:ss z\",hms:\"HH:mm:ss\",hm:\"HH:mm\"}},calendars:{buddhist:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"E.B.\"],short:[\"ère b.\"],long:[\"ère bouddhiste\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},chinese:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"1yuè\",\"2yuè\",\"3yuè\",\"4yuè\",\"5yuè\",\"6yuè\",\"7yuè\",\"8yuè\",\"9yuè\",\"10yuè\",\"11yuè\",\"12yuè\"],long:[\"zhēngyuè\",\"èryuè\",\"sānyuè\",\"sìyuè\",\"wǔyuè\",\"liùyuè\",\"qīyuè\",\"bāyuè\",\"jiǔyuè\",\"shíyuè\",\"shíyīyuè\",\"shí’èryuè\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},coptic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"],long:[\"Tout\",\"Baba\",\"Hator\",\"Kiahk\",\"Toba\",\"Amshir\",\"Baramhat\",\"Baramouda\",\"Bashans\",\"Paona\",\"Epep\",\"Mesra\",\"Nasie\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},dangi:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"1yuè\",\"2yuè\",\"3yuè\",\"4yuè\",\"5yuè\",\"6yuè\",\"7yuè\",\"8yuè\",\"9yuè\",\"10yuè\",\"11yuè\",\"12yuè\"],long:[\"zhēngyuè\",\"èryuè\",\"sānyuè\",\"sìyuè\",\"wǔyuè\",\"liùyuè\",\"qīyuè\",\"bāyuè\",\"jiǔyuè\",\"shíyuè\",\"shíyīyuè\",\"shí’èryuè\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethiopic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},ethioaa:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\"],short:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"],long:[\"Meskerem\",\"Tekemt\",\"Hedar\",\"Tahsas\",\"Ter\",\"Yekatit\",\"Megabit\",\"Miazia\",\"Genbot\",\"Sene\",\"Hamle\",\"Nehasse\",\"Pagumen\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\"],short:[\"ERA0\"],long:[\"ERA0\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},generic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"],long:[\"M01\",\"M02\",\"M03\",\"M04\",\"M05\",\"M06\",\"M07\",\"M08\",\"M09\",\"M10\",\"M11\",\"M12\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"ERA0\",\"ERA1\"],short:[\"ERA0\",\"ERA1\"],long:[\"ERA0\",\"ERA1\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},gregory:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"av. J.-C.\",\"ap. J.-C.\",\"AEC\",\"EC\"],short:[\"av. J.-C.\",\"ap. J.-C.\",\"AEC\",\"EC\"],long:[\"avant Jésus-Christ\",\"après Jésus-Christ\",\"avant l’ère commune\",\"de l’ère commune\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},hebrew:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"7\"],short:[\"Tisseri\",\"Hesvan\",\"Kislev\",\"Tébeth\",\"Schébat\",\"Adar I\",\"Adar\",\"Nissan\",\"Iyar\",\"Sivan\",\"Tamouz\",\"Ab\",\"Elloul\",\"Adar II\"],long:[\"Tisseri\",\"Hesvan\",\"Kislev\",\"Tébeth\",\"Schébat\",\"Adar I\",\"Adar\",\"Nissan\",\"Iyar\",\"Sivan\",\"Tamouz\",\"Ab\",\"Elloul\",\"Adar II\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AM\"],short:[\"AM\"],long:[\"AM\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},indian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"],long:[\"Chaitra\",\"Vaisakha\",\"Jyaistha\",\"Asadha\",\"Sravana\",\"Bhadra\",\"Asvina\",\"Kartika\",\"Agrahayana\",\"Pausa\",\"Magha\",\"Phalguna\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"Saka\"],short:[\"Saka\"],long:[\"Saka\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamic:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"mouh.\",\"saf.\",\"rab. aw.\",\"rab. th.\",\"joum. oul.\",\"joum. tha.\",\"raj.\",\"chaa.\",\"ram.\",\"chaw.\",\"dhou. q.\",\"dhou. h.\"],long:[\"mouharram\",\"safar\",\"rabia al awal\",\"rabia ath-thani\",\"joumada al oula\",\"joumada ath-thania\",\"rajab\",\"chaabane\",\"ramadan\",\"chawwal\",\"dhou al qi`da\",\"dhou al-hijja\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},islamicc:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"mouh.\",\"saf.\",\"rab. aw.\",\"rab. th.\",\"joum. oul.\",\"joum. tha.\",\"raj.\",\"chaa.\",\"ram.\",\"chaw.\",\"dhou. q.\",\"dhou. h.\"],long:[\"mouharram\",\"safar\",\"rabia al awal\",\"rabia ath-thani\",\"joumada al oula\",\"joumada ath-thania\",\"rajab\",\"chaabane\",\"ramadan\",\"chawwal\",\"dhou al qi`da\",\"dhou al-hijja\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AH\"],short:[\"AH\"],long:[\"AH\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},japanese:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"M\",\"T\",\"S\",\"H\"],short:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"],long:[\"Taika (645–650)\",\"Hakuchi (650–671)\",\"Hakuhō (672–686)\",\"Shuchō (686–701)\",\"Taihō (701–704)\",\"Keiun (704–708)\",\"Wadō (708–715)\",\"Reiki (715–717)\",\"Yōrō (717–724)\",\"Jinki (724–729)\",\"Tenpyō (729–749)\",\"Tenpyō-kampō (749-749)\",\"Tenpyō-shōhō (749-757)\",\"Tenpyō-hōji (757-765)\",\"Tenpyō-jingo (765-767)\",\"Jingo-keiun (767-770)\",\"Hōki (770–780)\",\"Ten-ō (781-782)\",\"Enryaku (782–806)\",\"Daidō (806–810)\",\"Kōnin (810–824)\",\"Tenchō (824–834)\",\"Jōwa (834–848)\",\"Kajō (848–851)\",\"Ninju (851–854)\",\"Saikō (854–857)\",\"Ten-an (857-859)\",\"Jōgan (859–877)\",\"Gangyō (877–885)\",\"Ninna (885–889)\",\"Kanpyō (889–898)\",\"Shōtai (898–901)\",\"Engi (901–923)\",\"Enchō (923–931)\",\"Jōhei (931–938)\",\"Tengyō (938–947)\",\"Tenryaku (947–957)\",\"Tentoku (957–961)\",\"Ōwa (961–964)\",\"Kōhō (964–968)\",\"Anna (968–970)\",\"Tenroku (970–973)\",\"Ten’en (973–976)\",\"Jōgen (976–978)\",\"Tengen (978–983)\",\"Eikan (983–985)\",\"Kanna (985–987)\",\"Eien (987–989)\",\"Eiso (989–990)\",\"Shōryaku (990–995)\",\"Chōtoku (995–999)\",\"Chōhō (999–1004)\",\"Kankō (1004–1012)\",\"Chōwa (1012–1017)\",\"Kannin (1017–1021)\",\"Jian (1021–1024)\",\"Manju (1024–1028)\",\"Chōgen (1028–1037)\",\"Chōryaku (1037–1040)\",\"Chōkyū (1040–1044)\",\"Kantoku (1044–1046)\",\"Eishō (1046–1053)\",\"Tengi (1053–1058)\",\"Kōhei (1058–1065)\",\"Jiryaku (1065–1069)\",\"Enkyū (1069–1074)\",\"Shōho (1074–1077)\",\"Shōryaku (1077–1081)\",\"Eihō (1081–1084)\",\"Ōtoku (1084–1087)\",\"Kanji (1087–1094)\",\"Kahō (1094–1096)\",\"Eichō (1096–1097)\",\"Jōtoku (1097–1099)\",\"Kōwa (1099–1104)\",\"Chōji (1104–1106)\",\"Kashō (1106–1108)\",\"Tennin (1108–1110)\",\"Ten-ei (1110-1113)\",\"Eikyū (1113–1118)\",\"Gen’ei (1118–1120)\",\"Hōan (1120–1124)\",\"Tenji (1124–1126)\",\"Daiji (1126–1131)\",\"Tenshō (1131–1132)\",\"Chōshō (1132–1135)\",\"Hōen (1135–1141)\",\"Eiji (1141–1142)\",\"Kōji (1142–1144)\",\"Ten’yō (1144–1145)\",\"Kyūan (1145–1151)\",\"Ninpei (1151–1154)\",\"Kyūju (1154–1156)\",\"Hōgen (1156–1159)\",\"Heiji (1159–1160)\",\"Eiryaku (1160–1161)\",\"Ōho (1161–1163)\",\"Chōkan (1163–1165)\",\"Eiman (1165–1166)\",\"Nin’an (1166–1169)\",\"Kaō (1169–1171)\",\"Shōan (1171–1175)\",\"Angen (1175–1177)\",\"Jishō (1177–1181)\",\"Yōwa (1181–1182)\",\"Juei (1182–1184)\",\"Genryaku (1184–1185)\",\"Bunji (1185–1190)\",\"Kenkyū (1190–1199)\",\"Shōji (1199–1201)\",\"Kennin (1201–1204)\",\"Genkyū (1204–1206)\",\"Ken’ei (1206–1207)\",\"Jōgen (1207–1211)\",\"Kenryaku (1211–1213)\",\"Kenpō (1213–1219)\",\"Jōkyū (1219–1222)\",\"Jōō (1222–1224)\",\"Gennin (1224–1225)\",\"Karoku (1225–1227)\",\"Antei (1227–1229)\",\"Kanki (1229–1232)\",\"Jōei (1232–1233)\",\"Tenpuku (1233–1234)\",\"Bunryaku (1234–1235)\",\"Katei (1235–1238)\",\"Ryakunin (1238–1239)\",\"En’ō (1239–1240)\",\"Ninji (1240–1243)\",\"Kangen (1243–1247)\",\"Hōji (1247–1249)\",\"Kenchō (1249–1256)\",\"Kōgen (1256–1257)\",\"Shōka (1257–1259)\",\"Shōgen (1259–1260)\",\"Bun’ō (1260–1261)\",\"Kōchō (1261–1264)\",\"Bun’ei (1264–1275)\",\"Kenji (1275–1278)\",\"Kōan (1278–1288)\",\"Shōō (1288–1293)\",\"Einin (1293–1299)\",\"Shōan (1299–1302)\",\"Kengen (1302–1303)\",\"Kagen (1303–1306)\",\"Tokuji (1306–1308)\",\"Enkyō (1308–1311)\",\"Ōchō (1311–1312)\",\"Shōwa (1312–1317)\",\"Bunpō (1317–1319)\",\"Genō (1319–1321)\",\"Genkō (1321–1324)\",\"Shōchū (1324–1326)\",\"Karyaku (1326–1329)\",\"Gentoku (1329–1331)\",\"Genkō (1331–1334)\",\"Kenmu (1334–1336)\",\"Engen (1336–1340)\",\"Kōkoku (1340–1346)\",\"Shōhei (1346–1370)\",\"Kentoku (1370–1372)\",\"Bunchū (1372–1375)\",\"Tenju (1375–1379)\",\"Kōryaku (1379–1381)\",\"Kōwa (1381–1384)\",\"Genchū (1384–1392)\",\"Meitoku (1384–1387)\",\"Kakei (1387–1389)\",\"Kōō (1389–1390)\",\"Meitoku (1390–1394)\",\"Ōei (1394–1428)\",\"Shōchō (1428–1429)\",\"Eikyō (1429–1441)\",\"Kakitsu (1441–1444)\",\"Bun’an (1444–1449)\",\"Hōtoku (1449–1452)\",\"Kyōtoku (1452–1455)\",\"Kōshō (1455–1457)\",\"Chōroku (1457–1460)\",\"Kanshō (1460–1466)\",\"Bunshō (1466–1467)\",\"Ōnin (1467–1469)\",\"Bunmei (1469–1487)\",\"Chōkyō (1487–1489)\",\"Entoku (1489–1492)\",\"Meiō (1492–1501)\",\"Bunki (1501–1504)\",\"Eishō (1504–1521)\",\"Taiei (1521–1528)\",\"Kyōroku (1528–1532)\",\"Tenbun (1532–1555)\",\"Kōji (1555–1558)\",\"Eiroku (1558–1570)\",\"Genki (1570–1573)\",\"Tenshō (1573–1592)\",\"Bunroku (1592–1596)\",\"Keichō (1596–1615)\",\"Genna (1615–1624)\",\"Kan’ei (1624–1644)\",\"Shōho (1644–1648)\",\"Keian (1648–1652)\",\"Jōō (1652–1655)\",\"Meireki (1655–1658)\",\"Manji (1658–1661)\",\"Kanbun (1661–1673)\",\"Enpō (1673–1681)\",\"Tenna (1681–1684)\",\"Jōkyō (1684–1688)\",\"Genroku (1688–1704)\",\"Hōei (1704–1711)\",\"Shōtoku (1711–1716)\",\"Kyōhō (1716–1736)\",\"Genbun (1736–1741)\",\"Kanpō (1741–1744)\",\"Enkyō (1744–1748)\",\"Kan’en (1748–1751)\",\"Hōreki (1751–1764)\",\"Meiwa (1764–1772)\",\"An’ei (1772–1781)\",\"Tenmei (1781–1789)\",\"Kansei (1789–1801)\",\"Kyōwa (1801–1804)\",\"Bunka (1804–1818)\",\"Bunsei (1818–1830)\",\"Tenpō (1830–1844)\",\"Kōka (1844–1848)\",\"Kaei (1848–1854)\",\"Ansei (1854–1860)\",\"Man’en (1860–1861)\",\"Bunkyū (1861–1864)\",\"Genji (1864–1865)\",\"Keiō (1865–1868)\",\"Meiji\",\"Taishō\",\"Shōwa\",\"Heisei\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},persian:{months:{narrow:[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\"],short:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"],long:[\"Farvardin\",\"Ordibehesht\",\"Khordad\",\"Tir\",\"Mordad\",\"Shahrivar\",\"Mehr\",\"Aban\",\"Azar\",\"Dey\",\"Bahman\",\"Esfand\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"AP\"],short:[\"AP\"],long:[\"AP\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}},roc:{months:{narrow:[\"J\",\"F\",\"M\",\"A\",\"M\",\"J\",\"J\",\"A\",\"S\",\"O\",\"N\",\"D\"],short:[\"janv.\",\"févr.\",\"mars\",\"avr.\",\"mai\",\"juin\",\"juil.\",\"août\",\"sept.\",\"oct.\",\"nov.\",\"déc.\"],long:[\"janvier\",\"février\",\"mars\",\"avril\",\"mai\",\"juin\",\"juillet\",\"août\",\"septembre\",\"octobre\",\"novembre\",\"décembre\"]},days:{narrow:[\"D\",\"L\",\"M\",\"M\",\"J\",\"V\",\"S\"],short:[\"dim.\",\"lun.\",\"mar.\",\"mer.\",\"jeu.\",\"ven.\",\"sam.\"],long:[\"dimanche\",\"lundi\",\"mardi\",\"mercredi\",\"jeudi\",\"vendredi\",\"samedi\"]},eras:{narrow:[\"avant RdC\",\"RdC\"],short:[\"avant RdC\",\"RdC\"],long:[\"avant RdC\",\"RdC\"]},dayPeriods:{am:\"AM\",pm:\"PM\"}}}},number:{nu:[\"latn\"],patterns:{decimal:{positivePattern:\"{number}\",negativePattern:\"{minusSign}{number}\"},currency:{positivePattern:\"{number} {currency}\",negativePattern:\"{minusSign}{number} {currency}\"},percent:{positivePattern:\"{number} {percentSign}\",negativePattern:\"{minusSign}{number} {percentSign}\"}},symbols:{latn:{decimal:\",\",group:\" \",nan:\"NaN\",plusSign:\"+\",minusSign:\"-\",percentSign:\"%\",infinity:\"∞\"}},currencies:{ARS:\"$AR\",AUD:\"$AU\",BEF:\"FB\",BMD:\"$BM\",BND:\"$BN\",BRL:\"R$\",BSD:\"$BS\",BZD:\"$BZ\",CAD:\"$CA\",CLP:\"$CL\",COP:\"$CO\",CYP:\"£CY\",EUR:\"€\",FJD:\"$FJ\",FKP:\"£FK\",FRF:\"F\",GBP:\"£GB\",GIP:\"£GI\",IEP:\"£IE\",ILP:\"£IL\",ILS:\"₪\",INR:\"₹\",ITL:\"₤IT\",KRW:\"₩\",LBP:\"£LB\",MTP:\"£MT\",MXN:\"$MX\",NAD:\"$NA\",NZD:\"$NZ\",RHD:\"$RH\",SBD:\"$SB\",SGD:\"$SG\",SRD:\"$SR\",TTD:\"$TT\",USD:\"$US\",UYU:\"$UY\",VND:\"₫\",WST:\"WS$\",XAF:\"FCFA\",XOF:\"CFA\",XPF:\"FCFP\"}}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/locale-data/jsonp/fr.js\n ** module id = 326\n ** module chunks = 1\n **/","'use strict';\n\nvar babelHelpers = {};\nbabelHelpers.typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nbabelHelpers;\n\nvar realDefineProp = function () {\n var sentinel = {};\n try {\n Object.defineProperty(sentinel, 'a', {});\n return 'a' in sentinel;\n } catch (e) {\n return false;\n }\n}();\n\n// Need a workaround for getters in ES3\nvar es3 = !realDefineProp && !Object.prototype.__defineGetter__;\n\n// We use this a lot (and need it for proto-less objects)\nvar hop = Object.prototype.hasOwnProperty;\n\n// Naive defineProperty for compatibility\nvar defineProperty = realDefineProp ? Object.defineProperty : function (obj, name, desc) {\n if ('get' in desc && obj.__defineGetter__) obj.__defineGetter__(name, desc.get);else if (!hop.call(obj, name) || 'value' in desc) obj[name] = desc.value;\n};\n\n// Array.prototype.indexOf, as good as we need it to be\nvar arrIndexOf = Array.prototype.indexOf || function (search) {\n /*jshint validthis:true */\n var t = this;\n if (!t.length) return -1;\n\n for (var i = arguments[1] || 0, max = t.length; i < max; i++) {\n if (t[i] === search) return i;\n }\n\n return -1;\n};\n\n// Create an object with the specified prototype (2nd arg required for Record)\nvar objCreate = Object.create || function (proto, props) {\n var obj = void 0;\n\n function F() {}\n F.prototype = proto;\n obj = new F();\n\n for (var k in props) {\n if (hop.call(props, k)) defineProperty(obj, k, props[k]);\n }\n\n return obj;\n};\n\n// Snapshot some (hopefully still) native built-ins\nvar arrSlice = Array.prototype.slice;\nvar arrConcat = Array.prototype.concat;\nvar arrPush = Array.prototype.push;\nvar arrJoin = Array.prototype.join;\nvar arrShift = Array.prototype.shift;\n\n// Naive Function.prototype.bind for compatibility\nvar fnBind = Function.prototype.bind || function (thisObj) {\n var fn = this,\n args = arrSlice.call(arguments, 1);\n\n // All our (presently) bound functions have either 1 or 0 arguments. By returning\n // different function signatures, we can pass some tests in ES3 environments\n if (fn.length === 1) {\n return function () {\n return fn.apply(thisObj, arrConcat.call(args, arrSlice.call(arguments)));\n };\n }\n return function () {\n return fn.apply(thisObj, arrConcat.call(args, arrSlice.call(arguments)));\n };\n};\n\n// Object housing internal properties for constructors\nvar internals = objCreate(null);\n\n// Keep internal properties internal\nvar secret = Math.random();\n\n// Helper functions\n// ================\n\n/**\n * A function to deal with the inaccuracy of calculating log10 in pre-ES6\n * JavaScript environments. Math.log(num) / Math.LN10 was responsible for\n * causing issue #62.\n */\nfunction log10Floor(n) {\n // ES6 provides the more accurate Math.log10\n if (typeof Math.log10 === 'function') return Math.floor(Math.log10(n));\n\n var x = Math.round(Math.log(n) * Math.LOG10E);\n return x - (Number('1e' + x) > n);\n}\n\n/**\n * A map that doesn't contain Object in its prototype chain\n */\nfunction Record(obj) {\n // Copy only own properties over unless this object is already a Record instance\n for (var k in obj) {\n if (obj instanceof Record || hop.call(obj, k)) defineProperty(this, k, { value: obj[k], enumerable: true, writable: true, configurable: true });\n }\n}\nRecord.prototype = objCreate(null);\n\n/**\n * An ordered list\n */\nfunction List() {\n defineProperty(this, 'length', { writable: true, value: 0 });\n\n if (arguments.length) arrPush.apply(this, arrSlice.call(arguments));\n}\nList.prototype = objCreate(null);\n\n/**\n * Constructs a regular expression to restore tainted RegExp properties\n */\nfunction createRegExpRestore() {\n var esc = /[.?*+^$[\\]\\\\(){}|-]/g,\n lm = RegExp.lastMatch || '',\n ml = RegExp.multiline ? 'm' : '',\n ret = { input: RegExp.input },\n reg = new List(),\n has = false,\n cap = {};\n\n // Create a snapshot of all the 'captured' properties\n for (var i = 1; i <= 9; i++) {\n has = (cap['$' + i] = RegExp['$' + i]) || has;\n } // Now we've snapshotted some properties, escape the lastMatch string\n lm = lm.replace(esc, '\\\\$&');\n\n // If any of the captured strings were non-empty, iterate over them all\n if (has) {\n for (var _i = 1; _i <= 9; _i++) {\n var m = cap['$' + _i];\n\n // If it's empty, add an empty capturing group\n if (!m) lm = '()' + lm;\n\n // Else find the string in lm and escape & wrap it to capture it\n else {\n m = m.replace(esc, '\\\\$&');\n lm = lm.replace(m, '(' + m + ')');\n }\n\n // Push it to the reg and chop lm to make sure further groups come after\n arrPush.call(reg, lm.slice(0, lm.indexOf('(') + 1));\n lm = lm.slice(lm.indexOf('(') + 1);\n }\n }\n\n // Create the regular expression that will reconstruct the RegExp properties\n ret.exp = new RegExp(arrJoin.call(reg, '') + lm, ml);\n\n return ret;\n}\n\n/**\n * Mimics ES5's abstract ToObject() function\n */\nfunction toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n return Object(arg);\n}\n\n/**\n * Returns \"internal\" properties for an object\n */\nfunction getInternalProperties(obj) {\n if (hop.call(obj, '__getInternalProperties')) return obj.__getInternalProperties(secret);\n\n return objCreate(null);\n}\n\n/**\n* Defines regular expressions for various operations related to the BCP 47 syntax,\n* as defined at http://tools.ietf.org/html/bcp47#section-2.1\n*/\n\n// extlang = 3ALPHA ; selected ISO 639 codes\n// *2(\"-\" 3ALPHA) ; permanently reserved\nvar extlang = '[a-z]{3}(?:-[a-z]{3}){0,2}';\n\n// language = 2*3ALPHA ; shortest ISO 639 code\n// [\"-\" extlang] ; sometimes followed by\n// ; extended language subtags\n// / 4ALPHA ; or reserved for future use\n// / 5*8ALPHA ; or registered language subtag\nvar language = '(?:[a-z]{2,3}(?:-' + extlang + ')?|[a-z]{4}|[a-z]{5,8})';\n\n// script = 4ALPHA ; ISO 15924 code\nvar script = '[a-z]{4}';\n\n// region = 2ALPHA ; ISO 3166-1 code\n// / 3DIGIT ; UN M.49 code\nvar region = '(?:[a-z]{2}|\\\\d{3})';\n\n// variant = 5*8alphanum ; registered variants\n// / (DIGIT 3alphanum)\nvar variant = '(?:[a-z0-9]{5,8}|\\\\d[a-z0-9]{3})';\n\n// ; Single alphanumerics\n// ; \"x\" reserved for private use\n// singleton = DIGIT ; 0 - 9\n// / %x41-57 ; A - W\n// / %x59-5A ; Y - Z\n// / %x61-77 ; a - w\n// / %x79-7A ; y - z\nvar singleton = '[0-9a-wy-z]';\n\n// extension = singleton 1*(\"-\" (2*8alphanum))\nvar extension = singleton + '(?:-[a-z0-9]{2,8})+';\n\n// privateuse = \"x\" 1*(\"-\" (1*8alphanum))\nvar privateuse = 'x(?:-[a-z0-9]{1,8})+';\n\n// irregular = \"en-GB-oed\" ; irregular tags do not match\n// / \"i-ami\" ; the 'langtag' production and\n// / \"i-bnn\" ; would not otherwise be\n// / \"i-default\" ; considered 'well-formed'\n// / \"i-enochian\" ; These tags are all valid,\n// / \"i-hak\" ; but most are deprecated\n// / \"i-klingon\" ; in favor of more modern\n// / \"i-lux\" ; subtags or subtag\n// / \"i-mingo\" ; combination\n// / \"i-navajo\"\n// / \"i-pwn\"\n// / \"i-tao\"\n// / \"i-tay\"\n// / \"i-tsu\"\n// / \"sgn-BE-FR\"\n// / \"sgn-BE-NL\"\n// / \"sgn-CH-DE\"\nvar irregular = '(?:en-GB-oed' + '|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)' + '|sgn-(?:BE-FR|BE-NL|CH-DE))';\n\n// regular = \"art-lojban\" ; these tags match the 'langtag'\n// / \"cel-gaulish\" ; production, but their subtags\n// / \"no-bok\" ; are not extended language\n// / \"no-nyn\" ; or variant subtags: their meaning\n// / \"zh-guoyu\" ; is defined by their registration\n// / \"zh-hakka\" ; and all of these are deprecated\n// / \"zh-min\" ; in favor of a more modern\n// / \"zh-min-nan\" ; subtag or sequence of subtags\n// / \"zh-xiang\"\nvar regular = '(?:art-lojban|cel-gaulish|no-bok|no-nyn' + '|zh-(?:guoyu|hakka|min|min-nan|xiang))';\n\n// grandfathered = irregular ; non-redundant tags registered\n// / regular ; during the RFC 3066 era\nvar grandfathered = '(?:' + irregular + '|' + regular + ')';\n\n// langtag = language\n// [\"-\" script]\n// [\"-\" region]\n// *(\"-\" variant)\n// *(\"-\" extension)\n// [\"-\" privateuse]\nvar langtag = language + '(?:-' + script + ')?(?:-' + region + ')?(?:-' + variant + ')*(?:-' + extension + ')*(?:-' + privateuse + ')?';\n\n// Language-Tag = langtag ; normal language tags\n// / privateuse ; private use tag\n// / grandfathered ; grandfathered tags\nvar expBCP47Syntax = RegExp('^(?:' + langtag + '|' + privateuse + '|' + grandfathered + ')$', 'i');\n\n// Match duplicate variants in a language tag\nvar expVariantDupes = RegExp('^(?!x).*?-(' + variant + ')-(?:\\\\w{4,8}-(?!x-))*\\\\1\\\\b', 'i');\n\n// Match duplicate singletons in a language tag (except in private use)\nvar expSingletonDupes = RegExp('^(?!x).*?-(' + singleton + ')-(?:\\\\w+-(?!x-))*\\\\1\\\\b', 'i');\n\n// Match all extension sequences\nvar expExtSequences = RegExp('-' + extension, 'ig');\n\n// Default locale is the first-added locale data for us\nvar defaultLocale = void 0;\nfunction setDefaultLocale(locale) {\n defaultLocale = locale;\n}\n\n// IANA Subtag Registry redundant tag and subtag maps\nvar redundantTags = {\n tags: {\n \"art-lojban\": \"jbo\",\n \"i-ami\": \"ami\",\n \"i-bnn\": \"bnn\",\n \"i-hak\": \"hak\",\n \"i-klingon\": \"tlh\",\n \"i-lux\": \"lb\",\n \"i-navajo\": \"nv\",\n \"i-pwn\": \"pwn\",\n \"i-tao\": \"tao\",\n \"i-tay\": \"tay\",\n \"i-tsu\": \"tsu\",\n \"no-bok\": \"nb\",\n \"no-nyn\": \"nn\",\n \"sgn-BE-FR\": \"sfb\",\n \"sgn-BE-NL\": \"vgt\",\n \"sgn-CH-DE\": \"sgg\",\n \"zh-guoyu\": \"cmn\",\n \"zh-hakka\": \"hak\",\n \"zh-min-nan\": \"nan\",\n \"zh-xiang\": \"hsn\",\n \"sgn-BR\": \"bzs\",\n \"sgn-CO\": \"csn\",\n \"sgn-DE\": \"gsg\",\n \"sgn-DK\": \"dsl\",\n \"sgn-ES\": \"ssp\",\n \"sgn-FR\": \"fsl\",\n \"sgn-GB\": \"bfi\",\n \"sgn-GR\": \"gss\",\n \"sgn-IE\": \"isg\",\n \"sgn-IT\": \"ise\",\n \"sgn-JP\": \"jsl\",\n \"sgn-MX\": \"mfs\",\n \"sgn-NI\": \"ncs\",\n \"sgn-NL\": \"dse\",\n \"sgn-NO\": \"nsl\",\n \"sgn-PT\": \"psr\",\n \"sgn-SE\": \"swl\",\n \"sgn-US\": \"ase\",\n \"sgn-ZA\": \"sfs\",\n \"zh-cmn\": \"cmn\",\n \"zh-cmn-Hans\": \"cmn-Hans\",\n \"zh-cmn-Hant\": \"cmn-Hant\",\n \"zh-gan\": \"gan\",\n \"zh-wuu\": \"wuu\",\n \"zh-yue\": \"yue\"\n },\n subtags: {\n BU: \"MM\",\n DD: \"DE\",\n FX: \"FR\",\n TP: \"TL\",\n YD: \"YE\",\n ZR: \"CD\",\n heploc: \"alalc97\",\n 'in': \"id\",\n iw: \"he\",\n ji: \"yi\",\n jw: \"jv\",\n mo: \"ro\",\n ayx: \"nun\",\n bjd: \"drl\",\n ccq: \"rki\",\n cjr: \"mom\",\n cka: \"cmr\",\n cmk: \"xch\",\n drh: \"khk\",\n drw: \"prs\",\n gav: \"dev\",\n hrr: \"jal\",\n ibi: \"opa\",\n kgh: \"kml\",\n lcq: \"ppr\",\n mst: \"mry\",\n myt: \"mry\",\n sca: \"hle\",\n tie: \"ras\",\n tkk: \"twm\",\n tlw: \"weo\",\n tnf: \"prs\",\n ybd: \"rki\",\n yma: \"lrr\"\n },\n extLang: {\n aao: [\"aao\", \"ar\"],\n abh: [\"abh\", \"ar\"],\n abv: [\"abv\", \"ar\"],\n acm: [\"acm\", \"ar\"],\n acq: [\"acq\", \"ar\"],\n acw: [\"acw\", \"ar\"],\n acx: [\"acx\", \"ar\"],\n acy: [\"acy\", \"ar\"],\n adf: [\"adf\", \"ar\"],\n ads: [\"ads\", \"sgn\"],\n aeb: [\"aeb\", \"ar\"],\n aec: [\"aec\", \"ar\"],\n aed: [\"aed\", \"sgn\"],\n aen: [\"aen\", \"sgn\"],\n afb: [\"afb\", \"ar\"],\n afg: [\"afg\", \"sgn\"],\n ajp: [\"ajp\", \"ar\"],\n apc: [\"apc\", \"ar\"],\n apd: [\"apd\", \"ar\"],\n arb: [\"arb\", \"ar\"],\n arq: [\"arq\", \"ar\"],\n ars: [\"ars\", \"ar\"],\n ary: [\"ary\", \"ar\"],\n arz: [\"arz\", \"ar\"],\n ase: [\"ase\", \"sgn\"],\n asf: [\"asf\", \"sgn\"],\n asp: [\"asp\", \"sgn\"],\n asq: [\"asq\", \"sgn\"],\n asw: [\"asw\", \"sgn\"],\n auz: [\"auz\", \"ar\"],\n avl: [\"avl\", \"ar\"],\n ayh: [\"ayh\", \"ar\"],\n ayl: [\"ayl\", \"ar\"],\n ayn: [\"ayn\", \"ar\"],\n ayp: [\"ayp\", \"ar\"],\n bbz: [\"bbz\", \"ar\"],\n bfi: [\"bfi\", \"sgn\"],\n bfk: [\"bfk\", \"sgn\"],\n bjn: [\"bjn\", \"ms\"],\n bog: [\"bog\", \"sgn\"],\n bqn: [\"bqn\", \"sgn\"],\n bqy: [\"bqy\", \"sgn\"],\n btj: [\"btj\", \"ms\"],\n bve: [\"bve\", \"ms\"],\n bvl: [\"bvl\", \"sgn\"],\n bvu: [\"bvu\", \"ms\"],\n bzs: [\"bzs\", \"sgn\"],\n cdo: [\"cdo\", \"zh\"],\n cds: [\"cds\", \"sgn\"],\n cjy: [\"cjy\", \"zh\"],\n cmn: [\"cmn\", \"zh\"],\n coa: [\"coa\", \"ms\"],\n cpx: [\"cpx\", \"zh\"],\n csc: [\"csc\", \"sgn\"],\n csd: [\"csd\", \"sgn\"],\n cse: [\"cse\", \"sgn\"],\n csf: [\"csf\", \"sgn\"],\n csg: [\"csg\", \"sgn\"],\n csl: [\"csl\", \"sgn\"],\n csn: [\"csn\", \"sgn\"],\n csq: [\"csq\", \"sgn\"],\n csr: [\"csr\", \"sgn\"],\n czh: [\"czh\", \"zh\"],\n czo: [\"czo\", \"zh\"],\n doq: [\"doq\", \"sgn\"],\n dse: [\"dse\", \"sgn\"],\n dsl: [\"dsl\", \"sgn\"],\n dup: [\"dup\", \"ms\"],\n ecs: [\"ecs\", \"sgn\"],\n esl: [\"esl\", \"sgn\"],\n esn: [\"esn\", \"sgn\"],\n eso: [\"eso\", \"sgn\"],\n eth: [\"eth\", \"sgn\"],\n fcs: [\"fcs\", \"sgn\"],\n fse: [\"fse\", \"sgn\"],\n fsl: [\"fsl\", \"sgn\"],\n fss: [\"fss\", \"sgn\"],\n gan: [\"gan\", \"zh\"],\n gds: [\"gds\", \"sgn\"],\n gom: [\"gom\", \"kok\"],\n gse: [\"gse\", \"sgn\"],\n gsg: [\"gsg\", \"sgn\"],\n gsm: [\"gsm\", \"sgn\"],\n gss: [\"gss\", \"sgn\"],\n gus: [\"gus\", \"sgn\"],\n hab: [\"hab\", \"sgn\"],\n haf: [\"haf\", \"sgn\"],\n hak: [\"hak\", \"zh\"],\n hds: [\"hds\", \"sgn\"],\n hji: [\"hji\", \"ms\"],\n hks: [\"hks\", \"sgn\"],\n hos: [\"hos\", \"sgn\"],\n hps: [\"hps\", \"sgn\"],\n hsh: [\"hsh\", \"sgn\"],\n hsl: [\"hsl\", \"sgn\"],\n hsn: [\"hsn\", \"zh\"],\n icl: [\"icl\", \"sgn\"],\n ils: [\"ils\", \"sgn\"],\n inl: [\"inl\", \"sgn\"],\n ins: [\"ins\", \"sgn\"],\n ise: [\"ise\", \"sgn\"],\n isg: [\"isg\", \"sgn\"],\n isr: [\"isr\", \"sgn\"],\n jak: [\"jak\", \"ms\"],\n jax: [\"jax\", \"ms\"],\n jcs: [\"jcs\", \"sgn\"],\n jhs: [\"jhs\", \"sgn\"],\n jls: [\"jls\", \"sgn\"],\n jos: [\"jos\", \"sgn\"],\n jsl: [\"jsl\", \"sgn\"],\n jus: [\"jus\", \"sgn\"],\n kgi: [\"kgi\", \"sgn\"],\n knn: [\"knn\", \"kok\"],\n kvb: [\"kvb\", \"ms\"],\n kvk: [\"kvk\", \"sgn\"],\n kvr: [\"kvr\", \"ms\"],\n kxd: [\"kxd\", \"ms\"],\n lbs: [\"lbs\", \"sgn\"],\n lce: [\"lce\", \"ms\"],\n lcf: [\"lcf\", \"ms\"],\n liw: [\"liw\", \"ms\"],\n lls: [\"lls\", \"sgn\"],\n lsg: [\"lsg\", \"sgn\"],\n lsl: [\"lsl\", \"sgn\"],\n lso: [\"lso\", \"sgn\"],\n lsp: [\"lsp\", \"sgn\"],\n lst: [\"lst\", \"sgn\"],\n lsy: [\"lsy\", \"sgn\"],\n ltg: [\"ltg\", \"lv\"],\n lvs: [\"lvs\", \"lv\"],\n lzh: [\"lzh\", \"zh\"],\n max: [\"max\", \"ms\"],\n mdl: [\"mdl\", \"sgn\"],\n meo: [\"meo\", \"ms\"],\n mfa: [\"mfa\", \"ms\"],\n mfb: [\"mfb\", \"ms\"],\n mfs: [\"mfs\", \"sgn\"],\n min: [\"min\", \"ms\"],\n mnp: [\"mnp\", \"zh\"],\n mqg: [\"mqg\", \"ms\"],\n mre: [\"mre\", \"sgn\"],\n msd: [\"msd\", \"sgn\"],\n msi: [\"msi\", \"ms\"],\n msr: [\"msr\", \"sgn\"],\n mui: [\"mui\", \"ms\"],\n mzc: [\"mzc\", \"sgn\"],\n mzg: [\"mzg\", \"sgn\"],\n mzy: [\"mzy\", \"sgn\"],\n nan: [\"nan\", \"zh\"],\n nbs: [\"nbs\", \"sgn\"],\n ncs: [\"ncs\", \"sgn\"],\n nsi: [\"nsi\", \"sgn\"],\n nsl: [\"nsl\", \"sgn\"],\n nsp: [\"nsp\", \"sgn\"],\n nsr: [\"nsr\", \"sgn\"],\n nzs: [\"nzs\", \"sgn\"],\n okl: [\"okl\", \"sgn\"],\n orn: [\"orn\", \"ms\"],\n ors: [\"ors\", \"ms\"],\n pel: [\"pel\", \"ms\"],\n pga: [\"pga\", \"ar\"],\n pks: [\"pks\", \"sgn\"],\n prl: [\"prl\", \"sgn\"],\n prz: [\"prz\", \"sgn\"],\n psc: [\"psc\", \"sgn\"],\n psd: [\"psd\", \"sgn\"],\n pse: [\"pse\", \"ms\"],\n psg: [\"psg\", \"sgn\"],\n psl: [\"psl\", \"sgn\"],\n pso: [\"pso\", \"sgn\"],\n psp: [\"psp\", \"sgn\"],\n psr: [\"psr\", \"sgn\"],\n pys: [\"pys\", \"sgn\"],\n rms: [\"rms\", \"sgn\"],\n rsi: [\"rsi\", \"sgn\"],\n rsl: [\"rsl\", \"sgn\"],\n sdl: [\"sdl\", \"sgn\"],\n sfb: [\"sfb\", \"sgn\"],\n sfs: [\"sfs\", \"sgn\"],\n sgg: [\"sgg\", \"sgn\"],\n sgx: [\"sgx\", \"sgn\"],\n shu: [\"shu\", \"ar\"],\n slf: [\"slf\", \"sgn\"],\n sls: [\"sls\", \"sgn\"],\n sqk: [\"sqk\", \"sgn\"],\n sqs: [\"sqs\", \"sgn\"],\n ssh: [\"ssh\", \"ar\"],\n ssp: [\"ssp\", \"sgn\"],\n ssr: [\"ssr\", \"sgn\"],\n svk: [\"svk\", \"sgn\"],\n swc: [\"swc\", \"sw\"],\n swh: [\"swh\", \"sw\"],\n swl: [\"swl\", \"sgn\"],\n syy: [\"syy\", \"sgn\"],\n tmw: [\"tmw\", \"ms\"],\n tse: [\"tse\", \"sgn\"],\n tsm: [\"tsm\", \"sgn\"],\n tsq: [\"tsq\", \"sgn\"],\n tss: [\"tss\", \"sgn\"],\n tsy: [\"tsy\", \"sgn\"],\n tza: [\"tza\", \"sgn\"],\n ugn: [\"ugn\", \"sgn\"],\n ugy: [\"ugy\", \"sgn\"],\n ukl: [\"ukl\", \"sgn\"],\n uks: [\"uks\", \"sgn\"],\n urk: [\"urk\", \"ms\"],\n uzn: [\"uzn\", \"uz\"],\n uzs: [\"uzs\", \"uz\"],\n vgt: [\"vgt\", \"sgn\"],\n vkk: [\"vkk\", \"ms\"],\n vkt: [\"vkt\", \"ms\"],\n vsi: [\"vsi\", \"sgn\"],\n vsl: [\"vsl\", \"sgn\"],\n vsv: [\"vsv\", \"sgn\"],\n wuu: [\"wuu\", \"zh\"],\n xki: [\"xki\", \"sgn\"],\n xml: [\"xml\", \"sgn\"],\n xmm: [\"xmm\", \"ms\"],\n xms: [\"xms\", \"sgn\"],\n yds: [\"yds\", \"sgn\"],\n ysl: [\"ysl\", \"sgn\"],\n yue: [\"yue\", \"zh\"],\n zib: [\"zib\", \"sgn\"],\n zlm: [\"zlm\", \"ms\"],\n zmi: [\"zmi\", \"ms\"],\n zsl: [\"zsl\", \"sgn\"],\n zsm: [\"zsm\", \"ms\"]\n }\n};\n\n/**\n * Convert only a-z to uppercase as per section 6.1 of the spec\n */\nfunction toLatinUpperCase(str) {\n var i = str.length;\n\n while (i--) {\n var ch = str.charAt(i);\n\n if (ch >= \"a\" && ch <= \"z\") str = str.slice(0, i) + ch.toUpperCase() + str.slice(i + 1);\n }\n\n return str;\n}\n\n/**\n * The IsStructurallyValidLanguageTag abstract operation verifies that the locale\n * argument (which must be a String value)\n *\n * - represents a well-formed BCP 47 language tag as specified in RFC 5646 section\n * 2.1, or successor,\n * - does not include duplicate variant subtags, and\n * - does not include duplicate singleton subtags.\n *\n * The abstract operation returns true if locale can be generated from the ABNF\n * grammar in section 2.1 of the RFC, starting with Language-Tag, and does not\n * contain duplicate variant or singleton subtags (other than as a private use\n * subtag). It returns false otherwise. Terminal value characters in the grammar are\n * interpreted as the Unicode equivalents of the ASCII octet values given.\n */\nfunction /* 6.2.2 */IsStructurallyValidLanguageTag(locale) {\n // represents a well-formed BCP 47 language tag as specified in RFC 5646\n if (!expBCP47Syntax.test(locale)) return false;\n\n // does not include duplicate variant subtags, and\n if (expVariantDupes.test(locale)) return false;\n\n // does not include duplicate singleton subtags.\n if (expSingletonDupes.test(locale)) return false;\n\n return true;\n}\n\n/**\n * The CanonicalizeLanguageTag abstract operation returns the canonical and case-\n * regularized form of the locale argument (which must be a String value that is\n * a structurally valid BCP 47 language tag as verified by the\n * IsStructurallyValidLanguageTag abstract operation). It takes the steps\n * specified in RFC 5646 section 4.5, or successor, to bring the language tag\n * into canonical form, and to regularize the case of the subtags, but does not\n * take the steps to bring a language tag into “extlang form” and to reorder\n * variant subtags.\n\n * The specifications for extensions to BCP 47 language tags, such as RFC 6067,\n * may include canonicalization rules for the extension subtag sequences they\n * define that go beyond the canonicalization rules of RFC 5646 section 4.5.\n * Implementations are allowed, but not required, to apply these additional rules.\n */\nfunction /* 6.2.3 */CanonicalizeLanguageTag(locale) {\n var match = void 0,\n parts = void 0;\n\n // A language tag is in 'canonical form' when the tag is well-formed\n // according to the rules in Sections 2.1 and 2.2\n\n // Section 2.1 says all subtags use lowercase...\n locale = locale.toLowerCase();\n\n // ...with 2 exceptions: 'two-letter and four-letter subtags that neither\n // appear at the start of the tag nor occur after singletons. Such two-letter\n // subtags are all uppercase (as in the tags \"en-CA-x-ca\" or \"sgn-BE-FR\") and\n // four-letter subtags are titlecase (as in the tag \"az-Latn-x-latn\").\n parts = locale.split('-');\n for (var i = 1, max = parts.length; i < max; i++) {\n // Two-letter subtags are all uppercase\n if (parts[i].length === 2) parts[i] = parts[i].toUpperCase();\n\n // Four-letter subtags are titlecase\n else if (parts[i].length === 4) parts[i] = parts[i].charAt(0).toUpperCase() + parts[i].slice(1);\n\n // Is it a singleton?\n else if (parts[i].length === 1 && parts[i] !== 'x') break;\n }\n locale = arrJoin.call(parts, '-');\n\n // The steps laid out in RFC 5646 section 4.5 are as follows:\n\n // 1. Extension sequences are ordered into case-insensitive ASCII order\n // by singleton subtag.\n if ((match = locale.match(expExtSequences)) && match.length > 1) {\n // The built-in sort() sorts by ASCII order, so use that\n match.sort();\n\n // Replace all extensions with the joined, sorted array\n locale = locale.replace(RegExp('(?:' + expExtSequences.source + ')+', 'i'), arrJoin.call(match, ''));\n }\n\n // 2. Redundant or grandfathered tags are replaced by their 'Preferred-\n // Value', if there is one.\n if (hop.call(redundantTags.tags, locale)) locale = redundantTags.tags[locale];\n\n // 3. Subtags are replaced by their 'Preferred-Value', if there is one.\n // For extlangs, the original primary language subtag is also\n // replaced if there is a primary language subtag in the 'Preferred-\n // Value'.\n parts = locale.split('-');\n\n for (var _i = 1, _max = parts.length; _i < _max; _i++) {\n if (hop.call(redundantTags.subtags, parts[_i])) parts[_i] = redundantTags.subtags[parts[_i]];else if (hop.call(redundantTags.extLang, parts[_i])) {\n parts[_i] = redundantTags.extLang[parts[_i]][0];\n\n // For extlang tags, the prefix needs to be removed if it is redundant\n if (_i === 1 && redundantTags.extLang[parts[1]][1] === parts[0]) {\n parts = arrSlice.call(parts, _i++);\n _max -= 1;\n }\n }\n }\n\n return arrJoin.call(parts, '-');\n}\n\n/**\n * The DefaultLocale abstract operation returns a String value representing the\n * structurally valid (6.2.2) and canonicalized (6.2.3) BCP 47 language tag for the\n * host environment’s current locale.\n */\nfunction /* 6.2.4 */DefaultLocale() {\n return defaultLocale;\n}\n\n// Sect 6.3 Currency Codes\n// =======================\n\nvar expCurrencyCode = /^[A-Z]{3}$/;\n\n/**\n * The IsWellFormedCurrencyCode abstract operation verifies that the currency argument\n * (after conversion to a String value) represents a well-formed 3-letter ISO currency\n * code. The following steps are taken:\n */\nfunction /* 6.3.1 */IsWellFormedCurrencyCode(currency) {\n // 1. Let `c` be ToString(currency)\n var c = String(currency);\n\n // 2. Let `normalized` be the result of mapping c to upper case as described\n // in 6.1.\n var normalized = toLatinUpperCase(c);\n\n // 3. If the string length of normalized is not 3, return false.\n // 4. If normalized contains any character that is not in the range \"A\" to \"Z\"\n // (U+0041 to U+005A), return false.\n if (expCurrencyCode.test(normalized) === false) return false;\n\n // 5. Return true\n return true;\n}\n\nvar expUnicodeExSeq = /-u(?:-[0-9a-z]{2,8})+/gi; // See `extension` below\n\nfunction /* 9.2.1 */CanonicalizeLocaleList(locales) {\n // The abstract operation CanonicalizeLocaleList takes the following steps:\n\n // 1. If locales is undefined, then a. Return a new empty List\n if (locales === undefined) return new List();\n\n // 2. Let seen be a new empty List.\n var seen = new List();\n\n // 3. If locales is a String value, then\n // a. Let locales be a new array created as if by the expression new\n // Array(locales) where Array is the standard built-in constructor with\n // that name and locales is the value of locales.\n locales = typeof locales === 'string' ? [locales] : locales;\n\n // 4. Let O be ToObject(locales).\n var O = toObject(locales);\n\n // 5. Let lenValue be the result of calling the [[Get]] internal method of\n // O with the argument \"length\".\n // 6. Let len be ToUint32(lenValue).\n var len = O.length;\n\n // 7. Let k be 0.\n var k = 0;\n\n // 8. Repeat, while k < len\n while (k < len) {\n // a. Let Pk be ToString(k).\n var Pk = String(k);\n\n // b. Let kPresent be the result of calling the [[HasProperty]] internal\n // method of O with argument Pk.\n var kPresent = Pk in O;\n\n // c. If kPresent is true, then\n if (kPresent) {\n // i. Let kValue be the result of calling the [[Get]] internal\n // method of O with argument Pk.\n var kValue = O[Pk];\n\n // ii. If the type of kValue is not String or Object, then throw a\n // TypeError exception.\n if (kValue === null || typeof kValue !== 'string' && (typeof kValue === \"undefined\" ? \"undefined\" : babelHelpers[\"typeof\"](kValue)) !== 'object') throw new TypeError('String or Object type expected');\n\n // iii. Let tag be ToString(kValue).\n var tag = String(kValue);\n\n // iv. If the result of calling the abstract operation\n // IsStructurallyValidLanguageTag (defined in 6.2.2), passing tag as\n // the argument, is false, then throw a RangeError exception.\n if (!IsStructurallyValidLanguageTag(tag)) throw new RangeError(\"'\" + tag + \"' is not a structurally valid language tag\");\n\n // v. Let tag be the result of calling the abstract operation\n // CanonicalizeLanguageTag (defined in 6.2.3), passing tag as the\n // argument.\n tag = CanonicalizeLanguageTag(tag);\n\n // vi. If tag is not an element of seen, then append tag as the last\n // element of seen.\n if (arrIndexOf.call(seen, tag) === -1) arrPush.call(seen, tag);\n }\n\n // d. Increase k by 1.\n k++;\n }\n\n // 9. Return seen.\n return seen;\n}\n\n/**\n * The BestAvailableLocale abstract operation compares the provided argument\n * locale, which must be a String value with a structurally valid and\n * canonicalized BCP 47 language tag, against the locales in availableLocales and\n * returns either the longest non-empty prefix of locale that is an element of\n * availableLocales, or undefined if there is no such element. It uses the\n * fallback mechanism of RFC 4647, section 3.4. The following steps are taken:\n */\nfunction /* 9.2.2 */BestAvailableLocale(availableLocales, locale) {\n // 1. Let candidate be locale\n var candidate = locale;\n\n // 2. Repeat\n while (candidate) {\n // a. If availableLocales contains an element equal to candidate, then return\n // candidate.\n if (arrIndexOf.call(availableLocales, candidate) > -1) return candidate;\n\n // b. Let pos be the character index of the last occurrence of \"-\"\n // (U+002D) within candidate. If that character does not occur, return\n // undefined.\n var pos = candidate.lastIndexOf('-');\n\n if (pos < 0) return;\n\n // c. If pos ≥ 2 and the character \"-\" occurs at index pos-2 of candidate,\n // then decrease pos by 2.\n if (pos >= 2 && candidate.charAt(pos - 2) === '-') pos -= 2;\n\n // d. Let candidate be the substring of candidate from position 0, inclusive,\n // to position pos, exclusive.\n candidate = candidate.substring(0, pos);\n }\n}\n\n/**\n * The LookupMatcher abstract operation compares requestedLocales, which must be\n * a List as returned by CanonicalizeLocaleList, against the locales in\n * availableLocales and determines the best available language to meet the\n * request. The following steps are taken:\n */\nfunction /* 9.2.3 */LookupMatcher(availableLocales, requestedLocales) {\n // 1. Let i be 0.\n var i = 0;\n\n // 2. Let len be the number of elements in requestedLocales.\n var len = requestedLocales.length;\n\n // 3. Let availableLocale be undefined.\n var availableLocale = void 0;\n\n var locale = void 0,\n noExtensionsLocale = void 0;\n\n // 4. Repeat while i < len and availableLocale is undefined:\n while (i < len && !availableLocale) {\n // a. Let locale be the element of requestedLocales at 0-origined list\n // position i.\n locale = requestedLocales[i];\n\n // b. Let noExtensionsLocale be the String value that is locale with all\n // Unicode locale extension sequences removed.\n noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n\n // c. Let availableLocale be the result of calling the\n // BestAvailableLocale abstract operation (defined in 9.2.2) with\n // arguments availableLocales and noExtensionsLocale.\n availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\n // d. Increase i by 1.\n i++;\n }\n\n // 5. Let result be a new Record.\n var result = new Record();\n\n // 6. If availableLocale is not undefined, then\n if (availableLocale !== undefined) {\n // a. Set result.[[locale]] to availableLocale.\n result['[[locale]]'] = availableLocale;\n\n // b. If locale and noExtensionsLocale are not the same String value, then\n if (String(locale) !== String(noExtensionsLocale)) {\n // i. Let extension be the String value consisting of the first\n // substring of locale that is a Unicode locale extension sequence.\n var extension = locale.match(expUnicodeExSeq)[0];\n\n // ii. Let extensionIndex be the character position of the initial\n // \"-\" of the first Unicode locale extension sequence within locale.\n var extensionIndex = locale.indexOf('-u-');\n\n // iii. Set result.[[extension]] to extension.\n result['[[extension]]'] = extension;\n\n // iv. Set result.[[extensionIndex]] to extensionIndex.\n result['[[extensionIndex]]'] = extensionIndex;\n }\n }\n // 7. Else\n else\n // a. Set result.[[locale]] to the value returned by the DefaultLocale abstract\n // operation (defined in 6.2.4).\n result['[[locale]]'] = DefaultLocale();\n\n // 8. Return result\n return result;\n}\n\n/**\n * The BestFitMatcher abstract operation compares requestedLocales, which must be\n * a List as returned by CanonicalizeLocaleList, against the locales in\n * availableLocales and determines the best available language to meet the\n * request. The algorithm is implementation dependent, but should produce results\n * that a typical user of the requested locales would perceive as at least as\n * good as those produced by the LookupMatcher abstract operation. Options\n * specified through Unicode locale extension sequences must be ignored by the\n * algorithm. Information about such subsequences is returned separately.\n * The abstract operation returns a record with a [[locale]] field, whose value\n * is the language tag of the selected locale, which must be an element of\n * availableLocales. If the language tag of the request locale that led to the\n * selected locale contained a Unicode locale extension sequence, then the\n * returned record also contains an [[extension]] field whose value is the first\n * Unicode locale extension sequence, and an [[extensionIndex]] field whose value\n * is the index of the first Unicode locale extension sequence within the request\n * locale language tag.\n */\nfunction /* 9.2.4 */BestFitMatcher(availableLocales, requestedLocales) {\n return LookupMatcher(availableLocales, requestedLocales);\n}\n\n/**\n * The ResolveLocale abstract operation compares a BCP 47 language priority list\n * requestedLocales against the locales in availableLocales and determines the\n * best available language to meet the request. availableLocales and\n * requestedLocales must be provided as List values, options as a Record.\n */\nfunction /* 9.2.5 */ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData) {\n if (availableLocales.length === 0) {\n throw new ReferenceError('No locale data has been provided for this object yet.');\n }\n\n // The following steps are taken:\n // 1. Let matcher be the value of options.[[localeMatcher]].\n var matcher = options['[[localeMatcher]]'];\n\n var r = void 0;\n\n // 2. If matcher is \"lookup\", then\n if (matcher === 'lookup')\n // a. Let r be the result of calling the LookupMatcher abstract operation\n // (defined in 9.2.3) with arguments availableLocales and\n // requestedLocales.\n r = LookupMatcher(availableLocales, requestedLocales);\n\n // 3. Else\n else\n // a. Let r be the result of calling the BestFitMatcher abstract\n // operation (defined in 9.2.4) with arguments availableLocales and\n // requestedLocales.\n r = BestFitMatcher(availableLocales, requestedLocales);\n\n // 4. Let foundLocale be the value of r.[[locale]].\n var foundLocale = r['[[locale]]'];\n\n var extensionSubtags = void 0,\n extensionSubtagsLength = void 0;\n\n // 5. If r has an [[extension]] field, then\n if (hop.call(r, '[[extension]]')) {\n // a. Let extension be the value of r.[[extension]].\n var extension = r['[[extension]]'];\n // b. Let split be the standard built-in function object defined in ES5,\n // 15.5.4.14.\n var split = String.prototype.split;\n // c. Let extensionSubtags be the result of calling the [[Call]] internal\n // method of split with extension as the this value and an argument\n // list containing the single item \"-\".\n extensionSubtags = split.call(extension, '-');\n // d. Let extensionSubtagsLength be the result of calling the [[Get]]\n // internal method of extensionSubtags with argument \"length\".\n extensionSubtagsLength = extensionSubtags.length;\n }\n\n // 6. Let result be a new Record.\n var result = new Record();\n\n // 7. Set result.[[dataLocale]] to foundLocale.\n result['[[dataLocale]]'] = foundLocale;\n\n // 8. Let supportedExtension be \"-u\".\n var supportedExtension = '-u';\n // 9. Let i be 0.\n var i = 0;\n // 10. Let len be the result of calling the [[Get]] internal method of\n // relevantExtensionKeys with argument \"length\".\n var len = relevantExtensionKeys.length;\n\n // 11 Repeat while i < len:\n while (i < len) {\n // a. Let key be the result of calling the [[Get]] internal method of\n // relevantExtensionKeys with argument ToString(i).\n var key = relevantExtensionKeys[i];\n // b. Let foundLocaleData be the result of calling the [[Get]] internal\n // method of localeData with the argument foundLocale.\n var foundLocaleData = localeData[foundLocale];\n // c. Let keyLocaleData be the result of calling the [[Get]] internal\n // method of foundLocaleData with the argument key.\n var keyLocaleData = foundLocaleData[key];\n // d. Let value be the result of calling the [[Get]] internal method of\n // keyLocaleData with argument \"0\".\n var value = keyLocaleData['0'];\n // e. Let supportedExtensionAddition be \"\".\n var supportedExtensionAddition = '';\n // f. Let indexOf be the standard built-in function object defined in\n // ES5, 15.4.4.14.\n var indexOf = arrIndexOf;\n\n // g. If extensionSubtags is not undefined, then\n if (extensionSubtags !== undefined) {\n // i. Let keyPos be the result of calling the [[Call]] internal\n // method of indexOf with extensionSubtags as the this value and\n // an argument list containing the single item key.\n var keyPos = indexOf.call(extensionSubtags, key);\n\n // ii. If keyPos ≠ -1, then\n if (keyPos !== -1) {\n // 1. If keyPos + 1 < extensionSubtagsLength and the length of the\n // result of calling the [[Get]] internal method of\n // extensionSubtags with argument ToString(keyPos +1) is greater\n // than 2, then\n if (keyPos + 1 < extensionSubtagsLength && extensionSubtags[keyPos + 1].length > 2) {\n // a. Let requestedValue be the result of calling the [[Get]]\n // internal method of extensionSubtags with argument\n // ToString(keyPos + 1).\n var requestedValue = extensionSubtags[keyPos + 1];\n // b. Let valuePos be the result of calling the [[Call]]\n // internal method of indexOf with keyLocaleData as the\n // this value and an argument list containing the single\n // item requestedValue.\n var valuePos = indexOf.call(keyLocaleData, requestedValue);\n\n // c. If valuePos ≠ -1, then\n if (valuePos !== -1) {\n // i. Let value be requestedValue.\n value = requestedValue,\n // ii. Let supportedExtensionAddition be the\n // concatenation of \"-\", key, \"-\", and value.\n supportedExtensionAddition = '-' + key + '-' + value;\n }\n }\n // 2. Else\n else {\n // a. Let valuePos be the result of calling the [[Call]]\n // internal method of indexOf with keyLocaleData as the this\n // value and an argument list containing the single item\n // \"true\".\n var _valuePos = indexOf(keyLocaleData, 'true');\n\n // b. If valuePos ≠ -1, then\n if (_valuePos !== -1)\n // i. Let value be \"true\".\n value = 'true';\n }\n }\n }\n // h. If options has a field [[]], then\n if (hop.call(options, '[[' + key + ']]')) {\n // i. Let optionsValue be the value of options.[[]].\n var optionsValue = options['[[' + key + ']]'];\n\n // ii. If the result of calling the [[Call]] internal method of indexOf\n // with keyLocaleData as the this value and an argument list\n // containing the single item optionsValue is not -1, then\n if (indexOf.call(keyLocaleData, optionsValue) !== -1) {\n // 1. If optionsValue is not equal to value, then\n if (optionsValue !== value) {\n // a. Let value be optionsValue.\n value = optionsValue;\n // b. Let supportedExtensionAddition be \"\".\n supportedExtensionAddition = '';\n }\n }\n }\n // i. Set result.[[]] to value.\n result['[[' + key + ']]'] = value;\n\n // j. Append supportedExtensionAddition to supportedExtension.\n supportedExtension += supportedExtensionAddition;\n\n // k. Increase i by 1.\n i++;\n }\n // 12. If the length of supportedExtension is greater than 2, then\n if (supportedExtension.length > 2) {\n // a.\n var privateIndex = foundLocale.indexOf(\"-x-\");\n // b.\n if (privateIndex === -1) {\n // i.\n foundLocale = foundLocale + supportedExtension;\n }\n // c.\n else {\n // i.\n var preExtension = foundLocale.substring(0, privateIndex);\n // ii.\n var postExtension = foundLocale.substring(privateIndex);\n // iii.\n foundLocale = preExtension + supportedExtension + postExtension;\n }\n // d. asserting - skipping\n // e.\n foundLocale = CanonicalizeLanguageTag(foundLocale);\n }\n // 13. Set result.[[locale]] to foundLocale.\n result['[[locale]]'] = foundLocale;\n\n // 14. Return result.\n return result;\n}\n\n/**\n * The LookupSupportedLocales abstract operation returns the subset of the\n * provided BCP 47 language priority list requestedLocales for which\n * availableLocales has a matching locale when using the BCP 47 Lookup algorithm.\n * Locales appear in the same order in the returned list as in requestedLocales.\n * The following steps are taken:\n */\nfunction /* 9.2.6 */LookupSupportedLocales(availableLocales, requestedLocales) {\n // 1. Let len be the number of elements in requestedLocales.\n var len = requestedLocales.length;\n // 2. Let subset be a new empty List.\n var subset = new List();\n // 3. Let k be 0.\n var k = 0;\n\n // 4. Repeat while k < len\n while (k < len) {\n // a. Let locale be the element of requestedLocales at 0-origined list\n // position k.\n var locale = requestedLocales[k];\n // b. Let noExtensionsLocale be the String value that is locale with all\n // Unicode locale extension sequences removed.\n var noExtensionsLocale = String(locale).replace(expUnicodeExSeq, '');\n // c. Let availableLocale be the result of calling the\n // BestAvailableLocale abstract operation (defined in 9.2.2) with\n // arguments availableLocales and noExtensionsLocale.\n var availableLocale = BestAvailableLocale(availableLocales, noExtensionsLocale);\n\n // d. If availableLocale is not undefined, then append locale to the end of\n // subset.\n if (availableLocale !== undefined) arrPush.call(subset, locale);\n\n // e. Increment k by 1.\n k++;\n }\n\n // 5. Let subsetArray be a new Array object whose elements are the same\n // values in the same order as the elements of subset.\n var subsetArray = arrSlice.call(subset);\n\n // 6. Return subsetArray.\n return subsetArray;\n}\n\n/**\n * The BestFitSupportedLocales abstract operation returns the subset of the\n * provided BCP 47 language priority list requestedLocales for which\n * availableLocales has a matching locale when using the Best Fit Matcher\n * algorithm. Locales appear in the same order in the returned list as in\n * requestedLocales. The steps taken are implementation dependent.\n */\nfunction /*9.2.7 */BestFitSupportedLocales(availableLocales, requestedLocales) {\n // ###TODO: implement this function as described by the specification###\n return LookupSupportedLocales(availableLocales, requestedLocales);\n}\n\n/**\n * The SupportedLocales abstract operation returns the subset of the provided BCP\n * 47 language priority list requestedLocales for which availableLocales has a\n * matching locale. Two algorithms are available to match the locales: the Lookup\n * algorithm described in RFC 4647 section 3.4, and an implementation dependent\n * best-fit algorithm. Locales appear in the same order in the returned list as\n * in requestedLocales. The following steps are taken:\n */\nfunction /*9.2.8 */SupportedLocales(availableLocales, requestedLocales, options) {\n var matcher = void 0,\n subset = void 0;\n\n // 1. If options is not undefined, then\n if (options !== undefined) {\n // a. Let options be ToObject(options).\n options = new Record(toObject(options));\n // b. Let matcher be the result of calling the [[Get]] internal method of\n // options with argument \"localeMatcher\".\n matcher = options.localeMatcher;\n\n // c. If matcher is not undefined, then\n if (matcher !== undefined) {\n // i. Let matcher be ToString(matcher).\n matcher = String(matcher);\n\n // ii. If matcher is not \"lookup\" or \"best fit\", then throw a RangeError\n // exception.\n if (matcher !== 'lookup' && matcher !== 'best fit') throw new RangeError('matcher should be \"lookup\" or \"best fit\"');\n }\n }\n // 2. If matcher is undefined or \"best fit\", then\n if (matcher === undefined || matcher === 'best fit')\n // a. Let subset be the result of calling the BestFitSupportedLocales\n // abstract operation (defined in 9.2.7) with arguments\n // availableLocales and requestedLocales.\n subset = BestFitSupportedLocales(availableLocales, requestedLocales);\n // 3. Else\n else\n // a. Let subset be the result of calling the LookupSupportedLocales\n // abstract operation (defined in 9.2.6) with arguments\n // availableLocales and requestedLocales.\n subset = LookupSupportedLocales(availableLocales, requestedLocales);\n\n // 4. For each named own property name P of subset,\n for (var P in subset) {\n if (!hop.call(subset, P)) continue;\n\n // a. Let desc be the result of calling the [[GetOwnProperty]] internal\n // method of subset with P.\n // b. Set desc.[[Writable]] to false.\n // c. Set desc.[[Configurable]] to false.\n // d. Call the [[DefineOwnProperty]] internal method of subset with P, desc,\n // and true as arguments.\n defineProperty(subset, P, {\n writable: false, configurable: false, value: subset[P]\n });\n }\n // \"Freeze\" the array so no new elements can be added\n defineProperty(subset, 'length', { writable: false });\n\n // 5. Return subset\n return subset;\n}\n\n/**\n * The GetOption abstract operation extracts the value of the property named\n * property from the provided options object, converts it to the required type,\n * checks whether it is one of a List of allowed values, and fills in a fallback\n * value if necessary.\n */\nfunction /*9.2.9 */GetOption(options, property, type, values, fallback) {\n // 1. Let value be the result of calling the [[Get]] internal method of\n // options with argument property.\n var value = options[property];\n\n // 2. If value is not undefined, then\n if (value !== undefined) {\n // a. Assert: type is \"boolean\" or \"string\".\n // b. If type is \"boolean\", then let value be ToBoolean(value).\n // c. If type is \"string\", then let value be ToString(value).\n value = type === 'boolean' ? Boolean(value) : type === 'string' ? String(value) : value;\n\n // d. If values is not undefined, then\n if (values !== undefined) {\n // i. If values does not contain an element equal to value, then throw a\n // RangeError exception.\n if (arrIndexOf.call(values, value) === -1) throw new RangeError(\"'\" + value + \"' is not an allowed value for `\" + property + '`');\n }\n\n // e. Return value.\n return value;\n }\n // Else return fallback.\n return fallback;\n}\n\n/**\n * The GetNumberOption abstract operation extracts a property value from the\n * provided options object, converts it to a Number value, checks whether it is\n * in the allowed range, and fills in a fallback value if necessary.\n */\nfunction /* 9.2.10 */GetNumberOption(options, property, minimum, maximum, fallback) {\n // 1. Let value be the result of calling the [[Get]] internal method of\n // options with argument property.\n var value = options[property];\n\n // 2. If value is not undefined, then\n if (value !== undefined) {\n // a. Let value be ToNumber(value).\n value = Number(value);\n\n // b. If value is NaN or less than minimum or greater than maximum, throw a\n // RangeError exception.\n if (isNaN(value) || value < minimum || value > maximum) throw new RangeError('Value is not a number or outside accepted range');\n\n // c. Return floor(value).\n return Math.floor(value);\n }\n // 3. Else return fallback.\n return fallback;\n}\n\n// 8 The Intl Object\nvar Intl = {};\n\n// 8.2 Function Properties of the Intl Object\n\n// 8.2.1\n// @spec[tc39/ecma402/master/spec/intl.html]\n// @clause[sec-intl.getcanonicallocales]\nIntl.getCanonicalLocales = function (locales) {\n // 1. Let ll be ? CanonicalizeLocaleList(locales).\n var ll = CanonicalizeLocaleList(locales);\n // 2. Return CreateArrayFromList(ll).\n {\n var result = [];\n for (var code in ll) {\n result.push(ll[code]);\n }\n return result;\n }\n};\n\n// Currency minor units output from get-4217 grunt task, formatted\nvar currencyMinorUnits = {\n BHD: 3, BYR: 0, XOF: 0, BIF: 0, XAF: 0, CLF: 4, CLP: 0, KMF: 0, DJF: 0,\n XPF: 0, GNF: 0, ISK: 0, IQD: 3, JPY: 0, JOD: 3, KRW: 0, KWD: 3, LYD: 3,\n OMR: 3, PYG: 0, RWF: 0, TND: 3, UGX: 0, UYI: 0, VUV: 0, VND: 0\n};\n\n// Define the NumberFormat constructor internally so it cannot be tainted\nfunction NumberFormatConstructor() {\n var locales = arguments[0];\n var options = arguments[1];\n\n if (!this || this === Intl) {\n return new Intl.NumberFormat(locales, options);\n }\n\n return InitializeNumberFormat(toObject(this), locales, options);\n}\n\ndefineProperty(Intl, 'NumberFormat', {\n configurable: true,\n writable: true,\n value: NumberFormatConstructor\n});\n\n// Must explicitly set prototypes as unwritable\ndefineProperty(Intl.NumberFormat, 'prototype', {\n writable: false\n});\n\n/**\n * The abstract operation InitializeNumberFormat accepts the arguments\n * numberFormat (which must be an object), locales, and options. It initializes\n * numberFormat as a NumberFormat object.\n */\nfunction /*11.1.1.1 */InitializeNumberFormat(numberFormat, locales, options) {\n // This will be a internal properties object if we're not already initialized\n var internal = getInternalProperties(numberFormat);\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore();\n\n // 1. If numberFormat has an [[initializedIntlObject]] internal property with\n // value true, throw a TypeError exception.\n if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\n // Need this to access the `internal` object\n defineProperty(numberFormat, '__getInternalProperties', {\n value: function value() {\n // NOTE: Non-standard, for internal use only\n if (arguments[0] === secret) return internal;\n }\n });\n\n // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n internal['[[initializedIntlObject]]'] = true;\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n var requestedLocales = CanonicalizeLocaleList(locales);\n\n // 4. If options is undefined, then\n if (options === undefined)\n // a. Let options be the result of creating a new object as if by the\n // expression new Object() where Object is the standard built-in constructor\n // with that name.\n options = {};\n\n // 5. Else\n else\n // a. Let options be ToObject(options).\n options = toObject(options);\n\n // 6. Let opt be a new Record.\n var opt = new Record(),\n\n\n // 7. Let matcher be the result of calling the GetOption abstract operation\n // (defined in 9.2.9) with the arguments options, \"localeMatcher\", \"string\",\n // a List containing the two String values \"lookup\" and \"best fit\", and\n // \"best fit\".\n matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\n // 8. Set opt.[[localeMatcher]] to matcher.\n opt['[[localeMatcher]]'] = matcher;\n\n // 9. Let NumberFormat be the standard built-in object that is the initial value\n // of Intl.NumberFormat.\n // 10. Let localeData be the value of the [[localeData]] internal property of\n // NumberFormat.\n var localeData = internals.NumberFormat['[[localeData]]'];\n\n // 11. Let r be the result of calling the ResolveLocale abstract operation\n // (defined in 9.2.5) with the [[availableLocales]] internal property of\n // NumberFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n // internal property of NumberFormat, and localeData.\n var r = ResolveLocale(internals.NumberFormat['[[availableLocales]]'], requestedLocales, opt, internals.NumberFormat['[[relevantExtensionKeys]]'], localeData);\n\n // 12. Set the [[locale]] internal property of numberFormat to the value of\n // r.[[locale]].\n internal['[[locale]]'] = r['[[locale]]'];\n\n // 13. Set the [[numberingSystem]] internal property of numberFormat to the value\n // of r.[[nu]].\n internal['[[numberingSystem]]'] = r['[[nu]]'];\n\n // The specification doesn't tell us to do this, but it's helpful later on\n internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\n // 14. Let dataLocale be the value of r.[[dataLocale]].\n var dataLocale = r['[[dataLocale]]'];\n\n // 15. Let s be the result of calling the GetOption abstract operation with the\n // arguments options, \"style\", \"string\", a List containing the three String\n // values \"decimal\", \"percent\", and \"currency\", and \"decimal\".\n var s = GetOption(options, 'style', 'string', new List('decimal', 'percent', 'currency'), 'decimal');\n\n // 16. Set the [[style]] internal property of numberFormat to s.\n internal['[[style]]'] = s;\n\n // 17. Let c be the result of calling the GetOption abstract operation with the\n // arguments options, \"currency\", \"string\", undefined, and undefined.\n var c = GetOption(options, 'currency', 'string');\n\n // 18. If c is not undefined and the result of calling the\n // IsWellFormedCurrencyCode abstract operation (defined in 6.3.1) with\n // argument c is false, then throw a RangeError exception.\n if (c !== undefined && !IsWellFormedCurrencyCode(c)) throw new RangeError(\"'\" + c + \"' is not a valid currency code\");\n\n // 19. If s is \"currency\" and c is undefined, throw a TypeError exception.\n if (s === 'currency' && c === undefined) throw new TypeError('Currency code is required when style is currency');\n\n var cDigits = void 0;\n\n // 20. If s is \"currency\", then\n if (s === 'currency') {\n // a. Let c be the result of converting c to upper case as specified in 6.1.\n c = c.toUpperCase();\n\n // b. Set the [[currency]] internal property of numberFormat to c.\n internal['[[currency]]'] = c;\n\n // c. Let cDigits be the result of calling the CurrencyDigits abstract\n // operation (defined below) with argument c.\n cDigits = CurrencyDigits(c);\n }\n\n // 21. Let cd be the result of calling the GetOption abstract operation with the\n // arguments options, \"currencyDisplay\", \"string\", a List containing the\n // three String values \"code\", \"symbol\", and \"name\", and \"symbol\".\n var cd = GetOption(options, 'currencyDisplay', 'string', new List('code', 'symbol', 'name'), 'symbol');\n\n // 22. If s is \"currency\", then set the [[currencyDisplay]] internal property of\n // numberFormat to cd.\n if (s === 'currency') internal['[[currencyDisplay]]'] = cd;\n\n // 23. Let mnid be the result of calling the GetNumberOption abstract operation\n // (defined in 9.2.10) with arguments options, \"minimumIntegerDigits\", 1, 21,\n // and 1.\n var mnid = GetNumberOption(options, 'minimumIntegerDigits', 1, 21, 1);\n\n // 24. Set the [[minimumIntegerDigits]] internal property of numberFormat to mnid.\n internal['[[minimumIntegerDigits]]'] = mnid;\n\n // 25. If s is \"currency\", then let mnfdDefault be cDigits; else let mnfdDefault\n // be 0.\n var mnfdDefault = s === 'currency' ? cDigits : 0;\n\n // 26. Let mnfd be the result of calling the GetNumberOption abstract operation\n // with arguments options, \"minimumFractionDigits\", 0, 20, and mnfdDefault.\n var mnfd = GetNumberOption(options, 'minimumFractionDigits', 0, 20, mnfdDefault);\n\n // 27. Set the [[minimumFractionDigits]] internal property of numberFormat to mnfd.\n internal['[[minimumFractionDigits]]'] = mnfd;\n\n // 28. If s is \"currency\", then let mxfdDefault be max(mnfd, cDigits); else if s\n // is \"percent\", then let mxfdDefault be max(mnfd, 0); else let mxfdDefault\n // be max(mnfd, 3).\n var mxfdDefault = s === 'currency' ? Math.max(mnfd, cDigits) : s === 'percent' ? Math.max(mnfd, 0) : Math.max(mnfd, 3);\n\n // 29. Let mxfd be the result of calling the GetNumberOption abstract operation\n // with arguments options, \"maximumFractionDigits\", mnfd, 20, and mxfdDefault.\n var mxfd = GetNumberOption(options, 'maximumFractionDigits', mnfd, 20, mxfdDefault);\n\n // 30. Set the [[maximumFractionDigits]] internal property of numberFormat to mxfd.\n internal['[[maximumFractionDigits]]'] = mxfd;\n\n // 31. Let mnsd be the result of calling the [[Get]] internal method of options\n // with argument \"minimumSignificantDigits\".\n var mnsd = options.minimumSignificantDigits;\n\n // 32. Let mxsd be the result of calling the [[Get]] internal method of options\n // with argument \"maximumSignificantDigits\".\n var mxsd = options.maximumSignificantDigits;\n\n // 33. If mnsd is not undefined or mxsd is not undefined, then:\n if (mnsd !== undefined || mxsd !== undefined) {\n // a. Let mnsd be the result of calling the GetNumberOption abstract\n // operation with arguments options, \"minimumSignificantDigits\", 1, 21,\n // and 1.\n mnsd = GetNumberOption(options, 'minimumSignificantDigits', 1, 21, 1);\n\n // b. Let mxsd be the result of calling the GetNumberOption abstract\n // operation with arguments options, \"maximumSignificantDigits\", mnsd,\n // 21, and 21.\n mxsd = GetNumberOption(options, 'maximumSignificantDigits', mnsd, 21, 21);\n\n // c. Set the [[minimumSignificantDigits]] internal property of numberFormat\n // to mnsd, and the [[maximumSignificantDigits]] internal property of\n // numberFormat to mxsd.\n internal['[[minimumSignificantDigits]]'] = mnsd;\n internal['[[maximumSignificantDigits]]'] = mxsd;\n }\n // 34. Let g be the result of calling the GetOption abstract operation with the\n // arguments options, \"useGrouping\", \"boolean\", undefined, and true.\n var g = GetOption(options, 'useGrouping', 'boolean', undefined, true);\n\n // 35. Set the [[useGrouping]] internal property of numberFormat to g.\n internal['[[useGrouping]]'] = g;\n\n // 36. Let dataLocaleData be the result of calling the [[Get]] internal method of\n // localeData with argument dataLocale.\n var dataLocaleData = localeData[dataLocale];\n\n // 37. Let patterns be the result of calling the [[Get]] internal method of\n // dataLocaleData with argument \"patterns\".\n var patterns = dataLocaleData.patterns;\n\n // 38. Assert: patterns is an object (see 11.2.3)\n\n // 39. Let stylePatterns be the result of calling the [[Get]] internal method of\n // patterns with argument s.\n var stylePatterns = patterns[s];\n\n // 40. Set the [[positivePattern]] internal property of numberFormat to the\n // result of calling the [[Get]] internal method of stylePatterns with the\n // argument \"positivePattern\".\n internal['[[positivePattern]]'] = stylePatterns.positivePattern;\n\n // 41. Set the [[negativePattern]] internal property of numberFormat to the\n // result of calling the [[Get]] internal method of stylePatterns with the\n // argument \"negativePattern\".\n internal['[[negativePattern]]'] = stylePatterns.negativePattern;\n\n // 42. Set the [[boundFormat]] internal property of numberFormat to undefined.\n internal['[[boundFormat]]'] = undefined;\n\n // 43. Set the [[initializedNumberFormat]] internal property of numberFormat to\n // true.\n internal['[[initializedNumberFormat]]'] = true;\n\n // In ES3, we need to pre-bind the format() function\n if (es3) numberFormat.format = GetFormatNumber.call(numberFormat);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // Return the newly initialised object\n return numberFormat;\n}\n\nfunction CurrencyDigits(currency) {\n // When the CurrencyDigits abstract operation is called with an argument currency\n // (which must be an upper case String value), the following steps are taken:\n\n // 1. If the ISO 4217 currency and funds code list contains currency as an\n // alphabetic code, then return the minor unit value corresponding to the\n // currency from the list; else return 2.\n return currencyMinorUnits[currency] !== undefined ? currencyMinorUnits[currency] : 2;\n}\n\n/* 11.2.3 */internals.NumberFormat = {\n '[[availableLocales]]': [],\n '[[relevantExtensionKeys]]': ['nu'],\n '[[localeData]]': {}\n};\n\n/**\n * When the supportedLocalesOf method of Intl.NumberFormat is called, the\n * following steps are taken:\n */\n/* 11.2.2 */\ndefineProperty(Intl.NumberFormat, 'supportedLocalesOf', {\n configurable: true,\n writable: true,\n value: fnBind.call(function (locales) {\n // Bound functions only have the `this` value altered if being used as a constructor,\n // this lets us imitate a native function that has no constructor\n if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore(),\n\n\n // 1. If options is not provided, then let options be undefined.\n options = arguments[1],\n\n\n // 2. Let availableLocales be the value of the [[availableLocales]] internal\n // property of the standard built-in object that is the initial value of\n // Intl.NumberFormat.\n\n availableLocales = this['[[availableLocales]]'],\n\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n requestedLocales = CanonicalizeLocaleList(locales);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // 4. Return the result of calling the SupportedLocales abstract operation\n // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n // and options.\n return SupportedLocales(availableLocales, requestedLocales, options);\n }, internals.NumberFormat)\n});\n\n/**\n * This named accessor property returns a function that formats a number\n * according to the effective locale and the formatting options of this\n * NumberFormat object.\n */\n/* 11.3.2 */defineProperty(Intl.NumberFormat.prototype, 'format', {\n configurable: true,\n get: GetFormatNumber\n});\n\nfunction GetFormatNumber() {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 11.3_b\n if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.NumberFormat object.');\n\n // The value of the [[Get]] attribute is a function that takes the following\n // steps:\n\n // 1. If the [[boundFormat]] internal property of this NumberFormat object\n // is undefined, then:\n if (internal['[[boundFormat]]'] === undefined) {\n // a. Let F be a Function object, with internal properties set as\n // specified for built-in functions in ES5, 15, or successor, and the\n // length property set to 1, that takes the argument value and\n // performs the following steps:\n var F = function F(value) {\n // i. If value is not provided, then let value be undefined.\n // ii. Let x be ToNumber(value).\n // iii. Return the result of calling the FormatNumber abstract\n // operation (defined below) with arguments this and x.\n return FormatNumber(this, /* x = */Number(value));\n };\n\n // b. Let bind be the standard built-in function object defined in ES5,\n // 15.3.4.5.\n // c. Let bf be the result of calling the [[Call]] internal method of\n // bind with F as the this value and an argument list containing\n // the single item this.\n var bf = fnBind.call(F, this);\n\n // d. Set the [[boundFormat]] internal property of this NumberFormat\n // object to bf.\n internal['[[boundFormat]]'] = bf;\n }\n // Return the value of the [[boundFormat]] internal property of this\n // NumberFormat object.\n return internal['[[boundFormat]]'];\n}\n\nIntl.NumberFormat.prototype.formatToParts = function (value) {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.NumberFormat object.');\n\n var x = Number(value);\n return FormatNumberToParts(this, x);\n};\n\n/*\n * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n * @clause[sec-formatnumbertoparts]\n */\nfunction FormatNumberToParts(numberFormat, x) {\n // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n var parts = PartitionNumberPattern(numberFormat, x);\n // 2. Let result be ArrayCreate(0).\n var result = [];\n // 3. Let n be 0.\n var n = 0;\n // 4. For each part in parts, do:\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n // a. Let O be ObjectCreate(%ObjectPrototype%).\n var O = {};\n // a. Perform ? CreateDataPropertyOrThrow(O, \"type\", part.[[type]]).\n O.type = part['[[type]]'];\n // a. Perform ? CreateDataPropertyOrThrow(O, \"value\", part.[[value]]).\n O.value = part['[[value]]'];\n // a. Perform ? CreateDataPropertyOrThrow(result, ? ToString(n), O).\n result[n] = O;\n // a. Increment n by 1.\n n += 1;\n }\n // 5. Return result.\n return result;\n}\n\n/*\n * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n * @clause[sec-partitionnumberpattern]\n */\nfunction PartitionNumberPattern(numberFormat, x) {\n\n var internal = getInternalProperties(numberFormat),\n locale = internal['[[dataLocale]]'],\n nums = internal['[[numberingSystem]]'],\n data = internals.NumberFormat['[[localeData]]'][locale],\n ild = data.symbols[nums] || data.symbols.latn,\n pattern = void 0;\n\n // 1. If x is not NaN and x < 0, then:\n if (!isNaN(x) && x < 0) {\n // a. Let x be -x.\n x = -x;\n // a. Let pattern be the value of numberFormat.[[negativePattern]].\n pattern = internal['[[negativePattern]]'];\n }\n // 2. Else,\n else {\n // a. Let pattern be the value of numberFormat.[[positivePattern]].\n pattern = internal['[[positivePattern]]'];\n }\n // 3. Let result be a new empty List.\n var result = new List();\n // 4. Let beginIndex be Call(%StringProto_indexOf%, pattern, \"{\", 0).\n var beginIndex = pattern.indexOf('{', 0);\n // 5. Let endIndex be 0.\n var endIndex = 0;\n // 6. Let nextIndex be 0.\n var nextIndex = 0;\n // 7. Let length be the number of code units in pattern.\n var length = pattern.length;\n // 8. Repeat while beginIndex is an integer index into pattern:\n while (beginIndex > -1 && beginIndex < length) {\n // a. Set endIndex to Call(%StringProto_indexOf%, pattern, \"}\", beginIndex)\n endIndex = pattern.indexOf('}', beginIndex);\n // a. If endIndex = -1, throw new Error exception.\n if (endIndex === -1) throw new Error();\n // a. If beginIndex is greater than nextIndex, then:\n if (beginIndex > nextIndex) {\n // i. Let literal be a substring of pattern from position nextIndex, inclusive, to position beginIndex, exclusive.\n var literal = pattern.substring(nextIndex, beginIndex);\n // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': literal });\n }\n // a. Let p be the substring of pattern from position beginIndex, exclusive, to position endIndex, exclusive.\n var p = pattern.substring(beginIndex + 1, endIndex);\n // a. If p is equal \"number\", then:\n if (p === \"number\") {\n // i. If x is NaN,\n if (isNaN(x)) {\n // 1. Let n be an ILD String value indicating the NaN value.\n var n = ild.nan;\n // 2. Add new part record { [[type]]: \"nan\", [[value]]: n } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'nan', '[[value]]': n });\n }\n // ii. Else if isFinite(x) is false,\n else if (!isFinite(x)) {\n // 1. Let n be an ILD String value indicating infinity.\n var _n = ild.infinity;\n // 2. Add new part record { [[type]]: \"infinity\", [[value]]: n } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'infinity', '[[value]]': _n });\n }\n // iii. Else,\n else {\n // 1. If the value of numberFormat.[[style]] is \"percent\" and isFinite(x), let x be 100 × x.\n if (internal['[[style]]'] === 'percent' && isFinite(x)) x *= 100;\n\n var _n2 = void 0;\n // 2. If the numberFormat.[[minimumSignificantDigits]] and numberFormat.[[maximumSignificantDigits]] are present, then\n if (hop.call(internal, '[[minimumSignificantDigits]]') && hop.call(internal, '[[maximumSignificantDigits]]')) {\n // a. Let n be ToRawPrecision(x, numberFormat.[[minimumSignificantDigits]], numberFormat.[[maximumSignificantDigits]]).\n _n2 = ToRawPrecision(x, internal['[[minimumSignificantDigits]]'], internal['[[maximumSignificantDigits]]']);\n }\n // 3. Else,\n else {\n // a. Let n be ToRawFixed(x, numberFormat.[[minimumIntegerDigits]], numberFormat.[[minimumFractionDigits]], numberFormat.[[maximumFractionDigits]]).\n _n2 = ToRawFixed(x, internal['[[minimumIntegerDigits]]'], internal['[[minimumFractionDigits]]'], internal['[[maximumFractionDigits]]']);\n }\n // 4. If the value of the numberFormat.[[numberingSystem]] matches one of the values in the \"Numbering System\" column of Table 2 below, then\n if (numSys[nums]) {\n (function () {\n // a. Let digits be an array whose 10 String valued elements are the UTF-16 string representations of the 10 digits specified in the \"Digits\" column of the matching row in Table 2.\n var digits = numSys[nums];\n // a. Replace each digit in n with the value of digits[digit].\n _n2 = String(_n2).replace(/\\d/g, function (digit) {\n return digits[digit];\n });\n })();\n }\n // 5. Else use an implementation dependent algorithm to map n to the appropriate representation of n in the given numbering system.\n else _n2 = String(_n2); // ###TODO###\n\n var integer = void 0;\n var fraction = void 0;\n // 6. Let decimalSepIndex be Call(%StringProto_indexOf%, n, \".\", 0).\n var decimalSepIndex = _n2.indexOf('.', 0);\n // 7. If decimalSepIndex > 0, then:\n if (decimalSepIndex > 0) {\n // a. Let integer be the substring of n from position 0, inclusive, to position decimalSepIndex, exclusive.\n integer = _n2.substring(0, decimalSepIndex);\n // a. Let fraction be the substring of n from position decimalSepIndex, exclusive, to the end of n.\n fraction = _n2.substring(decimalSepIndex + 1, decimalSepIndex.length);\n }\n // 8. Else:\n else {\n // a. Let integer be n.\n integer = _n2;\n // a. Let fraction be undefined.\n fraction = undefined;\n }\n // 9. If the value of the numberFormat.[[useGrouping]] is true,\n if (internal['[[useGrouping]]'] === true) {\n // a. Let groupSepSymbol be the ILND String representing the grouping separator.\n var groupSepSymbol = ild.group;\n // a. Let groups be a List whose elements are, in left to right order, the substrings defined by ILND set of locations within the integer.\n var groups = [];\n // ----> implementation:\n // Primary group represents the group closest to the decimal\n var pgSize = data.patterns.primaryGroupSize || 3;\n // Secondary group is every other group\n var sgSize = data.patterns.secondaryGroupSize || pgSize;\n // Group only if necessary\n if (integer.length > pgSize) {\n // Index of the primary grouping separator\n var end = integer.length - pgSize;\n // Starting index for our loop\n var idx = end % sgSize;\n var start = integer.slice(0, idx);\n if (start.length) arrPush.call(groups, start);\n // Loop to separate into secondary grouping digits\n while (idx < end) {\n arrPush.call(groups, integer.slice(idx, idx + sgSize));\n idx += sgSize;\n }\n // Add the primary grouping digits\n arrPush.call(groups, integer.slice(end));\n } else {\n arrPush.call(groups, integer);\n }\n // a. Assert: The number of elements in groups List is greater than 0.\n if (groups.length === 0) throw new Error();\n // a. Repeat, while groups List is not empty:\n while (groups.length) {\n // i. Remove the first element from groups and let integerGroup be the value of that element.\n var integerGroup = arrShift.call(groups);\n // ii. Add new part record { [[type]]: \"integer\", [[value]]: integerGroup } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integerGroup });\n // iii. If groups List is not empty, then:\n if (groups.length) {\n // 1. Add new part record { [[type]]: \"group\", [[value]]: groupSepSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'group', '[[value]]': groupSepSymbol });\n }\n }\n }\n // 10. Else,\n else {\n // a. Add new part record { [[type]]: \"integer\", [[value]]: integer } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integer });\n }\n // 11. If fraction is not undefined, then:\n if (fraction !== undefined) {\n // a. Let decimalSepSymbol be the ILND String representing the decimal separator.\n var decimalSepSymbol = ild.decimal;\n // a. Add new part record { [[type]]: \"decimal\", [[value]]: decimalSepSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'decimal', '[[value]]': decimalSepSymbol });\n // a. Add new part record { [[type]]: \"fraction\", [[value]]: fraction } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'fraction', '[[value]]': fraction });\n }\n }\n }\n // a. Else if p is equal \"plusSign\", then:\n else if (p === \"plusSign\") {\n // i. Let plusSignSymbol be the ILND String representing the plus sign.\n var plusSignSymbol = ild.plusSign;\n // ii. Add new part record { [[type]]: \"plusSign\", [[value]]: plusSignSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'plusSign', '[[value]]': plusSignSymbol });\n }\n // a. Else if p is equal \"minusSign\", then:\n else if (p === \"minusSign\") {\n // i. Let minusSignSymbol be the ILND String representing the minus sign.\n var minusSignSymbol = ild.minusSign;\n // ii. Add new part record { [[type]]: \"minusSign\", [[value]]: minusSignSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'minusSign', '[[value]]': minusSignSymbol });\n }\n // a. Else if p is equal \"percentSign\" and numberFormat.[[style]] is \"percent\", then:\n else if (p === \"percentSign\" && internal['[[style]]'] === \"percent\") {\n // i. Let percentSignSymbol be the ILND String representing the percent sign.\n var percentSignSymbol = ild.percentSign;\n // ii. Add new part record { [[type]]: \"percentSign\", [[value]]: percentSignSymbol } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': percentSignSymbol });\n }\n // a. Else if p is equal \"currency\" and numberFormat.[[style]] is \"currency\", then:\n else if (p === \"currency\" && internal['[[style]]'] === \"currency\") {\n // i. Let currency be the value of numberFormat.[[currency]].\n var currency = internal['[[currency]]'];\n\n var cd = void 0;\n\n // ii. If numberFormat.[[currencyDisplay]] is \"code\", then\n if (internal['[[currencyDisplay]]'] === \"code\") {\n // 1. Let cd be currency.\n cd = currency;\n }\n // iii. Else if numberFormat.[[currencyDisplay]] is \"symbol\", then\n else if (internal['[[currencyDisplay]]'] === \"symbol\") {\n // 1. Let cd be an ILD string representing currency in short form. If the implementation does not have such a representation of currency, use currency itself.\n cd = data.currencies[currency] || currency;\n }\n // iv. Else if numberFormat.[[currencyDisplay]] is \"name\", then\n else if (internal['[[currencyDisplay]]'] === \"name\") {\n // 1. Let cd be an ILD string representing currency in long form. If the implementation does not have such a representation of currency, then use currency itself.\n cd = currency;\n }\n // v. Add new part record { [[type]]: \"currency\", [[value]]: cd } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'currency', '[[value]]': cd });\n }\n // a. Else,\n else {\n // i. Let literal be the substring of pattern from position beginIndex, inclusive, to position endIndex, inclusive.\n var _literal = pattern.substring(beginIndex, endIndex);\n // ii. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal });\n }\n // a. Set nextIndex to endIndex + 1.\n nextIndex = endIndex + 1;\n // a. Set beginIndex to Call(%StringProto_indexOf%, pattern, \"{\", nextIndex)\n beginIndex = pattern.indexOf('{', nextIndex);\n }\n // 9. If nextIndex is less than length, then:\n if (nextIndex < length) {\n // a. Let literal be the substring of pattern from position nextIndex, inclusive, to position length, exclusive.\n var _literal2 = pattern.substring(nextIndex, length);\n // a. Add new part record { [[type]]: \"literal\", [[value]]: literal } as a new element of the list result.\n arrPush.call(result, { '[[type]]': 'literal', '[[value]]': _literal2 });\n }\n // 10. Return result.\n return result;\n}\n\n/*\n * @spec[stasm/ecma402/number-format-to-parts/spec/numberformat.html]\n * @clause[sec-formatnumber]\n */\nfunction FormatNumber(numberFormat, x) {\n // 1. Let parts be ? PartitionNumberPattern(numberFormat, x).\n var parts = PartitionNumberPattern(numberFormat, x);\n // 2. Let result be an empty String.\n var result = '';\n // 3. For each part in parts, do:\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n // a. Set result to a String value produced by concatenating result and part.[[value]].\n result += part['[[value]]'];\n }\n // 4. Return result.\n return result;\n}\n\n/**\n * When the ToRawPrecision abstract operation is called with arguments x (which\n * must be a finite non-negative number), minPrecision, and maxPrecision (both\n * must be integers between 1 and 21) the following steps are taken:\n */\nfunction ToRawPrecision(x, minPrecision, maxPrecision) {\n // 1. Let p be maxPrecision.\n var p = maxPrecision;\n\n var m = void 0,\n e = void 0;\n\n // 2. If x = 0, then\n if (x === 0) {\n // a. Let m be the String consisting of p occurrences of the character \"0\".\n m = arrJoin.call(Array(p + 1), '0');\n // b. Let e be 0.\n e = 0;\n }\n // 3. Else\n else {\n // a. Let e and n be integers such that 10ᵖ⁻¹ ≤ n < 10ᵖ and for which the\n // exact mathematical value of n × 10ᵉ⁻ᵖ⁺¹ – x is as close to zero as\n // possible. If there are two such sets of e and n, pick the e and n for\n // which n × 10ᵉ⁻ᵖ⁺¹ is larger.\n e = log10Floor(Math.abs(x));\n\n // Easier to get to m from here\n var f = Math.round(Math.exp(Math.abs(e - p + 1) * Math.LN10));\n\n // b. Let m be the String consisting of the digits of the decimal\n // representation of n (in order, with no leading zeroes)\n m = String(Math.round(e - p + 1 < 0 ? x * f : x / f));\n }\n\n // 4. If e ≥ p, then\n if (e >= p)\n // a. Return the concatenation of m and e-p+1 occurrences of the character \"0\".\n return m + arrJoin.call(Array(e - p + 1 + 1), '0');\n\n // 5. If e = p-1, then\n else if (e === p - 1)\n // a. Return m.\n return m;\n\n // 6. If e ≥ 0, then\n else if (e >= 0)\n // a. Let m be the concatenation of the first e+1 characters of m, the character\n // \".\", and the remaining p–(e+1) characters of m.\n m = m.slice(0, e + 1) + '.' + m.slice(e + 1);\n\n // 7. If e < 0, then\n else if (e < 0)\n // a. Let m be the concatenation of the String \"0.\", –(e+1) occurrences of the\n // character \"0\", and the string m.\n m = '0.' + arrJoin.call(Array(-(e + 1) + 1), '0') + m;\n\n // 8. If m contains the character \".\", and maxPrecision > minPrecision, then\n if (m.indexOf(\".\") >= 0 && maxPrecision > minPrecision) {\n // a. Let cut be maxPrecision – minPrecision.\n var cut = maxPrecision - minPrecision;\n\n // b. Repeat while cut > 0 and the last character of m is \"0\":\n while (cut > 0 && m.charAt(m.length - 1) === '0') {\n // i. Remove the last character from m.\n m = m.slice(0, -1);\n\n // ii. Decrease cut by 1.\n cut--;\n }\n\n // c. If the last character of m is \".\", then\n if (m.charAt(m.length - 1) === '.')\n // i. Remove the last character from m.\n m = m.slice(0, -1);\n }\n // 9. Return m.\n return m;\n}\n\n/**\n * @spec[tc39/ecma402/master/spec/numberformat.html]\n * @clause[sec-torawfixed]\n * When the ToRawFixed abstract operation is called with arguments x (which must\n * be a finite non-negative number), minInteger (which must be an integer between\n * 1 and 21), minFraction, and maxFraction (which must be integers between 0 and\n * 20) the following steps are taken:\n */\nfunction ToRawFixed(x, minInteger, minFraction, maxFraction) {\n // 1. Let f be maxFraction.\n var f = maxFraction;\n // 2. Let n be an integer for which the exact mathematical value of n ÷ 10f – x is as close to zero as possible. If there are two such n, pick the larger n.\n var n = Math.pow(10, f) * x; // diverging...\n // 3. If n = 0, let m be the String \"0\". Otherwise, let m be the String consisting of the digits of the decimal representation of n (in order, with no leading zeroes).\n var m = n === 0 ? \"0\" : n.toFixed(0); // divering...\n\n {\n // this diversion is needed to take into consideration big numbers, e.g.:\n // 1.2344501e+37 -> 12344501000000000000000000000000000000\n var idx = void 0;\n var exp = (idx = m.indexOf('e')) > -1 ? m.slice(idx + 1) : 0;\n if (exp) {\n m = m.slice(0, idx).replace('.', '');\n m += arrJoin.call(Array(exp - (m.length - 1) + 1), '0');\n }\n }\n\n var int = void 0;\n // 4. If f ≠ 0, then\n if (f !== 0) {\n // a. Let k be the number of characters in m.\n var k = m.length;\n // a. If k ≤ f, then\n if (k <= f) {\n // i. Let z be the String consisting of f+1–k occurrences of the character \"0\".\n var z = arrJoin.call(Array(f + 1 - k + 1), '0');\n // ii. Let m be the concatenation of Strings z and m.\n m = z + m;\n // iii. Let k be f+1.\n k = f + 1;\n }\n // a. Let a be the first k–f characters of m, and let b be the remaining f characters of m.\n var a = m.substring(0, k - f),\n b = m.substring(k - f, m.length);\n // a. Let m be the concatenation of the three Strings a, \".\", and b.\n m = a + \".\" + b;\n // a. Let int be the number of characters in a.\n int = a.length;\n }\n // 5. Else, let int be the number of characters in m.\n else int = m.length;\n // 6. Let cut be maxFraction – minFraction.\n var cut = maxFraction - minFraction;\n // 7. Repeat while cut > 0 and the last character of m is \"0\":\n while (cut > 0 && m.slice(-1) === \"0\") {\n // a. Remove the last character from m.\n m = m.slice(0, -1);\n // a. Decrease cut by 1.\n cut--;\n }\n // 8. If the last character of m is \".\", then\n if (m.slice(-1) === \".\") {\n // a. Remove the last character from m.\n m = m.slice(0, -1);\n }\n // 9. If int < minInteger, then\n if (int < minInteger) {\n // a. Let z be the String consisting of minInteger–int occurrences of the character \"0\".\n var _z = arrJoin.call(Array(minInteger - int + 1), '0');\n // a. Let m be the concatenation of Strings z and m.\n m = _z + m;\n }\n // 10. Return m.\n return m;\n}\n\n// Sect 11.3.2 Table 2, Numbering systems\n// ======================================\nvar numSys = {\n arab: [\"٠\", \"١\", \"٢\", \"٣\", \"٤\", \"٥\", \"٦\", \"٧\", \"٨\", \"٩\"],\n arabext: [\"۰\", \"۱\", \"۲\", \"۳\", \"۴\", \"۵\", \"۶\", \"۷\", \"۸\", \"۹\"],\n bali: [\"᭐\", \"᭑\", \"᭒\", \"᭓\", \"᭔\", \"᭕\", \"᭖\", \"᭗\", \"᭘\", \"᭙\"],\n beng: [\"০\", \"১\", \"২\", \"৩\", \"৪\", \"৫\", \"৬\", \"৭\", \"৮\", \"৯\"],\n deva: [\"०\", \"१\", \"२\", \"३\", \"४\", \"५\", \"६\", \"७\", \"८\", \"९\"],\n fullwide: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n gujr: [\"૦\", \"૧\", \"૨\", \"૩\", \"૪\", \"૫\", \"૬\", \"૭\", \"૮\", \"૯\"],\n guru: [\"੦\", \"੧\", \"੨\", \"੩\", \"੪\", \"੫\", \"੬\", \"੭\", \"੮\", \"੯\"],\n hanidec: [\"〇\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\"],\n khmr: [\"០\", \"១\", \"២\", \"៣\", \"៤\", \"៥\", \"៦\", \"៧\", \"៨\", \"៩\"],\n knda: [\"೦\", \"೧\", \"೨\", \"೩\", \"೪\", \"೫\", \"೬\", \"೭\", \"೮\", \"೯\"],\n laoo: [\"໐\", \"໑\", \"໒\", \"໓\", \"໔\", \"໕\", \"໖\", \"໗\", \"໘\", \"໙\"],\n latn: [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"],\n limb: [\"᥆\", \"᥇\", \"᥈\", \"᥉\", \"᥊\", \"᥋\", \"᥌\", \"᥍\", \"᥎\", \"᥏\"],\n mlym: [\"൦\", \"൧\", \"൨\", \"൩\", \"൪\", \"൫\", \"൬\", \"൭\", \"൮\", \"൯\"],\n mong: [\"᠐\", \"᠑\", \"᠒\", \"᠓\", \"᠔\", \"᠕\", \"᠖\", \"᠗\", \"᠘\", \"᠙\"],\n mymr: [\"၀\", \"၁\", \"၂\", \"၃\", \"၄\", \"၅\", \"၆\", \"၇\", \"၈\", \"၉\"],\n orya: [\"୦\", \"୧\", \"୨\", \"୩\", \"୪\", \"୫\", \"୬\", \"୭\", \"୮\", \"୯\"],\n tamldec: [\"௦\", \"௧\", \"௨\", \"௩\", \"௪\", \"௫\", \"௬\", \"௭\", \"௮\", \"௯\"],\n telu: [\"౦\", \"౧\", \"౨\", \"౩\", \"౪\", \"౫\", \"౬\", \"౭\", \"౮\", \"౯\"],\n thai: [\"๐\", \"๑\", \"๒\", \"๓\", \"๔\", \"๕\", \"๖\", \"๗\", \"๘\", \"๙\"],\n tibt: [\"༠\", \"༡\", \"༢\", \"༣\", \"༤\", \"༥\", \"༦\", \"༧\", \"༨\", \"༩\"]\n};\n\n/**\n * This function provides access to the locale and formatting options computed\n * during initialization of the object.\n *\n * The function returns a new object whose properties and attributes are set as\n * if constructed by an object literal assigning to each of the following\n * properties the value of the corresponding internal property of this\n * NumberFormat object (see 11.4): locale, numberingSystem, style, currency,\n * currencyDisplay, minimumIntegerDigits, minimumFractionDigits,\n * maximumFractionDigits, minimumSignificantDigits, maximumSignificantDigits, and\n * useGrouping. Properties whose corresponding internal properties are not present\n * are not assigned.\n */\n/* 11.3.3 */defineProperty(Intl.NumberFormat.prototype, 'resolvedOptions', {\n configurable: true,\n writable: true,\n value: function value() {\n var prop = void 0,\n descs = new Record(),\n props = ['locale', 'numberingSystem', 'style', 'currency', 'currencyDisplay', 'minimumIntegerDigits', 'minimumFractionDigits', 'maximumFractionDigits', 'minimumSignificantDigits', 'maximumSignificantDigits', 'useGrouping'],\n internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 11.3_b\n if (!internal || !internal['[[initializedNumberFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.');\n\n for (var i = 0, max = props.length; i < max; i++) {\n if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n }\n\n return objCreate({}, descs);\n }\n});\n\n/* jslint esnext: true */\n\n// Match these datetime components in a CLDR pattern, except those in single quotes\nvar expDTComponents = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n// trim patterns after transformations\nvar expPatternTrimmer = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n// Skip over patterns with these datetime components because we don't have data\n// to back them up:\n// timezone, weekday, amoung others\nvar unwantedDTCs = /[rqQASjJgwWIQq]/; // xXVO were removed from this list in favor of computing matches with timeZoneName values but printing as empty string\n\nvar dtKeys = [\"weekday\", \"era\", \"year\", \"month\", \"day\", \"weekday\", \"quarter\"];\nvar tmKeys = [\"hour\", \"minute\", \"second\", \"hour12\", \"timeZoneName\"];\n\nfunction isDateFormatOnly(obj) {\n for (var i = 0; i < tmKeys.length; i += 1) {\n if (obj.hasOwnProperty(tmKeys[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction isTimeFormatOnly(obj) {\n for (var i = 0; i < dtKeys.length; i += 1) {\n if (obj.hasOwnProperty(dtKeys[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction joinDateAndTimeFormats(dateFormatObj, timeFormatObj) {\n var o = { _: {} };\n for (var i = 0; i < dtKeys.length; i += 1) {\n if (dateFormatObj[dtKeys[i]]) {\n o[dtKeys[i]] = dateFormatObj[dtKeys[i]];\n }\n if (dateFormatObj._[dtKeys[i]]) {\n o._[dtKeys[i]] = dateFormatObj._[dtKeys[i]];\n }\n }\n for (var j = 0; j < tmKeys.length; j += 1) {\n if (timeFormatObj[tmKeys[j]]) {\n o[tmKeys[j]] = timeFormatObj[tmKeys[j]];\n }\n if (timeFormatObj._[tmKeys[j]]) {\n o._[tmKeys[j]] = timeFormatObj._[tmKeys[j]];\n }\n }\n return o;\n}\n\nfunction computeFinalPatterns(formatObj) {\n // From http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns:\n // 'In patterns, two single quotes represents a literal single quote, either\n // inside or outside single quotes. Text within single quotes is not\n // interpreted in any way (except for two adjacent single quotes).'\n formatObj.pattern12 = formatObj.extendedPattern.replace(/'([^']*)'/g, function ($0, literal) {\n return literal ? literal : \"'\";\n });\n\n // pattern 12 is always the default. we can produce the 24 by removing {ampm}\n formatObj.pattern = formatObj.pattern12.replace('{ampm}', '').replace(expPatternTrimmer, '');\n return formatObj;\n}\n\nfunction expDTComponentsMeta($0, formatObj) {\n switch ($0.charAt(0)) {\n // --- Era\n case 'G':\n formatObj.era = ['short', 'short', 'short', 'long', 'narrow'][$0.length - 1];\n return '{era}';\n\n // --- Year\n case 'y':\n case 'Y':\n case 'u':\n case 'U':\n case 'r':\n formatObj.year = $0.length === 2 ? '2-digit' : 'numeric';\n return '{year}';\n\n // --- Quarter (not supported in this polyfill)\n case 'Q':\n case 'q':\n formatObj.quarter = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n return '{quarter}';\n\n // --- Month\n case 'M':\n case 'L':\n formatObj.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][$0.length - 1];\n return '{month}';\n\n // --- Week (not supported in this polyfill)\n case 'w':\n // week of the year\n formatObj.week = $0.length === 2 ? '2-digit' : 'numeric';\n return '{weekday}';\n case 'W':\n // week of the month\n formatObj.week = 'numeric';\n return '{weekday}';\n\n // --- Day\n case 'd':\n // day of the month\n formatObj.day = $0.length === 2 ? '2-digit' : 'numeric';\n return '{day}';\n case 'D': // day of the year\n case 'F': // day of the week\n case 'g':\n // 1..n: Modified Julian day\n formatObj.day = 'numeric';\n return '{day}';\n\n // --- Week Day\n case 'E':\n // day of the week\n formatObj.weekday = ['short', 'short', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n return '{weekday}';\n case 'e':\n // local day of the week\n formatObj.weekday = ['numeric', '2-digit', 'short', 'long', 'narrow', 'short'][$0.length - 1];\n return '{weekday}';\n case 'c':\n // stand alone local day of the week\n formatObj.weekday = ['numeric', undefined, 'short', 'long', 'narrow', 'short'][$0.length - 1];\n return '{weekday}';\n\n // --- Period\n case 'a': // AM, PM\n case 'b': // am, pm, noon, midnight\n case 'B':\n // flexible day periods\n formatObj.hour12 = true;\n return '{ampm}';\n\n // --- Hour\n case 'h':\n case 'H':\n formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n return '{hour}';\n case 'k':\n case 'K':\n formatObj.hour12 = true; // 12-hour-cycle time formats (using h or K)\n formatObj.hour = $0.length === 2 ? '2-digit' : 'numeric';\n return '{hour}';\n\n // --- Minute\n case 'm':\n formatObj.minute = $0.length === 2 ? '2-digit' : 'numeric';\n return '{minute}';\n\n // --- Second\n case 's':\n formatObj.second = $0.length === 2 ? '2-digit' : 'numeric';\n return '{second}';\n case 'S':\n case 'A':\n formatObj.second = 'numeric';\n return '{second}';\n\n // --- Timezone\n case 'z': // 1..3, 4: specific non-location format\n case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n case 'O': // 1, 4: miliseconds in day short, long\n case 'v': // 1, 4: generic non-location format\n case 'V': // 1, 2, 3, 4: time zone ID or city\n case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n case 'x':\n // 1, 2, 3, 4: The ISO8601 varios formats\n // this polyfill only supports much, for now, we are just doing something dummy\n formatObj.timeZoneName = $0.length < 4 ? 'short' : 'long';\n return '{timeZoneName}';\n }\n}\n\n/**\n * Converts the CLDR availableFormats into the objects and patterns required by\n * the ECMAScript Internationalization API specification.\n */\nfunction createDateTimeFormat(skeleton, pattern) {\n // we ignore certain patterns that are unsupported to avoid this expensive op.\n if (unwantedDTCs.test(pattern)) return undefined;\n\n var formatObj = {\n originalPattern: pattern,\n _: {}\n };\n\n // Replace the pattern string with the one required by the specification, whilst\n // at the same time evaluating it for the subsets and formats\n formatObj.extendedPattern = pattern.replace(expDTComponents, function ($0) {\n // See which symbol we're dealing with\n return expDTComponentsMeta($0, formatObj._);\n });\n\n // Match the skeleton string with the one required by the specification\n // this implementation is based on the Date Field Symbol Table:\n // http://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n // Note: we are adding extra data to the formatObject even though this polyfill\n // might not support it.\n skeleton.replace(expDTComponents, function ($0) {\n // See which symbol we're dealing with\n return expDTComponentsMeta($0, formatObj);\n });\n\n return computeFinalPatterns(formatObj);\n}\n\n/**\n * Processes DateTime formats from CLDR to an easier-to-parse format.\n * the result of this operation should be cached the first time a particular\n * calendar is analyzed.\n *\n * The specification requires we support at least the following subsets of\n * date/time components:\n *\n * - 'weekday', 'year', 'month', 'day', 'hour', 'minute', 'second'\n * - 'weekday', 'year', 'month', 'day'\n * - 'year', 'month', 'day'\n * - 'year', 'month'\n * - 'month', 'day'\n * - 'hour', 'minute', 'second'\n * - 'hour', 'minute'\n *\n * We need to cherry pick at least these subsets from the CLDR data and convert\n * them into the pattern objects used in the ECMA-402 API.\n */\nfunction createDateTimeFormats(formats) {\n var availableFormats = formats.availableFormats;\n var timeFormats = formats.timeFormats;\n var dateFormats = formats.dateFormats;\n var result = [];\n var skeleton = void 0,\n pattern = void 0,\n computed = void 0,\n i = void 0,\n j = void 0;\n var timeRelatedFormats = [];\n var dateRelatedFormats = [];\n\n // Map available (custom) formats into a pattern for createDateTimeFormats\n for (skeleton in availableFormats) {\n if (availableFormats.hasOwnProperty(skeleton)) {\n pattern = availableFormats[skeleton];\n computed = createDateTimeFormat(skeleton, pattern);\n if (computed) {\n result.push(computed);\n // in some cases, the format is only displaying date specific props\n // or time specific props, in which case we need to also produce the\n // combined formats.\n if (isDateFormatOnly(computed)) {\n dateRelatedFormats.push(computed);\n } else if (isTimeFormatOnly(computed)) {\n timeRelatedFormats.push(computed);\n }\n }\n }\n }\n\n // Map time formats into a pattern for createDateTimeFormats\n for (skeleton in timeFormats) {\n if (timeFormats.hasOwnProperty(skeleton)) {\n pattern = timeFormats[skeleton];\n computed = createDateTimeFormat(skeleton, pattern);\n if (computed) {\n result.push(computed);\n timeRelatedFormats.push(computed);\n }\n }\n }\n\n // Map date formats into a pattern for createDateTimeFormats\n for (skeleton in dateFormats) {\n if (dateFormats.hasOwnProperty(skeleton)) {\n pattern = dateFormats[skeleton];\n computed = createDateTimeFormat(skeleton, pattern);\n if (computed) {\n result.push(computed);\n dateRelatedFormats.push(computed);\n }\n }\n }\n\n // combine custom time and custom date formats when they are orthogonals to complete the\n // formats supported by CLDR.\n // This Algo is based on section \"Missing Skeleton Fields\" from:\n // http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems\n for (i = 0; i < timeRelatedFormats.length; i += 1) {\n for (j = 0; j < dateRelatedFormats.length; j += 1) {\n if (dateRelatedFormats[j].month === 'long') {\n pattern = dateRelatedFormats[j].weekday ? formats.full : formats.long;\n } else if (dateRelatedFormats[j].month === 'short') {\n pattern = formats.medium;\n } else {\n pattern = formats.short;\n }\n computed = joinDateAndTimeFormats(dateRelatedFormats[j], timeRelatedFormats[i]);\n computed.originalPattern = pattern;\n computed.extendedPattern = pattern.replace('{0}', timeRelatedFormats[i].extendedPattern).replace('{1}', dateRelatedFormats[j].extendedPattern).replace(/^[,\\s]+|[,\\s]+$/gi, '');\n result.push(computeFinalPatterns(computed));\n }\n }\n\n return result;\n}\n\n// An object map of date component keys, saves using a regex later\nvar dateWidths = objCreate(null, { narrow: {}, short: {}, long: {} });\n\n/**\n * Returns a string for a date component, resolved using multiple inheritance as specified\n * as specified in the Unicode Technical Standard 35.\n */\nfunction resolveDateString(data, ca, component, width, key) {\n // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance:\n // 'In clearly specified instances, resources may inherit from within the same locale.\n // For example, ... the Buddhist calendar inherits from the Gregorian calendar.'\n var obj = data[ca] && data[ca][component] ? data[ca][component] : data.gregory[component],\n\n\n // \"sideways\" inheritance resolves strings when a key doesn't exist\n alts = {\n narrow: ['short', 'long'],\n short: ['long', 'narrow'],\n long: ['short', 'narrow']\n },\n\n\n //\n resolved = hop.call(obj, width) ? obj[width] : hop.call(obj, alts[width][0]) ? obj[alts[width][0]] : obj[alts[width][1]];\n\n // `key` wouldn't be specified for components 'dayPeriods'\n return key !== null ? resolved[key] : resolved;\n}\n\n// Define the DateTimeFormat constructor internally so it cannot be tainted\nfunction DateTimeFormatConstructor() {\n var locales = arguments[0];\n var options = arguments[1];\n\n if (!this || this === Intl) {\n return new Intl.DateTimeFormat(locales, options);\n }\n return InitializeDateTimeFormat(toObject(this), locales, options);\n}\n\ndefineProperty(Intl, 'DateTimeFormat', {\n configurable: true,\n writable: true,\n value: DateTimeFormatConstructor\n});\n\n// Must explicitly set prototypes as unwritable\ndefineProperty(DateTimeFormatConstructor, 'prototype', {\n writable: false\n});\n\n/**\n * The abstract operation InitializeDateTimeFormat accepts the arguments dateTimeFormat\n * (which must be an object), locales, and options. It initializes dateTimeFormat as a\n * DateTimeFormat object.\n */\nfunction /* 12.1.1.1 */InitializeDateTimeFormat(dateTimeFormat, locales, options) {\n // This will be a internal properties object if we're not already initialized\n var internal = getInternalProperties(dateTimeFormat);\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore();\n\n // 1. If dateTimeFormat has an [[initializedIntlObject]] internal property with\n // value true, throw a TypeError exception.\n if (internal['[[initializedIntlObject]]'] === true) throw new TypeError('`this` object has already been initialized as an Intl object');\n\n // Need this to access the `internal` object\n defineProperty(dateTimeFormat, '__getInternalProperties', {\n value: function value() {\n // NOTE: Non-standard, for internal use only\n if (arguments[0] === secret) return internal;\n }\n });\n\n // 2. Set the [[initializedIntlObject]] internal property of numberFormat to true.\n internal['[[initializedIntlObject]]'] = true;\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n var requestedLocales = CanonicalizeLocaleList(locales);\n\n // 4. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined below) with arguments options, \"any\", and \"date\".\n options = ToDateTimeOptions(options, 'any', 'date');\n\n // 5. Let opt be a new Record.\n var opt = new Record();\n\n // 6. Let matcher be the result of calling the GetOption abstract operation\n // (defined in 9.2.9) with arguments options, \"localeMatcher\", \"string\", a List\n // containing the two String values \"lookup\" and \"best fit\", and \"best fit\".\n var matcher = GetOption(options, 'localeMatcher', 'string', new List('lookup', 'best fit'), 'best fit');\n\n // 7. Set opt.[[localeMatcher]] to matcher.\n opt['[[localeMatcher]]'] = matcher;\n\n // 8. Let DateTimeFormat be the standard built-in object that is the initial\n // value of Intl.DateTimeFormat.\n var DateTimeFormat = internals.DateTimeFormat; // This is what we *really* need\n\n // 9. Let localeData be the value of the [[localeData]] internal property of\n // DateTimeFormat.\n var localeData = DateTimeFormat['[[localeData]]'];\n\n // 10. Let r be the result of calling the ResolveLocale abstract operation\n // (defined in 9.2.5) with the [[availableLocales]] internal property of\n // DateTimeFormat, requestedLocales, opt, the [[relevantExtensionKeys]]\n // internal property of DateTimeFormat, and localeData.\n var r = ResolveLocale(DateTimeFormat['[[availableLocales]]'], requestedLocales, opt, DateTimeFormat['[[relevantExtensionKeys]]'], localeData);\n\n // 11. Set the [[locale]] internal property of dateTimeFormat to the value of\n // r.[[locale]].\n internal['[[locale]]'] = r['[[locale]]'];\n\n // 12. Set the [[calendar]] internal property of dateTimeFormat to the value of\n // r.[[ca]].\n internal['[[calendar]]'] = r['[[ca]]'];\n\n // 13. Set the [[numberingSystem]] internal property of dateTimeFormat to the value of\n // r.[[nu]].\n internal['[[numberingSystem]]'] = r['[[nu]]'];\n\n // The specification doesn't tell us to do this, but it's helpful later on\n internal['[[dataLocale]]'] = r['[[dataLocale]]'];\n\n // 14. Let dataLocale be the value of r.[[dataLocale]].\n var dataLocale = r['[[dataLocale]]'];\n\n // 15. Let tz be the result of calling the [[Get]] internal method of options with\n // argument \"timeZone\".\n var tz = options.timeZone;\n\n // 16. If tz is not undefined, then\n if (tz !== undefined) {\n // a. Let tz be ToString(tz).\n // b. Convert tz to upper case as described in 6.1.\n // NOTE: If an implementation accepts additional time zone values, as permitted\n // under certain conditions by the Conformance clause, different casing\n // rules apply.\n tz = toLatinUpperCase(tz);\n\n // c. If tz is not \"UTC\", then throw a RangeError exception.\n // ###TODO: accept more time zones###\n if (tz !== 'UTC') throw new RangeError('timeZone is not supported.');\n }\n\n // 17. Set the [[timeZone]] internal property of dateTimeFormat to tz.\n internal['[[timeZone]]'] = tz;\n\n // 18. Let opt be a new Record.\n opt = new Record();\n\n // 19. For each row of Table 3, except the header row, do:\n for (var prop in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, prop)) continue;\n\n // 20. Let prop be the name given in the Property column of the row.\n // 21. Let value be the result of calling the GetOption abstract operation,\n // passing as argument options, the name given in the Property column of the\n // row, \"string\", a List containing the strings given in the Values column of\n // the row, and undefined.\n var value = GetOption(options, prop, 'string', dateTimeComponents[prop]);\n\n // 22. Set opt.[[]] to value.\n opt['[[' + prop + ']]'] = value;\n }\n\n // Assigned a value below\n var bestFormat = void 0;\n\n // 23. Let dataLocaleData be the result of calling the [[Get]] internal method of\n // localeData with argument dataLocale.\n var dataLocaleData = localeData[dataLocale];\n\n // 24. Let formats be the result of calling the [[Get]] internal method of\n // dataLocaleData with argument \"formats\".\n // Note: we process the CLDR formats into the spec'd structure\n var formats = ToDateTimeFormats(dataLocaleData.formats);\n\n // 25. Let matcher be the result of calling the GetOption abstract operation with\n // arguments options, \"formatMatcher\", \"string\", a List containing the two String\n // values \"basic\" and \"best fit\", and \"best fit\".\n matcher = GetOption(options, 'formatMatcher', 'string', new List('basic', 'best fit'), 'best fit');\n\n // Optimization: caching the processed formats as a one time operation by\n // replacing the initial structure from localeData\n dataLocaleData.formats = formats;\n\n // 26. If matcher is \"basic\", then\n if (matcher === 'basic') {\n // 27. Let bestFormat be the result of calling the BasicFormatMatcher abstract\n // operation (defined below) with opt and formats.\n bestFormat = BasicFormatMatcher(opt, formats);\n\n // 28. Else\n } else {\n {\n // diverging\n var _hr = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n opt.hour12 = _hr === undefined ? dataLocaleData.hour12 : _hr;\n }\n // 29. Let bestFormat be the result of calling the BestFitFormatMatcher\n // abstract operation (defined below) with opt and formats.\n bestFormat = BestFitFormatMatcher(opt, formats);\n }\n\n // 30. For each row in Table 3, except the header row, do\n for (var _prop in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, _prop)) continue;\n\n // a. Let prop be the name given in the Property column of the row.\n // b. Let pDesc be the result of calling the [[GetOwnProperty]] internal method of\n // bestFormat with argument prop.\n // c. If pDesc is not undefined, then\n if (hop.call(bestFormat, _prop)) {\n // i. Let p be the result of calling the [[Get]] internal method of bestFormat\n // with argument prop.\n var p = bestFormat[_prop];\n {\n // diverging\n p = bestFormat._ && hop.call(bestFormat._, _prop) ? bestFormat._[_prop] : p;\n }\n\n // ii. Set the [[]] internal property of dateTimeFormat to p.\n internal['[[' + _prop + ']]'] = p;\n }\n }\n\n var pattern = void 0; // Assigned a value below\n\n // 31. Let hr12 be the result of calling the GetOption abstract operation with\n // arguments options, \"hour12\", \"boolean\", undefined, and undefined.\n var hr12 = GetOption(options, 'hour12', 'boolean' /*, undefined, undefined*/);\n\n // 32. If dateTimeFormat has an internal property [[hour]], then\n if (internal['[[hour]]']) {\n // a. If hr12 is undefined, then let hr12 be the result of calling the [[Get]]\n // internal method of dataLocaleData with argument \"hour12\".\n hr12 = hr12 === undefined ? dataLocaleData.hour12 : hr12;\n\n // b. Set the [[hour12]] internal property of dateTimeFormat to hr12.\n internal['[[hour12]]'] = hr12;\n\n // c. If hr12 is true, then\n if (hr12 === true) {\n // i. Let hourNo0 be the result of calling the [[Get]] internal method of\n // dataLocaleData with argument \"hourNo0\".\n var hourNo0 = dataLocaleData.hourNo0;\n\n // ii. Set the [[hourNo0]] internal property of dateTimeFormat to hourNo0.\n internal['[[hourNo0]]'] = hourNo0;\n\n // iii. Let pattern be the result of calling the [[Get]] internal method of\n // bestFormat with argument \"pattern12\".\n pattern = bestFormat.pattern12;\n }\n\n // d. Else\n else\n // i. Let pattern be the result of calling the [[Get]] internal method of\n // bestFormat with argument \"pattern\".\n pattern = bestFormat.pattern;\n }\n\n // 33. Else\n else\n // a. Let pattern be the result of calling the [[Get]] internal method of\n // bestFormat with argument \"pattern\".\n pattern = bestFormat.pattern;\n\n // 34. Set the [[pattern]] internal property of dateTimeFormat to pattern.\n internal['[[pattern]]'] = pattern;\n\n // 35. Set the [[boundFormat]] internal property of dateTimeFormat to undefined.\n internal['[[boundFormat]]'] = undefined;\n\n // 36. Set the [[initializedDateTimeFormat]] internal property of dateTimeFormat to\n // true.\n internal['[[initializedDateTimeFormat]]'] = true;\n\n // In ES3, we need to pre-bind the format() function\n if (es3) dateTimeFormat.format = GetFormatDateTime.call(dateTimeFormat);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // Return the newly initialised object\n return dateTimeFormat;\n}\n\n/**\n * Several DateTimeFormat algorithms use values from the following table, which provides\n * property names and allowable values for the components of date and time formats:\n */\nvar dateTimeComponents = {\n weekday: [\"narrow\", \"short\", \"long\"],\n era: [\"narrow\", \"short\", \"long\"],\n year: [\"2-digit\", \"numeric\"],\n month: [\"2-digit\", \"numeric\", \"narrow\", \"short\", \"long\"],\n day: [\"2-digit\", \"numeric\"],\n hour: [\"2-digit\", \"numeric\"],\n minute: [\"2-digit\", \"numeric\"],\n second: [\"2-digit\", \"numeric\"],\n timeZoneName: [\"short\", \"long\"]\n};\n\n/**\n * When the ToDateTimeOptions abstract operation is called with arguments options,\n * required, and defaults, the following steps are taken:\n */\nfunction ToDateTimeFormats(formats) {\n if (Object.prototype.toString.call(formats) === '[object Array]') {\n return formats;\n }\n return createDateTimeFormats(formats);\n}\n\n/**\n * When the ToDateTimeOptions abstract operation is called with arguments options,\n * required, and defaults, the following steps are taken:\n */\nfunction ToDateTimeOptions(options, required, defaults) {\n // 1. If options is undefined, then let options be null, else let options be\n // ToObject(options).\n if (options === undefined) options = null;else {\n // (#12) options needs to be a Record, but it also needs to inherit properties\n var opt2 = toObject(options);\n options = new Record();\n\n for (var k in opt2) {\n options[k] = opt2[k];\n }\n }\n\n // 2. Let create be the standard built-in function object defined in ES5, 15.2.3.5.\n var create = objCreate;\n\n // 3. Let options be the result of calling the [[Call]] internal method of create with\n // undefined as the this value and an argument list containing the single item\n // options.\n options = create(options);\n\n // 4. Let needDefaults be true.\n var needDefaults = true;\n\n // 5. If required is \"date\" or \"any\", then\n if (required === 'date' || required === 'any') {\n // a. For each of the property names \"weekday\", \"year\", \"month\", \"day\":\n // i. If the result of calling the [[Get]] internal method of options with the\n // property name is not undefined, then let needDefaults be false.\n if (options.weekday !== undefined || options.year !== undefined || options.month !== undefined || options.day !== undefined) needDefaults = false;\n }\n\n // 6. If required is \"time\" or \"any\", then\n if (required === 'time' || required === 'any') {\n // a. For each of the property names \"hour\", \"minute\", \"second\":\n // i. If the result of calling the [[Get]] internal method of options with the\n // property name is not undefined, then let needDefaults be false.\n if (options.hour !== undefined || options.minute !== undefined || options.second !== undefined) needDefaults = false;\n }\n\n // 7. If needDefaults is true and defaults is either \"date\" or \"all\", then\n if (needDefaults && (defaults === 'date' || defaults === 'all'))\n // a. For each of the property names \"year\", \"month\", \"day\":\n // i. Call the [[DefineOwnProperty]] internal method of options with the\n // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n options.year = options.month = options.day = 'numeric';\n\n // 8. If needDefaults is true and defaults is either \"time\" or \"all\", then\n if (needDefaults && (defaults === 'time' || defaults === 'all'))\n // a. For each of the property names \"hour\", \"minute\", \"second\":\n // i. Call the [[DefineOwnProperty]] internal method of options with the\n // property name, Property Descriptor {[[Value]]: \"numeric\", [[Writable]]:\n // true, [[Enumerable]]: true, [[Configurable]]: true}, and false.\n options.hour = options.minute = options.second = 'numeric';\n\n // 9. Return options.\n return options;\n}\n\n/**\n * When the BasicFormatMatcher abstract operation is called with two arguments options and\n * formats, the following steps are taken:\n */\nfunction BasicFormatMatcher(options, formats) {\n // 1. Let removalPenalty be 120.\n var removalPenalty = 120;\n\n // 2. Let additionPenalty be 20.\n var additionPenalty = 20;\n\n // 3. Let longLessPenalty be 8.\n var longLessPenalty = 8;\n\n // 4. Let longMorePenalty be 6.\n var longMorePenalty = 6;\n\n // 5. Let shortLessPenalty be 6.\n var shortLessPenalty = 6;\n\n // 6. Let shortMorePenalty be 3.\n var shortMorePenalty = 3;\n\n // 7. Let bestScore be -Infinity.\n var bestScore = -Infinity;\n\n // 8. Let bestFormat be undefined.\n var bestFormat = void 0;\n\n // 9. Let i be 0.\n var i = 0;\n\n // 10. Assert: formats is an Array object.\n\n // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n var len = formats.length;\n\n // 12. Repeat while i < len:\n while (i < len) {\n // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n var format = formats[i];\n\n // b. Let score be 0.\n var score = 0;\n\n // c. For each property shown in Table 3:\n for (var property in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, property)) continue;\n\n // i. Let optionsProp be options.[[]].\n var optionsProp = options['[[' + property + ']]'];\n\n // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n // with argument property.\n // iii. If formatPropDesc is not undefined, then\n // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n var formatProp = hop.call(format, property) ? format[property] : undefined;\n\n // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n // additionPenalty.\n if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\n // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n // removalPenalty.\n else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\n // vi. Else\n else {\n // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n // \"long\"].\n var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\n // 2. Let optionsPropIndex be the index of optionsProp within values.\n var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\n // 3. Let formatPropIndex be the index of formatProp within values.\n var formatPropIndex = arrIndexOf.call(values, formatProp);\n\n // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta === 2) score -= longMorePenalty;\n\n // 6. Else if delta = 1, decrease score by shortMorePenalty.\n else if (delta === 1) score -= shortMorePenalty;\n\n // 7. Else if delta = -1, decrease score by shortLessPenalty.\n else if (delta === -1) score -= shortLessPenalty;\n\n // 8. Else if delta = -2, decrease score by longLessPenalty.\n else if (delta === -2) score -= longLessPenalty;\n }\n }\n\n // d. If score > bestScore, then\n if (score > bestScore) {\n // i. Let bestScore be score.\n bestScore = score;\n\n // ii. Let bestFormat be format.\n bestFormat = format;\n }\n\n // e. Increase i by 1.\n i++;\n }\n\n // 13. Return bestFormat.\n return bestFormat;\n}\n\n/**\n * When the BestFitFormatMatcher abstract operation is called with two arguments options\n * and formats, it performs implementation dependent steps, which should return a set of\n * component representations that a typical user of the selected locale would perceive as\n * at least as good as the one returned by BasicFormatMatcher.\n *\n * This polyfill defines the algorithm to be the same as BasicFormatMatcher,\n * with the addition of bonus points awarded where the requested format is of\n * the same data type as the potentially matching format.\n *\n * This algo relies on the concept of closest distance matching described here:\n * http://unicode.org/reports/tr35/tr35-dates.html#Matching_Skeletons\n * Typically a “best match” is found using a closest distance match, such as:\n *\n * Symbols requesting a best choice for the locale are replaced.\n * j → one of {H, k, h, K}; C → one of {a, b, B}\n * -> Covered by cldr.js matching process\n *\n * For fields with symbols representing the same type (year, month, day, etc):\n * Most symbols have a small distance from each other.\n * M ≅ L; E ≅ c; a ≅ b ≅ B; H ≅ k ≅ h ≅ K; ...\n * -> Covered by cldr.js matching process\n *\n * Width differences among fields, other than those marking text vs numeric, are given small distance from each other.\n * MMM ≅ MMMM\n * MM ≅ M\n * Numeric and text fields are given a larger distance from each other.\n * MMM ≈ MM\n * Symbols representing substantial differences (week of year vs week of month) are given much larger a distances from each other.\n * d ≋ D; ...\n * Missing or extra fields cause a match to fail. (But see Missing Skeleton Fields).\n *\n *\n * For example,\n *\n * { month: 'numeric', day: 'numeric' }\n *\n * should match\n *\n * { month: '2-digit', day: '2-digit' }\n *\n * rather than\n *\n * { month: 'short', day: 'numeric' }\n *\n * This makes sense because a user requesting a formatted date with numeric parts would\n * not expect to see the returned format containing narrow, short or long part names\n */\nfunction BestFitFormatMatcher(options, formats) {\n\n // 1. Let removalPenalty be 120.\n var removalPenalty = 120;\n\n // 2. Let additionPenalty be 20.\n var additionPenalty = 20;\n\n // 3. Let longLessPenalty be 8.\n var longLessPenalty = 8;\n\n // 4. Let longMorePenalty be 6.\n var longMorePenalty = 6;\n\n // 5. Let shortLessPenalty be 6.\n var shortLessPenalty = 6;\n\n // 6. Let shortMorePenalty be 3.\n var shortMorePenalty = 3;\n\n var hour12Penalty = 1;\n\n // 7. Let bestScore be -Infinity.\n var bestScore = -Infinity;\n\n // 8. Let bestFormat be undefined.\n var bestFormat = void 0;\n\n // 9. Let i be 0.\n var i = 0;\n\n // 10. Assert: formats is an Array object.\n\n // 11. Let len be the result of calling the [[Get]] internal method of formats with argument \"length\".\n var len = formats.length;\n\n // 12. Repeat while i < len:\n while (i < len) {\n // a. Let format be the result of calling the [[Get]] internal method of formats with argument ToString(i).\n var format = formats[i];\n\n // b. Let score be 0.\n var score = 0;\n\n // c. For each property shown in Table 3:\n for (var property in dateTimeComponents) {\n if (!hop.call(dateTimeComponents, property)) continue;\n\n // i. Let optionsProp be options.[[]].\n var optionsProp = options['[[' + property + ']]'];\n\n // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n // with argument property.\n // iii. If formatPropDesc is not undefined, then\n // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n var formatProp = hop.call(format, property) ? format[property] : undefined;\n\n // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n // additionPenalty.\n if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\n // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n // removalPenalty.\n else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\n // vi. Else\n else {\n // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n // \"long\"].\n var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\n // 2. Let optionsPropIndex be the index of optionsProp within values.\n var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\n // 3. Let formatPropIndex be the index of formatProp within values.\n var formatPropIndex = arrIndexOf.call(values, formatProp);\n\n // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\n {\n // diverging from spec\n // When the bestFit argument is true, subtract additional penalty where data types are not the same\n if (formatPropIndex <= 1 && optionsPropIndex >= 2 || formatPropIndex >= 2 && optionsPropIndex <= 1) {\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta > 0) score -= longMorePenalty;else if (delta < 0) score -= longLessPenalty;\n } else {\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta > 1) score -= shortMorePenalty;else if (delta < -1) score -= shortLessPenalty;\n }\n }\n }\n }\n\n {\n // diverging to also take into consideration differences between 12 or 24 hours\n // which is special for the best fit only.\n if (format._.hour12 !== options.hour12) {\n score -= hour12Penalty;\n }\n }\n\n // d. If score > bestScore, then\n if (score > bestScore) {\n // i. Let bestScore be score.\n bestScore = score;\n // ii. Let bestFormat be format.\n bestFormat = format;\n }\n\n // e. Increase i by 1.\n i++;\n }\n\n // 13. Return bestFormat.\n return bestFormat;\n}\n\n/* 12.2.3 */internals.DateTimeFormat = {\n '[[availableLocales]]': [],\n '[[relevantExtensionKeys]]': ['ca', 'nu'],\n '[[localeData]]': {}\n};\n\n/**\n * When the supportedLocalesOf method of Intl.DateTimeFormat is called, the\n * following steps are taken:\n */\n/* 12.2.2 */\ndefineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {\n configurable: true,\n writable: true,\n value: fnBind.call(function (locales) {\n // Bound functions only have the `this` value altered if being used as a constructor,\n // this lets us imitate a native function that has no constructor\n if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpState = createRegExpRestore(),\n\n\n // 1. If options is not provided, then let options be undefined.\n options = arguments[1],\n\n\n // 2. Let availableLocales be the value of the [[availableLocales]] internal\n // property of the standard built-in object that is the initial value of\n // Intl.NumberFormat.\n\n availableLocales = this['[[availableLocales]]'],\n\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n requestedLocales = CanonicalizeLocaleList(locales);\n\n // Restore the RegExp properties\n regexpState.exp.test(regexpState.input);\n\n // 4. Return the result of calling the SupportedLocales abstract operation\n // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n // and options.\n return SupportedLocales(availableLocales, requestedLocales, options);\n }, internals.NumberFormat)\n});\n\n/**\n * This named accessor property returns a function that formats a number\n * according to the effective locale and the formatting options of this\n * DateTimeFormat object.\n */\n/* 12.3.2 */defineProperty(Intl.DateTimeFormat.prototype, 'format', {\n configurable: true,\n get: GetFormatDateTime\n});\n\ndefineProperty(Intl.DateTimeFormat.prototype, 'formatToParts', {\n configurable: true,\n get: GetFormatToPartsDateTime\n});\n\nfunction GetFormatDateTime() {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 12.3_b\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.DateTimeFormat object.');\n\n // The value of the [[Get]] attribute is a function that takes the following\n // steps:\n\n // 1. If the [[boundFormat]] internal property of this DateTimeFormat object\n // is undefined, then:\n if (internal['[[boundFormat]]'] === undefined) {\n // a. Let F be a Function object, with internal properties set as\n // specified for built-in functions in ES5, 15, or successor, and the\n // length property set to 0, that takes the argument date and\n // performs the following steps:\n var F = function F() {\n // i. If date is not provided or is undefined, then let x be the\n // result as if by the expression Date.now() where Date.now is\n // the standard built-in function defined in ES5, 15.9.4.4.\n // ii. Else let x be ToNumber(date).\n // iii. Return the result of calling the FormatDateTime abstract\n // operation (defined below) with arguments this and x.\n var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n return FormatDateTime(this, x);\n };\n // b. Let bind be the standard built-in function object defined in ES5,\n // 15.3.4.5.\n // c. Let bf be the result of calling the [[Call]] internal method of\n // bind with F as the this value and an argument list containing\n // the single item this.\n var bf = fnBind.call(F, this);\n // d. Set the [[boundFormat]] internal property of this NumberFormat\n // object to bf.\n internal['[[boundFormat]]'] = bf;\n }\n // Return the value of the [[boundFormat]] internal property of this\n // NumberFormat object.\n return internal['[[boundFormat]]'];\n}\n\nfunction GetFormatToPartsDateTime() {\n var internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.');\n\n if (internal['[[boundFormatToParts]]'] === undefined) {\n var F = function F() {\n var x = Number(arguments.length === 0 ? Date.now() : arguments[0]);\n return FormatToPartsDateTime(this, x);\n };\n var bf = fnBind.call(F, this);\n internal['[[boundFormatToParts]]'] = bf;\n }\n return internal['[[boundFormatToParts]]'];\n}\n\nfunction CreateDateTimeParts(dateTimeFormat, x) {\n // 1. If x is not a finite Number, then throw a RangeError exception.\n if (!isFinite(x)) throw new RangeError('Invalid valid date passed to format');\n\n var internal = dateTimeFormat.__getInternalProperties(secret);\n\n // Creating restore point for properties on the RegExp object... please wait\n /* let regexpState = */createRegExpRestore(); // ###TODO: review this\n\n // 2. Let locale be the value of the [[locale]] internal property of dateTimeFormat.\n var locale = internal['[[locale]]'];\n\n // 3. Let nf be the result of creating a new NumberFormat object as if by the\n // expression new Intl.NumberFormat([locale], {useGrouping: false}) where\n // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n var nf = new Intl.NumberFormat([locale], { useGrouping: false });\n\n // 4. Let nf2 be the result of creating a new NumberFormat object as if by the\n // expression new Intl.NumberFormat([locale], {minimumIntegerDigits: 2, useGrouping:\n // false}) where Intl.NumberFormat is the standard built-in constructor defined in\n // 11.1.3.\n var nf2 = new Intl.NumberFormat([locale], { minimumIntegerDigits: 2, useGrouping: false });\n\n // 5. Let tm be the result of calling the ToLocalTime abstract operation (defined\n // below) with x, the value of the [[calendar]] internal property of dateTimeFormat,\n // and the value of the [[timeZone]] internal property of dateTimeFormat.\n var tm = ToLocalTime(x, internal['[[calendar]]'], internal['[[timeZone]]']);\n\n // 6. Let result be the value of the [[pattern]] internal property of dateTimeFormat.\n var pattern = internal['[[pattern]]'];\n\n // 7.\n var result = new List();\n\n // 8.\n var index = 0;\n\n // 9.\n var beginIndex = pattern.indexOf('{');\n\n // 10.\n var endIndex = 0;\n\n // Need the locale minus any extensions\n var dataLocale = internal['[[dataLocale]]'];\n\n // Need the calendar data from CLDR\n var localeData = internals.DateTimeFormat['[[localeData]]'][dataLocale].calendars;\n var ca = internal['[[calendar]]'];\n\n // 11.\n while (beginIndex !== -1) {\n var fv = void 0;\n // a.\n endIndex = pattern.indexOf('}', beginIndex);\n // b.\n if (endIndex === -1) {\n throw new Error('Unclosed pattern');\n }\n // c.\n if (beginIndex > index) {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substring(index, beginIndex)\n });\n }\n // d.\n var p = pattern.substring(beginIndex + 1, endIndex);\n // e.\n if (dateTimeComponents.hasOwnProperty(p)) {\n // i. Let f be the value of the [[

    ]] internal property of dateTimeFormat.\n var f = internal['[[' + p + ']]'];\n // ii. Let v be the value of tm.[[

    ]].\n var v = tm['[[' + p + ']]'];\n // iii. If p is \"year\" and v ≤ 0, then let v be 1 - v.\n if (p === 'year' && v <= 0) {\n v = 1 - v;\n }\n // iv. If p is \"month\", then increase v by 1.\n else if (p === 'month') {\n v++;\n }\n // v. If p is \"hour\" and the value of the [[hour12]] internal property of\n // dateTimeFormat is true, then\n else if (p === 'hour' && internal['[[hour12]]'] === true) {\n // 1. Let v be v modulo 12.\n v = v % 12;\n // 2. If v is 0 and the value of the [[hourNo0]] internal property of\n // dateTimeFormat is true, then let v be 12.\n if (v === 0 && internal['[[hourNo0]]'] === true) {\n v = 12;\n }\n }\n\n // vi. If f is \"numeric\", then\n if (f === 'numeric') {\n // 1. Let fv be the result of calling the FormatNumber abstract operation\n // (defined in 11.3.2) with arguments nf and v.\n fv = FormatNumber(nf, v);\n }\n // vii. Else if f is \"2-digit\", then\n else if (f === '2-digit') {\n // 1. Let fv be the result of calling the FormatNumber abstract operation\n // with arguments nf2 and v.\n fv = FormatNumber(nf2, v);\n // 2. If the length of fv is greater than 2, let fv be the substring of fv\n // containing the last two characters.\n if (fv.length > 2) {\n fv = fv.slice(-2);\n }\n }\n // viii. Else if f is \"narrow\", \"short\", or \"long\", then let fv be a String\n // value representing f in the desired form; the String value depends upon\n // the implementation and the effective locale and calendar of\n // dateTimeFormat. If p is \"month\", then the String value may also depend\n // on whether dateTimeFormat has a [[day]] internal property. If p is\n // \"timeZoneName\", then the String value may also depend on the value of\n // the [[inDST]] field of tm.\n else if (f in dateWidths) {\n switch (p) {\n case 'month':\n fv = resolveDateString(localeData, ca, 'months', f, tm['[[' + p + ']]']);\n break;\n\n case 'weekday':\n try {\n fv = resolveDateString(localeData, ca, 'days', f, tm['[[' + p + ']]']);\n // fv = resolveDateString(ca.days, f)[tm['[['+ p +']]']];\n } catch (e) {\n throw new Error('Could not find weekday data for locale ' + locale);\n }\n break;\n\n case 'timeZoneName':\n fv = ''; // ###TODO\n break;\n\n case 'era':\n try {\n fv = resolveDateString(localeData, ca, 'eras', f, tm['[[' + p + ']]']);\n } catch (e) {\n throw new Error('Could not find era data for locale ' + locale);\n }\n break;\n\n default:\n fv = tm['[[' + p + ']]'];\n }\n }\n // ix\n arrPush.call(result, {\n type: p,\n value: fv\n });\n // f.\n } else if (p === 'ampm') {\n // i.\n var _v = tm['[[hour]]'];\n // ii./iii.\n fv = resolveDateString(localeData, ca, 'dayPeriods', _v > 11 ? 'pm' : 'am', null);\n // iv.\n arrPush.call(result, {\n type: 'dayPeriod',\n value: fv\n });\n // g.\n } else {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substring(beginIndex, endIndex + 1)\n });\n }\n // h.\n index = endIndex + 1;\n // i.\n beginIndex = pattern.indexOf('{', index);\n }\n // 12.\n if (endIndex < pattern.length - 1) {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substr(endIndex + 1)\n });\n }\n // 13.\n return result;\n}\n\n/**\n * When the FormatDateTime abstract operation is called with arguments dateTimeFormat\n * (which must be an object initialized as a DateTimeFormat) and x (which must be a Number\n * value), it returns a String value representing x (interpreted as a time value as\n * specified in ES5, 15.9.1.1) according to the effective locale and the formatting\n * options of dateTimeFormat.\n */\nfunction FormatDateTime(dateTimeFormat, x) {\n var parts = CreateDateTimeParts(dateTimeFormat, x);\n var result = '';\n\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n result += part.value;\n }\n return result;\n}\n\nfunction FormatToPartsDateTime(dateTimeFormat, x) {\n var parts = CreateDateTimeParts(dateTimeFormat, x);\n var result = [];\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n result.push({\n type: part.type,\n value: part.value\n });\n }\n return result;\n}\n\n/**\n * When the ToLocalTime abstract operation is called with arguments date, calendar, and\n * timeZone, the following steps are taken:\n */\nfunction ToLocalTime(date, calendar, timeZone) {\n // 1. Apply calendrical calculations on date for the given calendar and time zone to\n // produce weekday, era, year, month, day, hour, minute, second, and inDST values.\n // The calculations should use best available information about the specified\n // calendar and time zone. If the calendar is \"gregory\", then the calculations must\n // match the algorithms specified in ES5, 15.9.1, except that calculations are not\n // bound by the restrictions on the use of best available information on time zones\n // for local time zone adjustment and daylight saving time adjustment imposed by\n // ES5, 15.9.1.7 and 15.9.1.8.\n // ###TODO###\n var d = new Date(date),\n m = 'get' + (timeZone || '');\n\n // 2. Return a Record with fields [[weekday]], [[era]], [[year]], [[month]], [[day]],\n // [[hour]], [[minute]], [[second]], and [[inDST]], each with the corresponding\n // calculated value.\n return new Record({\n '[[weekday]]': d[m + 'Day'](),\n '[[era]]': +(d[m + 'FullYear']() >= 0),\n '[[year]]': d[m + 'FullYear'](),\n '[[month]]': d[m + 'Month'](),\n '[[day]]': d[m + 'Date'](),\n '[[hour]]': d[m + 'Hours'](),\n '[[minute]]': d[m + 'Minutes'](),\n '[[second]]': d[m + 'Seconds'](),\n '[[inDST]]': false });\n}\n\n/**\n * The function returns a new object whose properties and attributes are set as if\n * constructed by an object literal assigning to each of the following properties the\n * value of the corresponding internal property of this DateTimeFormat object (see 12.4):\n * locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day,\n * hour, minute, second, and timeZoneName. Properties whose corresponding internal\n * properties are not present are not assigned.\n */\n/* 12.3.3 */ // ###TODO###\ndefineProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', {\n writable: true,\n configurable: true,\n value: function value() {\n var prop = void 0,\n descs = new Record(),\n props = ['locale', 'calendar', 'numberingSystem', 'timeZone', 'hour12', 'weekday', 'era', 'year', 'month', 'day', 'hour', 'minute', 'second', 'timeZoneName'],\n internal = this !== null && babelHelpers[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 12.3_b\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.');\n\n for (var i = 0, max = props.length; i < max; i++) {\n if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n }\n\n return objCreate({}, descs);\n }\n});\n\nvar ls = Intl.__localeSensitiveProtos = {\n Number: {},\n Date: {}\n};\n\n/**\n * When the toLocaleString method is called with optional arguments locales and options,\n * the following steps are taken:\n */\n/* 13.2.1 */ls.Number.toLocaleString = function () {\n // Satisfy test 13.2.1_1\n if (Object.prototype.toString.call(this) !== '[object Number]') throw new TypeError('`this` value must be a number for Number.prototype.toLocaleString()');\n\n // 1. Let x be this Number value (as defined in ES5, 15.7.4).\n // 2. If locales is not provided, then let locales be undefined.\n // 3. If options is not provided, then let options be undefined.\n // 4. Let numberFormat be the result of creating a new object as if by the\n // expression new Intl.NumberFormat(locales, options) where\n // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n // 5. Return the result of calling the FormatNumber abstract operation\n // (defined in 11.3.2) with arguments numberFormat and x.\n return FormatNumber(new NumberFormatConstructor(arguments[0], arguments[1]), this);\n};\n\n/**\n * When the toLocaleString method is called with optional arguments locales and options,\n * the following steps are taken:\n */\n/* 13.3.1 */ls.Date.toLocaleString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0];\n\n // 4. If options is not provided, then let options be undefined.\n var options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"any\", and \"all\".\n options = ToDateTimeOptions(options, 'any', 'all');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\n/**\n * When the toLocaleDateString method is called with optional arguments locales and\n * options, the following steps are taken:\n */\n/* 13.3.2 */ls.Date.toLocaleDateString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleDateString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0],\n\n\n // 4. If options is not provided, then let options be undefined.\n options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"date\", and \"date\".\n options = ToDateTimeOptions(options, 'date', 'date');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\n/**\n * When the toLocaleTimeString method is called with optional arguments locales and\n * options, the following steps are taken:\n */\n/* 13.3.3 */ls.Date.toLocaleTimeString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleTimeString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0];\n\n // 4. If options is not provided, then let options be undefined.\n var options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"time\", and \"time\".\n options = ToDateTimeOptions(options, 'time', 'time');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\ndefineProperty(Intl, '__applyLocaleSensitivePrototypes', {\n writable: true,\n configurable: true,\n value: function value() {\n defineProperty(Number.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Number.toLocaleString });\n // Need this here for IE 8, to avoid the _DontEnum_ bug\n defineProperty(Date.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Date.toLocaleString });\n\n for (var k in ls.Date) {\n if (hop.call(ls.Date, k)) defineProperty(Date.prototype, k, { writable: true, configurable: true, value: ls.Date[k] });\n }\n }\n});\n\n/**\n * Can't really ship a single script with data for hundreds of locales, so we provide\n * this __addLocaleData method as a means for the developer to add the data on an\n * as-needed basis\n */\ndefineProperty(Intl, '__addLocaleData', {\n value: function value(data) {\n if (!IsStructurallyValidLanguageTag(data.locale)) throw new Error(\"Object passed doesn't identify itself with a valid language tag\");\n\n addLocaleData(data, data.locale);\n }\n});\n\nfunction addLocaleData(data, tag) {\n // Both NumberFormat and DateTimeFormat require number data, so throw if it isn't present\n if (!data.number) throw new Error(\"Object passed doesn't contain locale data for Intl.NumberFormat\");\n\n var locale = void 0,\n locales = [tag],\n parts = tag.split('-');\n\n // Create fallbacks for locale data with scripts, e.g. Latn, Hans, Vaii, etc\n if (parts.length > 2 && parts[1].length === 4) arrPush.call(locales, parts[0] + '-' + parts[2]);\n\n while (locale = arrShift.call(locales)) {\n // Add to NumberFormat internal properties as per 11.2.3\n arrPush.call(internals.NumberFormat['[[availableLocales]]'], locale);\n internals.NumberFormat['[[localeData]]'][locale] = data.number;\n\n // ...and DateTimeFormat internal properties as per 12.2.3\n if (data.date) {\n data.date.nu = data.number.nu;\n arrPush.call(internals.DateTimeFormat['[[availableLocales]]'], locale);\n internals.DateTimeFormat['[[localeData]]'][locale] = data.date;\n }\n }\n\n // If this is the first set of locale data added, make it the default\n if (defaultLocale === undefined) setDefaultLocale(tag);\n}\n\nmodule.exports = Intl;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/intl/lib/core.js\n ** module id = 888\n ** module chunks = 1\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..dbec521 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/fix.ie9.js b/public/fix.ie9.js index 00a0f3c..e59aa2a 100644 --- a/public/fix.ie9.js +++ b/public/fix.ie9.js @@ -1,2 +1,2 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="./",t(0)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(630);Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},630:function(e,t){!function(t,n){function r(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}function a(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=b.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),b.elements=n+" "+e,s(t)}function c(e){var t=E[e[v]];return t||(t={},y++,e[v]=y,E[y]=t),t}function i(e,t,r){if(t||(t=n),f)return t.createElement(e);r||(r=c(t));var a;return a=r.cache[e]?r.cache[e].cloneNode():g.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||p.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function l(e,t){if(e||(e=n),f)return e.createDocumentFragment();t=t||c(e);for(var r=t.frag.cloneNode(),o=0,i=a(),l=i.length;o",d="hidden"in e,f=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){d=!0,f=!0}}();var b={elements:h.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:h.shivCSS!==!1,supportsUnknownElements:f,shivMethods:h.shivMethods!==!1,type:"default",shivDocument:s,createElement:i,createDocumentFragment:l,addElements:o};t.html5=b,s(n),"object"==typeof e&&e.exports&&(e.exports=b)}("undefined"!=typeof window?window:this,document)}}); +!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="./",t(0)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(629);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},629:function(e,t){!function(t,n){function r(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",r.insertBefore(n.lastChild,r.firstChild)}function a(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=b.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),b.elements=n+" "+e,s(t)}function c(e){var t=E[e[v]];return t||(t={},y++,e[v]=y,E[y]=t),t}function i(e,t,r){if(t||(t=n),f)return t.createElement(e);r||(r=c(t));var a;return a=r.cache[e]?r.cache[e].cloneNode():g.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||p.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function l(e,t){if(e||(e=n),f)return e.createDocumentFragment();t=t||c(e);for(var r=t.frag.cloneNode(),o=0,i=a(),l=i.length;o",d="hidden"in e,f=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(t){d=!0,f=!0}}();var b={elements:h.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:h.shivCSS!==!1,supportsUnknownElements:f,shivMethods:h.shivMethods!==!1,type:"default",shivDocument:s,createElement:i,createDocumentFragment:l,addElements:o};t.html5=b,s(n),"object"==typeof e&&e.exports&&(e.exports=b)}("undefined"!=typeof window?window:this,document)}}); //# sourceMappingURL=fix.ie9.js.map \ No newline at end of file diff --git a/public/fix.ie9.js.map b/public/fix.ie9.js.map index d8d8528..5b562d1 100644 --- a/public/fix.ie9.js.map +++ b/public/fix.ie9.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///fix.ie9.js","webpack:///webpack/bootstrap 2b8617533284885337f9?7df4","webpack:///./fix.ie9.js","webpack:///./~/html5shiv/dist/html5shiv.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","0","Object","defineProperty","value","_html5shiv","keys","forEach","key","enumerable","get","630","window","document","addStyleSheet","ownerDocument","cssText","createElement","parent","getElementsByTagName","documentElement","innerHTML","insertBefore","lastChild","firstChild","getElements","elements","html5","split","addElements","newElements","join","shivDocument","getExpandoData","data","expandoData","expando","expanID","nodeName","supportsUnknownElements","node","cache","cloneNode","saveClones","test","createElem","canHaveChildren","reSkip","tagUrn","frag","appendChild","createDocumentFragment","clone","i","elems","l","length","shivMethods","createFrag","Function","replace","shivCSS","supportsHtml5Styles","hasCSS","version","options","a","childNodes","e","type","this"],"mappings":"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","file":"fix.ie9.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"./\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 0:\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _html5shiv = __webpack_require__(630);\n\t\n\tObject.keys(_html5shiv).forEach(function (key) {\n\t if (key === \"default\") return;\n\t Object.defineProperty(exports, key, {\n\t enumerable: true,\n\t get: function get() {\n\t return _html5shiv[key];\n\t }\n\t });\n\t});\n\n/***/ },\n\n/***/ 630:\n/***/ function(module, exports) {\n\n\t/**\n\t* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed\n\t*/\n\t;(function(window, document) {\n\t/*jshint evil:true */\n\t /** version */\n\t var version = '3.7.3-pre';\n\t\n\t /** Preset options */\n\t var options = window.html5 || {};\n\t\n\t /** Used to skip problem elements */\n\t var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;\n\t\n\t /** Not all elements can be cloned in IE **/\n\t var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;\n\t\n\t /** Detect whether the browser supports default html5 styles */\n\t var supportsHtml5Styles;\n\t\n\t /** Name of the expando, to work with multiple documents or to re-shiv one document */\n\t var expando = '_html5shiv';\n\t\n\t /** The id for the the documents expando */\n\t var expanID = 0;\n\t\n\t /** Cached data for each document */\n\t var expandoData = {};\n\t\n\t /** Detect whether the browser supports unknown elements */\n\t var supportsUnknownElements;\n\t\n\t (function() {\n\t try {\n\t var a = document.createElement('a');\n\t a.innerHTML = '';\n\t //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles\n\t supportsHtml5Styles = ('hidden' in a);\n\t\n\t supportsUnknownElements = a.childNodes.length == 1 || (function() {\n\t // assign a false positive if unable to shiv\n\t (document.createElement)('a');\n\t var frag = document.createDocumentFragment();\n\t return (\n\t typeof frag.cloneNode == 'undefined' ||\n\t typeof frag.createDocumentFragment == 'undefined' ||\n\t typeof frag.createElement == 'undefined'\n\t );\n\t }());\n\t } catch(e) {\n\t // assign a false positive if detection fails => unable to shiv\n\t supportsHtml5Styles = true;\n\t supportsUnknownElements = true;\n\t }\n\t\n\t }());\n\t\n\t /*--------------------------------------------------------------------------*/\n\t\n\t /**\n\t * Creates a style sheet with the given CSS text and adds it to the document.\n\t * @private\n\t * @param {Document} ownerDocument The document.\n\t * @param {String} cssText The CSS text.\n\t * @returns {StyleSheet} The style element.\n\t */\n\t function addStyleSheet(ownerDocument, cssText) {\n\t var p = ownerDocument.createElement('p'),\n\t parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;\n\t\n\t p.innerHTML = 'x';\n\t return parent.insertBefore(p.lastChild, parent.firstChild);\n\t }\n\t\n\t /**\n\t * Returns the value of `html5.elements` as an array.\n\t * @private\n\t * @returns {Array} An array of shived element node names.\n\t */\n\t function getElements() {\n\t var elements = html5.elements;\n\t return typeof elements == 'string' ? elements.split(' ') : elements;\n\t }\n\t\n\t /**\n\t * Extends the built-in list of html5 elements\n\t * @memberOf html5\n\t * @param {String|Array} newElements whitespace separated list or array of new element names to shiv\n\t * @param {Document} ownerDocument The context document.\n\t */\n\t function addElements(newElements, ownerDocument) {\n\t var elements = html5.elements;\n\t if(typeof elements != 'string'){\n\t elements = elements.join(' ');\n\t }\n\t if(typeof newElements != 'string'){\n\t newElements = newElements.join(' ');\n\t }\n\t html5.elements = elements +' '+ newElements;\n\t shivDocument(ownerDocument);\n\t }\n\t\n\t /**\n\t * Returns the data associated to the given document\n\t * @private\n\t * @param {Document} ownerDocument The document.\n\t * @returns {Object} An object of data.\n\t */\n\t function getExpandoData(ownerDocument) {\n\t var data = expandoData[ownerDocument[expando]];\n\t if (!data) {\n\t data = {};\n\t expanID++;\n\t ownerDocument[expando] = expanID;\n\t expandoData[expanID] = data;\n\t }\n\t return data;\n\t }\n\t\n\t /**\n\t * returns a shived element for the given nodeName and document\n\t * @memberOf html5\n\t * @param {String} nodeName name of the element\n\t * @param {Document} ownerDocument The context document.\n\t * @returns {Object} The shived element.\n\t */\n\t function createElement(nodeName, ownerDocument, data){\n\t if (!ownerDocument) {\n\t ownerDocument = document;\n\t }\n\t if(supportsUnknownElements){\n\t return ownerDocument.createElement(nodeName);\n\t }\n\t if (!data) {\n\t data = getExpandoData(ownerDocument);\n\t }\n\t var node;\n\t\n\t if (data.cache[nodeName]) {\n\t node = data.cache[nodeName].cloneNode();\n\t } else if (saveClones.test(nodeName)) {\n\t node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();\n\t } else {\n\t node = data.createElem(nodeName);\n\t }\n\t\n\t // Avoid adding some elements to fragments in IE < 9 because\n\t // * Attributes like `name` or `type` cannot be set/changed once an element\n\t // is inserted into a document/fragment\n\t // * Link elements with `src` attributes that are inaccessible, as with\n\t // a 403 response, will cause the tab/window to crash\n\t // * Script elements appended to fragments will execute when their `src`\n\t // or `text` property is set\n\t return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;\n\t }\n\t\n\t /**\n\t * returns a shived DocumentFragment for the given document\n\t * @memberOf html5\n\t * @param {Document} ownerDocument The context document.\n\t * @returns {Object} The shived DocumentFragment.\n\t */\n\t function createDocumentFragment(ownerDocument, data){\n\t if (!ownerDocument) {\n\t ownerDocument = document;\n\t }\n\t if(supportsUnknownElements){\n\t return ownerDocument.createDocumentFragment();\n\t }\n\t data = data || getExpandoData(ownerDocument);\n\t var clone = data.frag.cloneNode(),\n\t i = 0,\n\t elems = getElements(),\n\t l = elems.length;\n\t for(;i

    ","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Qe=/<|&#?\w+;/;!function(){var e=re.createDocumentFragment(),t=e.appendChild(re.createElement("div")),n=re.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),he.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",he.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Je=re.documentElement,Ze=/^key/,et=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tt=/^([^.]*)(?:\.(.+)|)/;ve.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,c,l,f,p,d,h,m,v=Le.get(e);if(v)for(n.handler&&(i=n,n=i.handler,o=i.selector),o&&ve.find.matchesSelector(Je,o),n.guid||(n.guid=ve.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return"undefined"!=typeof ve&&ve.event.triggered!==t.type?ve.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Fe)||[""],c=t.length;c--;)s=tt.exec(t[c])||[],d=m=s[1],h=(s[2]||"").split(".").sort(),d&&(f=ve.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=ve.event.special[d]||{},l=ve.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&ve.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),ve.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,c,l,f,p,d,h,m,v=Le.hasData(e)&&Le.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Fe)||[""],c=t.length;c--;)if(s=tt.exec(t[c])||[],d=m=s[1],h=(s[2]||"").split(".").sort(),d){for(f=ve.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!o&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,v.handle)!==!1||ve.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ve.event.remove(e,d+t[c],n,r,!0);ve.isEmptyObject(u)&&Le.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=ve.event.fix(e),u=new Array(arguments.length),c=(Le.get(this,"events")||{})[s.type]||[],l=ve.event.special[s.type]||{};for(u[0]=s,t=1;t-1:ve.find(o,this,null,[u]).length),r[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s\x20\t\r\n\f]*)[^>]*)\/>/gi,rt=/\s*$/g;ve.extend({htmlPrefilter:function(e){return e.replace(nt,"<$1>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=ve.contains(e.ownerDocument,e);if(!(he.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ve.isXMLDoc(e)))for(a=_(s),i=_(e),r=0,o=i.length;r0&&w(a,!u&&_(e,"script")),s},cleanData:function(e){for(var t,n,r,o=ve.event.special,i=0;void 0!==(n=e[i]);i++)if(je(n)){if(t=n[Le.expando]){if(t.events)for(r in t.events)o[r]?ve.event.remove(n,r):ve.removeEvent(n,r,t.handle);n[Le.expando]=void 0}n[De.expando]&&(n[De.expando]=void 0)}}}),ve.fn.extend({detach:function(e){return I(this,e,!0)},remove:function(e){return I(this,e)},text:function(e){return Re(this,function(e){return void 0===e?ve.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return F(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=P(this,e);t.appendChild(e)}})},prepend:function(){return F(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=P(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return F(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return F(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ve.cleanData(_(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ve.clone(this,e,t)})},html:function(e){return Re(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!rt.test(e)&&!Xe[(Ke.exec(e)||["",""])[1].toLowerCase()]){e=ve.htmlPrefilter(e);try{for(;n1)}}),ve.Tween=B,B.prototype={constructor:B,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||ve.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(ve.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=ve.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ve.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ve.fx.step[e.prop]?ve.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ve.cssProps[e.prop]]&&!ve.cssHooks[e.prop]?e.elem[e.prop]=e.now:ve.style(e.elem,e.prop,e.now+e.unit)}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ve.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ve.fx=B.prototype.init,ve.fx.step={};var mt,vt,yt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;ve.Animation=ve.extend(G,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,He.exec(t),n),n}]},tweener:function(e,t){ve.isFunction(e)?(t=e,e=["*"]):e=e.match(Fe);for(var n,r=0,o=e.length;r1)},removeAttr:function(e){return this.each(function(){ve.removeAttr(this,e)})}}),ve.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"==typeof e.getAttribute?ve.prop(e,t,n):(1===i&&ve.isXMLDoc(e)||(o=ve.attrHooks[t.toLowerCase()]||(ve.expr.match.bool.test(t)?bt:void 0)),void 0!==n?null===n?void ve.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:(r=ve.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!he.radioValue&&"radio"===t&&ve.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(Fe);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),bt={set:function(e,t,n){return t===!1?ve.removeAttr(e,n):e.setAttribute(n,n),n}},ve.each(ve.expr.match.bool.source.match(/\w+/g),function(e,t){var n=_t[t]||ve.find.attr;_t[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=_t[a],_t[a]=o,o=null!=n(e,t,r)?a:null,_t[a]=i),o}});var wt=/^(?:input|select|textarea|button)$/i,Et=/^(?:a|area)$/i;ve.fn.extend({prop:function(e,t){return Re(this,ve.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ve.propFix[e]||e]})}}),ve.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&ve.isXMLDoc(e)||(t=ve.propFix[t]||t,o=ve.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ve.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),he.optSelected||(ve.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ve.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ve.propFix[this.toLowerCase()]=this});var xt=/[\t\r\n\f]/g;ve.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(ve.isFunction(e))return this.each(function(t){ve(this).addClass(e.call(this,t,K(this)))});if("string"==typeof e&&e)for(t=e.match(Fe)||[];n=this[u++];)if(o=K(n),r=1===n.nodeType&&(" "+o+" ").replace(xt," ")){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=ve.trim(r),o!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(ve.isFunction(e))return this.each(function(t){ve(this).removeClass(e.call(this,t,K(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Fe)||[];n=this[u++];)if(o=K(n),r=1===n.nodeType&&(" "+o+" ").replace(xt," ")){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");s=ve.trim(r),o!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ve.isFunction(e)?this.each(function(n){ve(this).toggleClass(e.call(this,n,K(this),t),t)}):this.each(function(){var t,r,o,i;if("string"===n)for(r=0,o=ve(this),i=e.match(Fe)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||(t=K(this),t&&Le.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Le.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+K(n)+" ").replace(xt," ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g,St=/[\x20\t\r\n\f]+/g;ve.fn.extend({val:function(e){var t,n,r,o=this[0];{if(arguments.length)return r=ve.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=r?e.call(this,n,ve(this).val()):e,null==o?o="":"number"==typeof o?o+="":ve.isArray(o)&&(o=ve.map(o,function(e){return null==e?"":e+""})),t=ve.valHooks[this.type]||ve.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))});if(o)return t=ve.valHooks[o.type]||ve.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(Tt,""):null==n?"":n)}}}),ve.extend({valHooks:{option:{get:function(e){var t=ve.find.attr(e,"value");return null!=t?t:ve.trim(ve.text(e)).replace(St," ")}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type,a=i?null:[],s=i?o+1:r.length,u=o<0?s:i?o:0;u-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),ve.each(["radio","checkbox"],function(){ve.valHooks[this]={set:function(e,t){if(ve.isArray(t))return e.checked=ve.inArray(ve(e).val(),t)>-1}},he.checkOn||(ve.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Ot=/^(?:focusinfocus|focusoutblur)$/;ve.extend(ve.event,{trigger:function(e,t,r,o){var i,a,s,u,c,l,f,p=[r||re],d=fe.call(e,"type")?e.type:e,h=fe.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||re,3!==r.nodeType&&8!==r.nodeType&&!Ot.test(d+ve.event.triggered)&&(d.indexOf(".")>-1&&(h=d.split("."),d=h.shift(),h.sort()),c=d.indexOf(":")<0&&"on"+d,e=e[ve.expando]?e:new ve.Event(d,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:ve.makeArray(t,[e]),f=ve.event.special[d]||{},o||!f.trigger||f.trigger.apply(r,t)!==!1)){if(!o&&!f.noBubble&&!ve.isWindow(r)){for(u=f.delegateType||d,Ot.test(u+d)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||re)&&p.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=p[i++])&&!e.isPropagationStopped();)e.type=i>1?u:f.bindType||d,l=(Le.get(a,"events")||{})[e.type]&&Le.get(a,"handle"),l&&l.apply(a,t),l=c&&a[c],l&&l.apply&&je(a)&&(e.result=l.apply(a,t),e.result===!1&&e.preventDefault());return e.type=d,o||e.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),t)!==!1||!je(r)||c&&ve.isFunction(r[d])&&!ve.isWindow(r)&&(s=r[c],s&&(r[c]=null),ve.event.triggered=d,r[d](),ve.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=ve.extend(new ve.Event,n,{type:e,isSimulated:!0});ve.event.trigger(r,null,t)}}),ve.fn.extend({trigger:function(e,t){return this.each(function(){ve.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ve.event.trigger(e,t,n,!0)}}),ve.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ve.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ve.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.focusin="onfocusin"in n,he.focusin||ve.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ve.event.simulate(t,e.target,ve.event.fix(e))};ve.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Le.access(r,t);o||r.addEventListener(e,n,!0),Le.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Le.access(r,t)-1;o?Le.access(r,t,o):(r.removeEventListener(e,n,!0),Le.remove(r,t))}}});var Pt=n.location,Ct=ve.now(),At=/\?/;ve.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ve.error("Invalid XML: "+e),t};var kt=/\[\]$/,Mt=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;ve.param=function(e,t){var n,r=[],o=function(e,t){var n=ve.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(ve.isArray(e)||e.jquery&&!ve.isPlainObject(e))ve.each(e,function(){o(this.name,this.value)});else for(n in e)Y(n,e[n],t,o);return r.join("&")},ve.fn.extend({serialize:function(){return ve.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ve.prop(this,"elements");return e?ve.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ve(this).is(":disabled")&&It.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!Ge.test(e))}).map(function(e,t){var n=ve(this).val();return null==n?null:ve.isArray(n)?ve.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}});var Nt=/%20/g,Rt=/#.*$/,jt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ut=/^(?:GET|HEAD)$/,Bt=/^\/\//,qt={},Ht={},Wt="*/".concat("*"),zt=re.createElement("a");zt.href=Pt.href,ve.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:Dt.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ve.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?J(J(e,ve.ajaxSettings),t):J(ve.ajaxSettings,e)},ajaxPrefilter:X(qt),ajaxTransport:X(Ht),ajax:function(e,t){function r(e,t,r,s){var c,p,d,_,w,E=t;l||(l=!0,u&&n.clearTimeout(u),o=void 0,a=s||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,r&&(_=Z(h,x,r)),_=ee(h,_,x,c),c?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ve.lastModified[i]=w),w=x.getResponseHeader("etag"),w&&(ve.etag[i]=w)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=_.state,p=_.data,d=_.error,c=!d)):(d=E,!e&&E||(E="error",e<0&&(e=0))),x.status=e,x.statusText=(t||E)+"",c?y.resolveWith(m,[p,E,x]):y.rejectWith(m,[x,E,d]),x.statusCode(b),b=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?p:d]),g.fireWith(m,[x,E]),f&&(v.trigger("ajaxComplete",[x,h]),--ve.active||ve.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,i,a,s,u,c,l,f,p,d,h=ve.ajaxSetup({},t),m=h.context||h,v=h.context&&(m.nodeType||m.jquery)?ve(m):ve.event,y=ve.Deferred(),g=ve.Callbacks("once memory"),b=h.statusCode||{},_={},w={},E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Lt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)x.always(e[x.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return o&&o.abort(t),r(0,t),this}};if(y.promise(x),h.url=((e||h.url||Pt.href)+"").replace(Bt,Pt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Fe)||[""],null==h.crossDomain){c=re.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=zt.protocol+"//"+zt.host!=c.protocol+"//"+c.host}catch(T){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ve.param(h.data,h.traditional)),Q(qt,h,t,x),l)return x;f=ve.event&&h.global,f&&0===ve.active++&&ve.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ut.test(h.type),i=h.url.replace(Rt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Nt,"+")):(d=h.url.slice(i.length),h.data&&(i+=(At.test(i)?"&":"?")+h.data,delete h.data),h.cache===!1&&(i=i.replace(jt,""),d=(At.test(i)?"&":"?")+"_="+Ct++ +d),h.url=i+d),h.ifModified&&(ve.lastModified[i]&&x.setRequestHeader("If-Modified-Since",ve.lastModified[i]),ve.etag[i]&&x.setRequestHeader("If-None-Match",ve.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Wt+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)x.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(m,x,h)===!1||l))return x.abort();if(E="abort",g.add(h.complete),x.done(h.success),x.fail(h.error),o=Q(Ht,h,t,x)){if(x.readyState=1,f&&v.trigger("ajaxSend",[x,h]),l)return x;h.async&&h.timeout>0&&(u=n.setTimeout(function(){x.abort("timeout")},h.timeout));try{l=!1,o.send(_,r)}catch(T){if(l)throw T;r(-1,T)}}else r(-1,"No Transport");return x},getJSON:function(e,t,n){return ve.get(e,t,n,"json")},getScript:function(e,t){return ve.get(e,void 0,t,"script")}}),ve.each(["get","post"],function(e,t){ve[t]=function(e,n,r,o){return ve.isFunction(n)&&(o=o||r,r=n,n=void 0),ve.ajax(ve.extend({url:e,type:t,dataType:o,data:n,success:r},ve.isPlainObject(e)&&e))}}),ve._evalUrl=function(e){return ve.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},ve.fn.extend({wrapAll:function(e){var t;return this[0]&&(ve.isFunction(e)&&(e=e.call(this[0])),t=ve(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ve.isFunction(e)?this.each(function(t){ve(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ve(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ve.isFunction(e);return this.each(function(n){ve(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ve(this).replaceWith(this.childNodes)}),this}}),ve.expr.pseudos.hidden=function(e){return!ve.expr.pseudos.visible(e)},ve.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ve.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Vt=ve.ajaxSettings.xhr();he.cors=!!Vt&&"withCredentials"in Vt,he.ajax=Vt=!!Vt,ve.ajaxTransport(function(e){var t,r;if(he.cors||Vt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(a in o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i($t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}}),ve.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ve.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ve.globalEval(e),e}}}),ve.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ve.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,o){t=ve("