Full Site Editing - Version 3.41991

Version Description

Download this release

Release Info

Developer danielpost
Plugin Icon wp plugin Full Site Editing
Version 3.41991
Comparing to
See all releases

Code changes from version 3.41843 to 3.41991

block-inserter-modifications/dist/contextual-tips.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"contextual-tips.css","mappings":"AAAA,gBACC","sources":["webpack://EditingToolkit/./editing-toolkit-plugin/block-inserter-modifications/contextual-tips/style.scss"],"sourcesContent":[".contextual-tip {\n\tmargin: 16px;\n}\n"],"names":[],"sourceRoot":""}
 
block-inserter-modifications/dist/contextual-tips.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"contextual-tips.min.js","mappings":"6HAsCA,SAAeA,EAAAA,EAAAA,UACdC,EAAAA,EAAAA,aAAcC,IACN,CACNC,cAAiBC,GAAUF,EAAQ,QAASG,QAAS,SAAUD,OAHlE,EAhCA,YAAwE,IAAhD,WAAEE,EAAF,OAAcC,GAAS,EAAvB,cAA8BJ,GAAkB,EACvE,IAAOG,EACN,OAAO,KAGR,IAAOE,EAAAA,EAAAA,OACN,OAAO,KAGR,MAAMC,GAAuBC,EAAAA,EAAAA,SAAQC,EAAAA,EAAAA,WAAWL,IAAeM,QAAS,MAAO,IAEzEC,GAAYC,EAAAA,EAAAA,QACjBN,EAAAA,GACA,QAAE,SAAEO,EAAF,WAAYC,GAAd,SACCb,EAAea,KACfF,EAAAA,EAAAA,QAAQ,IAAK,IAAIG,IAAKF,KAAgBG,IAAaC,EAAAA,EAAAA,UAAUV,EAAsBS,KACjFE,UAGJ,IAAOP,EAAUO,OAChB,OAAO,KAGR,MAAMC,EAAQd,EAASe,KAAKC,MAAOD,KAAKf,SAAWM,EAAUO,QAAW,EAExE,OACC,0BAAKI,UAAU,mBACd,mBAAC,EAAAC,IAAD,MAAOC,EAAAA,EAAAA,KAAKb,EAAW,CAAEQ,EAAO,sB,2EC7BnC,SAASM,EAAmBC,EAAMC,EAAYC,GAC7C,YAAyC,IAA7BC,EAAA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GCLRN,EAAoBQ,EAAI,CAACV,EAASW,KACjC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAEb,EAASY,IAC5EE,OAAOC,eAAef,EAASY,EAAK,CAAEI,YAAY,EAAMnD,IAAK8C,EAAWC,MCJ3EV,EAAoBW,EAAI,CAACI,EAAKC,IAAUJ,OAAOK,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFhB,EAAoBoB,EAAKtB,IACH,oBAAXuB,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAef,EAASuB,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAef,EAAS,aAAc,CAAEyB,OAAO,K,8ECQvD,MAAMC,OACsC,IAApCC,EAAAA,gCACJA,EAAAA,gCACAC,EAAAA,oCAEEC,EAAiB,WACtB,MAAQC,EAAsBC,IAAmBC,EAAAA,EAAAA,UAAU,IAErDC,GAA0BC,EAAAA,EAAAA,UAAUH,EAAgB,KAE1D,OACC,mBAACL,EAAD,MACG,IAAiC,IAA/B,YAAES,EAAF,SAAeC,GAAgB,EAClC,OAAKA,IAAcD,EACX,MAGHL,IAAyBK,GAC7BF,EAAyBE,IAGnB,mBAAC,IAAD,CAAe1F,WAAa0F,cAOD,IAA1BT,IACXW,EAAAA,EAAAA,gBAAgB,iCAAkC,CACjDC,OAAM,KACE,mBAACT,EAAD,S","sources":["webpack://EditingToolkit/./editing-toolkit-plugin/block-inserter-modifications/contextual-tips/contextual-tip.js","webpack://EditingToolkit/./editing-toolkit-plugin/block-inserter-modifications/contextual-tips/list.js","webpack://EditingToolkit/./editing-toolkit-plugin/block-inserter-modifications/contextual-tips/tip-link.js","webpack://EditingToolkit/./editing-toolkit-plugin/block-inserter-modifications/contextual-tips/utils.js","webpack://EditingToolkit/external window \"lodash\"","webpack://EditingToolkit/external window [\"wp\",\"blockEditor\"]","webpack://EditingToolkit/external window [\"wp\",\"components\"]","webpack://EditingToolkit/external window [\"wp\",\"compose\"]","webpack://EditingToolkit/external window [\"wp\",\"data\"]","webpack://EditingToolkit/external window [\"wp\",\"element\"]","webpack://EditingToolkit/external window [\"wp\",\"i18n\"]","webpack://EditingToolkit/external window [\"wp\",\"plugins\"]","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object","webpack://EditingToolkit/./editing-toolkit-plugin/block-inserter-modifications/contextual-tips.js"],"sourcesContent":["import { Tip } from '@wordpress/components';\nimport { compose } from '@wordpress/compose';\nimport { withSelect } from '@wordpress/data';\nimport { get, filter, deburr, lowerCase, includes } from 'lodash';\nimport tipsList from './list';\n\nfunction ContextualTip( { searchTerm, random = false, canUserCreate } ) {\n\tif ( ! searchTerm ) {\n\t\treturn null;\n\t}\n\n\tif ( ! tipsList.length ) {\n\t\treturn null;\n\t}\n\n\tconst normalizedSearchTerm = deburr( lowerCase( searchTerm ) ).replace( /^\\//, '' );\n\n\tconst foundTips = filter(\n\t\ttipsList,\n\t\t( { keywords, permission } ) =>\n\t\t\tcanUserCreate( permission ) &&\n\t\t\tfilter( [ ...new Set( keywords ) ], ( keyword ) => includes( normalizedSearchTerm, keyword ) )\n\t\t\t\t.length\n\t);\n\n\tif ( ! foundTips.length ) {\n\t\treturn null;\n\t}\n\n\tconst index = random ? Math.floor( Math.random() * foundTips.length ) : 0;\n\n\treturn (\n\t\t<div className=\"contextual-tip\">\n\t\t\t<Tip>{ get( foundTips, [ index, 'description' ] ) }</Tip>\n\t\t</div>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => {\n\t\treturn {\n\t\t\tcanUserCreate: ( type ) => select( 'core' ).canUser( 'create', type ),\n\t\t};\n\t} )\n)( ContextualTip );\n","import { createInterpolateElement } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport TipLink from './tip-link';\n\nfunction getTipDescription( text, conversion, textFallback ) {\n\tif ( typeof createInterpolateElement !== 'undefined' ) {\n\t\treturn createInterpolateElement( text, conversion );\n\t}\n\n\treturn textFallback;\n}\n\nconst tips = [\n\t{\n\t\tcontext: 'theme',\n\t\tkeywords: [ 'theme', __( 'theme', 'full-site-editing' ) ],\n\t\tdescription: getTipDescription(\n\t\t\t__(\n\t\t\t\t'You can visit the <a>theme directory</a> to select a different design for your site.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\t{\n\t\t\t\ta: <TipLink section=\"themes\" />,\n\t\t\t},\n\t\t\t__(\n\t\t\t\t'You can visit the theme directory to select a different design for your site.',\n\t\t\t\t'full-site-editing'\n\t\t\t)\n\t\t),\n\t\tpermission: 'settings',\n\t},\n\t{\n\t\tcontext: 'css',\n\t\tkeywords: [\n\t\t\t'css',\n\t\t\t__( 'css', 'full-site-editing' ),\n\t\t\t'style',\n\t\t\t__( 'style', 'full-site-editing' ),\n\t\t],\n\t\tdescription: getTipDescription(\n\t\t\t__(\n\t\t\t\t'You can visit the the <a>Customizer</a> to edit the CSS on your site.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\t{\n\t\t\t\ta: <TipLink section=\"customizer\" subsection=\"custom_css\" />,\n\t\t\t},\n\t\t\t__( 'You can visit the the Customizer to edit the CSS on your site.', 'full-site-editing' )\n\t\t),\n\t\tpermission: 'settings',\n\t},\n\t{\n\t\tcontext: 'plugin',\n\t\tkeywords: [ 'plugin', __( 'plugin', 'full-site-editing' ) ],\n\t\tdescription: getTipDescription(\n\t\t\t__(\n\t\t\t\t'You can visit the <a>plugin directory</a> to get started with installing new plugins.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\t{\n\t\t\t\ta: <TipLink section=\"plugins\" />,\n\t\t\t},\n\t\t\t__(\n\t\t\t\t'You can visit the plugin directory to get started with installing new plugins.',\n\t\t\t\t'full-site-editing'\n\t\t\t)\n\t\t),\n\t\tpermission: 'settings',\n\t},\n\t{\n\t\tcontext: 'header',\n\t\tkeywords: [ 'header', __( 'header', 'full-site-editing' ) ],\n\t\tdescription: getTipDescription(\n\t\t\t__(\n\t\t\t\t'You can visit the the <a>Customizer</a> to edit your logo and site title.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\t{\n\t\t\t\ta: <TipLink section=\"customizer\" subsection=\"title_tagline\" />,\n\t\t\t},\n\t\t\t__(\n\t\t\t\t'You can visit the the Customizer to edit your logo and site title.',\n\t\t\t\t'full-site-editing'\n\t\t\t)\n\t\t),\n\t\tpermission: 'settings',\n\t},\n\t{\n\t\tcontext: 'color',\n\t\tkeywords: [ 'color', __( 'color', 'full-site-editing' ) ],\n\t\tdescription: getTipDescription(\n\t\t\t__(\n\t\t\t\t'You can visit the the <a>Customizer</a> to edit the colors on your site.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\t{\n\t\t\t\ta: <TipLink section=\"customizer\" subsection=\"colors\" />,\n\t\t\t},\n\t\t\t__( 'You can visit the the Customizer to edit the colors on your site.', 'full-site-editing' )\n\t\t),\n\t\tpermission: 'settings',\n\t},\n];\n\nexport default tips;\n","import { select } from '@wordpress/data';\nimport { inIframe, isSimpleSite } from './utils';\n\nconst isEditorIFramed = inIframe();\n\nexport default function ( { section, children, subsection } ) {\n\tconst { hostname } = window.location;\n\tconst editorSelector = select( 'core/editor' );\n\tconst postId = editorSelector.getCurrentPostId();\n\tconst postType = editorSelector.getCurrentPostType();\n\tconst returnLink =\n\t\tisEditorIFramed && ! isSimpleSite\n\t\t\t? '&' +\n\t\t\t encodeURIComponent( `return=https://wordpress.com/${ postType }/${ hostname }/${ postId }` )\n\t\t\t: '';\n\tconst autofocus = `autofocus[section]=${ subsection }`;\n\n\tlet href = '#';\n\n\tswitch ( section ) {\n\t\tcase 'themes':\n\t\t\thref = isEditorIFramed ? `https://wordpress.com/themes/${ hostname }` : './themes.php';\n\t\t\tbreak;\n\n\t\tcase 'plugins':\n\t\t\thref =\n\t\t\t\tisEditorIFramed || isSimpleSite\n\t\t\t\t\t? `https://wordpress.com/plugins/${ hostname }`\n\t\t\t\t\t: './plugin-install.php';\n\t\t\tbreak;\n\n\t\tcase 'customizer':\n\t\t\thref =\n\t\t\t\tisEditorIFramed && isSimpleSite\n\t\t\t\t\t? `https://wordpress.com/customize/${ hostname }?${ autofocus }`\n\t\t\t\t\t: `./customize.php?${ autofocus }${ returnLink }`;\n\t\t\tbreak;\n\t}\n\n\treturn (\n\t\t<a href={ href } target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t{ children }\n\t\t</a>\n\t);\n}\n","/**\n * Detect if the editor is already iFramed.\n *\n * @returns {boolean} `True` is the editor is iFramed. Otherwise, `False`.\n */\nexport const inIframe = () => {\n\ttry {\n\t\treturn window.self !== window.top;\n\t} catch ( e ) {\n\t\treturn true;\n\t}\n};\n\nexport const isSimpleSite = !! (\n\twindow &&\n\twindow._currentSiteType &&\n\twindow._currentSiteType === 'simple'\n);\n","module.exports = window[\"lodash\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"plugins\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import {\n\t__unstableInserterMenuExtension,\n\t__experimentalInserterMenuExtension,\n} from '@wordpress/block-editor';\nimport { useState } from '@wordpress/element';\nimport { registerPlugin } from '@wordpress/plugins';\nimport { debounce } from 'lodash';\nimport ContextualTip from './contextual-tips/contextual-tip';\n\nimport './contextual-tips/style.scss';\n\n// InserterMenuExtension has been made unstable in this PR: https://github.com/WordPress/gutenberg/pull/31417 / Gutenberg v10.7.0-rc.1.\n// We need to support both symbols until we're sure Gutenberg < v10.7.x is not used anymore in WPCOM.\nconst InserterMenuExtension =\n\ttypeof __unstableInserterMenuExtension !== 'undefined'\n\t\t? __unstableInserterMenuExtension\n\t\t: __experimentalInserterMenuExtension;\n\nconst ContextualTips = function () {\n\tconst [ debouncedFilterValue, setFilterValue ] = useState( '' );\n\n\tconst debouncedSetFilterValue = debounce( setFilterValue, 400 );\n\n\treturn (\n\t\t<InserterMenuExtension>\n\t\t\t{ ( { filterValue, hasItems } ) => {\n\t\t\t\tif ( hasItems || ! filterValue ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\tif ( debouncedFilterValue !== filterValue ) {\n\t\t\t\t\tdebouncedSetFilterValue( filterValue );\n\t\t\t\t}\n\n\t\t\t\treturn <ContextualTip searchTerm={ filterValue } />;\n\t\t\t} }\n\t\t</InserterMenuExtension>\n\t);\n};\n\n// Check if the experimental slot is available before to register plugin.\nif ( typeof InserterMenuExtension !== 'undefined' ) {\n\tregisterPlugin( 'block-inserter-contextual-tips', {\n\t\trender() {\n\t\t\treturn <ContextualTips />;\n\t\t},\n\t} );\n}\n"],"names":["compose","withSelect","select","canUserCreate","type","canUser","searchTerm","random","tipsList","normalizedSearchTerm","deburr","lowerCase","replace","foundTips","filter","keywords","permission","Set","keyword","includes","length","index","Math","floor","className","Tip","get","getTipDescription","text","conversion","textFallback","createInterpolateElement","context","__","description","a","section","subsection","isEditorIFramed","inIframe","children","hostname","window","location","editorSelector","postId","getCurrentPostId","postType","getCurrentPostType","returnLink","isSimpleSite","encodeURIComponent","autofocus","href","target","rel","self","top","e","_currentSiteType","module","exports","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","definition","key","o","Object","defineProperty","enumerable","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","InserterMenuExtension","__unstableInserterMenuExtension","__experimentalInserterMenuExtension","ContextualTips","debouncedFilterValue","setFilterValue","useState","debouncedSetFilterValue","debounce","filterValue","hasItems","registerPlugin","render"],"sourceRoot":""}
 
build_meta.txt CHANGED
@@ -1,3 +1,3 @@
1
- commit_hash=e0bc3b64ba5090e60449df8376d26d644983e919
2
- commit_url=https://github.com/Automattic/wp-calypso/commit/e0bc3b64ba5090e60449df8376d26d644983e919
3
- build_number=3.41843
1
+ commit_hash=e0b142bba0883e3b096955a8ce8bb208f319c4aa
2
+ commit_url=https://github.com/Automattic/wp-calypso/commit/e0b142bba0883e3b096955a8ce8bb208f319c4aa
3
+ build_number=3.41991
common/dist/common.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.css","mappings":"AAGC,4CACC,WAKD,mEACC,eASF,mCACC,oBASD,oEAWE,sHAhBD,kCACA,kCACA","sources":["webpack://EditingToolkit/./editing-toolkit-plugin/common/index.scss"],"sourcesContent":["body.hide-homepage-title {\n\t// Allow homepage title to be edited even when hidden\n\t// Lighter color to signify not visible from front page\n\t.editor-post-title {\n\t\topacity: 0.4;\n\t}\n}\n\nbody.slider-width-workaround {\n\t.interface-interface-skeleton__editor {\n\t\tmax-width: 100%;\n\t}\n}\n\n/*\n * Override bottom padding on post-publish footer\n * to account for inline help FAB\n * See https://github.com/Automattic/wp-calypso/issues/55345\n */\n.editor-post-publish-panel__footer {\n\tpadding-bottom: 80px;\n}\n\n@mixin font-smoothing-antialiased {\n\ttext-rendering: optimizeLegibility;\n\t-moz-osx-font-smoothing: grayscale;\n\t-webkit-font-smoothing: antialiased;\n}\n\n@media ( -webkit-min-device-pixel-ratio: 1.25 ), ( min-resolution: 120dpi ) {\n\tbody.font-smoothing-antialiased {\n\t\t@include font-smoothing-antialiased;\n\n\t\t// Overriding an existing core WP rule so the ID selector is necessary\n\t\t// stylelint-disable-next-line selector-max-id\n\t\t#wpwrap {\n\t\t\t@include font-smoothing-antialiased;\n\t\t}\n\n\t\t// stylelint-disable-next-line selector-max-id\n\t\t#wpadminbar * {\n\t\t\t@include font-smoothing-antialiased;\n\t\t}\n\t}\n}\n"],"names":[],"sourceRoot":""}
 
common/dist/common.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.min.js","mappings":"uCACIA,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,IAOV,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,QCpBfJ,EAAoBO,EAAKH,IACH,oBAAXI,QAA0BA,OAAOC,aAC1CC,OAAOC,eAAeP,EAASI,OAAOC,YAAa,CAAEG,MAAO,WAE7DF,OAAOC,eAAeP,EAAS,aAAc,CAAEQ,OAAO,K","sources":["webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/make namespace object"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","r","Symbol","toStringTag","Object","defineProperty","value"],"sourceRoot":""}
 
common/dist/data-stores.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-stores.min.js","mappings":"iFAsBe,SAASA,EAASC,GAChC,IAAIC,GAAQ,OAASD,GAErB,OAAO,SAAUE,GAChB,OAAO,OAAUD,EAAOC,M,4CCrB1B,IAAIC,EAAY,CACf,IAAK,SAAUC,GACd,OAASA,GAEV,IAAK,SAAUA,EAAGC,GACjB,OAAOD,EAAIC,GAEZ,IAAK,SAAUD,EAAGC,GACjB,OAAOD,EAAIC,GAEZ,IAAK,SAAUD,EAAGC,GACjB,OAAOD,EAAIC,GAEZ,IAAK,SAAUD,EAAGC,GACjB,OAAOD,EAAIC,GAEZ,IAAK,SAAUD,EAAGC,GACjB,OAAOD,EAAIC,GAEZ,IAAK,SAAUD,EAAGC,GACjB,OAAOD,EAAIC,GAEZ,KAAM,SAAUD,EAAGC,GAClB,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AAIywD,EAAS,CACX,QAAS,iDACT,QAAS,gCACT,QAAS,wBACT,QAAS,2BACT,QAAS,kCACT,QAAS,6BACT,QAAS,2BACT,QAAS,2BACT,QAAS,uBACT,QAAS,4CACT,QAAS,iCACT,QAAS,0BACT,QAAS,0BACT,QAAS,yBACT,QAAS,oCACT,QAAS,wDACT,QAAS,mCACT,QAAS,2BACT,QAAS,kCACT,QAAS,uBACT,QAAS,iDACT,QAAS,6CACT,QAAS,sEACT,QAAS,4BACT,QAAS,4BACT,QAAS,0BACT,QAAS,wBACT,QAAS,oBACT,QAAS,oBACT,QAAS,uBACT,QAAS,kDACT,QAAS,4CACT,QAAS,uCACT,QAAS,6BACT,QAAS,0BACT,QAAS,yBACT,QAAS,8CACT,QAAS,qBACT,QAAS,0BACT,QAAS,yBACT,QAAS,iEACT,QAAS,oBACT,QAAS,wBACT,QAAS,sBACT,QAAS,kDACT,QAAS,yBACT,QAAS,wBACT,QAAS,0FACT,QAAS,mBACT,QAAS,yBACT,QAAS,oBACT,QAAS,6BACT,QAAS,wBACT,QAAS,+CACT,QAAS,6BACT,QAAS,uBACT,QAAS,wBACT,QAAS,wBACT,QAAS,kCACT,QAAS,uBACT,QAAS,mBACT,QAAS,6BACT,QAAS,oBACT,QAAS,2BACT,QAAS,2BACT,QAAS,6CACT,QAAS,sDACT,QAAS,uDACT,QAAS,8BACT,QAAS,sCACT,QAAS,uBACT,QAAS,8BACT,QAAS,8BACT,QAAS,8BACT,QAAS,8BACT,QAAS,iDACT,QAAS,2BACT,QAAS,qGACT,QAAS,+BACT,QAAS,qDACT,QAAS,wDACT,QAAS,yBACT,QAAS,oBACT,QAAS,sCACT,QAAS,kEACT,QAAS,mBACT,QAAS,wEACT,QAAS,sBACT,QAAS,wBACT,QAAS,qBACT,QAAS,gDACT,QAAS,sBACT,QAAS,2CACT,QAAS,+IACT,QAAS,0BACT,QAAS,yDACT,QAAS,oBACT,QAAS,sEACT,QAAS,iDACT,QAAS,yBACT,QAAS,2BACT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,IAAO5iD,EAAiB,QACxB,IAAM,EAEP,OADAwtE,EAAoBhsE,EAAEosE,EAAQ,CAAE1wE,EAAG0wE,IAC5BA,GCLRJ,EAAoBhsE,EAAI,CAACvB,EAAS4tE,KACjC,IAAI,IAAI1kE,KAAO0kE,EACXL,EAAoBrpD,EAAE0pD,EAAY1kE,KAASqkE,EAAoBrpD,EAAElkB,EAASkJ,IAC5E1F,OAAOiE,eAAezH,EAASkJ,EAAK,CAAExB,YAAY,EAAMC,IAAKimE,EAAW1kE,MCJ3EqkE,EAAoBrpD,EAAI,CAAChU,EAAKiU,IAAU3gB,OAAOF,UAAUpF,eAAewC,KAAKwP,EAAKiU,GCClFopD,EAAoB97D,EAAKzR,IACH,oBAAXsM,QAA0BA,OAAO2M,aAC1CzV,OAAOiE,eAAezH,EAASsM,OAAO2M,YAAa,CAAEtb,MAAO,WAE7D6F,OAAOiE,eAAezH,EAAS,aAAc,CAAErC,OAAO,K","sources":["webpack://EditingToolkit/../../node_modules/@tannin/compile/index.js","webpack://EditingToolkit/../../node_modules/@tannin/evaluate/index.js","webpack://EditingToolkit/../../node_modules/@tannin/plural-forms/index.js","webpack://EditingToolkit/../../node_modules/@tannin/postfix/index.js","webpack://EditingToolkit/../../node_modules/@tannin/sprintf/index.js","webpack://EditingToolkit/../../node_modules/builtin-status-codes/browser.js","webpack://EditingToolkit/../../node_modules/call-bind/callBound.js","webpack://EditingToolkit/../../node_modules/call-bind/index.js","webpack://EditingToolkit/../../node_modules/debug/node_modules/ms/index.js","webpack://EditingToolkit/../../node_modules/events/events.js","webpack://EditingToolkit/../../node_modules/fast-json-stable-stringify/index.js","webpack://EditingToolkit/../../node_modules/function-bind/implementation.js","webpack://EditingToolkit/../../node_modules/function-bind/index.js","webpack://EditingToolkit/../../node_modules/get-intrinsic/index.js","webpack://EditingToolkit/../../node_modules/has-symbols/index.js","webpack://EditingToolkit/../../node_modules/has-symbols/shams.js","webpack://EditingToolkit/../../node_modules/has/src/index.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/common.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/1.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/common.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/utils.js","webpack://EditingToolkit/../../node_modules/inherits/inherits_browser.js","webpack://EditingToolkit/../../node_modules/lru/index.js","webpack://EditingToolkit/../../node_modules/minimalistic-assert/index.js","webpack://EditingToolkit/../../node_modules/object-inspect/index.js","webpack://EditingToolkit/../../node_modules/progress-event/index.js","webpack://EditingToolkit/../../node_modules/qs/lib/formats.js","webpack://EditingToolkit/../../node_modules/qs/lib/index.js","webpack://EditingToolkit/../../node_modules/qs/lib/parse.js","webpack://EditingToolkit/../../node_modules/qs/lib/stringify.js","webpack://EditingToolkit/../../node_modules/qs/lib/utils.js","webpack://EditingToolkit/../../node_modules/side-channel/index.js","webpack://EditingToolkit/../../node_modules/tannin/index.js","webpack://EditingToolkit/./editing-toolkit-plugin/common/data-stores/domain-suggestions.ts","webpack://EditingToolkit/./editing-toolkit-plugin/common/data-stores/launch.ts","webpack://EditingToolkit/./editing-toolkit-plugin/common/data-stores/plans.ts","webpack://EditingToolkit/./editing-toolkit-plugin/common/data-stores/site.ts","webpack://EditingToolkit/./editing-toolkit-plugin/common/data-stores/wpcom-features.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/actions.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/constants.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/index.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/reducer.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/resolvers.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/selectors.ts","webpack://EditingToolkit/../../packages/data-stores/src/domain-suggestions/utils.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/actions.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/constants.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/data.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/index.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/persist.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/reducer.ts","webpack://EditingToolkit/../../packages/data-stores/src/launch/selectors.ts","webpack://EditingToolkit/../../packages/data-stores/src/persistence-config-factory/index.ts","webpack://EditingToolkit/../../packages/data-stores/src/plans/actions.ts","webpack://EditingToolkit/../../packages/data-stores/src/plans/constants.ts","webpack://EditingToolkit/../../packages/data-stores/src/plans/index.ts","webpack://EditingToolkit/../../packages/data-stores/src/plans/reducer.ts","webpack://EditingToolkit/../../packages/data-stores/src/plans/resolvers.ts","webpack://EditingToolkit/../../packages/data-stores/src/plans/selectors.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/actions.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/constants.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/index.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/persist.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/reducer.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/resolvers.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/selectors.ts","webpack://EditingToolkit/../../packages/data-stores/src/site/types.ts","webpack://EditingToolkit/../../packages/data-stores/src/wpcom-features/constants.tsx","webpack://EditingToolkit/../../packages/data-stores/src/wpcom-features/features-data.tsx","webpack://EditingToolkit/../../packages/data-stores/src/wpcom-features/index.ts","webpack://EditingToolkit/../../packages/data-stores/src/wpcom-features/reducer.ts","webpack://EditingToolkit/../../packages/data-stores/src/wpcom-features/selectors.ts","webpack://EditingToolkit/../../packages/data-stores/src/wpcom-request-controls/index.ts","webpack://EditingToolkit/../../packages/format-currency/src/currencies.ts","webpack://EditingToolkit/../../packages/format-currency/src/index.ts","webpack://EditingToolkit/../../packages/format-currency/src/number-format.ts","webpack://EditingToolkit/../../packages/i18n-calypso/src/default-i18n.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/i18n.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/index.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/number-format.js","webpack://EditingToolkit/../../packages/interpolate-components/src/index.js","webpack://EditingToolkit/../../packages/interpolate-components/src/tokenize.js","webpack://EditingToolkit/../../packages/wpcom-proxy-request/src/index.js","webpack://EditingToolkit/../../node_modules/debug/src/browser.js","webpack://EditingToolkit/../../node_modules/debug/src/common.js","webpack://EditingToolkit/../../node_modules/uppercamelcase/index.js","webpack://EditingToolkit/../../node_modules/uppercamelcase/node_modules/camelcase/index.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/regex.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/rng.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/stringify.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/v4.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/validate.js","webpack://EditingToolkit/../../node_modules/validator/index.js","webpack://EditingToolkit/../../node_modules/validator/lib/alpha.js","webpack://EditingToolkit/../../node_modules/validator/lib/blacklist.js","webpack://EditingToolkit/../../node_modules/validator/lib/contains.js","webpack://EditingToolkit/../../node_modules/validator/lib/equals.js","webpack://EditingToolkit/../../node_modules/validator/lib/escape.js","webpack://EditingToolkit/../../node_modules/validator/lib/isAfter.js","webpack://EditingToolkit/../../node_modules/validator/lib/isAlpha.js","webpack://EditingToolkit/../../node_modules/validator/lib/isAlphanumeric.js","webpack://EditingToolkit/../../node_modules/validator/lib/isAscii.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBIC.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBase32.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBase58.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBase64.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBefore.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBoolean.js","webpack://EditingToolkit/../../node_modules/validator/lib/isBtcAddress.js","webpack://EditingToolkit/../../node_modules/validator/lib/isByteLength.js","webpack://EditingToolkit/../../node_modules/validator/lib/isCreditCard.js","webpack://EditingToolkit/../../node_modules/validator/lib/isCurrency.js","webpack://EditingToolkit/../../node_modules/validator/lib/isDataURI.js","webpack://EditingToolkit/../../node_modules/validator/lib/isDate.js","webpack://EditingToolkit/../../node_modules/validator/lib/isDecimal.js","webpack://EditingToolkit/../../node_modules/validator/lib/isDivisibleBy.js","webpack://EditingToolkit/../../node_modules/validator/lib/isEAN.js","webpack://EditingToolkit/../../node_modules/validator/lib/isEmail.js","webpack://EditingToolkit/../../node_modules/validator/lib/isEmpty.js","webpack://EditingToolkit/../../node_modules/validator/lib/isEthereumAddress.js","webpack://EditingToolkit/../../node_modules/validator/lib/isFQDN.js","webpack://EditingToolkit/../../node_modules/validator/lib/isFloat.js","webpack://EditingToolkit/../../node_modules/validator/lib/isFullWidth.js","webpack://EditingToolkit/../../node_modules/validator/lib/isHSL.js","webpack://EditingToolkit/../../node_modules/validator/lib/isHalfWidth.js","webpack://EditingToolkit/../../node_modules/validator/lib/isHash.js","webpack://EditingToolkit/../../node_modules/validator/lib/isHexColor.js","webpack://EditingToolkit/../../node_modules/validator/lib/isHexadecimal.js","webpack://EditingToolkit/../../node_modules/validator/lib/isIBAN.js","webpack://EditingToolkit/../../node_modules/validator/lib/isIMEI.js","webpack://EditingToolkit/../../node_modules/validator/lib/isIP.js","webpack://EditingToolkit/../../node_modules/validator/lib/isIPRange.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISBN.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISIN.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISO31661Alpha2.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISO31661Alpha3.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISO8601.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISRC.js","webpack://EditingToolkit/../../node_modules/validator/lib/isISSN.js","webpack://EditingToolkit/../../node_modules/validator/lib/isIdentityCard.js","webpack://EditingToolkit/../../node_modules/validator/lib/isIn.js","webpack://EditingToolkit/../../node_modules/validator/lib/isInt.js","webpack://EditingToolkit/../../node_modules/validator/lib/isJSON.js","webpack://EditingToolkit/../../node_modules/validator/lib/isJWT.js","webpack://EditingToolkit/../../node_modules/validator/lib/isLatLong.js","webpack://EditingToolkit/../../node_modules/validator/lib/isLength.js","webpack://EditingToolkit/../../node_modules/validator/lib/isLocale.js","webpack://EditingToolkit/../../node_modules/validator/lib/isLowercase.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMACAddress.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMD5.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMagnetURI.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMimeType.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMobilePhone.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMongoId.js","webpack://EditingToolkit/../../node_modules/validator/lib/isMultibyte.js","webpack://EditingToolkit/../../node_modules/validator/lib/isNumeric.js","webpack://EditingToolkit/../../node_modules/validator/lib/isOctal.js","webpack://EditingToolkit/../../node_modules/validator/lib/isPassportNumber.js","webpack://EditingToolkit/../../node_modules/validator/lib/isPort.js","webpack://EditingToolkit/../../node_modules/validator/lib/isPostalCode.js","webpack://EditingToolkit/../../node_modules/validator/lib/isRFC3339.js","webpack://EditingToolkit/../../node_modules/validator/lib/isRgbColor.js","webpack://EditingToolkit/../../node_modules/validator/lib/isSemVer.js","webpack://EditingToolkit/../../node_modules/validator/lib/isSlug.js","webpack://EditingToolkit/../../node_modules/validator/lib/isStrongPassword.js","webpack://EditingToolkit/../../node_modules/validator/lib/isSurrogatePair.js","webpack://EditingToolkit/../../node_modules/validator/lib/isTaxID.js","webpack://EditingToolkit/../../node_modules/validator/lib/isURL.js","webpack://EditingToolkit/../../node_modules/validator/lib/isUUID.js","webpack://EditingToolkit/../../node_modules/validator/lib/isUppercase.js","webpack://EditingToolkit/../../node_modules/validator/lib/isVAT.js","webpack://EditingToolkit/../../node_modules/validator/lib/isVariableWidth.js","webpack://EditingToolkit/../../node_modules/validator/lib/isWhitelisted.js","webpack://EditingToolkit/../../node_modules/validator/lib/ltrim.js","webpack://EditingToolkit/../../node_modules/validator/lib/matches.js","webpack://EditingToolkit/../../node_modules/validator/lib/normalizeEmail.js","webpack://EditingToolkit/../../node_modules/validator/lib/rtrim.js","webpack://EditingToolkit/../../node_modules/validator/lib/stripLow.js","webpack://EditingToolkit/../../node_modules/validator/lib/toBoolean.js","webpack://EditingToolkit/../../node_modules/validator/lib/toDate.js","webpack://EditingToolkit/../../node_modules/validator/lib/toFloat.js","webpack://EditingToolkit/../../node_modules/validator/lib/toInt.js","webpack://EditingToolkit/../../node_modules/validator/lib/trim.js","webpack://EditingToolkit/../../node_modules/validator/lib/unescape.js","webpack://EditingToolkit/../../node_modules/validator/lib/util/algorithms.js","webpack://EditingToolkit/../../node_modules/validator/lib/util/assertString.js","webpack://EditingToolkit/../../node_modules/validator/lib/util/includes.js","webpack://EditingToolkit/../../node_modules/validator/lib/util/merge.js","webpack://EditingToolkit/../../node_modules/validator/lib/util/multilineRegex.js","webpack://EditingToolkit/../../node_modules/validator/lib/util/toString.js","webpack://EditingToolkit/../../node_modules/validator/lib/whitelist.js","webpack://EditingToolkit/../../node_modules/wp-error/index.js","webpack://EditingToolkit/external window \"React\"","webpack://EditingToolkit/external window [\"wp\",\"data\"]","webpack://EditingToolkit/external window [\"wp\",\"dataControls\"]","webpack://EditingToolkit/external window [\"wp\",\"deprecated\"]","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object"],"sourcesContent":["import postfix from '@tannin/postfix';\nimport evaluate from '@tannin/evaluate';\n\n/**\n * Given a C expression, returns a function which can be called to evaluate its\n * result.\n *\n * @example\n *\n * ```js\n * import compile from '@tannin/compile';\n *\n * const evaluate = compile( 'n > 1' );\n *\n * evaluate( { n: 2 } );\n * // ⇒ true\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {(variables?:{[variable:string]:*})=>*} Compiled evaluator.\n */\nexport default function compile( expression ) {\n\tvar terms = postfix( expression );\n\n\treturn function( variables ) {\n\t\treturn evaluate( terms, variables );\n\t};\n}\n","/**\n * Operator callback functions.\n *\n * @type {Object}\n */\nvar OPERATORS = {\n\t'!': function( a ) {\n\t\treturn ! a;\n\t},\n\t'*': function( a, b ) {\n\t\treturn a * b;\n\t},\n\t'/': function( a, b ) {\n\t\treturn a / b;\n\t},\n\t'%': function( a, b ) {\n\t\treturn a % b;\n\t},\n\t'+': function( a, b ) {\n\t\treturn a + b;\n\t},\n\t'-': function( a, b ) {\n\t\treturn a - b;\n\t},\n\t'<': function( a, b ) {\n\t\treturn a < b;\n\t},\n\t'<=': function( a, b ) {\n\t\treturn a <= b;\n\t},\n\t'>': function( a, b ) {\n\t\treturn a > b;\n\t},\n\t'>=': function( a, b ) {\n\t\treturn a >= b;\n\t},\n\t'==': function( a, b ) {\n\t\treturn a === b;\n\t},\n\t'!=': function( a, b ) {\n\t\treturn a !== b;\n\t},\n\t'&&': function( a, b ) {\n\t\treturn a && b;\n\t},\n\t'||': function( a, b ) {\n\t\treturn a || b;\n\t},\n\t'?:': function( a, b, c ) {\n\t\tif ( a ) {\n\t\t\tthrow b;\n\t\t}\n\n\t\treturn c;\n\t},\n};\n\n/**\n * Given an array of postfix terms and operand variables, returns the result of\n * the postfix evaluation.\n *\n * @example\n *\n * ```js\n * import evaluate from '@tannin/evaluate';\n *\n * // 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +'\n * const terms = [ '3', '4', '5', '*', '6', '/', '+' ];\n *\n * evaluate( terms, {} );\n * // ⇒ 6.333333333333334\n * ```\n *\n * @param {string[]} postfix Postfix terms.\n * @param {Object} variables Operand variables.\n *\n * @return {*} Result of evaluation.\n */\nexport default function evaluate( postfix, variables ) {\n\tvar stack = [],\n\t\ti, j, args, getOperatorResult, term, value;\n\n\tfor ( i = 0; i < postfix.length; i++ ) {\n\t\tterm = postfix[ i ];\n\n\t\tgetOperatorResult = OPERATORS[ term ];\n\t\tif ( getOperatorResult ) {\n\t\t\t// Pop from stack by number of function arguments.\n\t\t\tj = getOperatorResult.length;\n\t\t\targs = Array( j );\n\t\t\twhile ( j-- ) {\n\t\t\t\targs[ j ] = stack.pop();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tvalue = getOperatorResult.apply( null, args );\n\t\t\t} catch ( earlyReturn ) {\n\t\t\t\treturn earlyReturn;\n\t\t\t}\n\t\t} else if ( variables.hasOwnProperty( term ) ) {\n\t\t\tvalue = variables[ term ];\n\t\t} else {\n\t\t\tvalue = +term;\n\t\t}\n\n\t\tstack.push( value );\n\t}\n\n\treturn stack[ 0 ];\n}\n","import compile from '@tannin/compile';\n\n/**\n * Given a C expression, returns a function which, when called with a value,\n * evaluates the result with the value assumed to be the \"n\" variable of the\n * expression. The result will be coerced to its numeric equivalent.\n *\n * @param {string} expression C expression.\n *\n * @return {Function} Evaluator function.\n */\nexport default function pluralForms( expression ) {\n\tvar evaluate = compile( expression );\n\n\treturn function( n ) {\n\t\treturn +evaluate( { n: n } );\n\t};\n}\n","var PRECEDENCE, OPENERS, TERMINATORS, PATTERN;\n\n/**\n * Operator precedence mapping.\n *\n * @type {Object}\n */\nPRECEDENCE = {\n\t'(': 9,\n\t'!': 8,\n\t'*': 7,\n\t'/': 7,\n\t'%': 7,\n\t'+': 6,\n\t'-': 6,\n\t'<': 5,\n\t'<=': 5,\n\t'>': 5,\n\t'>=': 5,\n\t'==': 4,\n\t'!=': 4,\n\t'&&': 3,\n\t'||': 2,\n\t'?': 1,\n\t'?:': 1,\n};\n\n/**\n * Characters which signal pair opening, to be terminated by terminators.\n *\n * @type {string[]}\n */\nOPENERS = [ '(', '?' ];\n\n/**\n * Characters which signal pair termination, the value an array with the\n * opener as its first member. The second member is an optional operator\n * replacement to push to the stack.\n *\n * @type {string[]}\n */\nTERMINATORS = {\n\t')': [ '(' ],\n\t':': [ '?', '?:' ],\n};\n\n/**\n * Pattern matching operators and openers.\n *\n * @type {RegExp}\n */\nPATTERN = /<=|>=|==|!=|&&|\\|\\||\\?:|\\(|!|\\*|\\/|%|\\+|-|<|>|\\?|\\)|:/;\n\n/**\n * Given a C expression, returns the equivalent postfix (Reverse Polish)\n * notation terms as an array.\n *\n * If a postfix string is desired, simply `.join( ' ' )` the result.\n *\n * @example\n *\n * ```js\n * import postfix from '@tannin/postfix';\n *\n * postfix( 'n > 1' );\n * // ⇒ [ 'n', '1', '>' ]\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {string[]} Postfix terms.\n */\nexport default function postfix( expression ) {\n\tvar terms = [],\n\t\tstack = [],\n\t\tmatch, operator, term, element;\n\n\twhile ( ( match = expression.match( PATTERN ) ) ) {\n\t\toperator = match[ 0 ];\n\n\t\t// Term is the string preceding the operator match. It may contain\n\t\t// whitespace, and may be empty (if operator is at beginning).\n\t\tterm = expression.substr( 0, match.index ).trim();\n\t\tif ( term ) {\n\t\t\tterms.push( term );\n\t\t}\n\n\t\twhile ( ( element = stack.pop() ) ) {\n\t\t\tif ( TERMINATORS[ operator ] ) {\n\t\t\t\tif ( TERMINATORS[ operator ][ 0 ] === element ) {\n\t\t\t\t\t// Substitution works here under assumption that because\n\t\t\t\t\t// the assigned operator will no longer be a terminator, it\n\t\t\t\t\t// will be pushed to the stack during the condition below.\n\t\t\t\t\toperator = TERMINATORS[ operator ][ 1 ] || operator;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if ( OPENERS.indexOf( element ) >= 0 || PRECEDENCE[ element ] < PRECEDENCE[ operator ] ) {\n\t\t\t\t// Push to stack if either an opener or when pop reveals an\n\t\t\t\t// element of lower precedence.\n\t\t\t\tstack.push( element );\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// For each popped from stack, push to terms.\n\t\t\tterms.push( element );\n\t\t}\n\n\t\tif ( ! TERMINATORS[ operator ] ) {\n\t\t\tstack.push( operator );\n\t\t}\n\n\t\t// Slice matched fragment from expression to continue match.\n\t\texpression = expression.substr( match.index + operator.length );\n\t}\n\n\t// Push remainder of operand, if exists, to terms.\n\texpression = expression.trim();\n\tif ( expression ) {\n\t\tterms.push( expression );\n\t}\n\n\t// Pop remaining items from stack into terms.\n\treturn terms.concat( stack.reverse() );\n}\n","/**\n * Regular expression matching format placeholder syntax.\n *\n * The pattern for matching named arguments is a naive and incomplete matcher\n * against valid JavaScript identifier names.\n *\n * via Mathias Bynens:\n *\n * >An identifier must start with $, _, or any character in the Unicode\n * >categories “Uppercase letter (Lu)”, “Lowercase letter (Ll)”, “Titlecase\n * >letter (Lt)”, “Modifier letter (Lm)”, “Other letter (Lo)”, or “Letter\n * >number (Nl)”.\n * >\n * >The rest of the string can contain the same characters, plus any U+200C zero\n * >width non-joiner characters, U+200D zero width joiner characters, and\n * >characters in the Unicode categories “Non-spacing mark (Mn)”, “Spacing\n * >combining mark (Mc)”, “Decimal digit number (Nd)”, or “Connector\n * >punctuation (Pc)”.\n *\n * If browser support is constrained to those supporting ES2015, this could be\n * made more accurate using the `u` flag:\n *\n * ```\n * /^[$_\\p{L}\\p{Nl}][$_\\p{L}\\p{Nl}\\u200C\\u200D\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}]*$/u;\n * ```\n *\n * @see http://www.pixelbeat.org/programming/gcc/format_specs.html\n * @see https://mathiasbynens.be/notes/javascript-identifiers#valid-identifier-names\n *\n * @type {RegExp}\n */\nvar PATTERN = /%(((\\d+)\\$)|(\\(([$_a-zA-Z][$_a-zA-Z0-9]*)\\)))?[ +0#-]*\\d*(\\.(\\d+|\\*))?(ll|[lhqL])?([cduxXefgsp%])/g;\n// ▲ ▲ ▲ ▲ ▲ ▲ ▲ type\n// │ │ │ │ │ └ Length (unsupported)\n// │ │ │ │ └ Precision / max width\n// │ │ │ └ Min width (unsupported)\n// │ │ └ Flags (unsupported)\n// └ Index └ Name (for named arguments)\n\n/**\n * Given a format string, returns string with arguments interpolatation.\n * Arguments can either be provided directly via function arguments spread, or\n * with an array as the second argument.\n *\n * @see https://en.wikipedia.org/wiki/Printf_format_string\n *\n * @example\n *\n * ```js\n * import sprintf from '@tannin/sprintf';\n *\n * sprintf( 'Hello %s!', 'world' );\n * // ⇒ 'Hello world!'\n * ```\n *\n * @param {string} string printf format string\n * @param {Array} [args] String arguments.\n *\n * @return {string} Formatted string.\n */\nexport default function sprintf( string, args ) {\n\tvar i;\n\n\tif ( ! Array.isArray( args ) ) {\n\t\t// Construct a copy of arguments from index one, used for replace\n\t\t// function placeholder substitution.\n\t\targs = new Array( arguments.length - 1 );\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i - 1 ] = arguments[ i ];\n\t\t}\n\t}\n\n\ti = 1;\n\n\treturn string.replace( PATTERN, function() {\n\t\tvar index, name, precision, type, value;\n\n\t\tindex = arguments[ 3 ];\n\t\tname = arguments[ 5 ];\n\t\tprecision = arguments[ 7 ];\n\t\ttype = arguments[ 9 ];\n\n\t\t// There's no placeholder substitution in the explicit \"%\", meaning it\n\t\t// is not necessary to increment argument index.\n\t\tif ( type === '%' ) {\n\t\t\treturn '%';\n\t\t}\n\n\t\t// Asterisk precision determined by peeking / shifting next argument.\n\t\tif ( precision === '*' ) {\n\t\t\tprecision = args[ i - 1 ];\n\t\t\ti++;\n\t\t}\n\n\t\tif ( name !== undefined ) {\n\t\t\t// If it's a named argument, use name.\n\t\t\tif ( args[ 0 ] && typeof args[ 0 ] === 'object' &&\n\t\t\t\t\targs[ 0 ].hasOwnProperty( name ) ) {\n\t\t\t\tvalue = args[ 0 ][ name ];\n\t\t\t}\n\t\t} else {\n\t\t\t// If not a positional argument, use counter value.\n\t\t\tif ( index === undefined ) {\n\t\t\t\tindex = i;\n\t\t\t}\n\n\t\t\ti++;\n\n\t\t\t// Positional argument.\n\t\t\tvalue = args[ index - 1 ];\n\t\t}\n\n\t\t// Parse as type.\n\t\tif ( type === 'f' ) {\n\t\t\tvalue = parseFloat( value ) || 0;\n\t\t} else if ( type === 'd' ) {\n\t\t\tvalue = parseInt( value ) || 0;\n\t\t}\n\n\t\t// Apply precision.\n\t\tif ( precision !== undefined ) {\n\t\t\tif ( type === 'f' ) {\n\t\t\t\tvalue = value.toFixed( precision );\n\t\t\t} else if ( type === 's' ) {\n\t\t\t\tvalue = value.substr( 0, precision );\n\t\t\t}\n\t\t}\n\n\t\t// To avoid \"undefined\" concatenation, return empty string if no\n\t\t// placeholder substitution can be performed.\n\t\treturn value !== undefined && value !== null ? value : '';\n\t} );\n}\n","module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slice.call(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n } else {\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n }\n };\n\n var boundLength = Math.max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push('$' + i);\n }\n\n bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('has');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar bind = require('function-bind');\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\n\nvar sha1_K = [\n 0x5A827999, 0x6ED9EBA1,\n 0x8F1BBCDC, 0xCA62C1D6\n];\n\nfunction SHA1() {\n if (!(this instanceof SHA1))\n return new SHA1();\n\n BlockHash.call(this);\n this.h = [\n 0x67452301, 0xefcdab89, 0x98badcfe,\n 0x10325476, 0xc3d2e1f0 ];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\n\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n\n for(; i < W.length; i++)\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","var events = require('events')\nvar inherits = require('inherits')\n\nmodule.exports = LRU\n\nfunction LRU (opts) {\n if (!(this instanceof LRU)) return new LRU(opts)\n if (typeof opts === 'number') opts = {max: opts}\n if (!opts) opts = {}\n events.EventEmitter.call(this)\n this.cache = {}\n this.head = this.tail = null\n this.length = 0\n this.max = opts.max || 1000\n this.maxAge = opts.maxAge || 0\n}\n\ninherits(LRU, events.EventEmitter)\n\nObject.defineProperty(LRU.prototype, 'keys', {\n get: function () { return Object.keys(this.cache) }\n})\n\nLRU.prototype.clear = function () {\n this.cache = {}\n this.head = this.tail = null\n this.length = 0\n}\n\nLRU.prototype.remove = function (key) {\n if (typeof key !== 'string') key = '' + key\n if (!this.cache.hasOwnProperty(key)) return\n\n var element = this.cache[key]\n delete this.cache[key]\n this._unlink(key, element.prev, element.next)\n return element.value\n}\n\nLRU.prototype._unlink = function (key, prev, next) {\n this.length--\n\n if (this.length === 0) {\n this.head = this.tail = null\n } else {\n if (this.head === key) {\n this.head = prev\n this.cache[this.head].next = null\n } else if (this.tail === key) {\n this.tail = next\n this.cache[this.tail].prev = null\n } else {\n this.cache[prev].next = next\n this.cache[next].prev = prev\n }\n }\n}\n\nLRU.prototype.peek = function (key) {\n if (!this.cache.hasOwnProperty(key)) return\n\n var element = this.cache[key]\n\n if (!this._checkAge(key, element)) return\n return element.value\n}\n\nLRU.prototype.set = function (key, value) {\n if (typeof key !== 'string') key = '' + key\n\n var element\n\n if (this.cache.hasOwnProperty(key)) {\n element = this.cache[key]\n element.value = value\n if (this.maxAge) element.modified = Date.now()\n\n // If it's already the head, there's nothing more to do:\n if (key === this.head) return value\n this._unlink(key, element.prev, element.next)\n } else {\n element = {value: value, modified: 0, next: null, prev: null}\n if (this.maxAge) element.modified = Date.now()\n this.cache[key] = element\n\n // Eviction is only possible if the key didn't already exist:\n if (this.length === this.max) this.evict()\n }\n\n this.length++\n element.next = null\n element.prev = this.head\n\n if (this.head) this.cache[this.head].next = key\n this.head = key\n\n if (!this.tail) this.tail = key\n return value\n}\n\nLRU.prototype._checkAge = function (key, element) {\n if (this.maxAge && (Date.now() - element.modified) > this.maxAge) {\n this.remove(key)\n this.emit('evict', {key: key, value: element.value})\n return false\n }\n return true\n}\n\nLRU.prototype.get = function (key) {\n if (typeof key !== 'string') key = '' + key\n if (!this.cache.hasOwnProperty(key)) return\n\n var element = this.cache[key]\n\n if (!this._checkAge(key, element)) return\n\n if (this.head !== key) {\n if (key === this.tail) {\n this.tail = element.next\n this.cache[this.tail].prev = null\n } else {\n // Set prev.next -> element.next:\n this.cache[element.prev].next = element.next\n }\n\n // Set element.next.prev -> element.prev:\n this.cache[element.next].prev = element.prev\n\n // Element is the new head\n this.cache[this.head].next = key\n element.prev = this.head\n element.next = null\n this.head = key\n }\n\n return element.value\n}\n\nLRU.prototype.evict = function () {\n if (!this.tail) return\n var key = this.tail\n var value = this.remove(this.tail)\n this.emit('evict', {key: key, value: value})\n}\n","module.exports = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar match = String.prototype.match;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nvar inspectCustom = require('./util.inspect').custom;\nvar inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;\nvar toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('options \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n return String(obj);\n }\n if (typeof obj === 'bigint') {\n return String(obj) + 'n';\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = seen.slice();\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function') {\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + String(obj.nodeName).toLowerCase();\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '</' + String(obj.nodeName).toLowerCase() + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + xs.join(', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {\n return obj[inspectSymbol]();\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + ys.join(', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return String(s).replace(/\"/g, '&quot;');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = str.replace(/(['\\\\])/g, '\\\\$1').replace(/[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = Array(opts.indent + 1).join(' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: Array(depth + 1).join(baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + xs.join(',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ((/[^\\w$]/).test(key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","\nvar NativeProgressEvent = global.ProgressEvent;\nvar useNative = !!NativeProgressEvent;\n\ntry {\n (function () {\n var p = new NativeProgressEvent('loaded');\n useNative = 'loaded' === p.type;\n p = null;\n })();\n} catch (e) {\n useNative = false;\n}\n\n/**\n * Cross-browser `ProgressEvent` constructor.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent.ProgressEvent\n *\n * @public\n */\n\nmodule.exports = useNative ? NativeProgressEvent :\n\n// IE >= 9\n'function' === typeof document.createEvent ? function ProgressEvent (type, props) {\n var e = document.createEvent('Event');\n e.initEvent(type, false, false);\n if (props) {\n e.lengthComputable = Boolean(props.lengthComputable);\n e.loaded = Number(props.loaded) || 0;\n e.total = Number(props.total) || 0;\n } else {\n e.lengthComputable = false;\n e.loaded = e.total = 0;\n }\n return e;\n} :\n\n// IE <= 8\nfunction ProgressEvent (type, props) {\n var e = document.createEventObject();\n e.type = type;\n if (props) {\n e.lengthComputable = Boolean(props.lengthComputable);\n e.loaded = Number(props.loaded) || 0;\n e.total = Number(props.total) || 0;\n } else {\n e.lengthComputable = false;\n e.loaded = e.total = 0;\n }\n return e;\n}\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = {};\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar split = String.prototype.split;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n if (generateArrayPrefix === 'comma' && encodeValuesOnly) {\n var valuesArray = split.call(String(obj), ',');\n var valuesJoined = '';\n for (var i = 0; i < valuesArray.length; ++i) {\n valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));\n }\n return [formatter(keyValue) + '=' + valuesJoined];\n }\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix\n : prefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('&#10003;'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n","import pluralForms from '@tannin/plural-forms';\n\n/**\n * Tannin constructor options.\n *\n * @typedef {Object} TanninOptions\n *\n * @property {string} [contextDelimiter] Joiner in string lookup with context.\n * @property {Function} [onMissingKey] Callback to invoke when key missing.\n */\n\n/**\n * Domain metadata.\n *\n * @typedef {Object} TanninDomainMetadata\n *\n * @property {string} [domain] Domain name.\n * @property {string} [lang] Language code.\n * @property {(string|Function)} [plural_forms] Plural forms expression or\n * function evaluator.\n */\n\n/**\n * Domain translation pair respectively representing the singular and plural\n * translation.\n *\n * @typedef {[string,string]} TanninTranslation\n */\n\n/**\n * Locale data domain. The key is used as reference for lookup, the value an\n * array of two string entries respectively representing the singular and plural\n * translation.\n *\n * @typedef {{[key:string]:TanninDomainMetadata|TanninTranslation,'':TanninDomainMetadata|TanninTranslation}} TanninLocaleDomain\n */\n\n/**\n * Jed-formatted locale data.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @typedef {{[domain:string]:TanninLocaleDomain}} TanninLocaleData\n */\n\n/**\n * Default Tannin constructor options.\n *\n * @type {TanninOptions}\n */\nvar DEFAULT_OPTIONS = {\n\tcontextDelimiter: '\\u0004',\n\tonMissingKey: null,\n};\n\n/**\n * Given a specific locale data's config `plural_forms` value, returns the\n * expression.\n *\n * @example\n *\n * ```\n * getPluralExpression( 'nplurals=2; plural=(n != 1);' ) === '(n != 1)'\n * ```\n *\n * @param {string} pf Locale data plural forms.\n *\n * @return {string} Plural forms expression.\n */\nfunction getPluralExpression( pf ) {\n\tvar parts, i, part;\n\n\tparts = pf.split( ';' );\n\n\tfor ( i = 0; i < parts.length; i++ ) {\n\t\tpart = parts[ i ].trim();\n\t\tif ( part.indexOf( 'plural=' ) === 0 ) {\n\t\t\treturn part.substr( 7 );\n\t\t}\n\t}\n}\n\n/**\n * Tannin constructor.\n *\n * @class\n *\n * @param {TanninLocaleData} data Jed-formatted locale data.\n * @param {TanninOptions} [options] Tannin options.\n */\nexport default function Tannin( data, options ) {\n\tvar key;\n\n\t/**\n\t * Jed-formatted locale data.\n\t *\n\t * @name Tannin#data\n\t * @type {TanninLocaleData}\n\t */\n\tthis.data = data;\n\n\t/**\n\t * Plural forms function cache, keyed by plural forms string.\n\t *\n\t * @name Tannin#pluralForms\n\t * @type {Object<string,Function>}\n\t */\n\tthis.pluralForms = {};\n\n\t/**\n\t * Effective options for instance, including defaults.\n\t *\n\t * @name Tannin#options\n\t * @type {TanninOptions}\n\t */\n\tthis.options = {};\n\n\tfor ( key in DEFAULT_OPTIONS ) {\n\t\tthis.options[ key ] = options !== undefined && key in options\n\t\t\t? options[ key ]\n\t\t\t: DEFAULT_OPTIONS[ key ];\n\t}\n}\n\n/**\n * Returns the plural form index for the given domain and value.\n *\n * @param {string} domain Domain on which to calculate plural form.\n * @param {number} n Value for which plural form is to be calculated.\n *\n * @return {number} Plural form index.\n */\nTannin.prototype.getPluralForm = function( domain, n ) {\n\tvar getPluralForm = this.pluralForms[ domain ],\n\t\tconfig, plural, pf;\n\n\tif ( ! getPluralForm ) {\n\t\tconfig = this.data[ domain ][ '' ];\n\n\t\tpf = (\n\t\t\tconfig[ 'Plural-Forms' ] ||\n\t\t\tconfig[ 'plural-forms' ] ||\n\t\t\t// Ignore reason: As known, there's no way to document the empty\n\t\t\t// string property on a key to guarantee this as metadata.\n\t\t\t// @ts-ignore\n\t\t\tconfig.plural_forms\n\t\t);\n\n\t\tif ( typeof pf !== 'function' ) {\n\t\t\tplural = getPluralExpression(\n\t\t\t\tconfig[ 'Plural-Forms' ] ||\n\t\t\t\tconfig[ 'plural-forms' ] ||\n\t\t\t\t// Ignore reason: As known, there's no way to document the empty\n\t\t\t\t// string property on a key to guarantee this as metadata.\n\t\t\t\t// @ts-ignore\n\t\t\t\tconfig.plural_forms\n\t\t\t);\n\n\t\t\tpf = pluralForms( plural );\n\t\t}\n\n\t\tgetPluralForm = this.pluralForms[ domain ] = pf;\n\t}\n\n\treturn getPluralForm( n );\n};\n\n/**\n * Translate a string.\n *\n * @param {string} domain Translation domain.\n * @param {string|void} context Context distinguishing terms of the same name.\n * @param {string} singular Primary key for translation lookup.\n * @param {string=} plural Fallback value used for non-zero plural\n * form index.\n * @param {number=} n Value to use in calculating plural form.\n *\n * @return {string} Translated string.\n */\nTannin.prototype.dcnpgettext = function( domain, context, singular, plural, n ) {\n\tvar index, key, entry;\n\n\tif ( n === undefined ) {\n\t\t// Default to singular.\n\t\tindex = 0;\n\t} else {\n\t\t// Find index by evaluating plural form for value.\n\t\tindex = this.getPluralForm( domain, n );\n\t}\n\n\tkey = singular;\n\n\t// If provided, context is prepended to key with delimiter.\n\tif ( context ) {\n\t\tkey = context + this.options.contextDelimiter + singular;\n\t}\n\n\tentry = this.data[ domain ][ key ];\n\n\t// Verify not only that entry exists, but that the intended index is within\n\t// range and non-empty.\n\tif ( entry && entry[ index ] ) {\n\t\treturn entry[ index ];\n\t}\n\n\tif ( this.options.onMissingKey ) {\n\t\tthis.options.onMissingKey( singular, domain );\n\t}\n\n\t// If entry not found, fall back to singular vs. plural with zero index\n\t// representing the singular value.\n\treturn index === 0 ? singular : plural;\n};\n","import { DomainSuggestions } from '@automattic/data-stores';\n\nDomainSuggestions.register();\n","import { Launch } from '@automattic/data-stores';\n\nexport type LaunchStepType = Launch.LaunchStepType;\n\nLaunch.register();\n","import { Plans } from '@automattic/data-stores';\n\nPlans.register();\n","import { Site } from '@automattic/data-stores';\n\nSite.register( { client_id: '', client_secret: '' } );\n","import { WPCOMFeatures } from '@automattic/data-stores';\n\nWPCOMFeatures.register();\n","import type {\n\tDomainSuggestion,\n\tDomainSuggestionQuery,\n\tDomainCategory,\n\tDomainAvailability,\n} from './types';\n\nexport const receiveCategories = ( categories: DomainCategory[] ) =>\n\t( {\n\t\ttype: 'RECEIVE_CATEGORIES',\n\t\tcategories,\n\t} as const );\n\nexport const fetchDomainSuggestions = () =>\n\t( {\n\t\ttype: 'FETCH_DOMAIN_SUGGESTIONS',\n\t\ttimeStamp: Date.now(),\n\t} as const );\n\nexport const receiveDomainAvailability = ( domainName: string, availability: DomainAvailability ) =>\n\t( {\n\t\ttype: 'RECEIVE_DOMAIN_AVAILABILITY',\n\t\tdomainName,\n\t\tavailability,\n\t} as const );\n\nexport const receiveDomainSuggestionsSuccess = (\n\tqueryObject: DomainSuggestionQuery,\n\tsuggestions: DomainSuggestion[] | undefined\n) =>\n\t( {\n\t\ttype: 'RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS',\n\t\tqueryObject,\n\t\tsuggestions,\n\t\ttimeStamp: Date.now(),\n\t} as const );\n\nexport const receiveDomainSuggestionsError = ( errorMessage: string ) =>\n\t( {\n\t\ttype: 'RECEIVE_DOMAIN_SUGGESTIONS_ERROR',\n\t\terrorMessage,\n\t\ttimeStamp: Date.now(),\n\t} as const );\n\nexport type Action = ReturnType<\n\t| typeof receiveCategories\n\t| typeof fetchDomainSuggestions\n\t| typeof receiveDomainSuggestionsSuccess\n\t| typeof receiveDomainSuggestionsError\n\t| typeof receiveDomainAvailability\n>;\n","export const STORE_KEY = 'automattic/domains/suggestions';\n\nexport enum DataStatus {\n\tFailure = 'failure',\n\tPending = 'pending',\n\tSuccess = 'success',\n\tUninitialized = 'uninitialized',\n}\n","import { registerStore } from '@wordpress/data';\nimport { controls } from '../wpcom-request-controls';\nimport * as actions from './actions';\nimport { STORE_KEY } from './constants';\nimport reducer, { State } from './reducer';\nimport * as resolvers from './resolvers';\nimport * as selectors from './selectors';\nimport type { DispatchFromMap, SelectFromMap } from '../mapped-types';\n\nexport * from './types';\nexport * from './constants';\nexport { getFormattedPrice } from './utils';\nexport type { State };\n\nlet isRegistered = false;\n\nexport function register(): typeof STORE_KEY {\n\tif ( ! isRegistered ) {\n\t\tisRegistered = true;\n\t\tregisterStore< State >( STORE_KEY, {\n\t\t\tactions,\n\t\t\tcontrols: controls as any,\n\t\t\treducer: reducer as any,\n\t\t\tresolvers,\n\t\t\tselectors,\n\t\t} );\n\t}\n\treturn STORE_KEY;\n}\n\ndeclare module '@wordpress/data' {\n\tfunction dispatch( key: typeof STORE_KEY ): DispatchFromMap< typeof actions >;\n\tfunction select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors >;\n}\n","import { combineReducers } from '@wordpress/data';\nimport { DataStatus } from './constants';\nimport { stringifyDomainQueryObject } from './utils';\nimport type { Action } from './actions';\nimport type { DomainCategory, DomainSuggestionState, DomainAvailabilities } from './types';\nimport type { Reducer } from 'redux';\n\nconst initialDomainSuggestionState: DomainSuggestionState = {\n\tstate: DataStatus.Uninitialized,\n\tdata: {},\n\terrorMessage: null,\n\tlastUpdated: -Infinity,\n\tpendingSince: undefined,\n};\n\nexport const domainSuggestions: Reducer< DomainSuggestionState, Action > = (\n\tstate = initialDomainSuggestionState,\n\taction\n) => {\n\tif ( action.type === 'FETCH_DOMAIN_SUGGESTIONS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\tstate: DataStatus.Pending,\n\t\t\terrorMessage: null,\n\t\t\tpendingSince: action.timeStamp,\n\t\t};\n\t}\n\n\tif ( action.type === 'RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\tstate: DataStatus.Success,\n\t\t\tdata: {\n\t\t\t\t...state.data,\n\t\t\t\t[ stringifyDomainQueryObject( action.queryObject ) ]: action.suggestions,\n\t\t\t},\n\t\t\terrorMessage: null,\n\t\t\tlastUpdated: action.timeStamp,\n\t\t\tpendingSince: undefined,\n\t\t};\n\t}\n\n\tif ( action.type === 'RECEIVE_DOMAIN_SUGGESTIONS_ERROR' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\tstate: DataStatus.Failure,\n\t\t\terrorMessage: action.errorMessage,\n\t\t\tlastUpdated: action.timeStamp,\n\t\t\tpendingSince: undefined,\n\t\t};\n\t}\n\n\treturn state;\n};\n\nconst categories: Reducer< DomainCategory[], Action > = ( state = [], action ) => {\n\tif ( action.type === 'RECEIVE_CATEGORIES' ) {\n\t\treturn action.categories;\n\t}\n\treturn state;\n};\n\nconst availability: Reducer< DomainAvailabilities, Action > = ( state = {}, action ) => {\n\tif ( action.type === 'RECEIVE_DOMAIN_AVAILABILITY' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.domainName ]: action.availability,\n\t\t};\n\t}\n\treturn state;\n};\n\nconst reducer = combineReducers( { categories, domainSuggestions, availability } );\n\nexport type State = ReturnType< typeof reducer >;\n\nexport default reducer;\n","import { translate } from 'i18n-calypso';\nimport { stringify } from 'qs';\nimport validator from 'validator';\nimport { fetchAndParse, wpcomRequest } from '../wpcom-request-controls';\nimport {\n\treceiveCategories,\n\treceiveDomainSuggestionsSuccess,\n\treceiveDomainSuggestionsError,\n\tfetchDomainSuggestions,\n\treceiveDomainAvailability,\n} from './actions';\nimport { getFormattedPrice } from './utils';\nimport type { DomainSuggestion, DomainSuggestionQuery } from './types';\n\nfunction getAvailabilityURL( domainName: string ) {\n\treturn `https://public-api.wordpress.com/rest/v1.3/domains/${ encodeURIComponent(\n\t\tdomainName\n\t) }/is-available?is_cart_pre_check=true`;\n}\n\nfunction suggestionsLackThisFQDN( suggestions: DomainSuggestion[], domainName: string ) {\n\treturn (\n\t\tvalidator.isFQDN( domainName ) &&\n\t\t! suggestions.some( ( s ) => s.domain_name.toLowerCase() === domainName )\n\t);\n}\n\nexport const isAvailable = function* isAvailable( domainName: string ) {\n\tconst url = getAvailabilityURL( domainName );\n\n\ttry {\n\t\tconst { body } = yield fetchAndParse( url );\n\t\treturn receiveDomainAvailability( domainName, body );\n\t} catch {\n\t\t// the API returns a status of 'unknown' if it can not accurately determine\n\t\t// availability, we will return the same status if the API request fails.\n\t\treturn receiveDomainAvailability( domainName, {\n\t\t\tdomain_name: domainName,\n\t\t\tmappable: 'unknown',\n\t\t\tstatus: 'unknown',\n\t\t\tsupports_privacy: false,\n\t\t} );\n\t}\n};\n\nexport function* getCategories() {\n\tconst { body } = yield fetchAndParse(\n\t\t'https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories'\n\t);\n\treturn receiveCategories( body );\n}\n\nexport function* __internalGetDomainSuggestions( queryObject: DomainSuggestionQuery ) {\n\t// If normalized search string (`query`) contains no alphanumerics, endpoint 404s\n\tif ( ! queryObject.query ) {\n\t\treturn receiveDomainSuggestionsError( 'Empty query' );\n\t}\n\n\tyield fetchDomainSuggestions();\n\n\ttry {\n\t\tconst suggestions: DomainSuggestion[] = yield wpcomRequest( {\n\t\t\tapiVersion: '1.1',\n\t\t\tpath: '/domains/suggestions',\n\t\t\tquery: stringify( queryObject ),\n\t\t} );\n\n\t\tif ( ! Array.isArray( suggestions ) ) {\n\t\t\t// Other internal server errors\n\t\t\treturn receiveDomainSuggestionsError(\n\t\t\t\ttranslate( 'Invalid response from the server' ) as string\n\t\t\t);\n\t\t}\n\n\t\t// if the query is a FQDN and the results don't have it,\n\t\t// this implies that the user is searching for an unavailable domain name\n\t\t// TODO: query the availability endpoint to find the exact reason why it's unavailable\n\t\t// all the possible responses can be found here https://github.com/Automattic/wp-calypso/blob/trunk/client/lib/domains/registration/availability-messages.js#L40-L390\n\t\tif ( suggestionsLackThisFQDN( suggestions, queryObject.query ) ) {\n\t\t\tconst unavailableSuggestion: DomainSuggestion = {\n\t\t\t\tdomain_name: queryObject.query,\n\t\t\t\tunavailable: true,\n\t\t\t\tcost: '',\n\t\t\t\traw_price: 0,\n\t\t\t\tcurrency_code: '',\n\t\t\t};\n\t\t\tsuggestions.unshift( unavailableSuggestion );\n\t\t}\n\n\t\tconst processedSuggestions = suggestions.map( ( suggestion: DomainSuggestion ) => {\n\t\t\tif ( suggestion.unavailable ) {\n\t\t\t\treturn suggestion;\n\t\t\t}\n\t\t\treturn {\n\t\t\t\t...suggestion,\n\t\t\t\t...( suggestion.raw_price &&\n\t\t\t\t\tsuggestion.currency_code && {\n\t\t\t\t\t\tcost: getFormattedPrice( suggestion.raw_price, suggestion.currency_code ),\n\t\t\t\t\t} ),\n\t\t\t};\n\t\t} );\n\n\t\treturn receiveDomainSuggestionsSuccess( queryObject, processedSuggestions );\n\t} catch ( e ) {\n\t\t// e.g. no connection, or JSON parsing error\n\t\treturn receiveDomainSuggestionsError(\n\t\t\t( e as Error ).message || ( translate( 'Error while fetching server response' ) as string )\n\t\t);\n\t}\n}\n","import { select } from '@wordpress/data';\nimport { STORE_KEY, DataStatus } from './constants';\nimport { stringifyDomainQueryObject, normalizeDomainSuggestionQuery } from './utils';\nimport type { State } from './reducer';\nimport type {\n\tDomainAvailability,\n\tDomainAvailabilities,\n\tDomainCategory,\n\tDomainSuggestion,\n\tDomainSuggestionQuery,\n\tDomainSuggestionSelectorOptions,\n} from './types';\n\nexport const getCategories = ( state: State ): DomainCategory[] => {\n\t// Sort domain categories by tier, then by title.\n\treturn [\n\t\t...state.categories\n\t\t\t.filter( ( { tier } ) => tier !== null )\n\t\t\t.sort( ( a, b ) => ( a > b ? 1 : -1 ) ),\n\t\t...state.categories\n\t\t\t.filter( ( { tier } ) => tier === null )\n\t\t\t.sort( ( a, b ) => a.title.localeCompare( b.title ) ),\n\t];\n};\n\nexport const getDomainSuggestions = (\n\t_state: State,\n\tsearch: string,\n\toptions: DomainSuggestionSelectorOptions = {}\n): DomainSuggestion[] | undefined => {\n\tconst normalizedQuery = normalizeDomainSuggestionQuery( search, options );\n\n\t// We need to go through the `select` store to get the resolver action\n\treturn select( STORE_KEY ).__internalGetDomainSuggestions( normalizedQuery );\n};\n\nexport const getDomainState = ( state: State ): DataStatus => {\n\treturn state.domainSuggestions.state;\n};\n\nexport const getDomainErrorMessage = ( state: State ): string | null => {\n\treturn state.domainSuggestions.errorMessage;\n};\n\n// TODO: reconcile this function with \"Pending\" status?\n// It doesn't seem to be used\nexport const isLoadingDomainSuggestions = (\n\t_state: State,\n\tsearch: string,\n\toptions: DomainSuggestionSelectorOptions = {}\n): boolean => {\n\tconst normalizedQuery = normalizeDomainSuggestionQuery( search, options );\n\n\treturn select( 'core/data' ).isResolving( STORE_KEY, '__internalGetDomainSuggestions', [\n\t\tnormalizedQuery,\n\t] );\n};\n\n/**\n * Do not use this selector. It is for internal use.\n *\n * @param state Store state\n * @param queryObject Normalized object representing the query\n * @returns suggestions\n */\nexport const __internalGetDomainSuggestions = (\n\tstate: State,\n\tqueryObject: DomainSuggestionQuery\n): DomainSuggestion[] | undefined => {\n\treturn state.domainSuggestions.data[ stringifyDomainQueryObject( queryObject ) ];\n};\n\nexport const isAvailable = ( state: State, domainName: string ): DomainAvailability | undefined => {\n\treturn state.availability[ domainName ];\n};\n\nexport const getDomainAvailabilities = ( state: State ): DomainAvailabilities => {\n\treturn state.availability;\n};\n","import formatCurrency from '@automattic/format-currency';\nimport deterministicStringify from 'fast-json-stable-stringify';\nimport type { DomainSuggestionQuery, DomainSuggestionSelectorOptions } from './types';\n\n/**\n * Stable transform to an object key for storage and access.\n *\n * @see client/state/domains/suggestions/utils.js\n */\nexport const stringifyDomainQueryObject: ( q: DomainSuggestionQuery ) => string =\n\tdeterministicStringify;\n\n/**\n * Formats the domain suggestion price according to 'format-currency' package rules\n * We use this for consistency in prices formats across plans and domains\n *\n * @param price the domain suggestion raw price\n * @param currencyCode the currency code to be used when formatting price\n */\nexport function getFormattedPrice( price: number, currencyCode: string ): string {\n\treturn formatCurrency( price, currencyCode, {\n\t\tstripZeros: true,\n\t} ) as string;\n}\n\n/**\n * Normalize domain query\n *\n * It's important to have a consistent, reproduceable representation of a domains query so that the result can be\n * stored and retrieved.\n *\n * @see client/state/domains/suggestions/utils.js\n * @see client/components/data/query-domains-suggestions/index.jsx\n * @param search Domain search string\n * @param queryOptions Optional paramaters for the query\n * @returns Normalized query object\n */\nexport function normalizeDomainSuggestionQuery(\n\tsearch: string,\n\tqueryOptions: DomainSuggestionSelectorOptions\n): DomainSuggestionQuery {\n\treturn {\n\t\t// Defaults\n\t\tinclude_wordpressdotcom: queryOptions.only_wordpressdotcom || false,\n\t\tinclude_dotblogsubdomain: false,\n\t\tonly_wordpressdotcom: false,\n\t\tquantity: 5,\n\t\tvendor: 'variation2_front',\n\n\t\t// Merge options\n\t\t...queryOptions,\n\n\t\t// Add the search query\n\t\tquery: search.trim().toLocaleLowerCase(),\n\t};\n}\n","import { select } from '@wordpress/data';\nimport { PLANS_STORE } from './constants';\nimport type { Plans } from '..';\nimport type * as DomainSuggestions from '../domain-suggestions';\nimport type { ReturnOrGeneratorYieldUnion } from '../mapped-types';\nimport type { LaunchStepType } from './types';\n\nexport const setSidebarFullscreen = () =>\n\t( {\n\t\ttype: 'SET_SIDEBAR_FULLSCREEN',\n\t} as const );\n\nexport const unsetSidebarFullscreen = () =>\n\t( {\n\t\ttype: 'UNSET_SIDEBAR_FULLSCREEN',\n\t} as const );\n\nexport const setStep = ( step: LaunchStepType ) =>\n\t( {\n\t\ttype: 'SET_STEP',\n\t\tstep,\n\t} as const );\n\nexport const setSiteTitle = ( title: string ) =>\n\t( {\n\t\ttype: 'SET_SITE_TITLE',\n\t\ttitle,\n\t} as const );\n\nexport const setDomain = ( domain: DomainSuggestions.DomainSuggestion ) =>\n\t( {\n\t\ttype: 'SET_DOMAIN',\n\t\tdomain,\n\t} as const );\n\nexport const unsetDomain = () =>\n\t( {\n\t\ttype: 'UNSET_DOMAIN',\n\t} as const );\n\nexport const confirmDomainSelection = () =>\n\t( {\n\t\ttype: 'CONFIRM_DOMAIN_SELECTION',\n\t} as const );\n\nexport const setDomainSearch = ( domainSearch: string ) =>\n\t( {\n\t\ttype: 'SET_DOMAIN_SEARCH',\n\t\tdomainSearch,\n\t} as const );\n\n/**\n * It's not recommended to export this function. We need the billing period\n * to be a side-effect of the plan. Please don't export this action creator as you might\n * create a discrepancy between the selected plan and the selected billing period\n *\n * @param billingPeriod the period\n */\nconst __internalSetBillingPeriod = ( billingPeriod: Plans.PlanBillingPeriod ) =>\n\t( {\n\t\ttype: 'SET_PLAN_BILLING_PERIOD',\n\t\tbillingPeriod,\n\t} as const );\n\nexport const setPlanProductId = function* ( planProductId: number | undefined ) {\n\tconst isFree = select( PLANS_STORE ).isPlanProductFree( planProductId );\n\n\tif ( ! isFree ) {\n\t\tconst planProduct = select( PLANS_STORE ).getPlanProductById( planProductId );\n\t\tconst billingPeriod = planProduct?.billingPeriod ?? 'ANNUALLY';\n\n\t\tyield __internalSetBillingPeriod( billingPeriod );\n\t}\n\n\treturn {\n\t\ttype: 'SET_PLAN_PRODUCT_ID',\n\t\tplanProductId,\n\t} as const;\n};\n\nexport const unsetPlanProductId = () =>\n\t( {\n\t\ttype: 'UNSET_PLAN_PRODUCT_ID',\n\t} as const );\n\nexport function updatePlan( planProductId: number | undefined ) {\n\t// keep updatePlan for backwards compat\n\treturn setPlanProductId( planProductId );\n}\n\nexport const openSidebar = () =>\n\t( {\n\t\ttype: 'OPEN_SIDEBAR',\n\t} as const );\n\nexport const closeSidebar = () =>\n\t( {\n\t\ttype: 'CLOSE_SIDEBAR',\n\t} as const );\n\nexport const openFocusedLaunch = () =>\n\t( {\n\t\ttype: 'OPEN_FOCUSED_LAUNCH',\n\t} as const );\n\nexport const closeFocusedLaunch = () =>\n\t( {\n\t\ttype: 'CLOSE_FOCUSED_LAUNCH',\n\t} as const );\n\nexport const enableAnchorFm = () =>\n\t( {\n\t\ttype: 'ENABLE_ANCHOR_FM',\n\t} as const );\n\nexport const showSiteTitleStep = () =>\n\t( {\n\t\ttype: 'SHOW_SITE_TITLE_STEP',\n\t} as const );\n\nexport const setModalDismissible = () =>\n\t( {\n\t\ttype: 'SET_MODAL_DISMISSIBLE',\n\t} as const );\n\nexport const unsetModalDismissible = () =>\n\t( {\n\t\ttype: 'UNSET_MODAL_DISMISSIBLE',\n\t} as const );\n\nexport const showModalTitle = () =>\n\t( {\n\t\ttype: 'SHOW_MODAL_TITLE',\n\t} as const );\n\nexport const hideModalTitle = () =>\n\t( {\n\t\ttype: 'HIDE_MODAL_TITLE',\n\t} as const );\n\nexport const enablePersistentSuccessView = () =>\n\t( {\n\t\ttype: 'ENABLE_SUCCESS_VIEW',\n\t} as const );\n\nexport const disablePersistentSuccessView = () =>\n\t( {\n\t\ttype: 'DISABLE_SUCCESS_VIEW',\n\t} as const );\n\nexport type LaunchAction = ReturnOrGeneratorYieldUnion<\n\t| typeof setSiteTitle\n\t| typeof unsetDomain\n\t| typeof setStep\n\t| typeof setDomain\n\t| typeof confirmDomainSelection\n\t| typeof setDomainSearch\n\t| typeof setPlanProductId\n\t| typeof openFocusedLaunch\n\t| typeof closeFocusedLaunch\n\t| typeof unsetPlanProductId\n\t| typeof openSidebar\n\t| typeof closeSidebar\n\t| typeof enableAnchorFm\n\t| typeof setSidebarFullscreen\n\t| typeof unsetSidebarFullscreen\n\t| typeof showSiteTitleStep\n\t| typeof setModalDismissible\n\t| typeof unsetModalDismissible\n\t| typeof showModalTitle\n\t| typeof hideModalTitle\n>;\n","export const STORE_KEY = 'automattic/launch';\nexport const SITE_STORE = 'automattic/site';\nexport const PLANS_STORE = 'automattic/onboard/plans';\n","export const LaunchStep: Record< string, string > = {\n\tName: 'name',\n\tDomain: 'domain',\n\tPlan: 'plan',\n\tFinal: 'final',\n};\n\nexport const LaunchSequence: Array< string > = [\n\tLaunchStep.Name,\n\tLaunchStep.Domain,\n\tLaunchStep.Plan,\n\tLaunchStep.Final,\n];\n","import { plugins, registerStore, use } from '@wordpress/data';\nimport { controls } from '@wordpress/data-controls';\nimport * as actions from './actions';\nimport { STORE_KEY } from './constants';\nimport persistOptions from './persist';\nimport reducer, { State } from './reducer';\nimport * as selectors from './selectors';\nimport type { SelectFromMap, DispatchFromMap } from '../mapped-types';\n\nexport type { State };\nexport type { LaunchStepType } from './types';\nexport { STORE_KEY };\n\nuse( plugins.persistence, persistOptions );\n\nlet isRegistered = false;\n\nexport function register(): typeof STORE_KEY {\n\tif ( ! isRegistered ) {\n\t\tisRegistered = true;\n\t\tregisterStore< State >( STORE_KEY, {\n\t\t\tactions,\n\t\t\tcontrols,\n\t\t\treducer,\n\t\t\tselectors,\n\t\t\tpersist: [\n\t\t\t\t'domain',\n\t\t\t\t'domainSearch',\n\t\t\t\t'planProductId',\n\t\t\t\t'planBillingPeriod',\n\t\t\t\t'confirmedDomainSelection',\n\t\t\t\t'isAnchorFm',\n\t\t\t\t'isSiteTitleStepVisible',\n\t\t\t\t'siteTitle',\n\t\t\t],\n\t\t} );\n\t}\n\treturn STORE_KEY;\n}\n\ndeclare module '@wordpress/data' {\n\tfunction dispatch( key: typeof STORE_KEY ): DispatchFromMap< typeof actions >;\n\tfunction select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors >;\n}\n","import persistenceConfigFactory from '../persistence-config-factory';\n\nexport default persistenceConfigFactory( 'WP_LAUNCH' );\n","import { combineReducers } from '@wordpress/data';\nimport { LaunchStep } from './data';\nimport type { Plans } from '..';\nimport type * as DomainSuggestions from '../domain-suggestions';\nimport type { LaunchAction } from './actions';\nimport type { LaunchStepType } from './types';\nimport type { Reducer } from 'redux';\n\nconst step: Reducer< LaunchStepType, LaunchAction > = ( state = LaunchStep.Name, action ) => {\n\tif ( action.type === 'SET_STEP' ) {\n\t\treturn action.step;\n\t}\n\treturn state;\n};\n\nconst siteTitle: Reducer< string | undefined, LaunchAction > = ( state = undefined, action ) => {\n\tif ( action.type === 'SET_SITE_TITLE' ) {\n\t\treturn action.title;\n\t}\n\treturn state;\n};\n\nconst domain: Reducer< DomainSuggestions.DomainSuggestion | undefined, LaunchAction > = (\n\tstate,\n\taction\n) => {\n\tif ( action.type === 'SET_DOMAIN' ) {\n\t\treturn action.domain;\n\t}\n\tif ( action.type === 'UNSET_DOMAIN' ) {\n\t\treturn undefined;\n\t}\n\treturn state;\n};\n\nconst domainSearch: Reducer< string, LaunchAction > = ( state = '', action ) => {\n\tif ( action.type === 'SET_DOMAIN_SEARCH' ) {\n\t\treturn action.domainSearch;\n\t}\n\treturn state;\n};\n\nconst confirmedDomainSelection: Reducer< boolean, LaunchAction > = ( state = false, action ) => {\n\tif ( action.type === 'CONFIRM_DOMAIN_SELECTION' ) {\n\t\treturn true;\n\t}\n\treturn state;\n};\n\nconst planProductId: Reducer< number | undefined, LaunchAction > = ( state, action ) => {\n\tif ( action.type === 'SET_PLAN_PRODUCT_ID' ) {\n\t\treturn action.planProductId;\n\t}\n\tif ( action.type === 'UNSET_PLAN_PRODUCT_ID' ) {\n\t\treturn undefined;\n\t}\n\treturn state;\n};\n\nconst planBillingPeriod: Reducer< Plans.PlanBillingPeriod, LaunchAction > = (\n\tstate = 'ANNUALLY',\n\taction\n) => {\n\tif ( action.type === 'SET_PLAN_BILLING_PERIOD' ) {\n\t\treturn action.billingPeriod;\n\t}\n\treturn state;\n};\n\n// Check if focused launch modal is open\nconst isFocusedLaunchOpen: Reducer< boolean, LaunchAction > = ( state = false, action ) => {\n\tif ( action.type === 'OPEN_FOCUSED_LAUNCH' ) {\n\t\treturn true;\n\t}\n\n\tif ( action.type === 'CLOSE_FOCUSED_LAUNCH' ) {\n\t\treturn false;\n\t}\n\treturn state;\n};\n\n// Check if step-by-step launch modal is open\nconst isSidebarOpen: Reducer< boolean, LaunchAction > = ( state = false, action ) => {\n\tif ( action.type === 'OPEN_SIDEBAR' ) {\n\t\treturn true;\n\t}\n\n\tif ( action.type === 'CLOSE_SIDEBAR' ) {\n\t\treturn false;\n\t}\n\treturn state;\n};\n\n// Check if step-by-step launch modal is full screen\nconst isSidebarFullscreen: Reducer< boolean, LaunchAction > = ( state = false, action ) => {\n\tif ( action.type === 'SET_SIDEBAR_FULLSCREEN' ) {\n\t\treturn true;\n\t}\n\tif ( action.type === 'UNSET_SIDEBAR_FULLSCREEN' ) {\n\t\treturn false;\n\t}\n\treturn state;\n};\n\nconst isAnchorFm: Reducer< boolean, LaunchAction > = ( state = false, action ) => {\n\tif ( action.type === 'ENABLE_ANCHOR_FM' ) {\n\t\treturn true;\n\t}\n\n\treturn state;\n};\n\n// Check if site title step should be displayed\nconst isSiteTitleStepVisible: Reducer< boolean, LaunchAction > = ( state = false, action ) => {\n\tif ( action.type === 'SHOW_SITE_TITLE_STEP' ) {\n\t\treturn true;\n\t}\n\n\treturn state;\n};\n\n// Check if launch modal can be dismissed\nconst isModalDismissible: Reducer< boolean, LaunchAction > = ( state = true, action ) => {\n\tif ( action.type === 'SET_MODAL_DISMISSIBLE' ) {\n\t\treturn true;\n\t}\n\n\tif ( action.type === 'UNSET_MODAL_DISMISSIBLE' ) {\n\t\treturn false;\n\t}\n\n\treturn state;\n};\n\n// Check if launch modal title should be visible\nconst isModalTitleVisible: Reducer< boolean, LaunchAction > = ( state = true, action ) => {\n\tif ( action.type === 'SHOW_MODAL_TITLE' ) {\n\t\treturn true;\n\t}\n\n\tif ( action.type === 'HIDE_MODAL_TITLE' ) {\n\t\treturn false;\n\t}\n\n\treturn state;\n};\n\nconst reducer = combineReducers( {\n\tstep,\n\tsiteTitle,\n\tdomain,\n\tconfirmedDomainSelection,\n\tdomainSearch,\n\tplanBillingPeriod,\n\tplanProductId,\n\tisSidebarOpen,\n\tisSidebarFullscreen,\n\tisAnchorFm,\n\tisFocusedLaunchOpen,\n\tisSiteTitleStepVisible,\n\tisModalDismissible,\n\tisModalTitleVisible,\n} );\n\nexport type State = ReturnType< typeof reducer >;\n\nexport default reducer;\n","import { select } from '@wordpress/data';\nimport { STORE_KEY as LAUNCH_STORE, PLANS_STORE } from './constants';\nimport { LaunchSequence, LaunchStep } from './data';\nimport type { Plans } from '..';\nimport type * as DomainSuggestions from '../domain-suggestions';\nimport type { State } from './reducer';\nimport type { LaunchStepType } from './types';\n\nexport const getLaunchSequence = (): typeof LaunchSequence => LaunchSequence;\nexport const getLaunchStep = (): typeof LaunchStep => LaunchStep;\n\nexport const getState = ( state: State ): State => state;\nexport const hasPaidDomain = ( state: State ): boolean => {\n\tif ( ! state.domain ) {\n\t\treturn false;\n\t}\n\treturn ! state.domain.is_free; // @TODO: check if we are ever storing a paid domain\n};\nexport const getSelectedDomain = ( state: State ): DomainSuggestions.DomainSuggestion | undefined =>\n\tstate.domain;\nexport const getSelectedPlanProductId = ( state: State ): number | undefined => state.planProductId;\n\n/**\n * This returns the readonly value of the billing period.\n * This value is automatically inferred from the selected paid plan.\n * If the user picks a free plan, this value will remain unchanged and\n * will return the billing period of the previously selected paid plan.\n *\n * @param state the state\n */\nexport const getLastPlanBillingPeriod = ( state: State ): Plans.PlanBillingPeriod =>\n\tstate.planBillingPeriod;\n\nexport const isSelectedPlanPaid = ( state: State ): boolean =>\n\ttypeof state.planProductId !== 'undefined' &&\n\t! select( PLANS_STORE ).isPlanProductFree( state.planProductId );\n\n// Check if a domain has been explicitly selected (including free subdomain)\n/**\n * Check if the user has selected a domain, including explicitly selecting the subdomain\n * This is useful for step/flow completion in the context of highlighting steps or enabling Launch button\n *\n * @param state State\n */\nexport const hasSelectedDomainOrSubdomain = ( state: State ): boolean =>\n\t!! getSelectedDomain( state ) || state.confirmedDomainSelection;\n\n// Completion status of steps is derived from the state of the launch flow\n// Warning: because it's using getEntityRecord it works only inside the editor\nexport const isStepCompleted = ( state: State, step: LaunchStepType ): boolean => {\n\tif ( step === LaunchStep.Plan ) {\n\t\treturn !! getSelectedPlanProductId( state );\n\t}\n\tif ( step === LaunchStep.Name ) {\n\t\tconst site: { title?: string } | undefined = select( 'core' ).getEntityRecord(\n\t\t\t'root',\n\t\t\t'site',\n\t\t\tundefined\n\t\t);\n\t\treturn !! site?.title;\n\t}\n\tif ( step === LaunchStep.Domain ) {\n\t\treturn select( LAUNCH_STORE ).hasSelectedDomainOrSubdomain();\n\t}\n\treturn false;\n};\n\n// Check if all steps are completed except the last one\nexport const isFlowCompleted = ( state: State ): boolean =>\n\tLaunchSequence.slice( 0, LaunchSequence.length - 1 ).every( ( step ) =>\n\t\tisStepCompleted( state, step )\n\t);\n\n// Check if at least one step is completed\nexport const isFlowStarted = ( state: State ): boolean =>\n\tLaunchSequence.some( ( step ) => isStepCompleted( state, step ) );\n\n// Get first incomplete step\nexport const getFirstIncompleteStep = ( state: State ): LaunchStepType | undefined =>\n\tLaunchSequence.find( ( step ) => ! isStepCompleted( state, step ) );\n\nexport const getSiteTitle = ( state: State ): string | undefined => state?.siteTitle;\n\nexport const getCurrentStep = ( state: State ): string => state.step;\n\nexport const getDomainSearch = ( state: State ): string => state.domainSearch;\n","/*\n Defines the options used for the @wp/data persistence plugin, \n which include a persistent storage implementation to add data expiration handling.\n*/\n\n/**\n * Creates a storage config for state persistence\n *\n * @param storageKey Unique key to the storage\n */\nexport default function createPersistenceConfig( storageKey: string ) {\n\tconst PERSISTENCE_INTERVAL = 7 * 24 * 3600000; // days * hours in days * ms in hour\n\tconst STORAGE_KEY = storageKey;\n\tconst STORAGE_TS_KEY = storageKey + '_TS';\n\n\t// A plain object fallback if localStorage is not available\n\tconst objStore: { [ key: string ]: string } = {};\n\n\tconst objStorage: Pick< Storage, 'getItem' | 'setItem' | 'removeItem' > = {\n\t\tgetItem( key ) {\n\t\t\tif ( objStore.hasOwnProperty( key ) ) {\n\t\t\t\treturn objStore[ key ];\n\t\t\t}\n\n\t\t\treturn null;\n\t\t},\n\t\tsetItem( key, value ) {\n\t\t\tobjStore[ key ] = String( value );\n\t\t},\n\t\tremoveItem( key ) {\n\t\t\tdelete objStore[ key ];\n\t\t},\n\t};\n\n\t// Make sure localStorage support exists\n\tconst localStorageSupport = (): boolean => {\n\t\ttry {\n\t\t\twindow.localStorage.setItem( 'WP_ONBOARD_TEST', '1' );\n\t\t\twindow.localStorage.removeItem( 'WP_ONBOARD_TEST' );\n\t\t\treturn true;\n\t\t} catch ( e ) {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t// Choose the right storage implementation\n\tconst storageHandler = localStorageSupport() ? window.localStorage : objStorage;\n\n\t// Persisted data expires after seven days\n\tconst isNotExpired = ( timestampStr: string ): boolean => {\n\t\tconst timestamp = Number( timestampStr );\n\t\treturn Boolean( timestamp ) && timestamp + PERSISTENCE_INTERVAL > Date.now();\n\t};\n\n\t// Check for \"fresh\" query param\n\tconst hasFreshParam = (): boolean => {\n\t\treturn new URLSearchParams( window.location.search ).has( 'fresh' );\n\t};\n\n\t// Handle data expiration by providing a storage object override to the @wp/data persistence plugin.\n\tconst storage: Pick< Storage, 'getItem' | 'setItem' > = {\n\t\tgetItem( key ) {\n\t\t\tconst timestamp = storageHandler.getItem( STORAGE_TS_KEY );\n\n\t\t\tif ( timestamp && isNotExpired( timestamp ) && ! hasFreshParam() ) {\n\t\t\t\treturn storageHandler.getItem( key );\n\t\t\t}\n\n\t\t\tstorageHandler.removeItem( STORAGE_KEY );\n\t\t\tstorageHandler.removeItem( STORAGE_TS_KEY );\n\n\t\t\treturn null;\n\t\t},\n\t\tsetItem( key, value ) {\n\t\t\tstorageHandler.setItem( STORAGE_TS_KEY, JSON.stringify( Date.now() ) );\n\t\t\tstorageHandler.setItem( key, value );\n\t\t},\n\t};\n\n\tconst persistOptions = {\n\t\tstorageKey: STORAGE_KEY,\n\t\tstorage,\n\t};\n\n\treturn persistOptions;\n}\n","import type { Plan, PlanFeature, FeaturesByType, PlanProduct } from './types';\n\ntype setFeaturesAction = {\n\ttype: 'SET_FEATURES';\n\tfeatures: Record< string, PlanFeature >;\n\tlocale: string;\n};\nexport const setFeatures = (\n\tfeatures: Record< string, PlanFeature >,\n\tlocale: string\n): setFeaturesAction => ( {\n\ttype: 'SET_FEATURES' as const,\n\tfeatures,\n\tlocale,\n} );\n\ntype setFeaturesByTypeAction = {\n\ttype: 'SET_FEATURES_BY_TYPE';\n\tfeaturesByType: Array< FeaturesByType >;\n\tlocale: string;\n};\nexport const setFeaturesByType = (\n\tfeaturesByType: Array< FeaturesByType >,\n\tlocale: string\n): setFeaturesByTypeAction => ( {\n\ttype: 'SET_FEATURES_BY_TYPE' as const,\n\tfeaturesByType,\n\tlocale,\n} );\n\ntype setPlansAction = {\n\ttype: 'SET_PLANS';\n\tplans: Plan[];\n\tlocale: string;\n};\nexport const setPlans = ( plans: Plan[], locale: string ): setPlansAction => ( {\n\ttype: 'SET_PLANS' as const,\n\tplans,\n\tlocale,\n} );\n\ntype setPlanProductsAction = {\n\ttype: 'SET_PLAN_PRODUCTS';\n\tproducts: PlanProduct[];\n};\nexport const setPlanProducts = ( products: PlanProduct[] ): setPlanProductsAction => ( {\n\ttype: 'SET_PLAN_PRODUCTS' as const,\n\tproducts,\n} );\n\ntype resetPlanAction = { type: 'RESET_PLAN' };\nexport const resetPlan = (): resetPlanAction => ( {\n\ttype: 'RESET_PLAN' as const,\n} );\n\nexport type PlanAction = ReturnType<\n\t| typeof setFeatures\n\t| typeof setFeaturesByType\n\t| typeof setPlans\n\t| typeof resetPlan\n\t| typeof setPlanProducts\n\t| ( () => { type: 'NOOP' } )\n>;\n","export const STORE_KEY = 'automattic/onboard/plans';\n\nexport const FREE_PLAN_PRODUCT_ID = 1;\n\n// plans constants\nexport const TIMELESS_PLAN_FREE = 'free';\nexport const TIMELESS_PLAN_PERSONAL = 'personal';\nexport const TIMELESS_PLAN_PREMIUM = 'premium';\nexport const TIMELESS_PLAN_BUSINESS = 'business';\nexport const TIMELESS_PLAN_ECOMMERCE = 'ecommerce';\n\nexport const plansSlugs = [\n\tTIMELESS_PLAN_FREE,\n\tTIMELESS_PLAN_PERSONAL,\n\tTIMELESS_PLAN_PREMIUM,\n\tTIMELESS_PLAN_BUSINESS,\n\tTIMELESS_PLAN_ECOMMERCE,\n] as const;\n\n// order of the plans used to determine recommended plan based on features\nexport const plansOrder = plansSlugs;\n\nexport const DEFAULT_PAID_PLAN = TIMELESS_PLAN_PREMIUM;\n\n// plan products constants\nexport const PLAN_FREE = 'free_plan';\nexport const PLAN_PERSONAL = 'personal-bundle';\nexport const PLAN_PREMIUM = 'value_bundle';\nexport const PLAN_BUSINESS = 'business-bundle';\nexport const PLAN_ECOMMERCE = 'ecommerce-bundle';\n\nexport const PLAN_PERSONAL_MONTHLY = 'personal-bundle-monthly';\nexport const PLAN_PREMIUM_MONTHLY = 'value_bundle_monthly';\nexport const PLAN_BUSINESS_MONTHLY = 'business-bundle-monthly';\nexport const PLAN_ECOMMERCE_MONTHLY = 'ecommerce-bundle-monthly';\n\nexport const annualSlugs = [ PLAN_PERSONAL, PLAN_PREMIUM, PLAN_BUSINESS, PLAN_ECOMMERCE ] as const;\n\nexport const monthlySlugs = [\n\tPLAN_PERSONAL_MONTHLY,\n\tPLAN_PREMIUM_MONTHLY,\n\tPLAN_BUSINESS_MONTHLY,\n\tPLAN_ECOMMERCE_MONTHLY,\n] as const;\n\nexport const plansProductSlugs = [ PLAN_FREE, ...annualSlugs, ...monthlySlugs ] as const;\n\nexport const FEATURE_IDS_THAT_REQUIRE_ANNUALLY_BILLED_PLAN = [\n\t'custom-domain',\n\t'support-live',\n\t'priority-support',\n];\n","import { registerStore } from '@wordpress/data';\nimport { controls } from '../wpcom-request-controls';\nimport * as actions from './actions';\nimport { STORE_KEY } from './constants';\nimport reducer, { State } from './reducer';\nimport * as resolvers from './resolvers';\nimport * as selectors from './selectors';\nimport type { SelectFromMap, DispatchFromMap } from '../mapped-types';\n\nexport type { State };\nexport type {\n\tPlan,\n\tPlanSlug,\n\tStorePlanSlug,\n\tPlanProduct,\n\tPlanFeature,\n\tPlanPath,\n\tPlanBillingPeriod,\n\tPlanSimplifiedFeature,\n} from './types';\n\n// plansSlugs is a list with the identifiers for each plan and they are agnostic of billing period; eg: 'free', 'personal'\n// plansSlugs is also used to construct the route that accepts plan slugs like '/free', '/personal', '/business'\n// plansProductSlugs is a list with the identifiers for each plan product (including the billing period); eg: 'personal-bundle', 'personal-bundle-monthly'\n// TIMELESS_* is the slug for each plan\nexport {\n\tplansSlugs,\n\tplansProductSlugs,\n\tTIMELESS_PLAN_FREE,\n\tTIMELESS_PLAN_PERSONAL,\n\tTIMELESS_PLAN_PREMIUM,\n\tTIMELESS_PLAN_BUSINESS,\n\tTIMELESS_PLAN_ECOMMERCE,\n\tFREE_PLAN_PRODUCT_ID,\n} from './constants';\n\nlet isRegistered = false;\n\nexport function register(): typeof STORE_KEY {\n\tif ( ! isRegistered ) {\n\t\tisRegistered = true;\n\t\tregisterStore< State >( STORE_KEY, {\n\t\t\tresolvers,\n\t\t\tactions,\n\t\t\tcontrols: controls as any,\n\t\t\treducer,\n\t\t\tselectors,\n\t\t} );\n\t}\n\treturn STORE_KEY;\n}\n\ndeclare module '@wordpress/data' {\n\tfunction dispatch( key: typeof STORE_KEY ): DispatchFromMap< typeof actions >;\n\tfunction select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors >;\n}\n","import { combineReducers } from '@wordpress/data';\nimport type { PlanAction } from './actions';\nimport type { Plan, PlanFeature, FeaturesByType, PlanProduct } from './types';\nimport type { Reducer } from 'redux';\n\n// create a Locale type just for code readability\ntype Locale = string;\n\nexport const features: Reducer< Record< Locale, Record< string, PlanFeature > >, PlanAction > = (\n\tstate = {},\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_FEATURES':\n\t\t\treturn { ...state, [ action.locale ]: action.features };\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nexport const featuresByType: Reducer< Record< Locale, Array< FeaturesByType > >, PlanAction > = (\n\tstate = {},\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_FEATURES_BY_TYPE':\n\t\t\treturn { ...state, [ action.locale ]: action.featuresByType };\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nexport const plans: Reducer< Record< Locale, Plan[] >, PlanAction > = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_PLANS':\n\t\t\treturn { ...state, [ action.locale ]: action.plans };\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nexport const planProducts: Reducer< PlanProduct[], PlanAction > = ( state = [], action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_PLAN_PRODUCTS':\n\t\t\treturn action.products;\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nconst reducer = combineReducers( {\n\tfeatures,\n\tfeaturesByType,\n\tplanProducts,\n\tplans,\n} );\n\nexport type State = ReturnType< typeof reducer >;\n\nexport default reducer;\n","import formatCurrency from '@automattic/format-currency';\nimport { stringify } from 'qs';\nimport { fetchAndParse, wpcomRequest } from '../wpcom-request-controls';\nimport { setFeatures, setFeaturesByType, setPlanProducts, setPlans } from './actions';\nimport {\n\tTIMELESS_PLAN_FREE,\n\tTIMELESS_PLAN_PREMIUM,\n\tplansProductSlugs,\n\tmonthlySlugs,\n\tannualSlugs,\n\tFEATURE_IDS_THAT_REQUIRE_ANNUALLY_BILLED_PLAN,\n} from './constants';\nimport type {\n\tPricedAPIPlan,\n\tAPIPlanDetail,\n\tPlanSimplifiedFeature,\n\tPlan,\n\tDetailsAPIResponse,\n\tPlanFeature,\n\tPlanProduct,\n\tPlanSlug,\n\tDetailsAPIFeature,\n} from './types';\n\nconst MONTHLY_PLAN_BILLING_PERIOD = 31;\n\n/**\n * Calculates the monthly price of a plan\n * Annual plans are only priced yearly\n *\n * @param plan the plan object\n */\nfunction getMonthlyPrice( plan: PricedAPIPlan ) {\n\treturn formatCurrency( plan.raw_price / 12, plan.currency_code, { stripZeros: true } ) as string;\n}\n\n/**\n * Calculates the yearly price of a monthly plan\n *\n * @param plan the plan object\n */\nfunction getAnnualPrice( plan: PricedAPIPlan ) {\n\treturn formatCurrency( plan.raw_price * 12, plan.currency_code, { stripZeros: true } ) as string;\n}\n\n/**\n * Formats the plan price according to 'format-currency' package rules\n * We use this for consistency in prices formats across monthly and annual plans\n *\n * @param plan the plan object\n */\nfunction getFormattedPrice( plan: PricedAPIPlan ) {\n\treturn formatCurrency( plan.raw_price, plan.currency_code, { stripZeros: true } ) as string;\n}\n\nfunction calculateDiscounts( planProducts: PlanProduct[] ) {\n\t// calculate discounts\n\tfor ( let i = 0; i < annualSlugs.length; i++ ) {\n\t\tconst annualPlan = planProducts.find( ( plan ) => plan.storeSlug === annualSlugs[ i ] );\n\t\tconst monthlyPlan = planProducts.find( ( plan ) => plan.storeSlug === monthlySlugs[ i ] );\n\n\t\tif ( annualPlan && monthlyPlan ) {\n\t\t\tconst annualCostIfPaidMonthly = monthlyPlan.rawPrice * 12;\n\t\t\tconst annualCostIfPaidAnnually = annualPlan.rawPrice;\n\t\t\tconst discount = Math.round(\n\t\t\t\t100 * ( 1 - annualCostIfPaidAnnually / annualCostIfPaidMonthly )\n\t\t\t);\n\t\t\tannualPlan.annualDiscount = discount;\n\t\t\tmonthlyPlan.annualDiscount = discount;\n\t\t}\n\t}\n}\n\nfunction processFeatures( features: DetailsAPIFeature[] ) {\n\treturn features.reduce( ( features, feature ) => {\n\t\tfeatures[ feature.id ] = {\n\t\t\tid: feature.id,\n\t\t\tname: feature.name,\n\t\t\tdescription: feature.description,\n\t\t\ttype: 'checkbox',\n\t\t\trequiresAnnuallyBilledPlan:\n\t\t\t\tFEATURE_IDS_THAT_REQUIRE_ANNUALLY_BILLED_PLAN.indexOf( feature.id ) > -1,\n\t\t};\n\t\treturn features;\n\t}, {} as Record< string, PlanFeature > );\n}\n\nfunction featureRequiresAnnual(\n\tfeatureName: string,\n\tallFeaturesData: Record< string, PlanFeature >\n): boolean {\n\tconst matchedFeatureId = Object.keys( allFeaturesData ).find(\n\t\t( featureId ) => allFeaturesData[ featureId ].name === featureName\n\t);\n\n\tif ( matchedFeatureId ) {\n\t\treturn allFeaturesData[ matchedFeatureId ].requiresAnnuallyBilledPlan;\n\t}\n\n\treturn false;\n}\n\nfunction processPlanFeatures(\n\tplanData: APIPlanDetail,\n\tallFeaturesData: Record< string, PlanFeature >\n): PlanSimplifiedFeature[] {\n\tconst features: PlanSimplifiedFeature[] = planData.highlighted_features.map(\n\t\t( featureName ) => ( {\n\t\t\tname: featureName,\n\t\t\trequiresAnnuallyBilledPlan: featureRequiresAnnual( featureName, allFeaturesData ),\n\t\t} )\n\t);\n\n\t// Features requiring an annually billed plan should be first in the array.\n\tfeatures.sort(\n\t\t( a, b ) => Number( b.requiresAnnuallyBilledPlan ) - Number( a.requiresAnnuallyBilledPlan )\n\t);\n\n\treturn features;\n}\n\nfunction normalizePlanProducts(\n\tpricedPlans: PricedAPIPlan[],\n\tperiodAgnosticPlans: Plan[]\n): PlanProduct[] {\n\tconst plansProducts: PlanProduct[] = plansProductSlugs.reduce( ( plans, slug ) => {\n\t\tconst planProduct = pricedPlans.find( ( pricedPlan ) => pricedPlan.product_slug === slug );\n\n\t\tif ( ! planProduct ) {\n\t\t\treturn plans;\n\t\t}\n\n\t\tconst periodAgnosticPlan = periodAgnosticPlans.find(\n\t\t\t( plan ) => plan.productIds.indexOf( planProduct.product_id ) > -1\n\t\t) as Plan;\n\n\t\tplans.push( {\n\t\t\tproductId: planProduct.product_id,\n\t\t\t// This means that free plan is considered \"annually billed\"\n\t\t\tbillingPeriod:\n\t\t\t\tplanProduct.bill_period === MONTHLY_PLAN_BILLING_PERIOD ? 'MONTHLY' : 'ANNUALLY',\n\t\t\tperiodAgnosticSlug: periodAgnosticPlan.periodAgnosticSlug,\n\t\t\tstoreSlug: planProduct.product_slug,\n\t\t\trawPrice: planProduct.raw_price,\n\t\t\t// Not all plans returned from /plans have a `path_slug` (e.g. monthly plans don't have)\n\t\t\tpathSlug: planProduct.path_slug,\n\t\t\tprice:\n\t\t\t\tplanProduct?.bill_period === MONTHLY_PLAN_BILLING_PERIOD || planProduct.raw_price === 0\n\t\t\t\t\t? getFormattedPrice( planProduct )\n\t\t\t\t\t: getMonthlyPrice( planProduct ),\n\t\t\tannualPrice:\n\t\t\t\tplanProduct?.bill_period === MONTHLY_PLAN_BILLING_PERIOD\n\t\t\t\t\t? getAnnualPrice( planProduct )\n\t\t\t\t\t: getFormattedPrice( planProduct ),\n\t\t} );\n\t\treturn plans;\n\t}, [] as PlanProduct[] );\n\tcalculateDiscounts( plansProducts );\n\treturn plansProducts;\n}\n\nexport function* getSupportedPlans( locale = 'en' ) {\n\tconst pricedPlans: PricedAPIPlan[] = yield wpcomRequest( {\n\t\tpath: '/plans',\n\t\tquery: stringify( { locale } ),\n\t\tapiVersion: '1.5',\n\t} );\n\n\tconst { body: plansFeatures } = ( yield fetchAndParse(\n\t\t`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${ encodeURIComponent(\n\t\t\tlocale\n\t\t) }`,\n\t\t{\n\t\t\tmode: 'cors',\n\t\t\tcredentials: 'omit',\n\t\t}\n\t) ) as { body: DetailsAPIResponse };\n\n\tconst features = processFeatures( plansFeatures.features );\n\n\tconst periodAgnosticPlans: Plan[] = plansFeatures.plans.map( ( plan ) => {\n\t\tconst planSlug = plan.nonlocalized_short_name?.toLowerCase() as PlanSlug;\n\n\t\treturn {\n\t\t\tdescription: plan.tagline,\n\t\t\tfeatures: processPlanFeatures( plan, features ),\n\t\t\tstorage: plan.storage,\n\t\t\ttitle: plan.short_name,\n\t\t\tfeaturesSlugs: plan.features.reduce( ( slugs, slug ) => {\n\t\t\t\tslugs[ slug ] = true;\n\t\t\t\treturn slugs;\n\t\t\t}, {} as Record< string, boolean > ),\n\t\t\tisFree: planSlug === TIMELESS_PLAN_FREE,\n\t\t\tisPopular: planSlug === TIMELESS_PLAN_PREMIUM,\n\t\t\tperiodAgnosticSlug: planSlug,\n\t\t\tproductIds: plan.products.map( ( { plan_id } ) => plan_id ),\n\t\t};\n\t} );\n\n\tconst planProducts = normalizePlanProducts( pricedPlans, periodAgnosticPlans );\n\n\tyield setPlans( periodAgnosticPlans, locale );\n\tyield setPlanProducts( planProducts );\n\tyield setFeatures( features, locale );\n\tyield setFeaturesByType( plansFeatures.features_by_type, locale );\n}\n","import { select } from '@wordpress/data';\nimport deprecate from '@wordpress/deprecated';\nimport {\n\tDEFAULT_PAID_PLAN,\n\tTIMELESS_PLAN_ECOMMERCE,\n\tTIMELESS_PLAN_FREE,\n\tSTORE_KEY,\n\tFREE_PLAN_PRODUCT_ID,\n} from './constants';\nimport type { State } from './reducer';\nimport type {\n\tPlan,\n\tPlanFeature,\n\tFeaturesByType,\n\tPlanProduct,\n\tPlanPath,\n\tPlanSlug,\n\tStorePlanSlug,\n} from './types';\n\n// Some of these selectors require unused parameters because those\n// params are used by the associated resolver.\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\nexport const getFeatures = ( state: State, locale: string ): Record< string, PlanFeature > =>\n\tstate.features[ locale ] ?? {};\n\nexport const getFeaturesByType = ( state: State, locale: string ): Array< FeaturesByType > =>\n\tstate.featuresByType[ locale ] ?? [];\n\nexport const getPlanByProductId = (\n\t_state: State,\n\tproductId: number | undefined,\n\tlocale: string\n): Plan | undefined => {\n\tif ( ! productId ) {\n\t\treturn undefined;\n\t}\n\n\treturn select( STORE_KEY )\n\t\t.getSupportedPlans( locale )\n\t\t.find( ( plan ) => plan.productIds.indexOf( productId ) > -1 );\n};\n\nexport const getPlanProductById = (\n\t_state: State,\n\tproductId: number | undefined\n): PlanProduct | undefined => {\n\tif ( ! productId ) {\n\t\treturn undefined;\n\t}\n\n\treturn select( STORE_KEY )\n\t\t.getPlansProducts()\n\t\t.find( ( product ) => product.productId === productId );\n};\n\nexport const getPlanByPeriodAgnosticSlug = (\n\t_state: State,\n\tslug: PlanSlug | undefined,\n\tlocale: string\n): Plan | undefined => {\n\tif ( ! slug ) {\n\t\treturn undefined;\n\t}\n\treturn select( STORE_KEY )\n\t\t.getSupportedPlans( locale )\n\t\t.find( ( plan ) => plan.periodAgnosticSlug === slug );\n};\n\nexport const getDefaultPaidPlan = ( _: State, locale: string ): Plan | undefined => {\n\treturn select( STORE_KEY )\n\t\t.getSupportedPlans( locale )\n\t\t.find( ( plan ) => plan.periodAgnosticSlug === DEFAULT_PAID_PLAN );\n};\n\nexport const getDefaultFreePlan = ( _: State, locale: string ): Plan | undefined => {\n\treturn select( STORE_KEY )\n\t\t.getSupportedPlans( locale )\n\t\t.find( ( plan ) => plan.periodAgnosticSlug === TIMELESS_PLAN_FREE );\n};\n\nexport const getSupportedPlans = ( state: State, _locale: string ): Plan[] => {\n\treturn state.plans[ _locale ] ?? [];\n};\n\nexport const getPlansProducts = ( state: State ): PlanProduct[] => {\n\treturn state.planProducts;\n};\n\n/**\n * @deprecated getPrices is deprecated, please use plan.price directly\n *\n * @param _state the state\n * @param _locale the locale\n */\nexport const getPrices = ( _state: State, _locale: string ): Record< StorePlanSlug, string > => {\n\tdeprecate( 'getPrices', {\n\t\talternative: 'getPlanProduct().price',\n\t} );\n\treturn select( STORE_KEY )\n\t\t.getPlansProducts()\n\t\t.reduce( ( prices, plan ) => {\n\t\t\tprices[ plan.storeSlug ] = plan.price;\n\t\t\treturn prices;\n\t\t}, {} as Record< StorePlanSlug, string > );\n};\n\nexport const getPlanByPath = (\n\t_state: State,\n\tpath: PlanPath | undefined,\n\tlocale: string\n): Plan | undefined => {\n\tif ( ! path ) {\n\t\treturn undefined;\n\t}\n\n\tconst planProduct = select( STORE_KEY )\n\t\t.getPlansProducts()\n\t\t.find( ( product ) => product.pathSlug === path );\n\n\tif ( ! planProduct ) {\n\t\treturn undefined;\n\t}\n\n\treturn select( STORE_KEY )\n\t\t.getSupportedPlans( locale )\n\t\t.find( ( plan ) => plan.periodAgnosticSlug === planProduct.periodAgnosticSlug );\n};\n\nexport const getPlanProduct = (\n\t_state: State,\n\tperiodAgnosticSlug: string | undefined,\n\tbillingPeriod: PlanProduct[ 'billingPeriod' ] | undefined\n): PlanProduct | undefined => {\n\tif ( ! periodAgnosticSlug || ! billingPeriod ) {\n\t\treturn undefined;\n\t}\n\n\treturn select( STORE_KEY )\n\t\t.getPlansProducts()\n\t\t.find( ( product ) => {\n\t\t\tconst matchesSlug = product.periodAgnosticSlug === periodAgnosticSlug;\n\t\t\t// The billing period doesn't matter when dealing with free plan\n\t\t\tconst matchesBillingPeriod =\n\t\t\t\tperiodAgnosticSlug === TIMELESS_PLAN_FREE || product.billingPeriod === billingPeriod;\n\n\t\t\treturn matchesSlug && matchesBillingPeriod;\n\t\t} );\n};\n\nexport const isPlanEcommerce = ( _: State, planSlug?: PlanSlug ): boolean => {\n\treturn planSlug === TIMELESS_PLAN_ECOMMERCE;\n};\n\nexport const isPlanFree = ( _: State, planSlug?: PlanSlug ): boolean => {\n\treturn planSlug === TIMELESS_PLAN_FREE;\n};\n\nexport const isPlanProductFree = ( _: State, planProductId: number | undefined ): boolean =>\n\tplanProductId === FREE_PLAN_PRODUCT_ID;\n","import { Design } from '@automattic/design-picker/src/types';\nimport { SiteGoal } from '../onboard';\nimport { wpcomRequest } from '../wpcom-request-controls';\nimport {\n\tSiteLaunchError,\n\tAtomicTransferError,\n\tLatestAtomicTransferError,\n\tAtomicSoftwareStatusError,\n\tAtomicSoftwareInstallError,\n\tGlobalStyles,\n} from './types';\nimport type { WpcomClientCredentials } from '../shared-types';\nimport type {\n\tCreateSiteParams,\n\tNewSiteErrorResponse,\n\tNewSiteSuccessResponse,\n\tSiteDetails,\n\tSiteError,\n\tCart,\n\tDomain,\n\tLatestAtomicTransfer,\n\tSiteLaunchError as SiteLaunchErrorType,\n\tAtomicTransferError as AtomicTransferErrorType,\n\tLatestAtomicTransferError as LatestAtomicTransferErrorType,\n\tAtomicSoftwareStatusError as AtomicSoftwareStatusErrorType,\n\tAtomicSoftwareInstallError as AtomicSoftwareInstallErrorType,\n\tAtomicSoftwareStatus,\n\tSiteSettings,\n\tThemeSetupOptions,\n} from './types';\n\nexport function createActions( clientCreds: WpcomClientCredentials ) {\n\tconst fetchSite = () => ( {\n\t\ttype: 'FETCH_SITE' as const,\n\t} );\n\n\tconst fetchNewSite = () => ( {\n\t\ttype: 'FETCH_NEW_SITE' as const,\n\t} );\n\n\tconst receiveNewSite = ( response: NewSiteSuccessResponse ) => ( {\n\t\ttype: 'RECEIVE_NEW_SITE' as const,\n\t\tresponse,\n\t} );\n\n\tconst receiveNewSiteFailed = ( error: NewSiteErrorResponse ) => ( {\n\t\ttype: 'RECEIVE_NEW_SITE_FAILED' as const,\n\t\terror,\n\t} );\n\n\tfunction* createSite( params: CreateSiteParams ) {\n\t\tyield fetchNewSite();\n\t\ttry {\n\t\t\tconst { authToken, ...providedParams } = params;\n\n\t\t\tconst defaultParams = {\n\t\t\t\tclient_id: clientCreds.client_id,\n\t\t\t\tclient_secret: clientCreds.client_secret,\n\t\t\t\t// will find an available `*.wordpress.com` url based on the `blog_name`\n\t\t\t\tfind_available_url: true,\n\t\t\t\t// Private site is default, but overridable, setting\n\t\t\t\tpublic: -1,\n\t\t\t};\n\n\t\t\tconst mergedParams = {\n\t\t\t\t...defaultParams,\n\t\t\t\t...providedParams,\n\t\t\t\t// Set to false because site validation should be a separate action\n\t\t\t\tvalidate: false,\n\t\t\t};\n\n\t\t\tconst newSite: NewSiteSuccessResponse = yield wpcomRequest( {\n\t\t\t\tpath: '/sites/new',\n\t\t\t\tapiVersion: '1.1',\n\t\t\t\tmethod: 'post',\n\t\t\t\tbody: mergedParams,\n\t\t\t\ttoken: authToken,\n\t\t\t} );\n\n\t\t\tyield receiveNewSite( newSite );\n\t\t\treturn true;\n\t\t} catch ( err ) {\n\t\t\tyield receiveNewSiteFailed( err as NewSiteErrorResponse );\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tconst receiveSite = ( siteId: number, response: SiteDetails | undefined ) => ( {\n\t\ttype: 'RECEIVE_SITE' as const,\n\t\tsiteId,\n\t\tresponse,\n\t} );\n\n\tconst receiveSiteTitle = ( siteId: number, name: string | undefined ) => ( {\n\t\ttype: 'RECEIVE_SITE_TITLE' as const,\n\t\tsiteId,\n\t\tname,\n\t} );\n\n\tconst receiveSiteTagline = ( siteId: number, tagline: string | undefined ) => ( {\n\t\ttype: 'RECEIVE_SITE_TAGLINE' as const,\n\t\tsiteId,\n\t\ttagline,\n\t} );\n\n\tconst receiveSiteVerticalId = ( siteId: number, verticalId: string | undefined ) => ( {\n\t\ttype: 'RECEIVE_SITE_VERTICAL_ID' as const,\n\t\tsiteId,\n\t\tverticalId,\n\t} );\n\n\tconst receiveSiteFailed = ( siteId: number, response: SiteError ) => ( {\n\t\ttype: 'RECEIVE_SITE_FAILED' as const,\n\t\tsiteId,\n\t\tresponse,\n\t} );\n\n\tconst reset = () => ( {\n\t\ttype: 'RESET_SITE_STORE' as const,\n\t} );\n\n\tconst resetNewSiteFailed = () => ( {\n\t\ttype: 'RESET_RECEIVE_NEW_SITE_FAILED' as const,\n\t} );\n\n\tconst launchSiteStart = ( siteId: number ) => ( {\n\t\ttype: 'LAUNCH_SITE_START' as const,\n\t\tsiteId,\n\t} );\n\n\tconst launchSiteSuccess = ( siteId: number ) => ( {\n\t\ttype: 'LAUNCH_SITE_SUCCESS' as const,\n\t\tsiteId,\n\t} );\n\n\tconst launchSiteFailure = ( siteId: number, error: SiteLaunchErrorType ) => ( {\n\t\ttype: 'LAUNCH_SITE_FAILURE' as const,\n\t\tsiteId,\n\t\terror,\n\t} );\n\n\tfunction* launchSite( siteId: number ) {\n\t\tyield launchSiteStart( siteId );\n\t\ttry {\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ siteId }/launch`,\n\t\t\t\tapiVersion: '1.1',\n\t\t\t\tmethod: 'post',\n\t\t\t} );\n\t\t\tyield launchSiteSuccess( siteId );\n\t\t} catch ( _ ) {\n\t\t\tyield launchSiteFailure( siteId, SiteLaunchError.INTERNAL );\n\t\t}\n\t}\n\n\t// TODO: move getCart and setCart to a 'cart' data-store\n\tfunction* getCart( siteId: number ) {\n\t\tconst success: Cart = yield wpcomRequest( {\n\t\t\tpath: '/me/shopping-cart/' + siteId,\n\t\t\tapiVersion: '1.1',\n\t\t\tmethod: 'GET',\n\t\t} );\n\t\treturn success;\n\t}\n\n\tconst receiveSiteDomains = ( siteId: number, domains: Domain[] ) => ( {\n\t\ttype: 'RECEIVE_SITE_DOMAINS' as const,\n\t\tsiteId,\n\t\tdomains,\n\t} );\n\n\tconst receiveSiteSettings = ( siteId: number, settings: SiteSettings ) => ( {\n\t\ttype: 'RECEIVE_SITE_SETTINGS' as const,\n\t\tsiteId,\n\t\tsettings,\n\t} );\n\n\tconst updateSiteSettings = ( siteId: number, settings: SiteSettings ) => ( {\n\t\ttype: 'UPDATE_SITE_SETTINGS' as const,\n\t\tsiteId,\n\t\tsettings,\n\t} );\n\n\tfunction* setCart( siteId: number, cartData: Cart ) {\n\t\tconst success: Cart = yield wpcomRequest( {\n\t\t\tpath: '/me/shopping-cart/' + siteId,\n\t\t\tapiVersion: '1.1',\n\t\t\tmethod: 'POST',\n\t\t\tbody: cartData,\n\t\t} );\n\t\treturn success;\n\t}\n\n\tconst receiveSiteGlobalStyles = ( siteId: number, globalStyles: GlobalStyles ) => ( {\n\t\ttype: 'RECEIVE_SITE_GLOBAL_STYLES' as const,\n\t\tsiteId,\n\t\tglobalStyles,\n\t} );\n\n\tfunction* getGlobalStyles( siteId: number, stylesheet: string ) {\n\t\tconst globalStyles: GlobalStyles = yield wpcomRequest( {\n\t\t\tpath: `/sites/${ siteId }/global-styles/themes/${ stylesheet }`,\n\t\t\tapiNamespace: 'wp/v2',\n\t\t} );\n\n\t\tyield receiveSiteGlobalStyles( siteId, globalStyles );\n\n\t\treturn globalStyles;\n\t}\n\n\tfunction* saveSiteSettings(\n\t\tsiteId: number,\n\t\tsettings: {\n\t\t\tblogname?: string;\n\t\t\tblogdescription?: string;\n\t\t\tlaunchpad_screen?: string;\n\t\t\tsite_vertical_id?: string;\n\t\t\twoocommerce_store_address?: string;\n\t\t\twoocommerce_store_address_2?: string;\n\t\t\twoocommerce_store_city?: string;\n\t\t\twoocommerce_store_postcode?: string;\n\t\t\twoocommerce_defaut_country?: string;\n\t\t\twoocommerce_onboarding_profile?: { [ key: string ]: any };\n\t\t}\n\t) {\n\t\ttry {\n\t\t\t// extract this into its own function as a generic settings setter\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteId ) }/settings`,\n\t\t\t\tapiVersion: '1.4',\n\t\t\t\tbody: settings,\n\t\t\t\tmethod: 'POST',\n\t\t\t} );\n\t\t\tif ( 'blogname' in settings ) {\n\t\t\t\tyield receiveSiteTitle( siteId, settings.blogname );\n\t\t\t}\n\t\t\tif ( 'blogdescription' in settings ) {\n\t\t\t\tyield receiveSiteTagline( siteId, settings.blogdescription );\n\t\t\t}\n\t\t\tif ( 'site_vertical_id' in settings ) {\n\t\t\t\tyield receiveSiteVerticalId( siteId, settings.site_vertical_id );\n\t\t\t}\n\t\t\tyield updateSiteSettings( siteId, settings );\n\t\t} catch ( e ) {}\n\t}\n\n\tfunction* setIntentOnSite( siteSlug: string, intent: string ) {\n\t\ttry {\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteSlug ) }/site-intent`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tbody: { site_intent: intent },\n\t\t\t\tmethod: 'POST',\n\t\t\t} );\n\t\t} catch ( e ) {}\n\t}\n\n\tfunction* setStaticHomepageOnSite( siteID: number, pageId: number ) {\n\t\ttry {\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteID ) }/homepage`,\n\t\t\t\tapiVersion: '1.1',\n\t\t\t\tbody: { is_page_on_front: true, page_on_front_id: pageId },\n\t\t\t\tmethod: 'POST',\n\t\t\t} );\n\t\t} catch ( e ) {}\n\t}\n\n\tfunction* setGoalsOnSite( siteSlug: string, goals: SiteGoal[] ) {\n\t\ttry {\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteSlug ) }/site-goals`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tbody: { site_goals: goals },\n\t\t\t\tmethod: 'POST',\n\t\t\t} );\n\t\t} catch ( e ) {}\n\t}\n\n\tfunction* saveSiteTitle( siteId: number, blogname: string | undefined ) {\n\t\tyield saveSiteSettings( siteId, { blogname } );\n\t}\n\n\tfunction* saveSiteTagline( siteId: number, blogdescription: string | undefined ) {\n\t\tyield saveSiteSettings( siteId, { blogdescription } );\n\t}\n\n\tfunction* setThemeOnSite( siteSlug: string, theme: string ) {\n\t\tyield wpcomRequest( {\n\t\t\tpath: `/sites/${ siteSlug }/themes/mine`,\n\t\t\tapiVersion: '1.1',\n\t\t\tbody: { theme: theme, dont_change_homepage: true },\n\t\t\tmethod: 'POST',\n\t\t} );\n\t}\n\n\tfunction* setDesignOnSite( siteSlug: string, selectedDesign: Design, siteVerticalId?: string ) {\n\t\tconst { theme, recipe } = selectedDesign;\n\n\t\tyield wpcomRequest( {\n\t\t\tpath: `/sites/${ siteSlug }/themes/mine`,\n\t\t\tapiVersion: '1.1',\n\t\t\tbody: { theme: recipe?.stylesheet?.split( '/' )[ 1 ] || theme, dont_change_homepage: true },\n\t\t\tmethod: 'POST',\n\t\t} );\n\n\t\t/*\n\t\t * Anchor themes are set up directly via Headstart on the server side\n\t\t * so exclude them from theme setup.\n\t\t */\n\t\tconst anchorDesigns = [ 'hannah', 'gilbert', 'riley' ];\n\t\tif ( anchorDesigns.indexOf( selectedDesign.template ) < 0 ) {\n\t\t\tconst themeSetupOptions: ThemeSetupOptions = {\n\t\t\t\ttrim_content: true,\n\t\t\t};\n\n\t\t\tif ( selectedDesign.verticalizable ) {\n\t\t\t\tthemeSetupOptions.vertical_id = siteVerticalId;\n\t\t\t}\n\n\t\t\tif ( recipe?.pattern_ids ) {\n\t\t\t\tthemeSetupOptions.pattern_ids = recipe?.pattern_ids;\n\t\t\t}\n\n\t\t\tif ( recipe?.header_pattern_ids ) {\n\t\t\t\tthemeSetupOptions.header_pattern_ids = recipe?.header_pattern_ids;\n\t\t\t}\n\n\t\t\tif ( recipe?.footer_pattern_ids ) {\n\t\t\t\tthemeSetupOptions.footer_pattern_ids = recipe?.footer_pattern_ids;\n\t\t\t}\n\n\t\t\tconst response: { blog: string } = yield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteSlug ) }/theme-setup`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tbody: themeSetupOptions,\n\t\t\t\tmethod: 'POST',\n\t\t\t} );\n\n\t\t\treturn response;\n\t\t}\n\t}\n\n\tconst setSiteSetupError = ( error: string, message: string ) => ( {\n\t\ttype: 'SET_SITE_SETUP_ERROR',\n\t\terror,\n\t\tmessage,\n\t} );\n\n\tconst clearSiteSetupError = ( siteId: number ) => ( {\n\t\ttype: 'CLEAR_SITE_SETUP_ERROR',\n\t\tsiteId,\n\t} );\n\n\tconst atomicTransferStart = ( siteId: number, softwareSet: string | undefined ) => ( {\n\t\ttype: 'ATOMIC_TRANSFER_START' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t} );\n\n\tconst atomicTransferSuccess = ( siteId: number, softwareSet: string | undefined ) => ( {\n\t\ttype: 'ATOMIC_TRANSFER_SUCCESS' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t} );\n\n\tconst atomicTransferFailure = (\n\t\tsiteId: number,\n\t\tsoftwareSet: string | undefined,\n\t\terror: AtomicTransferErrorType\n\t) => ( {\n\t\ttype: 'ATOMIC_TRANSFER_FAILURE' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t\terror,\n\t} );\n\n\tfunction* initiateAtomicTransfer( siteId: number, softwareSet: string | undefined ) {\n\t\tyield atomicTransferStart( siteId, softwareSet );\n\t\ttry {\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteId ) }/atomic/transfers`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tmethod: 'POST',\n\t\t\t\t...( softwareSet\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tbody: {\n\t\t\t\t\t\t\t\tsoftware_set: encodeURIComponent( softwareSet ),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t }\n\t\t\t\t\t: {} ),\n\t\t\t} );\n\t\t\tyield atomicTransferSuccess( siteId, softwareSet );\n\t\t} catch ( _ ) {\n\t\t\tyield atomicTransferFailure( siteId, softwareSet, AtomicTransferError.INTERNAL );\n\t\t}\n\t}\n\n\tconst latestAtomicTransferStart = ( siteId: number ) => ( {\n\t\ttype: 'LATEST_ATOMIC_TRANSFER_START' as const,\n\t\tsiteId,\n\t} );\n\n\tconst latestAtomicTransferSuccess = ( siteId: number, transfer: LatestAtomicTransfer ) => ( {\n\t\ttype: 'LATEST_ATOMIC_TRANSFER_SUCCESS' as const,\n\t\tsiteId,\n\t\ttransfer,\n\t} );\n\n\tconst latestAtomicTransferFailure = (\n\t\tsiteId: number,\n\t\terror: LatestAtomicTransferErrorType\n\t) => ( {\n\t\ttype: 'LATEST_ATOMIC_TRANSFER_FAILURE' as const,\n\t\tsiteId,\n\t\terror,\n\t} );\n\n\tfunction* requestLatestAtomicTransfer( siteId: number ) {\n\t\tyield latestAtomicTransferStart( siteId );\n\n\t\ttry {\n\t\t\tconst transfer: LatestAtomicTransfer = yield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteId ) }/atomic/transfers/latest`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tmethod: 'GET',\n\t\t\t} );\n\t\t\tyield latestAtomicTransferSuccess( siteId, transfer );\n\t\t} catch ( err ) {\n\t\t\tyield latestAtomicTransferFailure( siteId, err as LatestAtomicTransferError );\n\t\t}\n\t}\n\n\tconst atomicSoftwareStatusStart = ( siteId: number, softwareSet: string ) => ( {\n\t\ttype: 'ATOMIC_SOFTWARE_STATUS_START' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t} );\n\n\tconst atomicSoftwareStatusSuccess = (\n\t\tsiteId: number,\n\t\tsoftwareSet: string,\n\t\tstatus: AtomicSoftwareStatus\n\t) => ( {\n\t\ttype: 'ATOMIC_SOFTWARE_STATUS_SUCCESS' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t\tstatus,\n\t} );\n\n\tconst atomicSoftwareStatusFailure = (\n\t\tsiteId: number,\n\t\tsoftwareSet: string,\n\t\terror: AtomicSoftwareStatusErrorType\n\t) => ( {\n\t\ttype: 'ATOMIC_SOFTWARE_STATUS_FAILURE' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t\terror,\n\t} );\n\n\tfunction* requestAtomicSoftwareStatus( siteId: number, softwareSet: string ) {\n\t\tyield atomicSoftwareStatusStart( siteId, softwareSet );\n\t\ttry {\n\t\t\tconst status: AtomicSoftwareStatus = yield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteId ) }/atomic/software/${ encodeURIComponent(\n\t\t\t\t\tsoftwareSet\n\t\t\t\t) }`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tmethod: 'GET',\n\t\t\t} );\n\t\t\tyield atomicSoftwareStatusSuccess( siteId, softwareSet, status );\n\t\t} catch ( err ) {\n\t\t\tyield atomicSoftwareStatusFailure( siteId, softwareSet, err as AtomicSoftwareStatusError );\n\t\t}\n\t}\n\n\tconst atomicSoftwareInstallStart = ( siteId: number, softwareSet: string ) => ( {\n\t\ttype: 'ATOMIC_SOFTWARE_INSTALL_START' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t} );\n\n\tconst atomicSoftwareInstallSuccess = ( siteId: number, softwareSet: string ) => ( {\n\t\ttype: 'ATOMIC_SOFTWARE_INSTALL_SUCCESS' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t} );\n\n\tconst atomicSoftwareInstallFailure = (\n\t\tsiteId: number,\n\t\tsoftwareSet: string,\n\t\terror: AtomicSoftwareInstallErrorType\n\t) => ( {\n\t\ttype: 'ATOMIC_SOFTWARE_INSTALL_FAILURE' as const,\n\t\tsiteId,\n\t\tsoftwareSet,\n\t\terror,\n\t} );\n\n\tfunction* initiateSoftwareInstall( siteId: number, softwareSet: string ) {\n\t\tyield atomicSoftwareInstallStart( siteId, softwareSet );\n\t\ttry {\n\t\t\tyield wpcomRequest( {\n\t\t\t\tpath: `/sites/${ encodeURIComponent( siteId ) }/atomic/software/${ encodeURIComponent(\n\t\t\t\t\tsoftwareSet\n\t\t\t\t) }`,\n\t\t\t\tapiNamespace: 'wpcom/v2',\n\t\t\t\tmethod: 'POST',\n\t\t\t\tbody: {},\n\t\t\t} );\n\t\t\tyield atomicSoftwareInstallSuccess( siteId, softwareSet );\n\t\t} catch ( err ) {\n\t\t\tyield atomicSoftwareInstallFailure( siteId, softwareSet, err as AtomicSoftwareInstallError );\n\t\t}\n\t}\n\n\tconst setBundledPluginSlug = ( siteSlug: string, pluginSlug: string ) => ( {\n\t\ttype: 'SET_BUNDLED_PLUGIN_SLUG' as const,\n\t\tsiteSlug,\n\t\tpluginSlug,\n\t} );\n\n\treturn {\n\t\treceiveSiteDomains,\n\t\treceiveSiteSettings,\n\t\tsaveSiteTitle,\n\t\tsaveSiteSettings,\n\t\tsetIntentOnSite,\n\t\tsetStaticHomepageOnSite,\n\t\tsetGoalsOnSite,\n\t\treceiveSiteTitle,\n\t\tfetchNewSite,\n\t\tfetchSite,\n\t\treceiveNewSite,\n\t\treceiveNewSiteFailed,\n\t\tresetNewSiteFailed,\n\t\tsetThemeOnSite,\n\t\tsetDesignOnSite,\n\t\tcreateSite,\n\t\treceiveSite,\n\t\treceiveSiteFailed,\n\t\treceiveSiteTagline,\n\t\treceiveSiteVerticalId,\n\t\tupdateSiteSettings,\n\t\tsaveSiteTagline,\n\t\treset,\n\t\tlaunchSite,\n\t\tlaunchSiteStart,\n\t\tlaunchSiteSuccess,\n\t\tlaunchSiteFailure,\n\t\tgetCart,\n\t\tsetCart,\n\t\tgetGlobalStyles,\n\t\treceiveSiteGlobalStyles,\n\t\tsetSiteSetupError,\n\t\tclearSiteSetupError,\n\t\tinitiateAtomicTransfer,\n\t\tatomicTransferStart,\n\t\tatomicTransferSuccess,\n\t\tatomicTransferFailure,\n\t\tlatestAtomicTransferStart,\n\t\tlatestAtomicTransferSuccess,\n\t\tlatestAtomicTransferFailure,\n\t\trequestLatestAtomicTransfer,\n\t\tatomicSoftwareStatusStart,\n\t\tatomicSoftwareStatusSuccess,\n\t\tatomicSoftwareStatusFailure,\n\t\trequestAtomicSoftwareStatus,\n\t\tinitiateSoftwareInstall,\n\t\tatomicSoftwareInstallStart,\n\t\tatomicSoftwareInstallSuccess,\n\t\tatomicSoftwareInstallFailure,\n\t\tsetBundledPluginSlug,\n\t};\n}\n\nexport type ActionCreators = ReturnType< typeof createActions >;\n\nexport type Action =\n\t| ReturnType<\n\t\t\t| ActionCreators[ 'fetchNewSite' ]\n\t\t\t| ActionCreators[ 'fetchSite' ]\n\t\t\t| ActionCreators[ 'receiveSiteDomains' ]\n\t\t\t| ActionCreators[ 'receiveSiteSettings' ]\n\t\t\t| ActionCreators[ 'receiveNewSite' ]\n\t\t\t| ActionCreators[ 'receiveSiteTitle' ]\n\t\t\t| ActionCreators[ 'receiveNewSiteFailed' ]\n\t\t\t| ActionCreators[ 'receiveSiteTagline' ]\n\t\t\t| ActionCreators[ 'receiveSiteVerticalId' ]\n\t\t\t| ActionCreators[ 'receiveSite' ]\n\t\t\t| ActionCreators[ 'receiveSiteFailed' ]\n\t\t\t| ActionCreators[ 'updateSiteSettings' ]\n\t\t\t| ActionCreators[ 'receiveSiteGlobalStyles' ]\n\t\t\t| ActionCreators[ 'reset' ]\n\t\t\t| ActionCreators[ 'resetNewSiteFailed' ]\n\t\t\t| ActionCreators[ 'launchSiteStart' ]\n\t\t\t| ActionCreators[ 'launchSiteSuccess' ]\n\t\t\t| ActionCreators[ 'launchSiteFailure' ]\n\t\t\t| ActionCreators[ 'atomicTransferStart' ]\n\t\t\t| ActionCreators[ 'atomicTransferSuccess' ]\n\t\t\t| ActionCreators[ 'atomicTransferFailure' ]\n\t\t\t| ActionCreators[ 'latestAtomicTransferStart' ]\n\t\t\t| ActionCreators[ 'latestAtomicTransferSuccess' ]\n\t\t\t| ActionCreators[ 'latestAtomicTransferFailure' ]\n\t\t\t| ActionCreators[ 'atomicSoftwareStatusStart' ]\n\t\t\t| ActionCreators[ 'atomicSoftwareStatusSuccess' ]\n\t\t\t| ActionCreators[ 'atomicSoftwareStatusFailure' ]\n\t\t\t| ActionCreators[ 'atomicSoftwareInstallStart' ]\n\t\t\t| ActionCreators[ 'atomicSoftwareInstallSuccess' ]\n\t\t\t| ActionCreators[ 'atomicSoftwareInstallFailure' ]\n\t\t\t| ActionCreators[ 'setBundledPluginSlug' ]\n\t >\n\t// Type added so we can dispatch actions in tests, but has no runtime cost\n\t| { type: 'TEST_ACTION' };\n","export const STORE_KEY = 'automattic/site';\n","import { plugins, use, registerStore } from '@wordpress/data';\nimport { controls } from '../wpcom-request-controls';\nimport { createActions } from './actions';\nimport { STORE_KEY } from './constants';\nimport persistOptions from './persist';\nimport reducer, { State } from './reducer';\nimport * as resolvers from './resolvers';\nimport * as selectors from './selectors';\nimport type { DispatchFromMap, SelectFromMap } from '../mapped-types';\nimport type { WpcomClientCredentials } from '../shared-types';\n\nexport * from './types';\nexport type { State };\nexport { STORE_KEY };\n\nlet isRegistered = false;\nexport function register( clientCreds: WpcomClientCredentials ): typeof STORE_KEY {\n\tif ( ! isRegistered ) {\n\t\tuse( plugins.persistence, persistOptions );\n\n\t\tisRegistered = true;\n\t\tregisterStore< State >( STORE_KEY, {\n\t\t\tactions: createActions( clientCreds ),\n\t\t\tcontrols: controls as any,\n\t\t\treducer,\n\t\t\tresolvers,\n\t\t\tselectors,\n\t\t\tpersist: [ 'bundledPluginSlug' ],\n\t\t} );\n\t}\n\treturn STORE_KEY;\n}\n\ndeclare module '@wordpress/data' {\n\tfunction dispatch( key: typeof STORE_KEY ): DispatchFromMap< ReturnType< typeof createActions > >;\n\tfunction select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors >;\n}\n","import persistenceConfigFactory from '../persistence-config-factory';\n\nexport default persistenceConfigFactory( 'WP_SITE' );\n","import { combineReducers } from '@wordpress/data';\nimport {\n\tNewSiteBlogDetails,\n\tNewSiteErrorResponse,\n\tSiteDetails,\n\tSiteError,\n\tDomain,\n\tSiteLaunchState,\n\tSiteLaunchStatus,\n\tSiteSettings,\n\tAtomicTransferStatus,\n\tLatestAtomicTransferStatus,\n\tGlobalStyles,\n} from './types';\nimport {\n\tAtomicTransferState,\n\tLatestAtomicTransferState,\n\tAtomicSoftwareStatusState,\n\tAtomicSoftwareInstallState,\n\tAtomicSoftwareInstallStatus,\n} from '.';\nimport type { Action } from './actions';\nimport type { Reducer } from 'redux';\n\nexport const newSiteData: Reducer< NewSiteBlogDetails | undefined, Action > = ( state, action ) => {\n\tif ( action.type === 'RECEIVE_NEW_SITE' ) {\n\t\tconst { response } = action;\n\t\treturn response.blog_details;\n\t} else if ( action.type === 'RECEIVE_NEW_SITE_FAILED' ) {\n\t\treturn undefined;\n\t} else if ( action.type === 'RESET_SITE_STORE' ) {\n\t\treturn undefined;\n\t}\n\treturn state;\n};\n\nexport const newSiteError: Reducer< NewSiteErrorResponse | undefined, Action > = (\n\tstate,\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_NEW_SITE':\n\t\tcase 'RECEIVE_NEW_SITE':\n\t\tcase 'RESET_SITE_STORE':\n\t\tcase 'RESET_RECEIVE_NEW_SITE_FAILED':\n\t\t\treturn undefined;\n\t\tcase 'RECEIVE_NEW_SITE_FAILED':\n\t\t\treturn {\n\t\t\t\terror: action.error.error,\n\t\t\t\tstatus: action.error.status,\n\t\t\t\tstatusCode: action.error.statusCode,\n\t\t\t\tname: action.error.name,\n\t\t\t\tmessage: action.error.message,\n\t\t\t};\n\t}\n\treturn state;\n};\n\nexport const isFetchingSite: Reducer< boolean | undefined, Action > = ( state = false, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_NEW_SITE':\n\t\t\treturn true;\n\t\tcase 'RECEIVE_NEW_SITE':\n\t\tcase 'RECEIVE_NEW_SITE_FAILED':\n\t\tcase 'RESET_SITE_STORE':\n\t\tcase 'RESET_RECEIVE_NEW_SITE_FAILED':\n\t\t\treturn false;\n\t}\n\treturn state;\n};\n\nexport const fetchingSiteError: Reducer< SiteError | undefined, Action > = ( state, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'RECEIVE_SITE_FAILED':\n\t\t\treturn {\n\t\t\t\terror: action.response.error,\n\t\t\t\tmessage: action.response.message,\n\t\t\t};\n\t}\n\treturn state;\n};\n\nexport const isFetchingSiteDetails: Reducer< boolean | undefined, Action > = (\n\tstate = false,\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_SITE':\n\t\t\treturn true;\n\t\tcase 'RECEIVE_SITE':\n\t\tcase 'RECEIVE_SITE_FAILED':\n\t\t\treturn false;\n\t}\n\treturn state;\n};\n\nexport const sites: Reducer< { [ key: number | string ]: SiteDetails | undefined }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'RECEIVE_SITE' ) {\n\t\tif ( action.response ) {\n\t\t\treturn { ...state, [ action.response.ID ]: action.response };\n\t\t}\n\t\treturn state;\n\t} else if ( action.type === 'RECEIVE_SITE_FAILED' ) {\n\t\tconst { [ action.siteId ]: idToBeRemoved, ...remainingState } = state;\n\t\treturn { ...remainingState };\n\t} else if ( action.type === 'RESET_SITE_STORE' ) {\n\t\treturn {};\n\t} else if ( action.type === 'RECEIVE_SITE_TITLE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: { ...( state[ action.siteId ] as SiteDetails ), name: action.name },\n\t\t};\n\t} else if ( action.type === 'RECEIVE_SITE_TAGLINE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t...( state[ action.siteId ] as SiteDetails ),\n\t\t\t\tdescription: action.tagline ?? '',\n\t\t\t},\n\t\t};\n\t} else if ( action.type === 'RECEIVE_SITE_VERTICAL_ID' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t...( state[ action.siteId ] as SiteDetails ),\n\t\t\t\toptions: {\n\t\t\t\t\t...state[ action.siteId ]?.options,\n\t\t\t\t\tsite_vertical_id: action.verticalId,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nexport const sitesDomains: Reducer< { [ key: number ]: Domain[] }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'RECEIVE_SITE_DOMAINS' ) {\n\t\treturn { ...state, [ action.siteId ]: action.domains };\n\t}\n\treturn state;\n};\n\nexport const sitesSettings: Reducer< { [ key: number ]: SiteSettings }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'RECEIVE_SITE_SETTINGS' ) {\n\t\treturn { ...state, [ action.siteId ]: action.settings };\n\t}\n\tif ( action.type === 'UPDATE_SITE_SETTINGS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t...state?.[ action.siteId ],\n\t\t\t\t...action.settings,\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nexport const sitesGlobalStyles: Reducer< { [ key: number ]: GlobalStyles }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'RECEIVE_SITE_GLOBAL_STYLES' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t...state?.[ action.siteId ],\n\t\t\t\t...action.globalStyles,\n\t\t\t},\n\t\t};\n\t}\n\n\treturn state;\n};\n\nexport const launchStatus: Reducer< { [ key: number ]: SiteLaunchState }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'LAUNCH_SITE_START' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: { status: SiteLaunchStatus.IN_PROGRESS, errorCode: undefined },\n\t\t};\n\t}\n\tif ( action.type === 'LAUNCH_SITE_SUCCESS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: { status: SiteLaunchStatus.SUCCESS, errorCode: undefined },\n\t\t};\n\t}\n\tif ( action.type === 'LAUNCH_SITE_FAILURE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: SiteLaunchStatus.FAILURE,\n\t\t\t\terrorCode: action.error,\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nexport const siteSetupErrors: Reducer<\n\t{\n\t\terror?: string;\n\t\tmessage?: string;\n\t},\n\t{\n\t\ttype: string;\n\t\terror?: string;\n\t\tmessage?: string;\n\t}\n> = ( state = {}, action ) => {\n\tif ( action.type === 'SET_SITE_SETUP_ERROR' ) {\n\t\tconst { error, message } = action;\n\n\t\treturn {\n\t\t\terror,\n\t\t\tmessage,\n\t\t};\n\t}\n\n\tif ( action.type === 'CLEAR_SITE_SETUP_ERROR' ) {\n\t\treturn {};\n\t}\n\n\treturn state;\n};\n\nexport const atomicTransferStatus: Reducer< { [ key: number ]: AtomicTransferState }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'ATOMIC_TRANSFER_START' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: AtomicTransferStatus.IN_PROGRESS,\n\t\t\t\tsoftwareSet: action.softwareSet,\n\t\t\t\terrorCode: undefined,\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'ATOMIC_TRANSFER_SUCCESS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: AtomicTransferStatus.SUCCESS,\n\t\t\t\tsoftwareSet: action.softwareSet,\n\t\t\t\terrorCode: undefined,\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'ATOMIC_TRANSFER_FAILURE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: AtomicTransferStatus.FAILURE,\n\t\t\t\tsoftwareSet: action.softwareSet,\n\t\t\t\terrorCode: action.error,\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nexport const latestAtomicTransferStatus: Reducer<\n\t{ [ key: number ]: LatestAtomicTransferState },\n\tAction\n> = ( state = {}, action ) => {\n\tif ( action.type === 'LATEST_ATOMIC_TRANSFER_START' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: LatestAtomicTransferStatus.IN_PROGRESS,\n\t\t\t\ttransfer: undefined,\n\t\t\t\terrorCode: undefined,\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'LATEST_ATOMIC_TRANSFER_SUCCESS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: LatestAtomicTransferStatus.SUCCESS,\n\t\t\t\ttransfer: action.transfer,\n\t\t\t\terrorCode: undefined,\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'LATEST_ATOMIC_TRANSFER_FAILURE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\tstatus: LatestAtomicTransferStatus.FAILURE,\n\t\t\t\ttransfer: undefined,\n\t\t\t\terrorCode: action.error,\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nexport const atomicSoftwareStatus: Reducer<\n\t{ [ key: number ]: AtomicSoftwareStatusState },\n\tAction\n> = ( state = {}, action ) => {\n\tif ( action.type === 'ATOMIC_SOFTWARE_STATUS_START' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t[ action.softwareSet ]: {\n\t\t\t\t\tstatus: undefined,\n\t\t\t\t\terror: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'ATOMIC_SOFTWARE_STATUS_SUCCESS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t[ action.softwareSet ]: {\n\t\t\t\t\tstatus: action.status,\n\t\t\t\t\terror: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'ATOMIC_SOFTWARE_STATUS_FAILURE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t[ action.softwareSet ]: {\n\t\t\t\t\tstatus: undefined,\n\t\t\t\t\terror: action.error,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nexport const atomicSoftwareInstallStatus: Reducer<\n\t{ [ key: number ]: AtomicSoftwareInstallState },\n\tAction\n> = ( state = {}, action ) => {\n\tif ( action.type === 'ATOMIC_SOFTWARE_INSTALL_START' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t[ action.softwareSet ]: {\n\t\t\t\t\tstatus: AtomicSoftwareInstallStatus.IN_PROGRESS,\n\t\t\t\t\terror: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'ATOMIC_SOFTWARE_INSTALL_SUCCESS' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t[ action.softwareSet ]: {\n\t\t\t\t\tstatus: AtomicSoftwareInstallStatus.SUCCESS,\n\t\t\t\t\terror: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\tif ( action.type === 'ATOMIC_SOFTWARE_INSTALL_FAILURE' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteId ]: {\n\t\t\t\t[ action.softwareSet ]: {\n\t\t\t\t\tstatus: AtomicSoftwareInstallStatus.FAILURE,\n\t\t\t\t\terror: action.error,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t}\n\treturn state;\n};\n\nconst bundledPluginSlug: Reducer< { [ key: string ]: string | undefined }, Action > = (\n\tstate = {},\n\taction\n) => {\n\tif ( action.type === 'SET_BUNDLED_PLUGIN_SLUG' ) {\n\t\treturn {\n\t\t\t...state,\n\t\t\t[ action.siteSlug ]: action.pluginSlug,\n\t\t};\n\t}\n\tif ( action.type === 'RESET_SITE_STORE' ) {\n\t\treturn {};\n\t}\n\treturn state;\n};\n\nconst newSite = combineReducers( {\n\tdata: newSiteData,\n\terror: newSiteError,\n\tisFetching: isFetchingSite,\n} );\n\nconst reducer = combineReducers( {\n\tisFetchingSiteDetails,\n\tnewSite,\n\tfetchingSiteError,\n\tsites,\n\tlaunchStatus,\n\tsitesDomains,\n\tsitesSettings,\n\tsitesGlobalStyles,\n\tsiteSetupErrors,\n\tatomicTransferStatus,\n\tlatestAtomicTransferStatus,\n\tatomicSoftwareStatus,\n\tatomicSoftwareInstallStatus,\n\tbundledPluginSlug,\n} );\n\nexport type State = ReturnType< typeof reducer >;\n\nexport default reducer;\n","// wpcomRequest is a temporary rename while we're working on migrating generators to thunks\nimport wpcomRequest from 'wpcom-proxy-request';\nimport type { SiteDetails, Domain, SiteSettings, Dispatch, NewSiteErrorResponse } from './types';\n\n/**\n * Attempt to find a site based on its id, and if not return undefined.\n * We are currently ignoring error messages and silently failing if we can't find a\n * site. This could be extended in the future by retrieving the `error` and\n * `message` strings returned by the API.\n *\n * @param siteId {number}\tThe site to look up\n */\nexport const getSite =\n\t( siteId: number ) =>\n\tasync ( { dispatch }: Dispatch ) => {\n\t\tdispatch.fetchSite();\n\t\ttry {\n\t\t\tconst existingSite: SiteDetails | undefined = await wpcomRequest( {\n\t\t\t\tpath: '/sites/' + encodeURIComponent( siteId ),\n\t\t\t\tapiVersion: '1.1',\n\t\t\t} );\n\t\t\tdispatch.receiveSite( siteId, existingSite );\n\t\t} catch ( err ) {\n\t\t\tdispatch.receiveSiteFailed( siteId, err as NewSiteErrorResponse );\n\t\t}\n\t};\n\n/**\n * Get all site domains\n *\n * @param siteId {number} The site id\n */\nexport const getSiteDomains =\n\t( siteId: number ) =>\n\tasync ( { dispatch }: Dispatch ) => {\n\t\tconst result: { domains: Domain[] } = await wpcomRequest( {\n\t\t\tpath: '/sites/' + encodeURIComponent( siteId ) + '/domains',\n\t\t\tapiVersion: '1.2',\n\t\t} );\n\t\tdispatch.receiveSiteDomains( siteId, result?.domains );\n\t};\n\n/**\n * Get all site settings\n *\n * @param siteId {number} The site id\n */\nexport const getSiteSettings =\n\t( siteId: number ) =>\n\tasync ( { dispatch }: Dispatch ) => {\n\t\tconst result: { settings: SiteSettings } = await wpcomRequest( {\n\t\t\tpath: '/sites/' + encodeURIComponent( siteId ) + '/settings',\n\t\t\tapiVersion: '1.4',\n\t\t} );\n\n\t\tdispatch.receiveSiteSettings( siteId, result?.settings );\n\t};\n","import { select } from '@wordpress/data';\nimport { STORE_KEY } from './constants';\nimport { SiteLaunchStatus, SiteOption } from './types';\nimport type { State } from './reducer';\n\nexport const getState = ( state: State ) => state;\nexport const getNewSite = ( state: State ) => state.newSite.data;\nexport const getNewSiteError = ( state: State ) => state.newSite.error;\nexport const isFetchingSite = ( state: State ) => state.newSite.isFetching;\nexport const getFetchingSiteError = ( state: State ) => state.fetchingSiteError;\nexport const isFetchingSiteDetails = ( state: State ) => state.isFetchingSiteDetails;\nexport const isNewSite = ( state: State ) => !! state.newSite.data;\n\n/**\n * Get a site matched by id. This selector has a matching\n * resolver that uses the `siteId` parameter to fetch an existing site. If the\n * site cannot be found, invalidate the resolution cache.\n *\n * @param state {State}\t\tstate object\n * @param siteId {number}\tid of the site to look up\n */\nexport const getSite = ( state: State, siteId: number | string ) => {\n\treturn (\n\t\tstate.sites[ siteId ] ||\n\t\tObject.values( state.sites ).find( ( site ) => site && new URL( site.URL ).host === siteId )\n\t);\n};\n\nexport const getSiteIdBySlug = ( _: State, slug: string ) => {\n\treturn select( STORE_KEY ).getSite( slug )?.ID;\n};\n\nexport const getSiteTitle = ( _: State, siteId: number ) =>\n\tselect( STORE_KEY ).getSite( siteId )?.name;\n\nexport const getSiteVerticalId = ( _: State, siteId: number ) =>\n\tselect( STORE_KEY ).getSite( siteId )?.options?.site_vertical_id;\n\n// @TODO: Return LaunchStatus instead of a boolean\nexport const isSiteLaunched = ( state: State, siteId: number ) => {\n\treturn state.launchStatus[ siteId ]?.status === SiteLaunchStatus.SUCCESS;\n};\n\n// @TODO: Return LaunchStatus instead of a boolean\nexport const isSiteLaunching = ( state: State, siteId: number ) => {\n\treturn state.launchStatus[ siteId ]?.status === SiteLaunchStatus.IN_PROGRESS;\n};\n\nexport const isSiteAtomic = ( state: State, siteId: number | string ) => {\n\treturn select( STORE_KEY ).getSite( siteId )?.options?.is_wpcom_atomic === true;\n};\n\nexport const isSiteWPForTeams = ( state: State, siteId: number | string ) => {\n\treturn select( STORE_KEY ).getSite( siteId )?.options?.is_wpforteams_site === true;\n};\n\nexport const getSiteDomains = ( state: State, siteId: number ) => {\n\treturn state.sitesDomains[ siteId ];\n};\n\nexport const getSiteSettings = ( state: State, siteId: number ) => {\n\treturn state.sitesSettings[ siteId ];\n};\n\nexport const getSiteGlobalStyles = ( state: State, siteId: number ) => {\n\treturn state.sitesGlobalStyles[ siteId ];\n};\n\nexport const getSiteSetupError = ( state: State ) => {\n\treturn state.siteSetupErrors;\n};\n\nexport const getSiteOptions = ( state: State, siteId: number ) => {\n\treturn state.sites[ siteId ]?.options;\n};\n\nexport const getSiteOption = ( state: State, siteId: number, optionName: SiteOption ) => {\n\treturn state.sites[ siteId ]?.options?.[ optionName ];\n};\n\nexport const getPrimarySiteDomain = ( _: State, siteId: number ) =>\n\tselect( STORE_KEY )\n\t\t.getSiteDomains( siteId )\n\t\t?.find( ( domain ) => domain.primary_domain );\n\nexport const getSiteSubdomain = ( _: State, siteId: number ) =>\n\tselect( STORE_KEY )\n\t\t.getSiteDomains( siteId )\n\t\t?.find( ( domain ) => domain.is_subdomain );\n\nexport const getSiteLatestAtomicTransfer = ( state: State, siteId: number ) => {\n\treturn state.latestAtomicTransferStatus[ siteId ]?.transfer;\n};\n\nexport const getSiteLatestAtomicTransferError = ( state: State, siteId: number ) => {\n\treturn state.latestAtomicTransferStatus[ siteId ]?.errorCode;\n};\n\nexport const getAtomicSoftwareStatus = ( state: State, siteId: number, softwareSet: string ) => {\n\treturn state.atomicSoftwareStatus[ siteId ]?.[ softwareSet ]?.status;\n};\n\nexport const getAtomicSoftwareError = ( state: State, siteId: number, softwareSet: string ) => {\n\treturn state.atomicSoftwareStatus[ siteId ]?.[ softwareSet ]?.error;\n};\n\nexport const getAtomicSoftwareInstallError = (\n\tstate: State,\n\tsiteId: number,\n\tsoftwareSet: string\n) => {\n\treturn state.atomicSoftwareInstallStatus[ siteId ]?.[ softwareSet ]?.error;\n};\n\nexport const siteHasFeature = (\n\t_: State,\n\tsiteId: number | undefined,\n\tfeatureKey: string\n): boolean => {\n\treturn Boolean(\n\t\tsiteId && select( STORE_KEY ).getSite( siteId )?.plan?.features.active.includes( featureKey )\n\t);\n};\n\nexport const requiresUpgrade = ( state: State, siteId: number | null ) => {\n\treturn siteId && ! select( STORE_KEY ).siteHasFeature( siteId, 'woop' );\n};\n\nexport function isJetpackSite( state: State, siteId?: number ): boolean {\n\treturn Boolean( siteId && select( STORE_KEY ).getSite( siteId )?.jetpack );\n}\n\nexport function isEligibleForProPlan( state: State, siteId?: number ): boolean {\n\tif ( ! siteId ) {\n\t\treturn false;\n\t}\n\n\tif (\n\t\t( isJetpackSite( state, siteId ) && ! isSiteAtomic( state, siteId ) ) ||\n\t\tisSiteWPForTeams( state, siteId )\n\t) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\nexport const getBundledPluginSlug = ( state: State, siteSlug: string ) =>\n\tstate.bundledPluginSlug[ siteSlug ];\n","import type { DispatchFromMap } from '../mapped-types';\nimport type { FeatureId } from '../wpcom-features';\nimport type { ActionCreators } from './actions';\n\nexport interface Dispatch {\n\tdispatch: DispatchFromMap< ActionCreators >;\n}\n\nexport interface NewSiteBlogDetails {\n\turl: string;\n\tblogid: number;\n\tblogname: string;\n\tsite_slug?: string;\n\txmlrpc: string;\n}\n\nexport interface NewSiteSuccessResponse {\n\tsuccess: boolean;\n\tblog_details: NewSiteBlogDetails;\n\tis_signup_sandbox?: boolean;\n}\n\nexport interface NewSiteErrorResponse {\n\terror: string;\n\tstatus: number;\n\tstatusCode: number;\n\tname: string;\n\tmessage: string;\n}\n\nexport interface NewSiteErrorCreateBlog {\n\t// This has to be `any` as sites/new will return whatever value is passed to it as `$blog_id` if create blog fails.\n\tblog_id?: any; // eslint-disable-line @typescript-eslint/no-explicit-any\n}\n\nexport type NewSiteResponse =\n\t| NewSiteSuccessResponse\n\t| NewSiteErrorResponse\n\t| NewSiteErrorCreateBlog;\n\nexport enum Visibility {\n\tPublicIndexed = 1,\n\tPublicNotIndexed = 0,\n\tPrivate = -1,\n}\n\nexport interface CreateSiteParams {\n\tblog_name: string;\n\tblog_title?: string;\n\tauthToken?: string;\n\tpublic?: Visibility;\n\toptions?: {\n\t\tsite_vertical?: string;\n\t\tsite_vertical_name?: string;\n\t\tsite_vertical_slug?: string;\n\t\tsite_information?: {\n\t\t\ttitle?: string;\n\t\t};\n\t\tlang_id?: number;\n\t\tsite_creation_flow?: string;\n\t\tenable_fse?: boolean;\n\t\ttheme?: string;\n\t\ttemplate?: string;\n\t\ttimezone_string?: string;\n\t\tfont_headings?: string;\n\t\tfont_base?: string;\n\t\tuse_patterns?: boolean;\n\t\tselected_features?: FeatureId[];\n\t\twpcom_public_coming_soon?: number;\n\t\tanchor_fm_podcast_id?: string;\n\t\tis_blank_canvas?: boolean;\n\t};\n}\n\nexport interface SiteDetailsPlan {\n\tproduct_id: number;\n\tproduct_slug: string;\n\tproduct_name: string;\n\tproduct_name_short: string;\n\texpired: boolean;\n\tbilling_period: string;\n\tuser_is_owner: boolean;\n\tis_free: boolean;\n\tfeatures: {\n\t\tactive: string[];\n\t\tavailable: Record< string, string[] >;\n\t};\n}\n\nexport interface DifmLiteSiteOptions {\n\tsite_category?: string;\n\tis_website_content_submitted?: boolean;\n\tselected_page_titles: string[];\n}\n\n// is_fse_active && is_fse_eligible properties have been deprecated and removed from SiteDetails interface\nexport interface SiteDetails {\n\tID: number;\n\tURL: string;\n\tcapabilities: SiteDetailsCapabilities;\n\tdescription: string;\n\tdomain: string;\n\ticon?: { ico: string; img: string; media_id: number };\n\tis_coming_soon?: boolean;\n\tis_multisite?: boolean;\n\tis_private?: boolean;\n\tis_vip?: boolean;\n\tis_wpcom_atomic?: boolean;\n\tjetpack: boolean;\n\tlang?: string;\n\tlaunch_status: string;\n\tlocale: string;\n\tlogo: { id: string; sizes: string[]; url: string };\n\tname: string | undefined;\n\toptions: SiteDetailsOptions;\n\tplan?: SiteDetailsPlan;\n\tproducts?: SiteDetailsPlan[];\n\tsingle_user_site?: boolean;\n\tsite_owner?: number;\n\tslug: string;\n\tvisible?: boolean;\n\twpcom_url?: string;\n}\n\nexport interface SiteDetailsCapabilities {\n\tactivate_plugins: boolean;\n\tactivate_wordads: boolean;\n\tdelete_others_posts: boolean;\n\tdelete_posts: boolean;\n\tdelete_users: boolean;\n\tedit_others_pages: boolean;\n\tedit_others_posts: boolean;\n\tedit_pages: boolean;\n\tedit_posts: boolean;\n\tedit_theme_options: boolean;\n\tedit_users: boolean;\n\tlist_users: boolean;\n\tmanage_categories: boolean;\n\tmanage_options: boolean;\n\tmoderate_comments: boolean;\n\town_site: boolean;\n\tpromote_users: boolean;\n\tpublish_posts: boolean;\n\tremove_users: boolean;\n\tupload_files: boolean;\n\tview_hosting: boolean;\n\tview_stats: boolean;\n}\n\nexport interface SiteDetailsOptions {\n\tadmin_url?: string;\n\tadvanced_seo_front_page_description?: string;\n\tadvanced_seo_title_formats?: string[];\n\tak_vp_bundle_enabled?: boolean;\n\tallowed_file_types?: string[];\n\tanchor_podcast?: boolean;\n\tbackground_color?: boolean;\n\tblog_public?: number;\n\tcreated_at?: string;\n\tdefault_category?: number;\n\tdefault_comment_status?: boolean;\n\tdefault_likes_enabled?: boolean;\n\tdefault_ping_status?: boolean;\n\tdefault_post_format?: string;\n\tdefault_sharing_status?: boolean;\n\tdesign_type?: string;\n\tdifm_lite_site_options?: DifmLiteSiteOptions;\n\tediting_toolkit_is_active?: boolean;\n\tfeatured_images_enabled?: boolean;\n\tframe_nonce?: string;\n\tgmt_offset?: number;\n\theader_image?: boolean;\n\theadstart?: boolean;\n\theadstart_is_fresh?: boolean;\n\timage_default_link_type?: string;\n\timage_large_height?: number;\n\timage_large_width?: number;\n\timage_medium_height?: number;\n\timage_medium_width?: number;\n\timage_thumbnail_crop?: number;\n\timage_thumbnail_height?: number;\n\timage_thumbnail_width?: number;\n\timport_engine?: string;\n\tis_automated_transfer?: boolean;\n\tis_cloud_eligible?: boolean;\n\tis_difm_lite_in_progress?: boolean;\n\tis_domain_only?: boolean;\n\tis_mapped_domain?: boolean;\n\tis_pending_plan?: boolean;\n\tis_redirect?: boolean;\n\tis_wpcom_atomic?: boolean;\n\tis_wpcom_store?: boolean;\n\tis_wpforteams_site?: boolean;\n\tjetpack_connection_active_plugins?: string[];\n\tjetpack_frame_nonce?: string;\n\tjetpack_version?: string | undefined;\n\tlogin_url?: string;\n\tp2_hub_blog_id?: number;\n\tpage_for_posts?: number;\n\tpage_on_front?: number;\n\tpermalink_structure?: string;\n\tpodcasting_archive?: boolean;\n\tpost_formats?: string[];\n\tpublicize_permanently_disabled?: boolean;\n\tselected_features?: FeatureId[];\n\tshow_on_front?: string;\n\tsite_intent?: string;\n\tsite_segment?: string;\n\tsite_vertical_id?: string;\n\tsoftware_version?: string;\n\ttheme_slug?: string;\n\ttimezone?: string;\n\tunmapped_url?: string;\n\tupdated_at?: string;\n\tupgraded_filetypes_enabled?: boolean;\n\tverification_services_codes?: string;\n\tvideopress_enabled?: boolean;\n\tvideopress_storage_used?: number;\n\twas_created_with_blank_canvas_design?: boolean;\n\twoocommerce_is_active?: boolean;\n\twordads?: boolean;\n\tlaunchpad_screen?: false | 'off' | 'full' | 'minimized';\n\tlaunchpad_checklist_tasks_statuses?: LaunchPadCheckListTasksStatuses;\n}\n\nexport type SiteOption = keyof SiteDetails[ 'options' ];\n\nexport interface SiteError {\n\terror: string;\n\tmessage: string;\n}\n\nexport type SiteResponse = SiteDetails | SiteError;\n\nexport interface Cart {\n\tblog_id: number;\n\tcart_key: number;\n\tcoupon: string;\n\tcoupon_discounts: unknown[];\n\tcoupon_discounts_integer: unknown[];\n\tis_coupon_applied: boolean;\n\thas_bundle_credit: boolean;\n\tnext_domain_is_free: boolean;\n\tnext_domain_condition: string;\n\tproducts: unknown[];\n\ttotal_cost: number;\n\tcurrency: string;\n\ttotal_cost_display: string;\n\ttotal_cost_integer: number;\n\ttemporary: boolean;\n\ttax: unknown;\n\tsub_total: number;\n\tsub_total_display: string;\n\tsub_total_integer: number;\n\ttotal_tax: number;\n\ttotal_tax_display: string;\n\ttotal_tax_integer: number;\n\tcredits: number;\n\tcredits_display: string;\n\tcredits_integer: number;\n\tallowed_payment_methods: unknown[];\n\tcreate_new_blog: boolean;\n\tmessages: Record< 'errors' | 'success', unknown >;\n}\n\nexport interface Domain {\n\ta_records_required_for_mapping?: string[];\n\tprimary_domain: boolean;\n\tblog_id: number;\n\tconnection_mode?: string;\n\tsubscription_id?: any;\n\tcurrent_user_can_manage: boolean;\n\tcan_set_as_primary: boolean;\n\tdomain: string;\n\tsupports_domain_connect?: any;\n\temail_forwards_count: number;\n\texpiry: boolean;\n\texpiry_soon: boolean;\n\texpired: boolean;\n\tauto_renewing: boolean;\n\tpending_registration: boolean;\n\tpending_registration_time: string;\n\thas_registration: boolean;\n\tpoints_to_wpcom: boolean;\n\tprivacy_available: boolean;\n\tprivate_domain: boolean;\n\tpartner_domain: boolean;\n\twpcom_domain: boolean;\n\thas_zone: boolean;\n\tis_renewable: boolean;\n\tis_redeemable: boolean;\n\tis_subdomain: boolean;\n\tis_eligible_for_inbound_transfer: boolean;\n\tis_locked: boolean;\n\tis_wpcom_staging_domain: boolean;\n\ttransfer_away_eligible_at?: any;\n\ttype: string;\n\tregistration_date: string;\n\tauto_renewal_date: string;\n\tgoogle_apps_subscription?: unknown[];\n\ttitan_mail_subscription?: unknown[];\n\tpending_whois_update: boolean;\n\ttld_maintenance_end_time?: any;\n\tssl_status?: any;\n\tsubdomain_part?: string;\n\tsupports_gdpr_consent_management: boolean;\n\tsupports_transfer_approval: boolean;\n\tdomain_registration_agreement_url: string;\n\tcontact_info_disclosure_available: boolean;\n\tcontact_info_disclosed: boolean;\n\trenewable_until?: any;\n\tredeemable_until?: any;\n\tbundled_plan_subscription_id?: any;\n\tproduct_slug?: any;\n\towner: string;\n}\n\nexport interface SiteSettings {\n\t[ key: string ]: any;\n}\n\nexport interface SiteLaunchState {\n\tstatus: SiteLaunchStatus;\n\terrorCode: SiteLaunchError | undefined;\n}\n\nexport enum SiteLaunchError {\n\tINTERNAL = 'internal',\n}\n\nexport enum SiteLaunchStatus {\n\tUNINITIALIZED = 'unintialized',\n\tIN_PROGRESS = 'in_progress',\n\tSUCCESS = 'success',\n\tFAILURE = 'failure',\n}\n\nexport interface AtomicTransferState {\n\tstatus: AtomicTransferStatus;\n\terrorCode: AtomicTransferError | undefined;\n}\n\nexport enum AtomicTransferStatus {\n\tUNINITIALIZED = 'unintialized',\n\tIN_PROGRESS = 'in_progress',\n\tSUCCESS = 'success',\n\tFAILURE = 'failure',\n}\n\nexport enum AtomicTransferError {\n\tINTERNAL = 'internal',\n}\n\nexport interface LatestAtomicTransfer {\n\tatomic_transfer_id: number;\n\tblog_id: number;\n\tstatus: string;\n\tcreated_at: string;\n\tis_stuck: boolean;\n\tis_stuck_reset: boolean;\n\tin_lossless_revert: boolean;\n}\n\nexport interface LatestAtomicTransferState {\n\tstatus: LatestAtomicTransferStatus;\n\ttransfer: LatestAtomicTransfer | undefined;\n\terrorCode: LatestAtomicTransferError | undefined;\n}\n\nexport enum LatestAtomicTransferStatus {\n\tUNINITIALIZED = 'unintialized',\n\tIN_PROGRESS = 'in_progress',\n\tSUCCESS = 'success',\n\tFAILURE = 'failure',\n}\n\nexport interface LatestAtomicTransferError {\n\tname: string; // \"NotFoundError\"\n\tstatus: number; // 404\n\tmessage: string; // \"Transfer not found\"\n\tcode: string; // \"no_transfer_record\"\n}\n\nexport interface AtomicSoftwareStatus {\n\tblog_id: number;\n\tsoftware_set: Record< string, { path: string; state: string } >;\n\tapplied: boolean;\n}\n\nexport interface AtomicSoftwareStatusError {\n\tname: string; // \"NotFoundError\"\n\tstatus: number; // 404\n\tmessage: string; // \"Transfer not found\"\n\tcode: string; // \"no_transfer_record\"\n}\n\nexport type AtomicSoftwareStatusState = Record<\n\tstring,\n\t{\n\t\tstatus: AtomicSoftwareStatus | undefined;\n\t\terror: AtomicSoftwareStatusError | undefined;\n\t}\n>;\n\nexport enum AtomicSoftwareInstallStatus {\n\tUNINITIALIZED = 'unintialized',\n\tIN_PROGRESS = 'in_progress',\n\tSUCCESS = 'success',\n\tFAILURE = 'failure',\n}\n\nexport type AtomicSoftwareInstallState = Record<\n\tstring,\n\t{\n\t\tstatus: AtomicSoftwareInstallStatus | undefined;\n\t\terror: AtomicSoftwareInstallError | undefined;\n\t}\n>;\n\nexport interface AtomicSoftwareInstallError {\n\tname: string;\n\tstatus: number;\n\tmessage: string;\n\tcode: string;\n}\n\ninterface PaletteColor {\n\tslug: string;\n\tcolor: string;\n\tname: string;\n\tdefault: string;\n}\n\nexport interface GlobalStyles {\n\tsettings: {\n\t\tcolor: {\n\t\t\tpalette: {\n\t\t\t\tdefault: PaletteColor[];\n\t\t\t\ttheme: PaletteColor[];\n\t\t\t};\n\t\t};\n\t};\n}\n\nexport interface LaunchPadCheckListTasksStatuses {\n\tfirst_post_published?: boolean;\n\tlinks_edited?: boolean;\n\tsite_launched?: boolean;\n}\n\nexport interface ThemeSetupOptions {\n\ttrim_content?: boolean;\n\tvertical_id?: string;\n\tpattern_ids?: number[];\n\theader_pattern_ids?: number[];\n\tfooter_pattern_ids?: number[];\n}\n","export const STORE_KEY = 'automattic/wpcom-features';\n","import * as Plans from '../plans';\nimport type { FeatureId, Feature } from './types';\n\nconst {\n\tTIMELESS_PLAN_PERSONAL,\n\tTIMELESS_PLAN_PREMIUM,\n\tTIMELESS_PLAN_BUSINESS,\n\tTIMELESS_PLAN_ECOMMERCE,\n} = Plans;\n\nexport const featuresList: Record< FeatureId, Feature > = {\n\tdomain: {\n\t\tid: 'domain',\n\t\tminSupportedPlan: TIMELESS_PLAN_PERSONAL,\n\t},\n\tstore: {\n\t\tid: 'store',\n\t\tminSupportedPlan: TIMELESS_PLAN_ECOMMERCE,\n\t},\n\tseo: {\n\t\tid: 'seo',\n\t\tminSupportedPlan: TIMELESS_PLAN_BUSINESS,\n\t},\n\tplugins: {\n\t\tid: 'plugins',\n\t\tminSupportedPlan: TIMELESS_PLAN_BUSINESS,\n\t},\n\t'ad-free': {\n\t\tid: 'ad-free',\n\t\tminSupportedPlan: TIMELESS_PLAN_PERSONAL,\n\t},\n\t'image-storage': {\n\t\tid: 'image-storage',\n\t\tminSupportedPlan: TIMELESS_PLAN_PREMIUM,\n\t},\n\t'video-storage': {\n\t\tid: 'video-storage',\n\t\tminSupportedPlan: TIMELESS_PLAN_PREMIUM,\n\t},\n\tsupport: {\n\t\tid: 'support',\n\t\tminSupportedPlan: TIMELESS_PLAN_BUSINESS,\n\t},\n};\n","import { registerStore } from '@wordpress/data';\nimport { controls } from '@wordpress/data-controls';\nimport { STORE_KEY } from './constants';\nimport reducer, { State } from './reducer';\nimport * as selectors from './selectors';\nimport type { SelectFromMap } from '../mapped-types';\nimport type { Reducer, AnyAction } from 'redux';\n\nexport type { State };\nexport type { FeatureId, Feature } from './types';\n\nexport { featuresList } from './features-data';\n\nlet isRegistered = false;\n\nexport function register(): typeof STORE_KEY {\n\tif ( ! isRegistered ) {\n\t\tisRegistered = true;\n\t\tregisterStore< State >( STORE_KEY, {\n\t\t\tcontrols,\n\t\t\treducer: reducer as Reducer< State, AnyAction >,\n\t\t\tselectors,\n\t\t} );\n\t}\n\treturn STORE_KEY;\n}\n\ndeclare module '@wordpress/data' {\n\tfunction select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors >;\n}\n","import { featuresList } from './features-data';\nimport type { Feature, FeatureId } from './types';\nimport type { AnyAction, Reducer } from 'redux';\n\nexport type State = Record< FeatureId, Feature >;\n\nconst reducer: Reducer< State, AnyAction > = ( state = featuresList ) => {\n\treturn state;\n};\n\nexport default reducer;\n","import { plansOrder } from '../plans/constants';\nimport type { PlanSlug } from '../plans';\nimport type { State } from './reducer';\nimport type { FeatureId } from './types';\n\nexport const getAllFeatures = ( state: State ) => state;\n\nexport const getRecommendedPlanSlug = (\n\tstate: State,\n\tselectedFeatures: FeatureId[]\n): PlanSlug | undefined => {\n\tconst allFeatures = getAllFeatures( state );\n\n\tif ( ! selectedFeatures.length ) return undefined;\n\n\treturn selectedFeatures.reduce( ( currentMinSupportedPlan, featureId ) => {\n\t\tconst featureMinSupportedPlan = allFeatures[ featureId ].minSupportedPlan;\n\n\t\treturn plansOrder.indexOf( featureMinSupportedPlan as never ) >\n\t\t\tplansOrder.indexOf( currentMinSupportedPlan as never )\n\t\t\t? featureMinSupportedPlan\n\t\t\t: currentMinSupportedPlan;\n\t}, allFeatures[ selectedFeatures[ 0 ] ].minSupportedPlan );\n};\n","import wpcomProxyRequest, {\n\treloadProxy as triggerReloadProxy,\n\trequestAllBlogsAccess as triggerRequestAllBlogsAccess,\n} from 'wpcom-proxy-request';\n\ntype WpcomProxyRequestOptions = Parameters< typeof wpcomProxyRequest >[ 0 ];\n\nexport const wpcomRequest = (\n\trequest: WpcomProxyRequestOptions\n): { type: 'WPCOM_REQUEST'; request: WpcomProxyRequestOptions } =>\n\t( { type: 'WPCOM_REQUEST', request } as const );\n\n/**\n * Action for performing a fetching using `window.fetch()` and parsing the response body.\n * It's different from `apiFetch()` from\n * `@wordpress/data-controls` in that it doesn't use any middleware to add extra parameters.\n *\n * @param resource the resource you wish to fetch\n * @param options request options\n */\nexport const fetchAndParse = (\n\tresource: Parameters< Window[ 'fetch' ] >[ 0 ],\n\toptions?: Parameters< Window[ 'fetch' ] >[ 1 ]\n) =>\n\t( {\n\t\ttype: 'FETCH_AND_PARSE',\n\t\tresource,\n\t\toptions,\n\t} as const );\n\nexport const reloadProxy = () =>\n\t( {\n\t\ttype: 'RELOAD_PROXY',\n\t} as const );\n\nexport const requestAllBlogsAccess = () =>\n\t( {\n\t\ttype: 'REQUEST_ALL_BLOGS_ACCESS',\n\t} as const );\n\nexport const wait = ( ms: number ) => ( { type: 'WAIT', ms } as const );\n\nexport const controls = {\n\tWPCOM_REQUEST: ( { request }: ReturnType< typeof wpcomRequest > ) => wpcomProxyRequest( request ),\n\tFETCH_AND_PARSE: async ( { resource, options }: ReturnType< typeof fetchAndParse > ) => {\n\t\tconst response = await window.fetch( resource, options );\n\n\t\treturn {\n\t\t\tok: response.ok,\n\t\t\tbody: await response.json(),\n\t\t};\n\t},\n\tRELOAD_PROXY: () => {\n\t\ttriggerReloadProxy();\n\t},\n\tREQUEST_ALL_BLOGS_ACCESS: () => triggerRequestAllBlogsAccess(),\n\tWAIT: ( { ms }: ReturnType< typeof wait > ) =>\n\t\tnew Promise( ( resolve ) => setTimeout( resolve, ms ) ),\n} as const;\n","import { CurrencyDefinition, CurrenciesDictionary } from './types';\n\nexport const CURRENCIES: CurrenciesDictionary = {\n\tAED: {\n\t\tsymbol: 'د.إ.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tAFN: {\n\t\tsymbol: '؋',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tALL: {\n\t\tsymbol: 'Lek',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tAMD: {\n\t\tsymbol: '֏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tANG: {\n\t\tsymbol: 'ƒ',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tAOA: {\n\t\tsymbol: 'Kz',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tARS: {\n\t\tsymbol: '$',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tAUD: {\n\t\tsymbol: 'A$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tAWG: {\n\t\tsymbol: 'ƒ',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tAZN: {\n\t\tsymbol: '₼',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tBAM: {\n\t\tsymbol: 'КМ',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tBBD: {\n\t\tsymbol: 'Bds$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tBDT: {\n\t\tsymbol: '৳',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tBGN: {\n\t\tsymbol: 'лв.',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tBHD: {\n\t\tsymbol: 'د.ب.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 3,\n\t},\n\tBIF: {\n\t\tsymbol: 'FBu',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tBMD: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tBND: {\n\t\tsymbol: '$',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 0,\n\t},\n\tBOB: {\n\t\tsymbol: 'Bs',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tBRL: {\n\t\tsymbol: 'R$',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tBSD: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tBTC: {\n\t\tsymbol: 'Ƀ',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tBTN: {\n\t\tsymbol: 'Nu.',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 1,\n\t},\n\tBWP: {\n\t\tsymbol: 'P',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tBYR: {\n\t\tsymbol: 'р.',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tBZD: {\n\t\tsymbol: 'BZ$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCAD: {\n\t\tsymbol: 'C$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCDF: {\n\t\tsymbol: 'FC',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCHF: {\n\t\tsymbol: 'CHF',\n\t\tgrouping: \"'\",\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCLP: {\n\t\tsymbol: '$',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tCNY: {\n\t\tsymbol: '¥',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCOP: {\n\t\tsymbol: '$',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tCRC: {\n\t\tsymbol: '₡',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tCUC: {\n\t\tsymbol: 'CUC',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCUP: {\n\t\tsymbol: '$MN',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCVE: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tCZK: {\n\t\tsymbol: 'Kč',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tDJF: {\n\t\tsymbol: 'Fdj',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tDKK: {\n\t\tsymbol: 'kr.',\n\t\tgrouping: '',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tDOP: {\n\t\tsymbol: 'RD$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tDZD: {\n\t\tsymbol: 'د.ج.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tEGP: {\n\t\tsymbol: 'ج.م.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tERN: {\n\t\tsymbol: 'Nfk',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tETB: {\n\t\tsymbol: 'ETB',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tEUR: {\n\t\tsymbol: '€',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tFJD: {\n\t\tsymbol: 'FJ$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tFKP: {\n\t\tsymbol: '£',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tGBP: {\n\t\tsymbol: '£',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tGEL: {\n\t\tsymbol: 'Lari',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tGHS: {\n\t\tsymbol: '₵',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tGIP: {\n\t\tsymbol: '£',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tGMD: {\n\t\tsymbol: 'D',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tGNF: {\n\t\tsymbol: 'FG',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tGTQ: {\n\t\tsymbol: 'Q',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tGYD: {\n\t\tsymbol: 'G$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tHKD: {\n\t\tsymbol: 'HK$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tHNL: {\n\t\tsymbol: 'L.',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tHRK: {\n\t\tsymbol: 'kn',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tHTG: {\n\t\tsymbol: 'G',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tHUF: {\n\t\tsymbol: 'Ft',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 0,\n\t},\n\tIDR: {\n\t\tsymbol: 'Rp',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 0,\n\t},\n\tILS: {\n\t\tsymbol: '₪',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tINR: {\n\t\tsymbol: '₹',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tIQD: {\n\t\tsymbol: 'د.ع.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tIRR: {\n\t\tsymbol: '﷼',\n\t\tgrouping: ',',\n\t\tdecimal: '/',\n\t\tprecision: 2,\n\t},\n\tISK: {\n\t\tsymbol: 'kr.',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 0,\n\t},\n\tJMD: {\n\t\tsymbol: 'J$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tJOD: {\n\t\tsymbol: 'د.ا.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 3,\n\t},\n\tJPY: {\n\t\tsymbol: '¥',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tKES: {\n\t\tsymbol: 'S',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tKGS: {\n\t\tsymbol: 'сом',\n\t\tgrouping: ' ',\n\t\tdecimal: '-',\n\t\tprecision: 2,\n\t},\n\tKHR: {\n\t\tsymbol: '៛',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tKMF: {\n\t\tsymbol: 'CF',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tKPW: {\n\t\tsymbol: '₩',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tKRW: {\n\t\tsymbol: '₩',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tKWD: {\n\t\tsymbol: 'د.ك.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 3,\n\t},\n\tKYD: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tKZT: {\n\t\tsymbol: '₸',\n\t\tgrouping: ' ',\n\t\tdecimal: '-',\n\t\tprecision: 2,\n\t},\n\tLAK: {\n\t\tsymbol: '₭',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tLBP: {\n\t\tsymbol: 'ل.ل.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tLKR: {\n\t\tsymbol: '₨',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tLRD: {\n\t\tsymbol: 'L$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tLSL: {\n\t\tsymbol: 'M',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tLYD: {\n\t\tsymbol: 'د.ل.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 3,\n\t},\n\tMAD: {\n\t\tsymbol: 'د.م.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMDL: {\n\t\tsymbol: 'lei',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMGA: {\n\t\tsymbol: 'Ar',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tMKD: {\n\t\tsymbol: 'ден.',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tMMK: {\n\t\tsymbol: 'K',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMNT: {\n\t\tsymbol: '₮',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tMOP: {\n\t\tsymbol: 'MOP$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMRO: {\n\t\tsymbol: 'UM',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMTL: {\n\t\tsymbol: '₤',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMUR: {\n\t\tsymbol: '₨',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMVR: {\n\t\tsymbol: 'MVR',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 1,\n\t},\n\tMWK: {\n\t\tsymbol: 'MK',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMXN: {\n\t\tsymbol: 'MX$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMYR: {\n\t\tsymbol: 'RM',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tMZN: {\n\t\tsymbol: 'MT',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tNAD: {\n\t\tsymbol: 'N$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tNGN: {\n\t\tsymbol: '₦',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tNIO: {\n\t\tsymbol: 'C$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tNOK: {\n\t\tsymbol: 'kr',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tNPR: {\n\t\tsymbol: '₨',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tNZD: {\n\t\tsymbol: 'NZ$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tOMR: {\n\t\tsymbol: '﷼',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 3,\n\t},\n\tPAB: {\n\t\tsymbol: 'B/.',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tPEN: {\n\t\tsymbol: 'S/.',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tPGK: {\n\t\tsymbol: 'K',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tPHP: {\n\t\tsymbol: '₱',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tPKR: {\n\t\tsymbol: '₨',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tPLN: {\n\t\tsymbol: 'zł',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tPYG: {\n\t\tsymbol: '₲',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tQAR: {\n\t\tsymbol: '﷼',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tRON: {\n\t\tsymbol: 'lei',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tRSD: {\n\t\tsymbol: 'Дин.',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tRUB: {\n\t\tsymbol: '₽',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tRWF: {\n\t\tsymbol: 'RWF',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tSAR: {\n\t\tsymbol: '﷼',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSBD: {\n\t\tsymbol: 'S$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSCR: {\n\t\tsymbol: '₨',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSDD: {\n\t\tsymbol: 'LSd',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSDG: {\n\t\tsymbol: '£‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSEK: {\n\t\tsymbol: 'kr',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSGD: {\n\t\tsymbol: 'S$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSHP: {\n\t\tsymbol: '£',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSLL: {\n\t\tsymbol: 'Le',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSOS: {\n\t\tsymbol: 'S',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSRD: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSTD: {\n\t\tsymbol: 'Db',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSVC: {\n\t\tsymbol: '₡',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSYP: {\n\t\tsymbol: '£',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tSZL: {\n\t\tsymbol: 'E',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tTHB: {\n\t\tsymbol: '฿',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tTJS: {\n\t\tsymbol: 'TJS',\n\t\tgrouping: ' ',\n\t\tdecimal: ';',\n\t\tprecision: 2,\n\t},\n\tTMT: {\n\t\tsymbol: 'm',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 0,\n\t},\n\tTND: {\n\t\tsymbol: 'د.ت.‏',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 3,\n\t},\n\tTOP: {\n\t\tsymbol: 'T$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tTRY: {\n\t\tsymbol: 'TL',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tTTD: {\n\t\tsymbol: 'TT$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tTVD: {\n\t\tsymbol: '$T',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tTWD: {\n\t\tsymbol: 'NT$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tTZS: {\n\t\tsymbol: 'TSh',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tUAH: {\n\t\tsymbol: '₴',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tUGX: {\n\t\tsymbol: 'USh',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tUSD: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tUYU: {\n\t\tsymbol: '$U',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tUZS: {\n\t\tsymbol: 'сўм',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tVEB: {\n\t\tsymbol: 'Bs.',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tVEF: {\n\t\tsymbol: 'Bs. F.',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tVND: {\n\t\tsymbol: '₫',\n\t\tgrouping: '.',\n\t\tdecimal: ',',\n\t\tprecision: 1,\n\t},\n\tVUV: {\n\t\tsymbol: 'VT',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 0,\n\t},\n\tWST: {\n\t\tsymbol: 'WS$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tXAF: {\n\t\tsymbol: 'F',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tXCD: {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tXOF: {\n\t\tsymbol: 'F',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tXPF: {\n\t\tsymbol: 'F',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tYER: {\n\t\tsymbol: '﷼',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tZAR: {\n\t\tsymbol: 'R',\n\t\tgrouping: ' ',\n\t\tdecimal: ',',\n\t\tprecision: 2,\n\t},\n\tZMW: {\n\t\tsymbol: 'ZK',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n\tWON: {\n\t\tsymbol: '₩',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t},\n};\n\n/**\n * Returns currency defaults.\n *\n * @param {string} code currency code\n * @returns {?object} currency defaults\n */\nexport function getCurrencyDefaults( code: string ): CurrencyDefinition {\n\tconst defaultCurrency = {\n\t\tsymbol: '$',\n\t\tgrouping: ',',\n\t\tdecimal: '.',\n\t\tprecision: 2,\n\t};\n\n\treturn CURRENCIES[ code ] || defaultCurrency;\n}\n","import { getCurrencyDefaults } from './currencies';\nimport numberFormat from './number-format';\nimport { FormatCurrencyOptions, CurrencyObject } from './types';\n\nexport { getCurrencyDefaults };\n\nexport { CURRENCIES } from './currencies';\n\nexport * from './types';\n\n/**\n * Formats money with a given currency code.\n *\n * The currency will define the properties to use for this formatting, but\n * those properties can be overridden using the options. Be careful when doing\n * this.\n *\n * For currencies that include decimals, this will always return the amount\n * with decimals included, even if those decimals are zeros. To exclude the\n * zeros, use the `stripZeros` option. For example, the function will normally\n * format `10.00` in `USD` as `$10.00` but when this option is true, it will\n * return `$10` instead.\n *\n * Since rounding errors are common in floating point math, sometimes a price\n * is provided as an integer in the smallest unit of a currency (eg: cents in\n * USD or yen in JPY). Set the `isSmallestUnit` to change the function to\n * operate on integer numbers instead. If this option is not set or false, the\n * function will format the amount `1025` in `USD` as `$1,025.00`, but when the\n * option is true, it will return `$10.25` instead.\n *\n * Will return null if the currency code is unknown or if the number is not a\n * number. Will also return null if `isSmallestUnit` is set and the number is\n * not an integer.\n *\n * @param {number} number number to format; assumed to be a float unless isSmallestUnit is set.\n * @param {string} code currency code e.g. 'USD'\n * @param {FormatCurrencyOptions} options options object\n * @returns {?string} A formatted string.\n */\nexport function formatCurrency(\n\tnumber: number,\n\tcode: string,\n\toptions: FormatCurrencyOptions = {}\n): string | null {\n\tconst currencyDefaults = getCurrencyDefaults( code );\n\tif ( ! currencyDefaults || isNaN( number ) ) {\n\t\treturn null;\n\t}\n\tconst { decimal, grouping, precision, symbol, isSmallestUnit } = {\n\t\t...currencyDefaults,\n\t\t...options,\n\t};\n\tconst sign = number < 0 ? '-' : '';\n\tif ( isSmallestUnit ) {\n\t\tif ( ! Number.isInteger( number ) ) {\n\t\t\treturn null;\n\t\t}\n\t\tnumber = convertPriceForSmallestUnit( number, precision );\n\t}\n\tlet value = numberFormat( Math.abs( number ), precision, decimal, grouping );\n\n\tif ( options.stripZeros ) {\n\t\tvalue = stripZeros( value, decimal );\n\t}\n\n\treturn `${ sign }${ symbol }${ value }`;\n}\n\n/**\n * Returns a formatted price object.\n *\n * The currency will define the properties to use for this formatting, but\n * those properties can be overridden using the options. Be careful when doing\n * this.\n *\n * For currencies that include decimals, this will always return the amount\n * with decimals included, even if those decimals are zeros. To exclude the\n * zeros, use the `stripZeros` option. For example, the function will normally\n * format `10.00` in `USD` as `$10.00` but when this option is true, it will\n * return `$10` instead.\n *\n * Since rounding errors are common in floating point math, sometimes a price\n * is provided as an integer in the smallest unit of a currency (eg: cents in\n * USD or yen in JPY). Set the `isSmallestUnit` to change the function to\n * operate on integer numbers instead. If this option is not set or false, the\n * function will format the amount `1025` in `USD` as `$1,025.00`, but when the\n * option is true, it will return `$10.25` instead.\n *\n * Will return null if the currency code is unknown or if the number is not a\n * number. Will also return null if `isSmallestUnit` is set and the number is\n * not an integer.\n *\n * @param {number} number number to format; assumed to be a float unless isSmallestUnit is set.\n * @param {string} code currency code e.g. 'USD'\n * @param {FormatCurrencyOptions} options options object\n * @returns {?CurrencyObject} A formatted string e.g. { symbol:'$', integer: '$99', fraction: '.99', sign: '-' }\n */\nexport function getCurrencyObject(\n\tnumber: number,\n\tcode: string,\n\toptions: FormatCurrencyOptions = {}\n): CurrencyObject | null {\n\tconst currencyDefaults = getCurrencyDefaults( code );\n\tif ( ! currencyDefaults || isNaN( number ) ) {\n\t\treturn null;\n\t}\n\tconst { decimal, grouping, precision, symbol, isSmallestUnit } = {\n\t\t...currencyDefaults,\n\t\t...options,\n\t};\n\tconst sign = number < 0 ? '-' : '';\n\tif ( isSmallestUnit ) {\n\t\tif ( ! Number.isInteger( number ) ) {\n\t\t\treturn null;\n\t\t}\n\t\tnumber = convertPriceForSmallestUnit( number, precision );\n\t}\n\tconst absNumber = Math.abs( number );\n\tconst rawInteger = Math.floor( absNumber );\n\tconst integer = numberFormat( absNumber, precision, decimal, grouping ).split( decimal )[ 0 ];\n\tconst fraction =\n\t\tprecision > 0\n\t\t\t? numberFormat( absNumber - rawInteger, precision, decimal, grouping ).slice( 1 )\n\t\t\t: '';\n\treturn {\n\t\tsign,\n\t\tsymbol,\n\t\tinteger,\n\t\tfraction,\n\t};\n}\n\n/**\n * Remove trailing zero cents\n *\n * @param {string} number formatted number\n * @param {string} decimal decimal symbol\n * @returns {string}\n */\n\nfunction stripZeros( number: string, decimal: string ): string {\n\tconst regex = new RegExp( `\\\\${ decimal }0+$` );\n\treturn number.replace( regex, '' );\n}\n\nfunction convertPriceForSmallestUnit( price: number, precision: number ): number {\n\treturn price / getSmallestUnitDivisor( precision );\n}\n\nfunction getSmallestUnitDivisor( precision: number ): number {\n\treturn 10 ** precision;\n}\n\nexport default formatCurrency;\n","/*\n * Exposes number format capability\n *\n * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).\n * @license See CREDITS.md\n * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js\n */\nfunction toFixedFix( n: number, prec: number ) {\n\tconst k = Math.pow( 10, prec );\n\treturn '' + ( Math.round( n * k ) / k ).toFixed( prec );\n}\n\nexport default function number_format(\n\t_number: number | string,\n\tdecimals = 0,\n\tdec_point = '.',\n\tthousands_sep = ','\n) {\n\tconst number = ( _number + '' ).replace( /[^0-9+\\-Ee.]/g, '' );\n\tconst n = ! isFinite( +number ) ? 0 : +number;\n\tconst prec = ! isFinite( +decimals ) ? 0 : Math.abs( decimals );\n\t// Fix for IE parseFloat(0.55).toFixed(0) = 0;\n\tconst s = ( prec ? toFixedFix( n, prec ) : '' + Math.round( n ) ).split( '.' );\n\tif ( s[ 0 ].length > 3 ) {\n\t\ts[ 0 ] = s[ 0 ].replace( /\\B(?=(?:\\d{3})+(?!\\d))/g, thousands_sep );\n\t}\n\tif ( ( s[ 1 ] || '' ).length < prec ) {\n\t\ts[ 1 ] = s[ 1 ] || '';\n\t\ts[ 1 ] += new Array( prec - s[ 1 ].length + 1 ).join( '0' );\n\t}\n\treturn s.join( dec_point );\n}\n","import I18N from './i18n';\n\nexport default new I18N();\n","import { EventEmitter } from 'events';\nimport interpolateComponents from '@automattic/interpolate-components';\nimport sprintf from '@tannin/sprintf';\nimport debugFactory from 'debug';\nimport sha1 from 'hash.js/lib/hash/sha/1';\nimport LRU from 'lru';\nimport Tannin from 'tannin';\nimport numberFormat from './number-format';\n\n/**\n * Module variables\n */\nconst debug = debugFactory( 'i18n-calypso' );\n\n/**\n * Constants\n */\nconst decimal_point_translation_key = 'number_format_decimals';\nconst thousands_sep_translation_key = 'number_format_thousands_sep';\nconst domain_key = 'messages';\n\nconst translationLookup = [\n\t// By default don't modify the options when looking up translations.\n\tfunction ( options ) {\n\t\treturn options;\n\t},\n];\n\nconst hashCache = {};\n\n// raise a console warning\nfunction warn() {\n\tif ( ! I18N.throwErrors ) {\n\t\treturn;\n\t}\n\tif ( 'undefined' !== typeof window && window.console && window.console.warn ) {\n\t\twindow.console.warn.apply( window.console, arguments );\n\t}\n}\n\n// turns Function.arguments into an array\nfunction simpleArguments( args ) {\n\treturn Array.prototype.slice.call( args );\n}\n\n/**\n * Coerce the possible arguments and normalize to a single object.\n *\n * @param {any} args - arguments passed in from `translate()`\n * @returns {object} - a single object describing translation needs\n */\nfunction normalizeTranslateArguments( args ) {\n\tconst original = args[ 0 ];\n\n\t// warn about older deprecated syntax\n\tif (\n\t\ttypeof original !== 'string' ||\n\t\targs.length > 3 ||\n\t\t( args.length > 2 && typeof args[ 1 ] === 'object' && typeof args[ 2 ] === 'object' )\n\t) {\n\t\twarn(\n\t\t\t'Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:',\n\t\t\tsimpleArguments( args ),\n\t\t\t'. See https://github.com/Automattic/i18n-calypso#translate-method'\n\t\t);\n\t}\n\tif ( args.length === 2 && typeof original === 'string' && typeof args[ 1 ] === 'string' ) {\n\t\twarn(\n\t\t\t'Invalid Invocation: `translate()` requires an options object for plural translations, but passed:',\n\t\t\tsimpleArguments( args )\n\t\t);\n\t}\n\n\t// options could be in position 0, 1, or 2\n\t// sending options as the first object is deprecated and will raise a warning\n\tlet options = {};\n\tfor ( let i = 0; i < args.length; i++ ) {\n\t\tif ( typeof args[ i ] === 'object' ) {\n\t\t\toptions = args[ i ];\n\t\t}\n\t}\n\n\t// `original` can be passed as first parameter or as part of the options object\n\t// though passing original as part of the options is a deprecated approach and will be removed\n\tif ( typeof original === 'string' ) {\n\t\toptions.original = original;\n\t} else if ( typeof options.original === 'object' ) {\n\t\toptions.plural = options.original.plural;\n\t\toptions.count = options.original.count;\n\t\toptions.original = options.original.single;\n\t}\n\tif ( typeof args[ 1 ] === 'string' ) {\n\t\toptions.plural = args[ 1 ];\n\t}\n\n\tif ( typeof options.original === 'undefined' ) {\n\t\tthrow new Error( 'Translate called without a `string` value as first argument.' );\n\t}\n\n\treturn options;\n}\n\n/**\n * Takes translate options object and coerces to a Tannin request to retrieve translation.\n *\n * @param {object} tannin - tannin data object\n * @param {object} options - object describing translation\n * @returns {string} - the returned translation from Tannin\n */\nfunction getTranslationFromTannin( tannin, options ) {\n\treturn tannin.dcnpgettext(\n\t\tdomain_key,\n\t\toptions.context,\n\t\toptions.original,\n\t\toptions.plural,\n\t\toptions.count\n\t);\n}\n\nfunction getTranslation( i18n, options ) {\n\tfor ( let i = translationLookup.length - 1; i >= 0; i-- ) {\n\t\tconst lookup = translationLookup[ i ]( Object.assign( {}, options ) );\n\t\tconst key = lookup.context ? lookup.context + '\\u0004' + lookup.original : lookup.original;\n\n\t\t// Only get the translation from tannin if it exists.\n\t\tif ( i18n.state.locale[ key ] ) {\n\t\t\treturn getTranslationFromTannin( i18n.state.tannin, lookup );\n\t\t}\n\t}\n\n\treturn null;\n}\n\nfunction I18N() {\n\tif ( ! ( this instanceof I18N ) ) {\n\t\treturn new I18N();\n\t}\n\tthis.defaultLocaleSlug = 'en';\n\t// Tannin always needs a plural form definition, or it fails when dealing with plurals.\n\tthis.defaultPluralForms = ( n ) => ( n === 1 ? 0 : 1 );\n\tthis.state = {\n\t\tnumberFormatSettings: {},\n\t\ttannin: undefined,\n\t\tlocale: undefined,\n\t\tlocaleSlug: undefined,\n\t\tlocaleVariant: undefined,\n\t\ttextDirection: undefined,\n\t\ttranslations: LRU( { max: 100 } ),\n\t};\n\tthis.componentUpdateHooks = [];\n\tthis.translateHooks = [];\n\tthis.stateObserver = new EventEmitter();\n\t// Because the higher-order component can wrap a ton of React components,\n\t// we need to bump the number of listeners to infinity and beyond\n\t// FIXME: still valid?\n\tthis.stateObserver.setMaxListeners( 0 );\n\t// default configuration\n\tthis.configure();\n}\n\nI18N.throwErrors = false;\n\nI18N.prototype.on = function ( ...args ) {\n\tthis.stateObserver.on( ...args );\n};\n\nI18N.prototype.off = function ( ...args ) {\n\tthis.stateObserver.off( ...args );\n};\n\nI18N.prototype.emit = function ( ...args ) {\n\tthis.stateObserver.emit( ...args );\n};\n\n/**\n * Formats numbers using locale settings and/or passed options.\n *\n * @param {string|number} number to format (required)\n * @param {number|object} options Number of decimal places or options object (optional)\n * @returns {string} Formatted number as string\n */\nI18N.prototype.numberFormat = function ( number, options = {} ) {\n\tconst decimals = typeof options === 'number' ? options : options.decimals || 0;\n\tconst decPoint = options.decPoint || this.state.numberFormatSettings.decimal_point || '.';\n\tconst thousandsSep = options.thousandsSep || this.state.numberFormatSettings.thousands_sep || ',';\n\n\treturn numberFormat( number, decimals, decPoint, thousandsSep );\n};\n\nI18N.prototype.configure = function ( options ) {\n\tObject.assign( this, options || {} );\n\tthis.setLocale();\n};\n\nI18N.prototype.setLocale = function ( localeData ) {\n\tif ( localeData && localeData[ '' ] && localeData[ '' ][ 'key-hash' ] ) {\n\t\tconst keyHash = localeData[ '' ][ 'key-hash' ];\n\n\t\tconst transform = function ( string, hashLength ) {\n\t\t\tconst lookupPrefix = hashLength === false ? '' : String( hashLength );\n\t\t\tif ( typeof hashCache[ lookupPrefix + string ] !== 'undefined' ) {\n\t\t\t\treturn hashCache[ lookupPrefix + string ];\n\t\t\t}\n\t\t\tconst hash = sha1().update( string ).digest( 'hex' );\n\n\t\t\tif ( hashLength ) {\n\t\t\t\treturn ( hashCache[ lookupPrefix + string ] = hash.substr( 0, hashLength ) );\n\t\t\t}\n\n\t\t\treturn ( hashCache[ lookupPrefix + string ] = hash );\n\t\t};\n\n\t\tconst generateLookup = function ( hashLength ) {\n\t\t\treturn function ( options ) {\n\t\t\t\tif ( options.context ) {\n\t\t\t\t\toptions.original = transform(\n\t\t\t\t\t\toptions.context + String.fromCharCode( 4 ) + options.original,\n\t\t\t\t\t\thashLength\n\t\t\t\t\t);\n\t\t\t\t\tdelete options.context;\n\t\t\t\t} else {\n\t\t\t\t\toptions.original = transform( options.original, hashLength );\n\t\t\t\t}\n\n\t\t\t\treturn options;\n\t\t\t};\n\t\t};\n\n\t\tif ( keyHash.substr( 0, 4 ) === 'sha1' ) {\n\t\t\tif ( keyHash.length === 4 ) {\n\t\t\t\ttranslationLookup.push( generateLookup( false ) );\n\t\t\t} else {\n\t\t\t\tconst variableHashLengthPos = keyHash.substr( 5 ).indexOf( '-' );\n\t\t\t\tif ( variableHashLengthPos < 0 ) {\n\t\t\t\t\tconst hashLength = Number( keyHash.substr( 5 ) );\n\t\t\t\t\ttranslationLookup.push( generateLookup( hashLength ) );\n\t\t\t\t} else {\n\t\t\t\t\tconst minHashLength = Number( keyHash.substr( 5, variableHashLengthPos ) );\n\t\t\t\t\tconst maxHashLength = Number( keyHash.substr( 6 + variableHashLengthPos ) );\n\n\t\t\t\t\tfor ( let hashLength = minHashLength; hashLength <= maxHashLength; hashLength++ ) {\n\t\t\t\t\t\ttranslationLookup.push( generateLookup( hashLength ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// if localeData is not given, assumes default locale and reset\n\tif ( ! localeData || ! localeData[ '' ].localeSlug ) {\n\t\tthis.state.locale = {\n\t\t\t'': { localeSlug: this.defaultLocaleSlug, plural_forms: this.defaultPluralForms },\n\t\t};\n\t} else if ( localeData[ '' ].localeSlug === this.state.localeSlug ) {\n\t\t// Exit if same data as current (comparing references only)\n\t\tif ( localeData === this.state.locale ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// merge new data into existing one\n\t\tObject.assign( this.state.locale, localeData );\n\t} else {\n\t\tthis.state.locale = Object.assign( {}, localeData );\n\t}\n\n\tthis.state.localeSlug = this.state.locale[ '' ].localeSlug;\n\tthis.state.localeVariant = this.state.locale[ '' ].localeVariant;\n\n\t// extract the `textDirection` info (LTR or RTL) from either:\n\t// - the translation for the special string \"ltr\" (standard in Core, not present in Calypso)\n\t// - or the `momentjs_locale.textDirection` property present in Calypso translation files\n\tthis.state.textDirection =\n\t\tthis.state.locale[ 'text direction\\u0004ltr' ]?.[ 0 ] ||\n\t\tthis.state.locale[ '' ]?.momentjs_locale?.textDirection;\n\n\tthis.state.tannin = new Tannin( { [ domain_key ]: this.state.locale } );\n\n\t// Updates numberFormat preferences with settings from translations\n\tthis.state.numberFormatSettings.decimal_point = getTranslationFromTannin(\n\t\tthis.state.tannin,\n\t\tnormalizeTranslateArguments( [ decimal_point_translation_key ] )\n\t);\n\tthis.state.numberFormatSettings.thousands_sep = getTranslationFromTannin(\n\t\tthis.state.tannin,\n\t\tnormalizeTranslateArguments( [ thousands_sep_translation_key ] )\n\t);\n\n\t// If translation isn't set, define defaults.\n\tif ( this.state.numberFormatSettings.decimal_point === decimal_point_translation_key ) {\n\t\tthis.state.numberFormatSettings.decimal_point = '.';\n\t}\n\n\tif ( this.state.numberFormatSettings.thousands_sep === thousands_sep_translation_key ) {\n\t\tthis.state.numberFormatSettings.thousands_sep = ',';\n\t}\n\n\tthis.stateObserver.emit( 'change' );\n};\n\nI18N.prototype.getLocale = function () {\n\treturn this.state.locale;\n};\n\n/**\n * Get the current locale slug.\n *\n * @returns {string} The string representing the currently loaded locale\n */\nI18N.prototype.getLocaleSlug = function () {\n\treturn this.state.localeSlug;\n};\n\n/**\n * Get the current locale variant. That's set for some special locales that don't have a\n * standard ISO code, like `de_formal` or `sr_latin`.\n *\n * @returns {string|undefined} The string representing the currently loaded locale's variant\n */\nI18N.prototype.getLocaleVariant = function () {\n\treturn this.state.localeVariant;\n};\n\n/**\n * Get the current text direction, left-to-right (LTR) or right-to-left (RTL).\n *\n * @returns {boolean} `true` in case the current locale has RTL text direction\n */\nI18N.prototype.isRtl = function () {\n\treturn this.state.textDirection === 'rtl';\n};\n\n/**\n * Adds new translations to the locale data, overwriting any existing translations with a matching key.\n *\n * @param {object} localeData Locale data\n */\nI18N.prototype.addTranslations = function ( localeData ) {\n\tfor ( const prop in localeData ) {\n\t\tif ( prop !== '' ) {\n\t\t\tthis.state.tannin.data.messages[ prop ] = localeData[ prop ];\n\t\t}\n\t}\n\n\tthis.stateObserver.emit( 'change' );\n};\n\n/**\n * Checks whether the given original has a translation.\n *\n * @returns {boolean} whether a translation exists\n */\nI18N.prototype.hasTranslation = function () {\n\treturn !! getTranslation( this, normalizeTranslateArguments( arguments ) );\n};\n\n/**\n * Exposes single translation method.\n * See sibling README\n *\n * @returns {string|object} translated text or an object containing React children that can be inserted into a parent component\n */\nI18N.prototype.translate = function () {\n\tconst options = normalizeTranslateArguments( arguments );\n\n\tlet translation = getTranslation( this, options );\n\tif ( ! translation ) {\n\t\t// This purposefully calls tannin for a case where there is no translation,\n\t\t// so that tannin gives us the expected object with English text.\n\t\ttranslation = getTranslationFromTannin( this.state.tannin, options );\n\t}\n\n\t// handle any string substitution\n\tif ( options.args ) {\n\t\tconst sprintfArgs = Array.isArray( options.args ) ? options.args.slice( 0 ) : [ options.args ];\n\t\tsprintfArgs.unshift( translation );\n\t\ttry {\n\t\t\ttranslation = sprintf( ...sprintfArgs );\n\t\t} catch ( error ) {\n\t\t\tif ( ! window || ! window.console ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst errorMethod = this.throwErrors ? 'error' : 'warn';\n\t\t\tif ( typeof error !== 'string' ) {\n\t\t\t\twindow.console[ errorMethod ]( error );\n\t\t\t} else {\n\t\t\t\twindow.console[ errorMethod ]( 'i18n sprintf error:', sprintfArgs );\n\t\t\t}\n\t\t}\n\t}\n\n\t// interpolate any components\n\tif ( options.components ) {\n\t\ttranslation = interpolateComponents( {\n\t\t\tmixedString: translation,\n\t\t\tcomponents: options.components,\n\t\t\tthrowErrors: this.throwErrors,\n\t\t} );\n\t}\n\n\t// run any necessary hooks\n\tthis.translateHooks.forEach( function ( hook ) {\n\t\ttranslation = hook( translation, options );\n\t} );\n\n\treturn translation;\n};\n\n/**\n * Causes i18n to re-render all translations.\n *\n * This can be necessary if an extension makes changes that i18n is unaware of\n * and needs those changes manifested immediately (e.g. adding an important\n * translation hook, or modifying the behaviour of an existing hook).\n *\n * If at all possible, react components should try to use the more local\n * updateTranslation() function inherited from the mixin.\n */\nI18N.prototype.reRenderTranslations = function () {\n\tdebug( 'Re-rendering all translations due to external request' );\n\tthis.stateObserver.emit( 'change' );\n};\n\nI18N.prototype.registerComponentUpdateHook = function ( callback ) {\n\tthis.componentUpdateHooks.push( callback );\n};\n\nI18N.prototype.registerTranslateHook = function ( callback ) {\n\tthis.translateHooks.push( callback );\n};\n\nexport default I18N;\n","import I18NContext from './context';\nimport i18n from './default-i18n';\nimport I18N from './i18n';\nimport localize from './localize';\nimport { useRtl, withRtl } from './rtl';\nimport useTranslate from './use-translate';\n\nexport { I18N, I18NContext, localize, useRtl, withRtl, useTranslate };\nexport default i18n;\n\n// Export the default instance's properties and bound methods for convenience\n// These should be deprecated eventually, exposing only the default `i18n` instance\nexport const numberFormat = i18n.numberFormat.bind( i18n );\nexport const translate = i18n.translate.bind( i18n );\nexport const configure = i18n.configure.bind( i18n );\nexport const setLocale = i18n.setLocale.bind( i18n );\nexport const getLocale = i18n.getLocale.bind( i18n );\nexport const getLocaleSlug = i18n.getLocaleSlug.bind( i18n );\nexport const getLocaleVariant = i18n.getLocaleVariant.bind( i18n );\nexport const isRtl = i18n.isRtl.bind( i18n );\nexport const addTranslations = i18n.addTranslations.bind( i18n );\nexport const reRenderTranslations = i18n.reRenderTranslations.bind( i18n );\nexport const registerComponentUpdateHook = i18n.registerComponentUpdateHook.bind( i18n );\nexport const registerTranslateHook = i18n.registerTranslateHook.bind( i18n );\nexport const state = i18n.state;\nexport const stateObserver = i18n.stateObserver;\nexport const on = i18n.on.bind( i18n );\nexport const off = i18n.off.bind( i18n );\nexport const emit = i18n.emit.bind( i18n );\n","/*\n * Exposes number format capability\n *\n * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).\n * @license See CREDITS.md\n * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js\n */\nfunction toFixedFix( n, prec ) {\n\tconst k = Math.pow( 10, prec );\n\treturn '' + ( Math.round( n * k ) / k ).toFixed( prec );\n}\n\nexport default function number_format( number, decimals, dec_point, thousands_sep ) {\n\tnumber = ( number + '' ).replace( /[^0-9+\\-Ee.]/g, '' );\n\tconst n = ! isFinite( +number ) ? 0 : +number;\n\tconst prec = ! isFinite( +decimals ) ? 0 : Math.abs( decimals );\n\tconst sep = typeof thousands_sep === 'undefined' ? ',' : thousands_sep;\n\tconst dec = typeof dec_point === 'undefined' ? '.' : dec_point;\n\tlet s = '';\n\t// Fix for IE parseFloat(0.55).toFixed(0) = 0;\n\ts = ( prec ? toFixedFix( n, prec ) : '' + Math.round( n ) ).split( '.' );\n\tif ( s[ 0 ].length > 3 ) {\n\t\ts[ 0 ] = s[ 0 ].replace( /\\B(?=(?:\\d{3})+(?!\\d))/g, sep );\n\t}\n\tif ( ( s[ 1 ] || '' ).length < prec ) {\n\t\ts[ 1 ] = s[ 1 ] || '';\n\t\ts[ 1 ] += new Array( prec - s[ 1 ].length + 1 ).join( '0' );\n\t}\n\treturn s.join( dec );\n}\n","import { cloneElement, createElement, Fragment } from 'react';\nimport tokenize from './tokenize';\n\nfunction getCloseIndex( openIndex, tokens ) {\n\tconst openToken = tokens[ openIndex ];\n\tlet nestLevel = 0;\n\tfor ( let i = openIndex + 1; i < tokens.length; i++ ) {\n\t\tconst token = tokens[ i ];\n\t\tif ( token.value === openToken.value ) {\n\t\t\tif ( token.type === 'componentOpen' ) {\n\t\t\t\tnestLevel++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( token.type === 'componentClose' ) {\n\t\t\t\tif ( nestLevel === 0 ) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\tnestLevel--;\n\t\t\t}\n\t\t}\n\t}\n\t// if we get this far, there was no matching close token\n\tthrow new Error( 'Missing closing component token `' + openToken.value + '`' );\n}\n\nfunction buildChildren( tokens, components ) {\n\tlet children = [];\n\tlet openComponent;\n\tlet openIndex;\n\n\tfor ( let i = 0; i < tokens.length; i++ ) {\n\t\tconst token = tokens[ i ];\n\t\tif ( token.type === 'string' ) {\n\t\t\tchildren.push( token.value );\n\t\t\tcontinue;\n\t\t}\n\t\t// component node should at least be set\n\t\tif ( components[ token.value ] === undefined ) {\n\t\t\tthrow new Error( `Invalid interpolation, missing component node: \\`${ token.value }\\`` );\n\t\t}\n\t\t// should be either ReactElement or null (both type \"object\"), all other types deprecated\n\t\tif ( typeof components[ token.value ] !== 'object' ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid interpolation, component node must be a ReactElement or null: \\`${ token.value }\\``\n\t\t\t);\n\t\t}\n\t\t// we should never see a componentClose token in this loop\n\t\tif ( token.type === 'componentClose' ) {\n\t\t\tthrow new Error( `Missing opening component token: \\`${ token.value }\\`` );\n\t\t}\n\t\tif ( token.type === 'componentOpen' ) {\n\t\t\topenComponent = components[ token.value ];\n\t\t\topenIndex = i;\n\t\t\tbreak;\n\t\t}\n\t\t// componentSelfClosing token\n\t\tchildren.push( components[ token.value ] );\n\t\tcontinue;\n\t}\n\n\tif ( openComponent ) {\n\t\tconst closeIndex = getCloseIndex( openIndex, tokens );\n\t\tconst grandChildTokens = tokens.slice( openIndex + 1, closeIndex );\n\t\tconst grandChildren = buildChildren( grandChildTokens, components );\n\t\tconst clonedOpenComponent = cloneElement( openComponent, {}, grandChildren );\n\t\tchildren.push( clonedOpenComponent );\n\n\t\tif ( closeIndex < tokens.length - 1 ) {\n\t\t\tconst siblingTokens = tokens.slice( closeIndex + 1 );\n\t\t\tconst siblings = buildChildren( siblingTokens, components );\n\t\t\tchildren = children.concat( siblings );\n\t\t}\n\t}\n\n\tchildren = children.filter( Boolean );\n\n\tif ( children.length === 0 ) {\n\t\treturn null;\n\t}\n\n\tif ( children.length === 1 ) {\n\t\treturn children[ 0 ];\n\t}\n\n\treturn createElement( Fragment, null, ...children );\n}\n\nexport default function interpolate( options ) {\n\tconst { mixedString, components, throwErrors } = options;\n\n\tif ( ! components ) {\n\t\treturn mixedString;\n\t}\n\n\tif ( typeof components !== 'object' ) {\n\t\tif ( throwErrors ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Interpolation Error: unable to process \\`${ mixedString }\\` because components is not an object`\n\t\t\t);\n\t\t}\n\n\t\treturn mixedString;\n\t}\n\n\tconst tokens = tokenize( mixedString );\n\n\ttry {\n\t\treturn buildChildren( tokens, components );\n\t} catch ( error ) {\n\t\tif ( throwErrors ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Interpolation Error: unable to process \\`${ mixedString }\\` because of error \\`${ error.message }\\``\n\t\t\t);\n\t\t}\n\n\t\treturn mixedString;\n\t}\n}\n","function identifyToken( item ) {\n\t// {{/example}}\n\tif ( item.startsWith( '{{/' ) ) {\n\t\treturn {\n\t\t\ttype: 'componentClose',\n\t\t\tvalue: item.replace( /\\W/g, '' ),\n\t\t};\n\t}\n\t// {{example /}}\n\tif ( item.endsWith( '/}}' ) ) {\n\t\treturn {\n\t\t\ttype: 'componentSelfClosing',\n\t\t\tvalue: item.replace( /\\W/g, '' ),\n\t\t};\n\t}\n\t// {{example}}\n\tif ( item.startsWith( '{{' ) ) {\n\t\treturn {\n\t\t\ttype: 'componentOpen',\n\t\t\tvalue: item.replace( /\\W/g, '' ),\n\t\t};\n\t}\n\treturn {\n\t\ttype: 'string',\n\t\tvalue: item,\n\t};\n}\n\nexport default function tokenize( mixedString ) {\n\tconst tokenStrings = mixedString.split( /(\\{\\{\\/?\\s*\\w+\\s*\\/?\\}\\})/g ); // split to components and strings\n\treturn tokenStrings.map( identifyToken );\n}\n","import debugFactory from 'debug';\nimport ProgressEvent from 'progress-event';\nimport { v4 as uuidv4 } from 'uuid';\nimport WPError from 'wp-error';\n\n/**\n * debug instance\n */\nconst debug = debugFactory( 'wpcom-proxy-request' );\n\n/**\n * WordPress.com REST API base endpoint.\n */\nconst proxyOrigin = 'https://public-api.wordpress.com';\n\n/**\n * \"Origin\" of the current HTML page.\n */\nconst origin = window.location.protocol + '//' + window.location.host;\n\nlet onStreamRecord = null;\n\n/**\n * Detecting support for the structured clone algorithm. IE8 and 9, and Firefox\n * 6.0 and below only support strings as postMessage's message. This browsers\n * will try to use the toString method.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage\n * https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm\n * https://github.com/Modernizr/Modernizr/issues/388#issuecomment-31127462\n */\nconst postStrings = ( () => {\n\tlet r = false;\n\ttry {\n\t\twindow.postMessage(\n\t\t\t{\n\t\t\t\ttoString: function () {\n\t\t\t\t\tr = true;\n\t\t\t\t},\n\t\t\t},\n\t\t\t'*'\n\t\t);\n\t} catch ( e ) {\n\t\t/* empty */\n\t}\n\treturn r;\n} )();\n\n/**\n * Test if the browser supports constructing a new `File` object. Not present on Edge and IE.\n */\nconst supportsFileConstructor = ( () => {\n\ttry {\n\t\t// eslint-disable-next-line no-new\n\t\tnew window.File( [ 'a' ], 'test.jpg', { type: 'image/jpeg' } );\n\t\treturn true;\n\t} catch ( e ) {\n\t\treturn false;\n\t}\n} )();\n\n/**\n * Reference to the <iframe> DOM element.\n * Gets set in the install() function.\n */\nlet iframe = null;\n\n/**\n * Set to `true` upon the iframe's \"load\" event.\n */\nlet loaded = false;\n\n/**\n * Array of buffered API requests. Added to when API requests are done before the\n * proxy <iframe> is \"loaded\", and fulfilled once the \"load\" DOM event on the\n * iframe occurs.\n */\nlet buffered;\n\n/**\n * In-flight API request XMLHttpRequest dummy \"proxy\" instances.\n */\nconst requests = {};\n\n/**\n * Are HTML5 XMLHttpRequest2 \"progress\" events supported?\n * See: http://goo.gl/xxYf6D\n */\nconst supportsProgress = !! window.ProgressEvent && !! window.FormData;\n\ndebug( 'using \"origin\": %o', origin );\n\n/**\n * Performs a \"proxied REST API request\". This happens by calling\n * `iframe.postMessage()` on the proxy iframe instance, which from there\n * takes care of WordPress.com user authentication (via the currently\n * logged-in user's cookies).\n *\n * @param {object} originalParams - request parameters\n * @param {Function} [fn] - callback response\n * @returns {window.XMLHttpRequest} XMLHttpRequest instance\n */\nconst makeRequest = ( originalParams, fn ) => {\n\tconst params = Object.assign( {}, originalParams );\n\n\tdebug( 'request(%o)', params );\n\n\t// inject the <iframe> upon the first proxied API request\n\tif ( ! iframe ) {\n\t\tinstall();\n\t}\n\n\t// generate a uuid for this API request\n\tconst id = uuidv4();\n\tparams.callback = id;\n\tparams.supports_args = true; // supports receiving variable amount of arguments\n\tparams.supports_error_obj = true; // better Error object info\n\tparams.supports_progress = supportsProgress; // supports receiving XHR \"progress\" events\n\n\t// force uppercase \"method\" since that's what the <iframe> is expecting\n\tparams.method = String( params.method || 'GET' ).toUpperCase();\n\n\tdebug( 'params object: %o', params );\n\n\tconst xhr = new window.XMLHttpRequest();\n\txhr.params = params;\n\n\t// store the `XMLHttpRequest` instance so that \"onmessage\" can access it again\n\trequests[ id ] = xhr;\n\n\tif ( 'function' === typeof fn ) {\n\t\t// a callback function was provided\n\t\tlet called = false;\n\t\tconst xhrOnLoad = ( e ) => {\n\t\t\tif ( called ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcalled = true;\n\t\t\tconst body = e.response || xhr.response;\n\t\t\tdebug( 'body: ', body );\n\t\t\tdebug( 'headers: ', e.headers );\n\t\t\tfn( null, body, e.headers );\n\t\t};\n\t\tconst xhrOnError = ( e ) => {\n\t\t\tif ( called ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcalled = true;\n\t\t\tconst error = e.error || e.err || e;\n\t\t\tdebug( 'error: ', error );\n\t\t\tdebug( 'headers: ', e.headers );\n\t\t\tfn( error, null, e.headers );\n\t\t};\n\n\t\txhr.addEventListener( 'load', xhrOnLoad );\n\t\txhr.addEventListener( 'abort', xhrOnError );\n\t\txhr.addEventListener( 'error', xhrOnError );\n\t}\n\n\tif ( 'function' === typeof params.onStreamRecord ) {\n\t\t// remove onStreamRecord param, which can’t be cloned\n\t\tonStreamRecord = params.onStreamRecord;\n\t\tdelete params.onStreamRecord;\n\n\t\t// FIXME @azabani implement stream mode processing\n\t\t// Hint: port the algorithm from wpcom-xhr-request@1.2.0 to /public.api/rest-proxy/provider-\n\t\t// v2.0.js in rWP, then plumb stream records from onmessage below to onStreamRecord (or add\n\t\t// the XMLHttpRequest#response to ondownloadprogress there, then parse the chunks here).\n\t}\n\n\tif ( loaded ) {\n\t\tsubmitRequest( params );\n\t} else {\n\t\tdebug( 'buffering API request since proxying <iframe> is not yet loaded' );\n\t\tbuffered.push( params );\n\t}\n\n\treturn xhr;\n};\n\n/**\n * Performs a \"proxied REST API request\". This happens by calling\n * `iframe.postMessage()` on the proxy iframe instance, which from there\n * takes care of WordPress.com user authentication (via the currently\n * logged-in user's cookies).\n *\n * If no function is specified as second parameter, a promise is returned.\n *\n * @param {object} originalParams - request parameters\n * @param {Function} [fn] - callback response\n * @returns {window.XMLHttpRequest|Promise} XMLHttpRequest instance or Promise\n */\nconst request = ( originalParams, fn ) => {\n\t// if callback is provided, behave traditionally\n\tif ( 'function' === typeof fn ) {\n\t\t// request method\n\t\treturn makeRequest( originalParams, fn );\n\t}\n\n\t// but if not, return a Promise\n\treturn new Promise( ( res, rej ) => {\n\t\tmakeRequest( originalParams, ( err, response ) => {\n\t\t\terr ? rej( err ) : res( response );\n\t\t} );\n\t} );\n};\n\n/**\n * Set proxy to \"access all users' blogs\" mode.\n */\nexport function requestAllBlogsAccess() {\n\treturn request( { metaAPI: { accessAllUsersBlogs: true } } );\n}\n\n/**\n * Calls the `postMessage()` function on the <iframe>.\n *\n * @param {object} params\n */\n\nfunction submitRequest( params ) {\n\tdebug( 'sending API request to proxy <iframe> %o', params );\n\n\t// `formData` needs to be patched if it contains `File` objects to work around\n\t// a Chrome bug. See `patchFileObjects` description for more details.\n\tif ( params.formData ) {\n\t\tpatchFileObjects( params.formData );\n\t}\n\n\tiframe.contentWindow.postMessage( postStrings ? JSON.stringify( params ) : params, proxyOrigin );\n}\n\n/**\n * Returns `true` if `v` is a DOM File instance, `false` otherwise.\n *\n * @param {any} v - instance to analyze\n * @returns {boolean} `true` if `v` is a DOM File instance\n */\nfunction isFile( v ) {\n\treturn v && Object.prototype.toString.call( v ) === '[object File]';\n}\n\n/*\n * Find a `File` object in a form data value. It can be either the value itself, or\n * in a `fileContents` property of the value.\n */\nfunction getFileValue( v ) {\n\tif ( isFile( v ) ) {\n\t\treturn v;\n\t}\n\n\tif ( typeof v === 'object' && isFile( v.fileContents ) ) {\n\t\treturn v.fileContents;\n\t}\n\n\treturn null;\n}\n\n/**\n * Finds all `File` instances in `formData` and creates a new `File` instance whose storage is\n * forced to be a `Blob` instead of being backed by a file on disk. That works around a bug in\n * Chrome where `File` instances with `has_backing_file` flag cannot be sent over a process\n * boundary when site isolation is on.\n *\n * @see https://bugs.chromium.org/p/chromium/issues/detail?id=866805\n * @see https://bugs.chromium.org/p/chromium/issues/detail?id=631877\n * @param {Array} formData Form data to patch\n */\nfunction patchFileObjects( formData ) {\n\t// There are several landmines to avoid when making file uploads work on all browsers:\n\t// - the `new File()` constructor trick breaks file uploads on Safari 10 in a way that's\n\t// impossible to detect: it will send empty files in the multipart/form-data body.\n\t// Therefore we need to detect Chrome.\n\t// - IE11 and Edge don't support the `new File()` constructor at all. It will throw exception,\n\t// so it's detectable by the `supportsFileConstructor` code.\n\t// - `window.chrome` exists also on Edge (!), `window.chrome.webstore` is only in Chrome and\n\t// not in other Chromium based browsers (which have the site isolation bug, too).\n\tif ( ! window.chrome || ! supportsFileConstructor ) {\n\t\treturn;\n\t}\n\n\tfor ( let i = 0; i < formData.length; i++ ) {\n\t\tconst val = getFileValue( formData[ i ][ 1 ] );\n\t\tif ( val ) {\n\t\t\tformData[ i ][ 1 ] = new window.File( [ val ], val.name, { type: val.type } );\n\t\t}\n\t}\n}\n\n/**\n * Injects the proxy <iframe> instance in the <body> of the current\n * HTML page.\n */\n\nfunction install() {\n\tdebug( 'install()' );\n\tif ( iframe ) {\n\t\tuninstall();\n\t}\n\n\tbuffered = [];\n\n\t// listen to messages sent to `window`\n\twindow.addEventListener( 'message', onmessage );\n\n\t// create the <iframe>\n\tiframe = document.createElement( 'iframe' );\n\n\t// set `src` and hide the iframe\n\tiframe.src = proxyOrigin + '/wp-admin/rest-proxy/?v=2.0#' + origin;\n\tiframe.style.display = 'none';\n\n\t// inject the <iframe> into the <body>\n\tdocument.body.appendChild( iframe );\n}\n\n/**\n * Reloads the proxy iframe.\n */\nconst reloadProxy = () => {\n\tinstall();\n};\n\n/**\n * Removes the <iframe> proxy instance from the <body> of the page.\n */\nfunction uninstall() {\n\tdebug( 'uninstall()' );\n\twindow.removeEventListener( 'message', onmessage );\n\tdocument.body.removeChild( iframe );\n\tloaded = false;\n\tiframe = null;\n}\n\n/**\n * The proxy <iframe> instance's \"load\" event callback function.\n */\n\nfunction onload() {\n\tdebug( 'proxy <iframe> \"load\" event' );\n\tloaded = true;\n\n\t// flush any buffered API calls\n\tif ( buffered ) {\n\t\tfor ( let i = 0; i < buffered.length; i++ ) {\n\t\t\tsubmitRequest( buffered[ i ] );\n\t\t}\n\t\tbuffered = null;\n\t}\n}\n\n/**\n * The main `window` object's \"message\" event callback function.\n *\n * @param {window.Event} e\n */\n\nfunction onmessage( e ) {\n\tdebug( 'onmessage' );\n\n\t// Filter out messages from different origins\n\tif ( e.origin !== proxyOrigin ) {\n\t\tdebug( 'ignoring message... %o !== %o', e.origin, proxyOrigin );\n\t\treturn;\n\t}\n\n\t// Filter out messages from different iframes\n\tif ( e.source !== iframe.contentWindow ) {\n\t\tdebug( 'ignoring message... iframe elements do not match' );\n\t\treturn;\n\t}\n\n\tlet { data } = e;\n\tif ( ! data ) {\n\t\treturn debug( 'no `data`, bailing' );\n\t}\n\n\t// Once the iframe is loaded, we can start using it.\n\tif ( data === 'ready' ) {\n\t\tonload();\n\t\treturn;\n\t}\n\n\tif ( postStrings && 'string' === typeof data ) {\n\t\tdata = JSON.parse( data );\n\t}\n\n\t// check if we're receiving a \"progress\" event\n\tif ( data.upload || data.download ) {\n\t\treturn onprogress( data );\n\t}\n\n\tif ( ! data.length ) {\n\t\treturn debug( \"`e.data` doesn't appear to be an Array, bailing...\" );\n\t}\n\n\t// first get the `xhr` instance that we're interested in\n\tconst id = data[ data.length - 1 ];\n\tif ( ! ( id in requests ) ) {\n\t\treturn debug( 'bailing, no matching request with callback: %o', id );\n\t}\n\n\tconst xhr = requests[ id ];\n\n\t// Build `error` and `body` object from the `data` object\n\tconst { params } = xhr;\n\n\tconst body = data[ 0 ];\n\tlet statusCode = data[ 1 ];\n\tconst headers = data[ 2 ];\n\n\t// We don't want to delete requests while we're processing stream messages\n\tif ( statusCode === 207 ) {\n\t\t// 207 is a signal from rest-proxy. It means, \"this isn't the final\n\t\t// response to the query.\" The proxy supports WebSocket connections\n\t\t// by invoking the original success callback for each message received.\n\t} else {\n\t\t// this is the final response to this query\n\t\tdelete requests[ id ];\n\t}\n\n\tif ( ! params.metaAPI ) {\n\t\tdebug( 'got %o status code for URL: %o', statusCode, params.path );\n\t} else {\n\t\tstatusCode = body === 'metaAPIupdated' ? 200 : 500;\n\t}\n\n\tif ( typeof headers === 'object' ) {\n\t\t// add statusCode into headers object\n\t\theaders.status = statusCode;\n\n\t\tif ( shouldProcessInStreamMode( headers[ 'Content-Type' ] ) ) {\n\t\t\tif ( statusCode === 207 ) {\n\t\t\t\tonStreamRecord( body );\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( statusCode && 2 === Math.floor( statusCode / 100 ) ) {\n\t\t// 2xx status code, success\n\t\tresolve( xhr, body, headers );\n\t} else {\n\t\t// any other status code is a failure\n\t\tconst wpe = WPError( params, statusCode, body );\n\t\treject( xhr, wpe, headers );\n\t}\n}\n\n/**\n * Returns true iff stream mode processing is required (see wpcom-xhr-request@1.2.0).\n *\n * @param {string} contentType response Content-Type header value\n */\nfunction shouldProcessInStreamMode( contentType ) {\n\treturn /^application[/]x-ndjson($|;)/.test( contentType );\n}\n\n/**\n * Handles a \"progress\" event being proxied back from the iframe page.\n *\n * @param {object} data\n */\n\nfunction onprogress( data ) {\n\tdebug( 'got \"progress\" event: %o', data );\n\tconst xhr = requests[ data.callbackId ];\n\tif ( xhr ) {\n\t\tconst prog = new ProgressEvent( 'progress', data );\n\t\tconst target = data.upload ? xhr.upload : xhr;\n\t\ttarget.dispatchEvent( prog );\n\t}\n}\n\n/**\n * Emits the \"load\" event on the `xhr`.\n *\n * @param {window.XMLHttpRequest} xhr\n * @param {object} body\n */\n\nfunction resolve( xhr, body, headers ) {\n\tconst e = new ProgressEvent( 'load' );\n\te.data = e.body = e.response = body;\n\te.headers = headers;\n\txhr.dispatchEvent( e );\n}\n\n/**\n * Emits the \"error\" event on the `xhr`.\n *\n * @param {window.XMLHttpRequest} xhr\n * @param {Error} err\n */\n\nfunction reject( xhr, err, headers ) {\n\tconst e = new ProgressEvent( 'error' );\n\te.error = e.err = err;\n\te.headers = headers;\n\txhr.dispatchEvent( e );\n}\n\n// list of valid origins for wpcom requests.\n// taken from wpcom-proxy-request (rest-proxy/provider-v2.0.js)\nconst wpcomAllowedOrigins = [\n\t'https://wordpress.com',\n\t'https://cloud.jetpack.com',\n\t'http://wpcalypso.wordpress.com', // for running docker on dev instances\n\t'http://widgets.wp.com',\n\t'https://widgets.wp.com',\n\t'https://dev-mc.a8c.com',\n\t'https://mc.a8c.com',\n\t'https://dserve.a8c.com',\n\t'http://calypso.localhost:3000',\n\t'https://calypso.localhost:3000',\n\t'http://jetpack.cloud.localhost:3000',\n\t'https://jetpack.cloud.localhost:3000',\n\t'http://calypso.localhost:3001',\n\t'https://calypso.localhost:3001',\n\t'https://calypso.live',\n\t'http://127.0.0.1:41050',\n\t'http://send.linguine.localhost:3000',\n];\n\n/**\n * Shelved from rest-proxy/provider-v2.0.js.\n * This returns true for all WPCOM origins except Atomic sites.\n *\n * @param urlOrigin\n * @returns\n */\nfunction isAllowedOrigin( urlOrigin ) {\n\t// sites in the allow-list and some subdomains of \"calypso.live\" and \"wordpress.com\"\n\t// are allowed without further check\n\treturn (\n\t\twpcomAllowedOrigins.includes( urlOrigin ) ||\n\t\t/^https:\\/\\/[a-z0-9-]+\\.calypso\\.live$/.test( urlOrigin ) ||\n\t\t/^https:\\/\\/([a-z0-9-]+\\.)+wordpress\\.com$/.test( urlOrigin )\n\t);\n}\n\nfunction canAccessWpcomApis() {\n\treturn isAllowedOrigin( window.location.origin );\n}\n\n/**\n * Export `request` function.\n */\nexport default request;\nexport { reloadProxy, canAccessWpcomApis };\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","'use strict';\nvar camelCase = require('camelcase');\n\nmodule.exports = function () {\n\tvar cased = camelCase.apply(camelCase, arguments);\n\treturn cased.charAt(0).toUpperCase() + cased.slice(1);\n};\n","'use strict';\nmodule.exports = function () {\n\tvar str = [].map.call(arguments, function (str) {\n\t\treturn str.trim();\n\t}).filter(function (str) {\n\t\treturn str.length;\n\t}).join('-');\n\n\tif (!str.length) {\n\t\treturn '';\n\t}\n\n\tif (str.length === 1 || !(/[_.\\- ]+/).test(str) ) {\n\t\tif (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) {\n\t\t\treturn str;\n\t\t}\n\n\t\treturn str.toLowerCase();\n\t}\n\n\treturn str\n\t.replace(/^[_.\\- ]+/, '')\n\t.toLowerCase()\n\t.replace(/[_.\\- ]+(\\w|$)/g, function (m, p1) {\n\t\treturn p1.toUpperCase();\n\t});\n};\n","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _toDate = _interopRequireDefault(require(\"./lib/toDate\"));\n\nvar _toFloat = _interopRequireDefault(require(\"./lib/toFloat\"));\n\nvar _toInt = _interopRequireDefault(require(\"./lib/toInt\"));\n\nvar _toBoolean = _interopRequireDefault(require(\"./lib/toBoolean\"));\n\nvar _equals = _interopRequireDefault(require(\"./lib/equals\"));\n\nvar _contains = _interopRequireDefault(require(\"./lib/contains\"));\n\nvar _matches = _interopRequireDefault(require(\"./lib/matches\"));\n\nvar _isEmail = _interopRequireDefault(require(\"./lib/isEmail\"));\n\nvar _isURL = _interopRequireDefault(require(\"./lib/isURL\"));\n\nvar _isMACAddress = _interopRequireDefault(require(\"./lib/isMACAddress\"));\n\nvar _isIP = _interopRequireDefault(require(\"./lib/isIP\"));\n\nvar _isIPRange = _interopRequireDefault(require(\"./lib/isIPRange\"));\n\nvar _isFQDN = _interopRequireDefault(require(\"./lib/isFQDN\"));\n\nvar _isDate = _interopRequireDefault(require(\"./lib/isDate\"));\n\nvar _isBoolean = _interopRequireDefault(require(\"./lib/isBoolean\"));\n\nvar _isLocale = _interopRequireDefault(require(\"./lib/isLocale\"));\n\nvar _isAlpha = _interopRequireWildcard(require(\"./lib/isAlpha\"));\n\nvar _isAlphanumeric = _interopRequireWildcard(require(\"./lib/isAlphanumeric\"));\n\nvar _isNumeric = _interopRequireDefault(require(\"./lib/isNumeric\"));\n\nvar _isPassportNumber = _interopRequireDefault(require(\"./lib/isPassportNumber\"));\n\nvar _isPort = _interopRequireDefault(require(\"./lib/isPort\"));\n\nvar _isLowercase = _interopRequireDefault(require(\"./lib/isLowercase\"));\n\nvar _isUppercase = _interopRequireDefault(require(\"./lib/isUppercase\"));\n\nvar _isIMEI = _interopRequireDefault(require(\"./lib/isIMEI\"));\n\nvar _isAscii = _interopRequireDefault(require(\"./lib/isAscii\"));\n\nvar _isFullWidth = _interopRequireDefault(require(\"./lib/isFullWidth\"));\n\nvar _isHalfWidth = _interopRequireDefault(require(\"./lib/isHalfWidth\"));\n\nvar _isVariableWidth = _interopRequireDefault(require(\"./lib/isVariableWidth\"));\n\nvar _isMultibyte = _interopRequireDefault(require(\"./lib/isMultibyte\"));\n\nvar _isSemVer = _interopRequireDefault(require(\"./lib/isSemVer\"));\n\nvar _isSurrogatePair = _interopRequireDefault(require(\"./lib/isSurrogatePair\"));\n\nvar _isInt = _interopRequireDefault(require(\"./lib/isInt\"));\n\nvar _isFloat = _interopRequireWildcard(require(\"./lib/isFloat\"));\n\nvar _isDecimal = _interopRequireDefault(require(\"./lib/isDecimal\"));\n\nvar _isHexadecimal = _interopRequireDefault(require(\"./lib/isHexadecimal\"));\n\nvar _isOctal = _interopRequireDefault(require(\"./lib/isOctal\"));\n\nvar _isDivisibleBy = _interopRequireDefault(require(\"./lib/isDivisibleBy\"));\n\nvar _isHexColor = _interopRequireDefault(require(\"./lib/isHexColor\"));\n\nvar _isRgbColor = _interopRequireDefault(require(\"./lib/isRgbColor\"));\n\nvar _isHSL = _interopRequireDefault(require(\"./lib/isHSL\"));\n\nvar _isISRC = _interopRequireDefault(require(\"./lib/isISRC\"));\n\nvar _isIBAN = _interopRequireDefault(require(\"./lib/isIBAN\"));\n\nvar _isBIC = _interopRequireDefault(require(\"./lib/isBIC\"));\n\nvar _isMD = _interopRequireDefault(require(\"./lib/isMD5\"));\n\nvar _isHash = _interopRequireDefault(require(\"./lib/isHash\"));\n\nvar _isJWT = _interopRequireDefault(require(\"./lib/isJWT\"));\n\nvar _isJSON = _interopRequireDefault(require(\"./lib/isJSON\"));\n\nvar _isEmpty = _interopRequireDefault(require(\"./lib/isEmpty\"));\n\nvar _isLength = _interopRequireDefault(require(\"./lib/isLength\"));\n\nvar _isByteLength = _interopRequireDefault(require(\"./lib/isByteLength\"));\n\nvar _isUUID = _interopRequireDefault(require(\"./lib/isUUID\"));\n\nvar _isMongoId = _interopRequireDefault(require(\"./lib/isMongoId\"));\n\nvar _isAfter = _interopRequireDefault(require(\"./lib/isAfter\"));\n\nvar _isBefore = _interopRequireDefault(require(\"./lib/isBefore\"));\n\nvar _isIn = _interopRequireDefault(require(\"./lib/isIn\"));\n\nvar _isCreditCard = _interopRequireDefault(require(\"./lib/isCreditCard\"));\n\nvar _isIdentityCard = _interopRequireDefault(require(\"./lib/isIdentityCard\"));\n\nvar _isEAN = _interopRequireDefault(require(\"./lib/isEAN\"));\n\nvar _isISIN = _interopRequireDefault(require(\"./lib/isISIN\"));\n\nvar _isISBN = _interopRequireDefault(require(\"./lib/isISBN\"));\n\nvar _isISSN = _interopRequireDefault(require(\"./lib/isISSN\"));\n\nvar _isTaxID = _interopRequireDefault(require(\"./lib/isTaxID\"));\n\nvar _isMobilePhone = _interopRequireWildcard(require(\"./lib/isMobilePhone\"));\n\nvar _isEthereumAddress = _interopRequireDefault(require(\"./lib/isEthereumAddress\"));\n\nvar _isCurrency = _interopRequireDefault(require(\"./lib/isCurrency\"));\n\nvar _isBtcAddress = _interopRequireDefault(require(\"./lib/isBtcAddress\"));\n\nvar _isISO = _interopRequireDefault(require(\"./lib/isISO8601\"));\n\nvar _isRFC = _interopRequireDefault(require(\"./lib/isRFC3339\"));\n\nvar _isISO31661Alpha = _interopRequireDefault(require(\"./lib/isISO31661Alpha2\"));\n\nvar _isISO31661Alpha2 = _interopRequireDefault(require(\"./lib/isISO31661Alpha3\"));\n\nvar _isBase = _interopRequireDefault(require(\"./lib/isBase32\"));\n\nvar _isBase2 = _interopRequireDefault(require(\"./lib/isBase58\"));\n\nvar _isBase3 = _interopRequireDefault(require(\"./lib/isBase64\"));\n\nvar _isDataURI = _interopRequireDefault(require(\"./lib/isDataURI\"));\n\nvar _isMagnetURI = _interopRequireDefault(require(\"./lib/isMagnetURI\"));\n\nvar _isMimeType = _interopRequireDefault(require(\"./lib/isMimeType\"));\n\nvar _isLatLong = _interopRequireDefault(require(\"./lib/isLatLong\"));\n\nvar _isPostalCode = _interopRequireWildcard(require(\"./lib/isPostalCode\"));\n\nvar _ltrim = _interopRequireDefault(require(\"./lib/ltrim\"));\n\nvar _rtrim = _interopRequireDefault(require(\"./lib/rtrim\"));\n\nvar _trim = _interopRequireDefault(require(\"./lib/trim\"));\n\nvar _escape = _interopRequireDefault(require(\"./lib/escape\"));\n\nvar _unescape = _interopRequireDefault(require(\"./lib/unescape\"));\n\nvar _stripLow = _interopRequireDefault(require(\"./lib/stripLow\"));\n\nvar _whitelist = _interopRequireDefault(require(\"./lib/whitelist\"));\n\nvar _blacklist = _interopRequireDefault(require(\"./lib/blacklist\"));\n\nvar _isWhitelisted = _interopRequireDefault(require(\"./lib/isWhitelisted\"));\n\nvar _normalizeEmail = _interopRequireDefault(require(\"./lib/normalizeEmail\"));\n\nvar _isSlug = _interopRequireDefault(require(\"./lib/isSlug\"));\n\nvar _isStrongPassword = _interopRequireDefault(require(\"./lib/isStrongPassword\"));\n\nvar _isVAT = _interopRequireDefault(require(\"./lib/isVAT\"));\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar version = '13.5.2';\nvar validator = {\n version: version,\n toDate: _toDate.default,\n toFloat: _toFloat.default,\n toInt: _toInt.default,\n toBoolean: _toBoolean.default,\n equals: _equals.default,\n contains: _contains.default,\n matches: _matches.default,\n isEmail: _isEmail.default,\n isURL: _isURL.default,\n isMACAddress: _isMACAddress.default,\n isIP: _isIP.default,\n isIPRange: _isIPRange.default,\n isFQDN: _isFQDN.default,\n isBoolean: _isBoolean.default,\n isIBAN: _isIBAN.default,\n isBIC: _isBIC.default,\n isAlpha: _isAlpha.default,\n isAlphaLocales: _isAlpha.locales,\n isAlphanumeric: _isAlphanumeric.default,\n isAlphanumericLocales: _isAlphanumeric.locales,\n isNumeric: _isNumeric.default,\n isPassportNumber: _isPassportNumber.default,\n isPort: _isPort.default,\n isLowercase: _isLowercase.default,\n isUppercase: _isUppercase.default,\n isAscii: _isAscii.default,\n isFullWidth: _isFullWidth.default,\n isHalfWidth: _isHalfWidth.default,\n isVariableWidth: _isVariableWidth.default,\n isMultibyte: _isMultibyte.default,\n isSemVer: _isSemVer.default,\n isSurrogatePair: _isSurrogatePair.default,\n isInt: _isInt.default,\n isIMEI: _isIMEI.default,\n isFloat: _isFloat.default,\n isFloatLocales: _isFloat.locales,\n isDecimal: _isDecimal.default,\n isHexadecimal: _isHexadecimal.default,\n isOctal: _isOctal.default,\n isDivisibleBy: _isDivisibleBy.default,\n isHexColor: _isHexColor.default,\n isRgbColor: _isRgbColor.default,\n isHSL: _isHSL.default,\n isISRC: _isISRC.default,\n isMD5: _isMD.default,\n isHash: _isHash.default,\n isJWT: _isJWT.default,\n isJSON: _isJSON.default,\n isEmpty: _isEmpty.default,\n isLength: _isLength.default,\n isLocale: _isLocale.default,\n isByteLength: _isByteLength.default,\n isUUID: _isUUID.default,\n isMongoId: _isMongoId.default,\n isAfter: _isAfter.default,\n isBefore: _isBefore.default,\n isIn: _isIn.default,\n isCreditCard: _isCreditCard.default,\n isIdentityCard: _isIdentityCard.default,\n isEAN: _isEAN.default,\n isISIN: _isISIN.default,\n isISBN: _isISBN.default,\n isISSN: _isISSN.default,\n isMobilePhone: _isMobilePhone.default,\n isMobilePhoneLocales: _isMobilePhone.locales,\n isPostalCode: _isPostalCode.default,\n isPostalCodeLocales: _isPostalCode.locales,\n isEthereumAddress: _isEthereumAddress.default,\n isCurrency: _isCurrency.default,\n isBtcAddress: _isBtcAddress.default,\n isISO8601: _isISO.default,\n isRFC3339: _isRFC.default,\n isISO31661Alpha2: _isISO31661Alpha.default,\n isISO31661Alpha3: _isISO31661Alpha2.default,\n isBase32: _isBase.default,\n isBase58: _isBase2.default,\n isBase64: _isBase3.default,\n isDataURI: _isDataURI.default,\n isMagnetURI: _isMagnetURI.default,\n isMimeType: _isMimeType.default,\n isLatLong: _isLatLong.default,\n ltrim: _ltrim.default,\n rtrim: _rtrim.default,\n trim: _trim.default,\n escape: _escape.default,\n unescape: _unescape.default,\n stripLow: _stripLow.default,\n whitelist: _whitelist.default,\n blacklist: _blacklist.default,\n isWhitelisted: _isWhitelisted.default,\n normalizeEmail: _normalizeEmail.default,\n toString: toString,\n isSlug: _isSlug.default,\n isStrongPassword: _isStrongPassword.default,\n isTaxID: _isTaxID.default,\n isDate: _isDate.default,\n isVAT: _isVAT.default\n};\nvar _default = validator;\nexports.default = _default;\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.commaDecimal = exports.dotDecimal = exports.farsiLocales = exports.arabicLocales = exports.englishLocales = exports.decimal = exports.alphanumeric = exports.alpha = void 0;\nvar alpha = {\n 'en-US': /^[A-Z]+$/i,\n 'az-AZ': /^[A-VXYZÇƏĞİıÖŞÜ]+$/i,\n 'bg-BG': /^[А-Я]+$/i,\n 'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\n 'da-DK': /^[A-ZÆØÅ]+$/i,\n 'de-DE': /^[A-ZÄÖÜß]+$/i,\n 'el-GR': /^[Α-ώ]+$/i,\n 'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i,\n 'fa-IR': /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,\n 'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\n 'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i,\n 'nb-NO': /^[A-ZÆØÅ]+$/i,\n 'nl-NL': /^[A-ZÁÉËÏÓÖÜÚ]+$/i,\n 'nn-NO': /^[A-ZÆØÅ]+$/i,\n 'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,\n 'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\n 'pt-PT': /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,\n 'ru-RU': /^[А-ЯЁ]+$/i,\n 'sl-SI': /^[A-ZČĆĐŠŽ]+$/i,\n 'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,\n 'sr-RS@latin': /^[A-ZČĆŽŠĐ]+$/i,\n 'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i,\n 'sv-SE': /^[A-ZÅÄÖ]+$/i,\n 'th-TH': /^[ก-๐\\s]+$/i,\n 'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,\n 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,\n 'vi-VN': /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,\n 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,\n ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,\n he: /^[א-ת]+$/,\n fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i\n};\nexports.alpha = alpha;\nvar alphanumeric = {\n 'en-US': /^[0-9A-Z]+$/i,\n 'az-AZ': /^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,\n 'bg-BG': /^[0-9А-Я]+$/i,\n 'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\n 'da-DK': /^[0-9A-ZÆØÅ]+$/i,\n 'de-DE': /^[0-9A-ZÄÖÜß]+$/i,\n 'el-GR': /^[0-9Α-ω]+$/i,\n 'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,\n 'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\n 'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,\n 'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,\n 'nb-NO': /^[0-9A-ZÆØÅ]+$/i,\n 'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,\n 'nn-NO': /^[0-9A-ZÆØÅ]+$/i,\n 'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\n 'pt-PT': /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,\n 'ru-RU': /^[0-9А-ЯЁ]+$/i,\n 'sl-SI': /^[0-9A-ZČĆĐŠŽ]+$/i,\n 'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,\n 'sr-RS@latin': /^[0-9A-ZČĆŽŠĐ]+$/i,\n 'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,\n 'sv-SE': /^[0-9A-ZÅÄÖ]+$/i,\n 'th-TH': /^[ก-๙\\s]+$/i,\n 'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,\n 'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,\n 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,\n 'vi-VN': /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,\n ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,\n he: /^[0-9א-ת]+$/,\n fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i\n};\nexports.alphanumeric = alphanumeric;\nvar decimal = {\n 'en-US': '.',\n ar: '٫'\n};\nexports.decimal = decimal;\nvar englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM'];\nexports.englishLocales = englishLocales;\n\nfor (var locale, i = 0; i < englishLocales.length; i++) {\n locale = \"en-\".concat(englishLocales[i]);\n alpha[locale] = alpha['en-US'];\n alphanumeric[locale] = alphanumeric['en-US'];\n decimal[locale] = decimal['en-US'];\n} // Source: http://www.localeplanet.com/java/\n\n\nvar arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE'];\nexports.arabicLocales = arabicLocales;\n\nfor (var _locale, _i = 0; _i < arabicLocales.length; _i++) {\n _locale = \"ar-\".concat(arabicLocales[_i]);\n alpha[_locale] = alpha.ar;\n alphanumeric[_locale] = alphanumeric.ar;\n decimal[_locale] = decimal.ar;\n}\n\nvar farsiLocales = ['IR', 'AF'];\nexports.farsiLocales = farsiLocales;\n\nfor (var _locale2, _i2 = 0; _i2 < farsiLocales.length; _i2++) {\n _locale2 = \"fa-\".concat(farsiLocales[_i2]);\n alphanumeric[_locale2] = alphanumeric.fa;\n decimal[_locale2] = decimal.ar;\n} // Source: https://en.wikipedia.org/wiki/Decimal_mark\n\n\nvar dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY'];\nexports.dotDecimal = dotDecimal;\nvar commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'es-ES', 'fr-CA', 'fr-FR', 'id-ID', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA', 'vi-VN'];\nexports.commaDecimal = commaDecimal;\n\nfor (var _i3 = 0; _i3 < dotDecimal.length; _i3++) {\n decimal[dotDecimal[_i3]] = decimal['en-US'];\n}\n\nfor (var _i4 = 0; _i4 < commaDecimal.length; _i4++) {\n decimal[commaDecimal[_i4]] = ',';\n}\n\nalpha['fr-CA'] = alpha['fr-FR'];\nalphanumeric['fr-CA'] = alphanumeric['fr-FR'];\nalpha['pt-BR'] = alpha['pt-PT'];\nalphanumeric['pt-BR'] = alphanumeric['pt-PT'];\ndecimal['pt-BR'] = decimal['pt-PT']; // see #862\n\nalpha['pl-Pl'] = alpha['pl-PL'];\nalphanumeric['pl-Pl'] = alphanumeric['pl-PL'];\ndecimal['pl-Pl'] = decimal['pl-PL']; // see #1455\n\nalpha['fa-AF'] = alpha.fa;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = blacklist;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction blacklist(str, chars) {\n (0, _assertString.default)(str);\n return str.replace(new RegExp(\"[\".concat(chars, \"]+\"), 'g'), '');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = contains;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _toString = _interopRequireDefault(require(\"./util/toString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar defaulContainsOptions = {\n ignoreCase: false\n};\n\nfunction contains(str, elem, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, defaulContainsOptions);\n return options.ignoreCase ? str.toLowerCase().indexOf((0, _toString.default)(elem).toLowerCase()) >= 0 : str.indexOf((0, _toString.default)(elem)) >= 0;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = equals;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction equals(str, comparison) {\n (0, _assertString.default)(str);\n return str === comparison;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = escape;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction escape(str) {\n (0, _assertString.default)(str);\n return str.replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\\//g, '&#x2F;').replace(/\\\\/g, '&#x5C;').replace(/`/g, '&#96;');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAfter;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _toDate = _interopRequireDefault(require(\"./toDate\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isAfter(str) {\n var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date());\n (0, _assertString.default)(str);\n var comparison = (0, _toDate.default)(date);\n var original = (0, _toDate.default)(str);\n return !!(original && comparison && original > comparison);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAlpha;\nexports.locales = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _alpha = require(\"./alpha\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isAlpha(_str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (0, _assertString.default)(_str);\n var str = _str;\n var ignore = options.ignore;\n\n if (ignore) {\n if (ignore instanceof RegExp) {\n str = str.replace(ignore, '');\n } else if (typeof ignore === 'string') {\n str = str.replace(new RegExp(\"[\".concat(ignore.replace(/[-[\\]{}()*+?.,\\\\^$|#\\\\s]/g, '\\\\$&'), \"]\"), 'g'), ''); // escape regex for ignore\n } else {\n throw new Error('ignore should be instance of a String or RegExp');\n }\n }\n\n if (locale in _alpha.alpha) {\n return _alpha.alpha[locale].test(str);\n }\n\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\n\nvar locales = Object.keys(_alpha.alpha);\nexports.locales = locales;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAlphanumeric;\nexports.locales = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _alpha = require(\"./alpha\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isAlphanumeric(str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n (0, _assertString.default)(str);\n\n if (locale in _alpha.alphanumeric) {\n return _alpha.alphanumeric[locale].test(str);\n }\n\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\n\nvar locales = Object.keys(_alpha.alphanumeric);\nexports.locales = locales;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAscii;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable no-control-regex */\nvar ascii = /^[\\x00-\\x7F]+$/;\n/* eslint-enable no-control-regex */\n\nfunction isAscii(str) {\n (0, _assertString.default)(str);\n return ascii.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBIC;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isBICReg = /^[A-z]{4}[A-z]{2}\\w{2}(\\w{3})?$/;\n\nfunction isBIC(str) {\n (0, _assertString.default)(str);\n return isBICReg.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBase32;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar base32 = /^[A-Z2-7]+=*$/;\n\nfunction isBase32(str) {\n (0, _assertString.default)(str);\n var len = str.length;\n\n if (len % 8 === 0 && base32.test(str)) {\n return true;\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBase58;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz\nvar base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/;\n\nfunction isBase58(str) {\n (0, _assertString.default)(str);\n\n if (base58Reg.test(str)) {\n return true;\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBase64;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar notBase64 = /[^A-Z0-9+\\/=]/i;\nvar urlSafeBase64 = /^[A-Z0-9_\\-]*$/i;\nvar defaultBase64Options = {\n urlSafe: false\n};\n\nfunction isBase64(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, defaultBase64Options);\n var len = str.length;\n\n if (options.urlSafe) {\n return urlSafeBase64.test(str);\n }\n\n if (len % 4 !== 0 || notBase64.test(str)) {\n return false;\n }\n\n var firstPaddingChar = str.indexOf('=');\n return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBefore;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _toDate = _interopRequireDefault(require(\"./toDate\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isBefore(str) {\n var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date());\n (0, _assertString.default)(str);\n var comparison = (0, _toDate.default)(date);\n var original = (0, _toDate.default)(str);\n return !!(original && comparison && original < comparison);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBoolean;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isBoolean(str) {\n (0, _assertString.default)(str);\n return ['true', 'false', '1', '0'].indexOf(str) >= 0;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBtcAddress;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// supports Bech32 addresses\nvar btc = /^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$/;\n\nfunction isBtcAddress(str) {\n (0, _assertString.default)(str);\n return btc.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isByteLength;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-disable prefer-rest-params */\nfunction isByteLength(str, options) {\n (0, _assertString.default)(str);\n var min;\n var max;\n\n if (_typeof(options) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isByteLength(str, min [, max])\n min = arguments[1];\n max = arguments[2];\n }\n\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isCreditCard;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable max-len */\nvar creditCard = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11}|6[27][0-9]{14})$/;\n/* eslint-enable max-len */\n\nfunction isCreditCard(str) {\n (0, _assertString.default)(str);\n var sanitized = str.replace(/[- ]+/g, '');\n\n if (!creditCard.test(sanitized)) {\n return false;\n }\n\n var sum = 0;\n var digit;\n var tmpNum;\n var shouldDouble;\n\n for (var i = sanitized.length - 1; i >= 0; i--) {\n digit = sanitized.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n\n if (shouldDouble) {\n tmpNum *= 2;\n\n if (tmpNum >= 10) {\n sum += tmpNum % 10 + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n\n shouldDouble = !shouldDouble;\n }\n\n return !!(sum % 10 === 0 ? sanitized : false);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isCurrency;\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction currencyRegex(options) {\n var decimal_digits = \"\\\\d{\".concat(options.digits_after_decimal[0], \"}\");\n options.digits_after_decimal.forEach(function (digit, index) {\n if (index !== 0) decimal_digits = \"\".concat(decimal_digits, \"|\\\\d{\").concat(digit, \"}\");\n });\n var symbol = \"(\".concat(options.symbol.replace(/\\W/, function (m) {\n return \"\\\\\".concat(m);\n }), \")\").concat(options.require_symbol ? '' : '?'),\n negative = '-?',\n whole_dollar_amount_without_sep = '[1-9]\\\\d*',\n whole_dollar_amount_with_sep = \"[1-9]\\\\d{0,2}(\\\\\".concat(options.thousands_separator, \"\\\\d{3})*\"),\n valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep],\n whole_dollar_amount = \"(\".concat(valid_whole_dollar_amounts.join('|'), \")?\"),\n decimal_amount = \"(\\\\\".concat(options.decimal_separator, \"(\").concat(decimal_digits, \"))\").concat(options.require_decimal ? '' : '?');\n var pattern = whole_dollar_amount + (options.allow_decimal || options.require_decimal ? decimal_amount : ''); // default is negative sign before symbol, but there are two other options (besides parens)\n\n if (options.allow_negatives && !options.parens_for_negatives) {\n if (options.negative_sign_after_digits) {\n pattern += negative;\n } else if (options.negative_sign_before_digits) {\n pattern = negative + pattern;\n }\n } // South African Rand, for example, uses R 123 (space) and R-123 (no space)\n\n\n if (options.allow_negative_sign_placeholder) {\n pattern = \"( (?!\\\\-))?\".concat(pattern);\n } else if (options.allow_space_after_symbol) {\n pattern = \" ?\".concat(pattern);\n } else if (options.allow_space_after_digits) {\n pattern += '( (?!$))?';\n }\n\n if (options.symbol_after_digits) {\n pattern += symbol;\n } else {\n pattern = symbol + pattern;\n }\n\n if (options.allow_negatives) {\n if (options.parens_for_negatives) {\n pattern = \"(\\\\(\".concat(pattern, \"\\\\)|\").concat(pattern, \")\");\n } else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) {\n pattern = negative + pattern;\n }\n } // ensure there's a dollar and/or decimal amount, and that\n // it doesn't start with a space or a negative sign followed by a space\n\n\n return new RegExp(\"^(?!-? )(?=.*\\\\d)\".concat(pattern, \"$\"));\n}\n\nvar default_currency_options = {\n symbol: '$',\n require_symbol: false,\n allow_space_after_symbol: false,\n symbol_after_digits: false,\n allow_negatives: true,\n parens_for_negatives: false,\n negative_sign_before_digits: false,\n negative_sign_after_digits: false,\n allow_negative_sign_placeholder: false,\n thousands_separator: ',',\n decimal_separator: '.',\n allow_decimal: true,\n require_decimal: false,\n digits_after_decimal: [2],\n allow_space_after_digits: false\n};\n\nfunction isCurrency(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_currency_options);\n return currencyRegex(options).test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isDataURI;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar validMediaType = /^[a-z]+\\/[a-z0-9\\-\\+]+$/i;\nvar validAttribute = /^[a-z\\-]+=[a-z0-9\\-]+$/i;\nvar validData = /^[a-z0-9!\\$&'\\(\\)\\*\\+,;=\\-\\._~:@\\/\\?%\\s]*$/i;\n\nfunction isDataURI(str) {\n (0, _assertString.default)(str);\n var data = str.split(',');\n\n if (data.length < 2) {\n return false;\n }\n\n var attributes = data.shift().trim().split(';');\n var schemeAndMediaType = attributes.shift();\n\n if (schemeAndMediaType.substr(0, 5) !== 'data:') {\n return false;\n }\n\n var mediaType = schemeAndMediaType.substr(5);\n\n if (mediaType !== '' && !validMediaType.test(mediaType)) {\n return false;\n }\n\n for (var i = 0; i < attributes.length; i++) {\n if (i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') {// ok\n } else if (!validAttribute.test(attributes[i])) {\n return false;\n }\n }\n\n for (var _i = 0; _i < data.length; _i++) {\n if (!validData.test(data[_i])) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isDate;\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar default_date_options = {\n format: 'YYYY/MM/DD',\n delimiters: ['/', '-'],\n strictMode: false\n};\n\nfunction isValidFormat(format) {\n return /(^(y{4}|y{2})[\\/-](m{1,2})[\\/-](d{1,2})$)|(^(m{1,2})[\\/-](d{1,2})[\\/-]((y{4}|y{2})$))|(^(d{1,2})[\\/-](m{1,2})[\\/-]((y{4}|y{2})$))/gi.test(format);\n}\n\nfunction zip(date, format) {\n var zippedArr = [],\n len = Math.min(date.length, format.length);\n\n for (var i = 0; i < len; i++) {\n zippedArr.push([date[i], format[i]]);\n }\n\n return zippedArr;\n}\n\nfunction isDate(input, options) {\n if (typeof options === 'string') {\n // Allow backward compatbility for old format isDate(input [, format])\n options = (0, _merge.default)({\n format: options\n }, default_date_options);\n } else {\n options = (0, _merge.default)(options, default_date_options);\n }\n\n if (typeof input === 'string' && isValidFormat(options.format)) {\n var formatDelimiter = options.delimiters.find(function (delimiter) {\n return options.format.indexOf(delimiter) !== -1;\n });\n var dateDelimiter = options.strictMode ? formatDelimiter : options.delimiters.find(function (delimiter) {\n return input.indexOf(delimiter) !== -1;\n });\n var dateAndFormat = zip(input.split(dateDelimiter), options.format.toLowerCase().split(formatDelimiter));\n var dateObj = {};\n\n var _iterator = _createForOfIteratorHelper(dateAndFormat),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _slicedToArray(_step.value, 2),\n dateWord = _step$value[0],\n formatWord = _step$value[1];\n\n if (dateWord.length !== formatWord.length) {\n return false;\n }\n\n dateObj[formatWord.charAt(0)] = dateWord;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return new Date(\"\".concat(dateObj.m, \"/\").concat(dateObj.d, \"/\").concat(dateObj.y)).getDate() === +dateObj.d;\n }\n\n if (!options.strictMode) {\n return Object.prototype.toString.call(input) === '[object Date]' && isFinite(input);\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isDecimal;\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _includes = _interopRequireDefault(require(\"./util/includes\"));\n\nvar _alpha = require(\"./alpha\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction decimalRegExp(options) {\n var regExp = new RegExp(\"^[-+]?([0-9]+)?(\\\\\".concat(_alpha.decimal[options.locale], \"[0-9]{\").concat(options.decimal_digits, \"})\").concat(options.force_decimal ? '' : '?', \"$\"));\n return regExp;\n}\n\nvar default_decimal_options = {\n force_decimal: false,\n decimal_digits: '1,',\n locale: 'en-US'\n};\nvar blacklist = ['', '-', '+'];\n\nfunction isDecimal(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_decimal_options);\n\n if (options.locale in _alpha.decimal) {\n return !(0, _includes.default)(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str);\n }\n\n throw new Error(\"Invalid locale '\".concat(options.locale, \"'\"));\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isDivisibleBy;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _toFloat = _interopRequireDefault(require(\"./toFloat\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isDivisibleBy(str, num) {\n (0, _assertString.default)(str);\n return (0, _toFloat.default)(str) % parseInt(num, 10) === 0;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEAN;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The most commonly used EAN standard is\n * the thirteen-digit EAN-13, while the\n * less commonly used 8-digit EAN-8 barcode was\n * introduced for use on small packages.\n * EAN consists of:\n * GS1 prefix, manufacturer code, product code and check digit\n * Reference: https://en.wikipedia.org/wiki/International_Article_Number\n */\n\n/**\n * Define EAN Lenghts; 8 for EAN-8; 13 for EAN-13\n * and Regular Expression for valid EANs (EAN-8, EAN-13),\n * with exact numberic matching of 8 or 13 digits [0-9]\n */\nvar LENGTH_EAN_8 = 8;\nvar validEanRegex = /^(\\d{8}|\\d{13})$/;\n/**\n * Get position weight given:\n * EAN length and digit index/position\n *\n * @param {number} length\n * @param {number} index\n * @return {number}\n */\n\nfunction getPositionWeightThroughLengthAndIndex(length, index) {\n if (length === LENGTH_EAN_8) {\n return index % 2 === 0 ? 3 : 1;\n }\n\n return index % 2 === 0 ? 1 : 3;\n}\n/**\n * Calculate EAN Check Digit\n * Reference: https://en.wikipedia.org/wiki/International_Article_Number#Calculation_of_checksum_digit\n *\n * @param {string} ean\n * @return {number}\n */\n\n\nfunction calculateCheckDigit(ean) {\n var checksum = ean.slice(0, -1).split('').map(function (char, index) {\n return Number(char) * getPositionWeightThroughLengthAndIndex(ean.length, index);\n }).reduce(function (acc, partialSum) {\n return acc + partialSum;\n }, 0);\n var remainder = 10 - checksum % 10;\n return remainder < 10 ? remainder : 0;\n}\n/**\n * Check if string is valid EAN:\n * Matches EAN-8/EAN-13 regex\n * Has valid check digit.\n *\n * @param {string} str\n * @return {boolean}\n */\n\n\nfunction isEAN(str) {\n (0, _assertString.default)(str);\n var actualCheckDigit = Number(str.slice(-1));\n return validEanRegex.test(str) && actualCheckDigit === calculateCheckDigit(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEmail;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nvar _isByteLength = _interopRequireDefault(require(\"./isByteLength\"));\n\nvar _isFQDN = _interopRequireDefault(require(\"./isFQDN\"));\n\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nvar default_email_options = {\n allow_display_name: false,\n require_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true,\n blacklisted_chars: '',\n ignore_max_length: false\n};\n/* eslint-disable max-len */\n\n/* eslint-disable no-control-regex */\n\nvar splitNameAddress = /^([^\\x00-\\x1F\\x7F-\\x9F\\cX]+)<(.+)>$/i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar gmailUserPart = /^[a-z\\d]+$/;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\nvar defaultMaxEmailLength = 254;\n/* eslint-enable max-len */\n\n/* eslint-enable no-control-regex */\n\n/**\n * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2\n * @param {String} display_name\n */\n\nfunction validateDisplayName(display_name) {\n var trim_quotes = display_name.match(/^\"(.+)\"$/i);\n var display_name_without_quotes = trim_quotes ? trim_quotes[1] : display_name; // display name with only spaces is not valid\n\n if (!display_name_without_quotes.trim()) {\n return false;\n } // check whether display name contains illegal character\n\n\n var contains_illegal = /[\\.\";<>]/.test(display_name_without_quotes);\n\n if (contains_illegal) {\n // if contains illegal characters,\n // must to be enclosed in double-quotes, otherwise it's not a valid display name\n if (!trim_quotes) {\n return false;\n } // the quotes in display name must start with character symbol \\\n\n\n var all_start_with_back_slash = display_name_without_quotes.split('\"').length === display_name_without_quotes.split('\\\\\"').length;\n\n if (!all_start_with_back_slash) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction isEmail(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_email_options);\n\n if (options.require_display_name || options.allow_display_name) {\n var display_email = str.match(splitNameAddress);\n\n if (display_email) {\n var display_name;\n\n var _display_email = _slicedToArray(display_email, 3);\n\n display_name = _display_email[1];\n str = _display_email[2];\n\n // sometimes need to trim the last space to get the display name\n // because there may be a space between display name and email address\n // eg. myname <address@gmail.com>\n // the display name is `myname` instead of `myname `, so need to trim the last space\n if (display_name.endsWith(' ')) {\n display_name = display_name.substr(0, display_name.length - 1);\n }\n\n if (!validateDisplayName(display_name)) {\n return false;\n }\n } else if (options.require_display_name) {\n return false;\n }\n }\n\n if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {\n return false;\n }\n\n var parts = str.split('@');\n var domain = parts.pop();\n var user = parts.join('@');\n var lower_domain = domain.toLowerCase();\n\n if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {\n /*\n Previously we removed dots for gmail addresses before validating.\n This was removed because it allows `multiple..dots@gmail.com`\n to be reported as valid, but it is not.\n Gmail only normalizes single dots, removing them from here is pointless,\n should be done in normalizeEmail\n */\n user = user.toLowerCase(); // Removing sub-address from username before gmail validation\n\n var username = user.split('+')[0]; // Dots are not included in gmail length restriction\n\n if (!(0, _isByteLength.default)(username.replace('.', ''), {\n min: 6,\n max: 30\n })) {\n return false;\n }\n\n var _user_parts = username.split('.');\n\n for (var i = 0; i < _user_parts.length; i++) {\n if (!gmailUserPart.test(_user_parts[i])) {\n return false;\n }\n }\n }\n\n if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {\n max: 64\n }) || !(0, _isByteLength.default)(domain, {\n max: 254\n }))) {\n return false;\n }\n\n if (!(0, _isFQDN.default)(domain, {\n require_tld: options.require_tld\n })) {\n if (!options.allow_ip_domain) {\n return false;\n }\n\n if (!(0, _isIP.default)(domain)) {\n if (!domain.startsWith('[') || !domain.endsWith(']')) {\n return false;\n }\n\n var noBracketdomain = domain.substr(1, domain.length - 2);\n\n if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {\n return false;\n }\n }\n }\n\n if (user[0] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n var user_parts = user.split('.');\n\n for (var _i2 = 0; _i2 < user_parts.length; _i2++) {\n if (!pattern.test(user_parts[_i2])) {\n return false;\n }\n }\n\n if (options.blacklisted_chars) {\n if (user.search(new RegExp(\"[\".concat(options.blacklisted_chars, \"]+\"), 'g')) !== -1) return false;\n }\n\n return true;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEmpty;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar default_is_empty_options = {\n ignore_whitespace: false\n};\n\nfunction isEmpty(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_is_empty_options);\n return (options.ignore_whitespace ? str.trim().length : str.length) === 0;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEthereumAddress;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar eth = /^(0x)[0-9a-f]{40}$/i;\n\nfunction isEthereumAddress(str) {\n (0, _assertString.default)(str);\n return eth.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFQDN;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_numeric_tld: false\n};\n\nfunction isFQDN(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_fqdn_options);\n /* Remove the optional trailing dot before checking validity */\n\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n\n var parts = str.split('.');\n var tld = parts[parts.length - 1];\n\n if (options.require_tld) {\n // disallow fqdns without tld\n if (parts.length < 2) {\n return false;\n }\n\n if (!/^([a-z\\u00a1-\\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n } // disallow spaces && special characers\n\n\n if (/[\\s\\u2002-\\u200B\\u202F\\u205F\\u3000\\uFEFF\\uDB40\\uDC20\\u00A9\\uFFFD]/.test(tld)) {\n return false;\n }\n } // reject numeric TLDs\n\n\n if (!options.allow_numeric_tld && /^\\d+$/.test(tld)) {\n return false;\n }\n\n return parts.every(function (part) {\n if (part.length > 63) {\n return false;\n }\n\n if (!/^[a-z_\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n } // disallow full-width chars\n\n\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n } // disallow parts starting or ending with hyphen\n\n\n if (/^-|-$/.test(part)) {\n return false;\n }\n\n if (!options.allow_underscores && /_/.test(part)) {\n return false;\n }\n\n return true;\n });\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFloat;\nexports.locales = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _alpha = require(\"./alpha\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isFloat(str, options) {\n (0, _assertString.default)(str);\n options = options || {};\n var float = new RegExp(\"^(?:[-+])?(?:[0-9]+)?(?:\\\\\".concat(options.locale ? _alpha.decimal[options.locale] : '.', \"[0-9]*)?(?:[eE][\\\\+\\\\-]?(?:[0-9]+))?$\"));\n\n if (str === '' || str === '.' || str === '-' || str === '+') {\n return false;\n }\n\n var value = parseFloat(str.replace(',', '.'));\n return float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt);\n}\n\nvar locales = Object.keys(_alpha.decimal);\nexports.locales = locales;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFullWidth;\nexports.fullWidth = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar fullWidth = /[^\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\nexports.fullWidth = fullWidth;\n\nfunction isFullWidth(str) {\n (0, _assertString.default)(str);\n return fullWidth.test(str);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHSL;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar hslcomma = /^(hsl)a?\\(\\s*((\\+|\\-)?([0-9]+(\\.[0-9]+)?(e(\\+|\\-)?[0-9]+)?|\\.[0-9]+(e(\\+|\\-)?[0-9]+)?))(deg|grad|rad|turn|\\s*)(\\s*,\\s*(\\+|\\-)?([0-9]+(\\.[0-9]+)?(e(\\+|\\-)?[0-9]+)?|\\.[0-9]+(e(\\+|\\-)?[0-9]+)?)%){2}\\s*(,\\s*((\\+|\\-)?([0-9]+(\\.[0-9]+)?(e(\\+|\\-)?[0-9]+)?|\\.[0-9]+(e(\\+|\\-)?[0-9]+)?)%?)\\s*)?\\)$/i;\nvar hslspace = /^(hsl)a?\\(\\s*((\\+|\\-)?([0-9]+(\\.[0-9]+)?(e(\\+|\\-)?[0-9]+)?|\\.[0-9]+(e(\\+|\\-)?[0-9]+)?))(deg|grad|rad|turn|\\s)(\\s*(\\+|\\-)?([0-9]+(\\.[0-9]+)?(e(\\+|\\-)?[0-9]+)?|\\.[0-9]+(e(\\+|\\-)?[0-9]+)?)%){2}\\s*(\\/\\s*((\\+|\\-)?([0-9]+(\\.[0-9]+)?(e(\\+|\\-)?[0-9]+)?|\\.[0-9]+(e(\\+|\\-)?[0-9]+)?)%?)\\s*)?\\)$/i;\n\nfunction isHSL(str) {\n (0, _assertString.default)(str);\n return hslcomma.test(str) || hslspace.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHalfWidth;\nexports.halfWidth = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar halfWidth = /[\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\nexports.halfWidth = halfWidth;\n\nfunction isHalfWidth(str) {\n (0, _assertString.default)(str);\n return halfWidth.test(str);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHash;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar lengths = {\n md5: 32,\n md4: 32,\n sha1: 40,\n sha256: 64,\n sha384: 96,\n sha512: 128,\n ripemd128: 32,\n ripemd160: 40,\n tiger128: 32,\n tiger160: 40,\n tiger192: 48,\n crc32: 8,\n crc32b: 8\n};\n\nfunction isHash(str, algorithm) {\n (0, _assertString.default)(str);\n var hash = new RegExp(\"^[a-fA-F0-9]{\".concat(lengths[algorithm], \"}$\"));\n return hash.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHexColor;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;\n\nfunction isHexColor(str) {\n (0, _assertString.default)(str);\n return hexcolor.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHexadecimal;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar hexadecimal = /^(0x|0h)?[0-9A-F]+$/i;\n\nfunction isHexadecimal(str) {\n (0, _assertString.default)(str);\n return hexadecimal.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIBAN;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * List of country codes with\n * corresponding IBAN regular expression\n * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n */\nvar ibanRegexThroughCountryCode = {\n AD: /^(AD[0-9]{2})\\d{8}[A-Z0-9]{12}$/,\n AE: /^(AE[0-9]{2})\\d{3}\\d{16}$/,\n AL: /^(AL[0-9]{2})\\d{8}[A-Z0-9]{16}$/,\n AT: /^(AT[0-9]{2})\\d{16}$/,\n AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\\d{20}$/,\n BA: /^(BA[0-9]{2})\\d{16}$/,\n BE: /^(BE[0-9]{2})\\d{12}$/,\n BG: /^(BG[0-9]{2})[A-Z]{4}\\d{6}[A-Z0-9]{8}$/,\n BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,\n BR: /^(BR[0-9]{2})\\d{23}[A-Z]{1}[A-Z0-9]{1}$/,\n BY: /^(BY[0-9]{2})[A-Z0-9]{4}\\d{20}$/,\n CH: /^(CH[0-9]{2})\\d{5}[A-Z0-9]{12}$/,\n CR: /^(CR[0-9]{2})\\d{18}$/,\n CY: /^(CY[0-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/,\n TR: /^(TR[0-9]{2})\\d{5}[A-Z0-9]{17}$/,\n UA: /^(UA[0-9]{2})\\d{6}[A-Z0-9]{19}$/,\n VA: /^(VA[0-9]{2})\\d{18}$/,\n VG: /^(VG[0-9]{2})[A-Z0-9]{4}\\d{16}$/,\n XK: /^(XK[0-9]{2})\\d{16}$/\n};\n/**\n * Check whether string has correct universal IBAN format\n * The IBAN consists of up to 34 alphanumeric characters, as follows:\n * Country Code using ISO 3166-1 alpha-2, two letters\n * check digits, two digits and\n * Basic Bank Account Number (BBAN), up to 30 alphanumeric characters.\n * NOTE: Permitted IBAN characters are: digits [0-9] and the 26 latin alphabetic [A-Z]\n *\n * @param {string} str - string under validation\n * @return {boolean}\n */\n\nfunction hasValidIbanFormat(str) {\n // Strip white spaces and hyphens\n var strippedStr = str.replace(/[\\s\\-]+/gi, '').toUpperCase();\n var isoCountryCode = strippedStr.slice(0, 2).toUpperCase();\n return isoCountryCode in ibanRegexThroughCountryCode && ibanRegexThroughCountryCode[isoCountryCode].test(strippedStr);\n}\n/**\n * Check whether string has valid IBAN Checksum\n * by performing basic mod-97 operation and\n * the remainder should equal 1\n * -- Start by rearranging the IBAN by moving the four initial characters to the end of the string\n * -- Replace each letter in the string with two digits, A -> 10, B = 11, Z = 35\n * -- Interpret the string as a decimal integer and\n * -- compute the remainder on division by 97 (mod 97)\n * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n *\n * @param {string} str\n * @return {boolean}\n */\n\n\nfunction hasValidIbanChecksum(str) {\n var strippedStr = str.replace(/[^A-Z0-9]+/gi, '').toUpperCase(); // Keep only digits and A-Z latin alphabetic\n\n var rearranged = strippedStr.slice(4) + strippedStr.slice(0, 4);\n var alphaCapsReplacedWithDigits = rearranged.replace(/[A-Z]/g, function (char) {\n return char.charCodeAt(0) - 55;\n });\n var remainder = alphaCapsReplacedWithDigits.match(/\\d{1,7}/g).reduce(function (acc, value) {\n return Number(acc + value) % 97;\n }, '');\n return remainder === 1;\n}\n\nfunction isIBAN(str) {\n (0, _assertString.default)(str);\n return hasValidIbanFormat(str) && hasValidIbanChecksum(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIMEI;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar imeiRegexWithoutHypens = /^[0-9]{15}$/;\nvar imeiRegexWithHypens = /^\\d{2}-\\d{6}-\\d{6}-\\d{1}$/;\n\nfunction isIMEI(str, options) {\n (0, _assertString.default)(str);\n options = options || {}; // default regex for checking imei is the one without hyphens\n\n var imeiRegex = imeiRegexWithoutHypens;\n\n if (options.allow_hyphens) {\n imeiRegex = imeiRegexWithHypens;\n }\n\n if (!imeiRegex.test(str)) {\n return false;\n }\n\n str = str.replace(/-/g, '');\n var sum = 0,\n mul = 2,\n l = 14;\n\n for (var i = 0; i < l; i++) {\n var digit = str.substring(l - i - 1, l - i);\n var tp = parseInt(digit, 10) * mul;\n\n if (tp >= 10) {\n sum += tp % 10 + 1;\n } else {\n sum += tp;\n }\n\n if (mul === 1) {\n mul += 1;\n } else {\n mul -= 1;\n }\n }\n\n var chk = (10 - sum % 10) % 10;\n\n if (chk !== parseInt(str.substring(14, 15), 10)) {\n return false;\n }\n\n return true;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIP;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n11.3. Examples\n\n The following addresses\n\n fe80::1234 (on the 1st link of the node)\n ff02::5678 (on the 5th link of the node)\n ff08::9abc (on the 10th organization of the node)\n\n would be represented as follows:\n\n fe80::1234%1\n ff02::5678%5\n ff08::9abc%10\n\n (Here we assume a natural translation from a zone index to the\n <zone_id> part, where the Nth zone of any scope is translated into\n \"N\".)\n\n If we use interface names as <zone_id>, those addresses could also be\n represented as follows:\n\n fe80::1234%ne0\n ff02::5678%pvc1.3\n ff08::9abc%interface10\n\n where the interface \"ne0\" belongs to the 1st link, \"pvc1.3\" belongs\n to the 5th link, and \"interface10\" belongs to the 10th organization.\n * * */\nvar ipv4Maybe = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;\nvar ipv6Block = /^[0-9A-F]{1,4}$/i;\n\nfunction isIP(str) {\n var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n (0, _assertString.default)(str);\n version = String(version);\n\n if (!version) {\n return isIP(str, 4) || isIP(str, 6);\n } else if (version === '4') {\n if (!ipv4Maybe.test(str)) {\n return false;\n }\n\n var parts = str.split('.').sort(function (a, b) {\n return a - b;\n });\n return parts[3] <= 255;\n } else if (version === '6') {\n var addressAndZone = [str]; // ipv6 addresses could have scoped architecture\n // according to https://tools.ietf.org/html/rfc4007#section-11\n\n if (str.includes('%')) {\n addressAndZone = str.split('%');\n\n if (addressAndZone.length !== 2) {\n // it must be just two parts\n return false;\n }\n\n if (!addressAndZone[0].includes(':')) {\n // the first part must be the address\n return false;\n }\n\n if (addressAndZone[1] === '') {\n // the second part must not be empty\n return false;\n }\n }\n\n var blocks = addressAndZone[0].split(':');\n var foundOmissionBlock = false; // marker to indicate ::\n // At least some OS accept the last 32 bits of an IPv6 address\n // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says\n // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses,\n // and '::a.b.c.d' is deprecated, but also valid.\n\n var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4);\n var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;\n\n if (blocks.length > expectedNumberOfBlocks) {\n return false;\n } // initial or final ::\n\n\n if (str === '::') {\n return true;\n } else if (str.substr(0, 2) === '::') {\n blocks.shift();\n blocks.shift();\n foundOmissionBlock = true;\n } else if (str.substr(str.length - 2) === '::') {\n blocks.pop();\n blocks.pop();\n foundOmissionBlock = true;\n }\n\n for (var i = 0; i < blocks.length; ++i) {\n // test for a :: which can not be at the string start/end\n // since those cases have been handled above\n if (blocks[i] === '' && i > 0 && i < blocks.length - 1) {\n if (foundOmissionBlock) {\n return false; // multiple :: in address\n }\n\n foundOmissionBlock = true;\n } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {// it has been checked before that the last\n // block is a valid IPv4 address\n } else if (!ipv6Block.test(blocks[i])) {\n return false;\n }\n }\n\n if (foundOmissionBlock) {\n return blocks.length >= 1;\n }\n\n return blocks.length === expectedNumberOfBlocks;\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIPRange;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar subnetMaybe = /^\\d{1,2}$/;\n\nfunction isIPRange(str) {\n (0, _assertString.default)(str);\n var parts = str.split('/'); // parts[0] -> ip, parts[1] -> subnet\n\n if (parts.length !== 2) {\n return false;\n }\n\n if (!subnetMaybe.test(parts[1])) {\n return false;\n } // Disallow preceding 0 i.e. 01, 02, ...\n\n\n if (parts[1].length > 1 && parts[1].startsWith('0')) {\n return false;\n }\n\n return (0, _isIP.default)(parts[0], 4) && parts[1] <= 32 && parts[1] >= 0;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISBN;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/;\nvar isbn13Maybe = /^(?:[0-9]{13})$/;\nvar factor = [1, 3];\n\nfunction isISBN(str) {\n var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n (0, _assertString.default)(str);\n version = String(version);\n\n if (!version) {\n return isISBN(str, 10) || isISBN(str, 13);\n }\n\n var sanitized = str.replace(/[\\s-]+/g, '');\n var checksum = 0;\n var i;\n\n if (version === '10') {\n if (!isbn10Maybe.test(sanitized)) {\n return false;\n }\n\n for (i = 0; i < 9; i++) {\n checksum += (i + 1) * sanitized.charAt(i);\n }\n\n if (sanitized.charAt(9) === 'X') {\n checksum += 10 * 10;\n } else {\n checksum += 10 * sanitized.charAt(9);\n }\n\n if (checksum % 11 === 0) {\n return !!sanitized;\n }\n } else if (version === '13') {\n if (!isbn13Maybe.test(sanitized)) {\n return false;\n }\n\n for (i = 0; i < 12; i++) {\n checksum += factor[i % 2] * sanitized.charAt(i);\n }\n\n if (sanitized.charAt(12) - (10 - checksum % 10) % 10 === 0) {\n return !!sanitized;\n }\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISIN;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;\n\nfunction isISIN(str) {\n (0, _assertString.default)(str);\n\n if (!isin.test(str)) {\n return false;\n }\n\n var checksumStr = str.replace(/[A-Z]/g, function (character) {\n return parseInt(character, 36);\n });\n var sum = 0;\n var digit;\n var tmpNum;\n var shouldDouble = true;\n\n for (var i = checksumStr.length - 2; i >= 0; i--) {\n digit = checksumStr.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n\n if (shouldDouble) {\n tmpNum *= 2;\n\n if (tmpNum >= 10) {\n sum += tmpNum + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n\n shouldDouble = !shouldDouble;\n }\n\n return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISO31661Alpha2;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _includes = _interopRequireDefault(require(\"./util/includes\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\nvar validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW'];\n\nfunction isISO31661Alpha2(str) {\n (0, _assertString.default)(str);\n return (0, _includes.default)(validISO31661Alpha2CountriesCodes, str.toUpperCase());\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISO31661Alpha3;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _includes = _interopRequireDefault(require(\"./util/includes\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3\nvar validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE'];\n\nfunction isISO31661Alpha3(str) {\n (0, _assertString.default)(str);\n return (0, _includes.default)(validISO31661Alpha3CountriesCodes, str.toUpperCase());\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISO8601;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable max-len */\n// from http://goo.gl/0ejHHW\nvar iso8601 = /^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/; // same as above, except with a strict 'T' separator between date and time\n\nvar iso8601StrictSeparator = /^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;\n/* eslint-enable max-len */\n\nvar isValidDate = function isValidDate(str) {\n // str must have passed the ISO8601 check\n // this check is meant to catch invalid dates\n // like 2009-02-31\n // first check for ordinal dates\n var ordinalMatch = str.match(/^(\\d{4})-?(\\d{3})([ T]{1}\\.*|$)/);\n\n if (ordinalMatch) {\n var oYear = Number(ordinalMatch[1]);\n var oDay = Number(ordinalMatch[2]); // if is leap year\n\n if (oYear % 4 === 0 && oYear % 100 !== 0 || oYear % 400 === 0) return oDay <= 366;\n return oDay <= 365;\n }\n\n var match = str.match(/(\\d{4})-?(\\d{0,2})-?(\\d*)/).map(Number);\n var year = match[1];\n var month = match[2];\n var day = match[3];\n var monthString = month ? \"0\".concat(month).slice(-2) : month;\n var dayString = day ? \"0\".concat(day).slice(-2) : day; // create a date object and compare\n\n var d = new Date(\"\".concat(year, \"-\").concat(monthString || '01', \"-\").concat(dayString || '01'));\n\n if (month && day) {\n return d.getUTCFullYear() === year && d.getUTCMonth() + 1 === month && d.getUTCDate() === day;\n }\n\n return true;\n};\n\nfunction isISO8601(str) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(str);\n var check = options.strictSeparator ? iso8601StrictSeparator.test(str) : iso8601.test(str);\n if (check && options.strict) return isValidDate(str);\n return check;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISRC;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// see http://isrc.ifpi.org/en/isrc-standard/code-syntax\nvar isrc = /^[A-Z]{2}[0-9A-Z]{3}\\d{2}\\d{5}$/;\n\nfunction isISRC(str) {\n (0, _assertString.default)(str);\n return isrc.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isISSN;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar issn = '^\\\\d{4}-?\\\\d{3}[\\\\dX]$';\n\nfunction isISSN(str) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(str);\n var testIssn = issn;\n testIssn = options.require_hyphen ? testIssn.replace('?', '') : testIssn;\n testIssn = options.case_sensitive ? new RegExp(testIssn) : new RegExp(testIssn, 'i');\n\n if (!testIssn.test(str)) {\n return false;\n }\n\n var digits = str.replace('-', '').toUpperCase();\n var checksum = 0;\n\n for (var i = 0; i < digits.length; i++) {\n var digit = digits[i];\n checksum += (digit === 'X' ? 10 : +digit) * (8 - i);\n }\n\n return checksum % 11 === 0;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIdentityCard;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar validators = {\n ES: function ES(str) {\n (0, _assertString.default)(str);\n var DNI = /^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/;\n var charsValue = {\n X: 0,\n Y: 1,\n Z: 2\n };\n var controlDigits = ['T', 'R', 'W', 'A', 'G', 'M', 'Y', 'F', 'P', 'D', 'X', 'B', 'N', 'J', 'Z', 'S', 'Q', 'V', 'H', 'L', 'C', 'K', 'E']; // sanitize user input\n\n var sanitized = str.trim().toUpperCase(); // validate the data structure\n\n if (!DNI.test(sanitized)) {\n return false;\n } // validate the control digit\n\n\n var number = sanitized.slice(0, -1).replace(/[X,Y,Z]/g, function (char) {\n return charsValue[char];\n });\n return sanitized.endsWith(controlDigits[number % 23]);\n },\n IN: function IN(str) {\n var DNI = /^[1-9]\\d{3}\\s?\\d{4}\\s?\\d{4}$/; // multiplication table\n\n var d = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]]; // permutation table\n\n var p = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]]; // sanitize user input\n\n var sanitized = str.trim(); // validate the data structure\n\n if (!DNI.test(sanitized)) {\n return false;\n }\n\n var c = 0;\n var invertedArray = sanitized.replace(/\\s/g, '').split('').map(Number).reverse();\n invertedArray.forEach(function (val, i) {\n c = d[c][p[i % 8][val]];\n });\n return c === 0;\n },\n IT: function IT(str) {\n if (str.length !== 9) return false;\n if (str === 'CA00000AA') return false; // https://it.wikipedia.org/wiki/Carta_d%27identit%C3%A0_elettronica_italiana\n\n return str.search(/C[A-Z][0-9]{5}[A-Z]{2}/i) > -1;\n },\n NO: function NO(str) {\n var sanitized = str.trim();\n if (isNaN(Number(sanitized))) return false;\n if (sanitized.length !== 11) return false;\n if (sanitized === '00000000000') return false; // https://no.wikipedia.org/wiki/F%C3%B8dselsnummer\n\n var f = sanitized.split('').map(Number);\n var k1 = (11 - (3 * f[0] + 7 * f[1] + 6 * f[2] + 1 * f[3] + 8 * f[4] + 9 * f[5] + 4 * f[6] + 5 * f[7] + 2 * f[8]) % 11) % 11;\n var k2 = (11 - (5 * f[0] + 4 * f[1] + 3 * f[2] + 2 * f[3] + 7 * f[4] + 6 * f[5] + 5 * f[6] + 4 * f[7] + 3 * f[8] + 2 * k1) % 11) % 11;\n if (k1 !== f[9] || k2 !== f[10]) return false;\n return true;\n },\n 'he-IL': function heIL(str) {\n var DNI = /^\\d{9}$/; // sanitize user input\n\n var sanitized = str.trim(); // validate the data structure\n\n if (!DNI.test(sanitized)) {\n return false;\n }\n\n var id = sanitized;\n var sum = 0,\n incNum;\n\n for (var i = 0; i < id.length; i++) {\n incNum = Number(id[i]) * (i % 2 + 1); // Multiply number by 1 or 2\n\n sum += incNum > 9 ? incNum - 9 : incNum; // Sum the digits up and add to total\n }\n\n return sum % 10 === 0;\n },\n 'ar-TN': function arTN(str) {\n var DNI = /^\\d{8}$/; // sanitize user input\n\n var sanitized = str.trim(); // validate the data structure\n\n if (!DNI.test(sanitized)) {\n return false;\n }\n\n return true;\n },\n 'zh-CN': function zhCN(str) {\n var provincesAndCities = ['11', // 北京\n '12', // 天津\n '13', // 河北\n '14', // 山西\n '15', // 内蒙古\n '21', // 辽宁\n '22', // 吉林\n '23', // 黑龙江\n '31', // 上海\n '32', // 江苏\n '33', // 浙江\n '34', // 安徽\n '35', // 福建\n '36', // 江西\n '37', // 山东\n '41', // 河南\n '42', // 湖北\n '43', // 湖南\n '44', // 广东\n '45', // 广西\n '46', // 海南\n '50', // 重庆\n '51', // 四川\n '52', // 贵州\n '53', // 云南\n '54', // 西藏\n '61', // 陕西\n '62', // 甘肃\n '63', // 青海\n '64', // 宁夏\n '65', // 新疆\n '71', // 台湾\n '81', // 香港\n '82', // 澳门\n '91' // 国外\n ];\n var powers = ['7', '9', '10', '5', '8', '4', '2', '1', '6', '3', '7', '9', '10', '5', '8', '4', '2'];\n var parityBit = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];\n\n var checkAddressCode = function checkAddressCode(addressCode) {\n return provincesAndCities.includes(addressCode);\n };\n\n var checkBirthDayCode = function checkBirthDayCode(birDayCode) {\n var yyyy = parseInt(birDayCode.substring(0, 4), 10);\n var mm = parseInt(birDayCode.substring(4, 6), 10);\n var dd = parseInt(birDayCode.substring(6), 10);\n var xdata = new Date(yyyy, mm - 1, dd);\n\n if (xdata > new Date()) {\n return false; // eslint-disable-next-line max-len\n } else if (xdata.getFullYear() === yyyy && xdata.getMonth() === mm - 1 && xdata.getDate() === dd) {\n return true;\n }\n\n return false;\n };\n\n var getParityBit = function getParityBit(idCardNo) {\n var id17 = idCardNo.substring(0, 17);\n var power = 0;\n\n for (var i = 0; i < 17; i++) {\n power += parseInt(id17.charAt(i), 10) * parseInt(powers[i], 10);\n }\n\n var mod = power % 11;\n return parityBit[mod];\n };\n\n var checkParityBit = function checkParityBit(idCardNo) {\n return getParityBit(idCardNo) === idCardNo.charAt(17).toUpperCase();\n };\n\n var check15IdCardNo = function check15IdCardNo(idCardNo) {\n var check = /^[1-9]\\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\\d{3}$/.test(idCardNo);\n if (!check) return false;\n var addressCode = idCardNo.substring(0, 2);\n check = checkAddressCode(addressCode);\n if (!check) return false;\n var birDayCode = \"19\".concat(idCardNo.substring(6, 12));\n check = checkBirthDayCode(birDayCode);\n if (!check) return false;\n return true;\n };\n\n var check18IdCardNo = function check18IdCardNo(idCardNo) {\n var check = /^[1-9]\\d{5}[1-9]\\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\\d{3}(\\d|x|X)$/.test(idCardNo);\n if (!check) return false;\n var addressCode = idCardNo.substring(0, 2);\n check = checkAddressCode(addressCode);\n if (!check) return false;\n var birDayCode = idCardNo.substring(6, 14);\n check = checkBirthDayCode(birDayCode);\n if (!check) return false;\n return checkParityBit(idCardNo);\n };\n\n var checkIdCardNo = function checkIdCardNo(idCardNo) {\n var check = /^\\d{15}|(\\d{17}(\\d|x|X))$/.test(idCardNo);\n if (!check) return false;\n\n if (idCardNo.length === 15) {\n return check15IdCardNo(idCardNo);\n }\n\n return check18IdCardNo(idCardNo);\n };\n\n return checkIdCardNo(str);\n },\n 'zh-TW': function zhTW(str) {\n var ALPHABET_CODES = {\n A: 10,\n B: 11,\n C: 12,\n D: 13,\n E: 14,\n F: 15,\n G: 16,\n H: 17,\n I: 34,\n J: 18,\n K: 19,\n L: 20,\n M: 21,\n N: 22,\n O: 35,\n P: 23,\n Q: 24,\n R: 25,\n S: 26,\n T: 27,\n U: 28,\n V: 29,\n W: 32,\n X: 30,\n Y: 31,\n Z: 33\n };\n var sanitized = str.trim().toUpperCase();\n if (!/^[A-Z][0-9]{9}$/.test(sanitized)) return false;\n return Array.from(sanitized).reduce(function (sum, number, index) {\n if (index === 0) {\n var code = ALPHABET_CODES[number];\n return code % 10 * 9 + Math.floor(code / 10);\n }\n\n if (index === 9) {\n return (10 - sum % 10 - Number(number)) % 10 === 0;\n }\n\n return sum + Number(number) * (9 - index);\n }, 0);\n }\n};\n\nfunction isIdentityCard(str, locale) {\n (0, _assertString.default)(str);\n\n if (locale in validators) {\n return validators[locale](str);\n } else if (locale === 'any') {\n for (var key in validators) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (validators.hasOwnProperty(key)) {\n var validator = validators[key];\n\n if (validator(str)) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIn;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _toString = _interopRequireDefault(require(\"./util/toString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction isIn(str, options) {\n (0, _assertString.default)(str);\n var i;\n\n if (Object.prototype.toString.call(options) === '[object Array]') {\n var array = [];\n\n for (i in options) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if ({}.hasOwnProperty.call(options, i)) {\n array[i] = (0, _toString.default)(options[i]);\n }\n }\n\n return array.indexOf(str) >= 0;\n } else if (_typeof(options) === 'object') {\n return options.hasOwnProperty(str);\n } else if (options && typeof options.indexOf === 'function') {\n return options.indexOf(str) >= 0;\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isInt;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/;\nvar intLeadingZeroes = /^[-+]?[0-9]+$/;\n\nfunction isInt(str, options) {\n (0, _assertString.default)(str);\n options = options || {}; // Get the regex to use for testing, based on whether\n // leading zeroes are allowed or not.\n\n var regex = options.hasOwnProperty('allow_leading_zeroes') && !options.allow_leading_zeroes ? int : intLeadingZeroes; // Check min/max/lt/gt\n\n var minCheckPassed = !options.hasOwnProperty('min') || str >= options.min;\n var maxCheckPassed = !options.hasOwnProperty('max') || str <= options.max;\n var ltCheckPassed = !options.hasOwnProperty('lt') || str < options.lt;\n var gtCheckPassed = !options.hasOwnProperty('gt') || str > options.gt;\n return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isJSON;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar default_json_options = {\n allow_primitives: false\n};\n\nfunction isJSON(str, options) {\n (0, _assertString.default)(str);\n\n try {\n options = (0, _merge.default)(options, default_json_options);\n var primitives = [];\n\n if (options.allow_primitives) {\n primitives = [null, false, true];\n }\n\n var obj = JSON.parse(str);\n return primitives.includes(obj) || !!obj && _typeof(obj) === 'object';\n } catch (e) {\n /* ignore */\n }\n\n return false;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isJWT;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _isBase = _interopRequireDefault(require(\"./isBase64\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isJWT(str) {\n (0, _assertString.default)(str);\n var dotSplit = str.split('.');\n var len = dotSplit.length;\n\n if (len > 3 || len < 2) {\n return false;\n }\n\n return dotSplit.reduce(function (acc, currElem) {\n return acc && (0, _isBase.default)(currElem, {\n urlSafe: true\n });\n }, true);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLatLong;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar lat = /^\\(?[+-]?(90(\\.0+)?|[1-8]?\\d(\\.\\d+)?)$/;\nvar long = /^\\s?[+-]?(180(\\.0+)?|1[0-7]\\d(\\.\\d+)?|\\d{1,2}(\\.\\d+)?)\\)?$/;\nvar latDMS = /^(([1-8]?\\d)\\D+([1-5]?\\d|60)\\D+([1-5]?\\d|60)(\\.\\d+)?|90\\D+0\\D+0)\\D+[NSns]?$/i;\nvar longDMS = /^\\s*([1-7]?\\d{1,2}\\D+([1-5]?\\d|60)\\D+([1-5]?\\d|60)(\\.\\d+)?|180\\D+0\\D+0)\\D+[EWew]?$/i;\nvar defaultLatLongOptions = {\n checkDMS: false\n};\n\nfunction isLatLong(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, defaultLatLongOptions);\n if (!str.includes(',')) return false;\n var pair = str.split(',');\n if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false;\n\n if (options.checkDMS) {\n return latDMS.test(pair[0]) && longDMS.test(pair[1]);\n }\n\n return lat.test(pair[0]) && long.test(pair[1]);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLength;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-disable prefer-rest-params */\nfunction isLength(str, options) {\n (0, _assertString.default)(str);\n var min;\n var max;\n\n if (_typeof(options) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isLength(str, min [, max])\n min = arguments[1] || 0;\n max = arguments[2];\n }\n\n var surrogatePairs = str.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g) || [];\n var len = str.length - surrogatePairs.length;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLocale;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar localeReg = /^[A-z]{2,4}([_-]([A-z]{4}|[\\d]{3}))?([_-]([A-z]{2}|[\\d]{3}))?$/;\n\nfunction isLocale(str) {\n (0, _assertString.default)(str);\n\n if (str === 'en_US_POSIX' || str === 'ca_ES_VALENCIA') {\n return true;\n }\n\n return localeReg.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLowercase;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isLowercase(str) {\n (0, _assertString.default)(str);\n return str === str.toLowerCase();\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMACAddress;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;\nvar macAddressNoColons = /^([0-9a-fA-F]){12}$/;\nvar macAddressWithHyphen = /^([0-9a-fA-F][0-9a-fA-F]-){5}([0-9a-fA-F][0-9a-fA-F])$/;\nvar macAddressWithSpaces = /^([0-9a-fA-F][0-9a-fA-F]\\s){5}([0-9a-fA-F][0-9a-fA-F])$/;\nvar macAddressWithDots = /^([0-9a-fA-F]{4}).([0-9a-fA-F]{4}).([0-9a-fA-F]{4})$/;\n\nfunction isMACAddress(str, options) {\n (0, _assertString.default)(str);\n\n if (options && options.no_colons) {\n return macAddressNoColons.test(str);\n }\n\n return macAddress.test(str) || macAddressWithHyphen.test(str) || macAddressWithSpaces.test(str) || macAddressWithDots.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMD5;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar md5 = /^[a-f0-9]{32}$/;\n\nfunction isMD5(str) {\n (0, _assertString.default)(str);\n return md5.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMagnetURI;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar magnetURI = /^magnet:\\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i;\n\nfunction isMagnetURI(url) {\n (0, _assertString.default)(url);\n return magnetURI.test(url.trim());\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMimeType;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\n Checks if the provided string matches to a correct Media type format (MIME type)\n\n This function only checks is the string format follows the\n etablished rules by the according RFC specifications.\n This function supports 'charset' in textual media types\n (https://tools.ietf.org/html/rfc6657).\n\n This function does not check against all the media types listed\n by the IANA (https://www.iana.org/assignments/media-types/media-types.xhtml)\n because of lightness purposes : it would require to include\n all these MIME types in this librairy, which would weigh it\n significantly. This kind of effort maybe is not worth for the use that\n this function has in this entire librairy.\n\n More informations in the RFC specifications :\n - https://tools.ietf.org/html/rfc2045\n - https://tools.ietf.org/html/rfc2046\n - https://tools.ietf.org/html/rfc7231#section-3.1.1.1\n - https://tools.ietf.org/html/rfc7231#section-3.1.1.5\n*/\n// Match simple MIME types\n// NB :\n// Subtype length must not exceed 100 characters.\n// This rule does not comply to the RFC specs (what is the max length ?).\nvar mimeTypeSimple = /^(application|audio|font|image|message|model|multipart|text|video)\\/[a-zA-Z0-9\\.\\-\\+]{1,100}$/i; // eslint-disable-line max-len\n// Handle \"charset\" in \"text/*\"\n\nvar mimeTypeText = /^text\\/[a-zA-Z0-9\\.\\-\\+]{1,100};\\s?charset=(\"[a-zA-Z0-9\\.\\-\\+\\s]{0,70}\"|[a-zA-Z0-9\\.\\-\\+]{0,70})(\\s?\\([a-zA-Z0-9\\.\\-\\+\\s]{1,20}\\))?$/i; // eslint-disable-line max-len\n// Handle \"boundary\" in \"multipart/*\"\n\nvar mimeTypeMultipart = /^multipart\\/[a-zA-Z0-9\\.\\-\\+]{1,100}(;\\s?(boundary|charset)=(\"[a-zA-Z0-9\\.\\-\\+\\s]{0,70}\"|[a-zA-Z0-9\\.\\-\\+]{0,70})(\\s?\\([a-zA-Z0-9\\.\\-\\+\\s]{1,20}\\))?){0,2}$/i; // eslint-disable-line max-len\n\nfunction isMimeType(str) {\n (0, _assertString.default)(str);\n return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMobilePhone;\nexports.locales = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable max-len */\nvar phones = {\n 'am-AM': /^(\\+?374|0)((10|[9|7][0-9])\\d{6}$|[2-4]\\d{7}$)/,\n 'ar-AE': /^((\\+?971)|0)?5[024568]\\d{7}$/,\n 'ar-BH': /^(\\+?973)?(3|6)\\d{7}$/,\n 'ar-DZ': /^(\\+?213|0)(5|6|7)\\d{8}$/,\n 'ar-LB': /^(\\+?961)?((3|81)\\d{6}|7\\d{7})$/,\n 'ar-EG': /^((\\+?20)|0)?1[0125]\\d{8}$/,\n 'ar-IQ': /^(\\+?964|0)?7[0-9]\\d{8}$/,\n 'ar-JO': /^(\\+?962|0)?7[789]\\d{7}$/,\n 'ar-KW': /^(\\+?965)[569]\\d{7}$/,\n 'ar-LY': /^((\\+?218)|0)?(9[1-6]\\d{7}|[1-8]\\d{7,9})$/,\n 'ar-MA': /^(?:(?:\\+|00)212|0)[5-7]\\d{8}$/,\n 'ar-SA': /^(!?(\\+?966)|0)?5\\d{8}$/,\n 'ar-SY': /^(!?(\\+?963)|0)?9\\d{8}$/,\n 'ar-TN': /^(\\+?216)?[2459]\\d{7}$/,\n 'az-AZ': /^(\\+994|0)(5[015]|7[07]|99)\\d{7}$/,\n 'bs-BA': /^((((\\+|00)3876)|06))((([0-3]|[5-6])\\d{6})|(4\\d{7}))$/,\n 'be-BY': /^(\\+?375)?(24|25|29|33|44)\\d{7}$/,\n 'bg-BG': /^(\\+?359|0)?8[789]\\d{7}$/,\n 'bn-BD': /^(\\+?880|0)1[13456789][0-9]{8}$/,\n 'ca-AD': /^(\\+376)?[346]\\d{5}$/,\n 'cs-CZ': /^(\\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\n 'da-DK': /^(\\+?45)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'de-DE': /^(\\+49)?0?[1|3]([0|5][0-45-9]\\d|6([23]|0\\d?)|7([0-57-9]|6\\d))\\d{7}$/,\n 'de-AT': /^(\\+43|0)\\d{1,4}\\d{3,12}$/,\n 'de-CH': /^(\\+41|0)(7[5-9])\\d{1,7}$/,\n 'de-LU': /^(\\+352)?((6\\d1)\\d{6})$/,\n 'el-GR': /^(\\+?30|0)?(69\\d{8})$/,\n 'en-AU': /^(\\+?61|0)4\\d{8}$/,\n 'en-GB': /^(\\+?44|0)7\\d{9}$/,\n 'en-GG': /^(\\+?44|0)1481\\d{6}$/,\n 'en-GH': /^(\\+233|0)(20|50|24|54|27|57|26|56|23|28)\\d{7}$/,\n 'en-HK': /^(\\+?852[-\\s]?)?[456789]\\d{3}[-\\s]?\\d{4}$/,\n 'en-MO': /^(\\+?853[-\\s]?)?[6]\\d{3}[-\\s]?\\d{4}$/,\n 'en-IE': /^(\\+?353|0)8[356789]\\d{7}$/,\n 'en-IN': /^(\\+?91|0)?[6789]\\d{9}$/,\n 'en-KE': /^(\\+?254|0)(7|1)\\d{8}$/,\n 'en-MT': /^(\\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,\n 'en-MU': /^(\\+?230|0)?\\d{8}$/,\n 'en-NG': /^(\\+?234|0)?[789]\\d{9}$/,\n 'en-NZ': /^(\\+?64|0)[28]\\d{7,9}$/,\n 'en-PK': /^((\\+92)|(0092))-{0,1}\\d{3}-{0,1}\\d{7}$|^\\d{11}$|^\\d{4}-\\d{7}$/,\n 'en-PH': /^(09|\\+639)\\d{9}$/,\n 'en-RW': /^(\\+?250|0)?[7]\\d{8}$/,\n 'en-SG': /^(\\+65)?[689]\\d{7}$/,\n 'en-SL': /^(?:0|94|\\+94)?(7(0|1|2|5|6|7|8)( |-)?\\d)\\d{6}$/,\n 'en-TZ': /^(\\+?255|0)?[67]\\d{8}$/,\n 'en-UG': /^(\\+?256|0)?[7]\\d{8}$/,\n 'en-US': /^((\\+1|1)?( |-)?)?(\\([2-9][0-9]{2}\\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,\n 'en-ZA': /^(\\+?27|0)\\d{9}$/,\n 'en-ZM': /^(\\+?26)?09[567]\\d{7}$/,\n 'en-ZW': /^(\\+263)[0-9]{9}$/,\n 'es-AR': /^\\+?549(11|[2368]\\d)\\d{8}$/,\n 'es-BO': /^(\\+?591)?(6|7)\\d{7}$/,\n 'es-CO': /^(\\+?57)?([1-8]{1}|3[0-9]{2})?[2-9]{1}\\d{6}$/,\n 'es-CL': /^(\\+?56|0)[2-9]\\d{1}\\d{7}$/,\n 'es-CR': /^(\\+506)?[2-8]\\d{7}$/,\n 'es-DO': /^(\\+?1)?8[024]9\\d{7}$/,\n 'es-HN': /^(\\+?504)?[9|8]\\d{7}$/,\n 'es-EC': /^(\\+?593|0)([2-7]|9[2-9])\\d{7}$/,\n 'es-ES': /^(\\+?34)?[6|7]\\d{8}$/,\n 'es-PE': /^(\\+?51)?9\\d{8}$/,\n 'es-MX': /^(\\+?52)?(1|01)?\\d{10,11}$/,\n 'es-PA': /^(\\+?507)\\d{7,8}$/,\n 'es-PY': /^(\\+?595|0)9[9876]\\d{7}$/,\n 'es-UY': /^(\\+598|0)9[1-9][\\d]{6}$/,\n 'et-EE': /^(\\+?372)?\\s?(5|8[1-4])\\s?([0-9]\\s?){6,7}$/,\n 'fa-IR': /^(\\+?98[\\-\\s]?|0)9[0-39]\\d[\\-\\s]?\\d{3}[\\-\\s]?\\d{4}$/,\n 'fi-FI': /^(\\+?358|0)\\s?(4(0|1|2|4|5|6)?|50)\\s?(\\d\\s?){4,8}\\d$/,\n 'fj-FJ': /^(\\+?679)?\\s?\\d{3}\\s?\\d{4}$/,\n 'fo-FO': /^(\\+?298)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'fr-FR': /^(\\+?33|0)[67]\\d{8}$/,\n 'fr-GF': /^(\\+?594|0|00594)[67]\\d{8}$/,\n 'fr-GP': /^(\\+?590|0|00590)[67]\\d{8}$/,\n 'fr-MQ': /^(\\+?596|0|00596)[67]\\d{8}$/,\n 'fr-RE': /^(\\+?262|0|00262)[67]\\d{8}$/,\n 'he-IL': /^(\\+972|0)([23489]|5[012345689]|77)[1-9]\\d{6}$/,\n 'hu-HU': /^(\\+?36)(20|30|70)\\d{7}$/,\n 'id-ID': /^(\\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\\s?|\\d]{5,11})$/,\n 'it-IT': /^(\\+?39)?\\s?3\\d{2} ?\\d{6,7}$/,\n 'it-SM': /^((\\+378)|(0549)|(\\+390549)|(\\+3780549))?6\\d{5,9}$/,\n 'ja-JP': /^(\\+81[ \\-]?(\\(0\\))?|0)[6789]0[ \\-]?\\d{4}[ \\-]?\\d{4}$/,\n 'ka-GE': /^(\\+?995)?(5|79)\\d{7}$/,\n 'kk-KZ': /^(\\+?7|8)?7\\d{9}$/,\n 'kl-GL': /^(\\+?299)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'ko-KR': /^((\\+?82)[ \\-]?)?0?1([0|1|6|7|8|9]{1})[ \\-]?\\d{3,4}[ \\-]?\\d{4}$/,\n 'lt-LT': /^(\\+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-UZ': /^(\\+?998)?(6[125-79]|7[1-69]|88|9\\d)\\d{7}$/,\n 'vi-VN': /^(\\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/,\n 'zh-CN': /^((\\+|00)86)?1([3568][0-9]|4[579]|6[67]|7[01235678]|9[012356789])[0-9]{8}$/,\n 'zh-TW': /^(\\+?886\\-?|0)?9\\d{8}$/\n};\n/* eslint-enable max-len */\n// aliases\n\nphones['en-CA'] = phones['en-US'];\nphones['fr-CA'] = phones['en-CA'];\nphones['fr-BE'] = phones['nl-BE'];\nphones['zh-HK'] = phones['en-HK'];\nphones['zh-MO'] = phones['en-MO'];\nphones['ga-IE'] = phones['en-IE'];\n\nfunction isMobilePhone(str, locale, options) {\n (0, _assertString.default)(str);\n\n if (options && options.strictMode && !str.startsWith('+')) {\n return false;\n }\n\n if (Array.isArray(locale)) {\n return locale.some(function (key) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (phones.hasOwnProperty(key)) {\n var phone = phones[key];\n\n if (phone.test(str)) {\n return true;\n }\n }\n\n return false;\n });\n } else if (locale in phones) {\n return phones[locale].test(str); // alias falsey locale as 'any'\n } else if (!locale || locale === 'any') {\n for (var key in phones) {\n // istanbul ignore else\n if (phones.hasOwnProperty(key)) {\n var phone = phones[key];\n\n if (phone.test(str)) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\n\nvar locales = Object.keys(phones);\nexports.locales = locales;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMongoId;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _isHexadecimal = _interopRequireDefault(require(\"./isHexadecimal\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isMongoId(str) {\n (0, _assertString.default)(str);\n return (0, _isHexadecimal.default)(str) && str.length === 24;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMultibyte;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable no-control-regex */\nvar multibyte = /[^\\x00-\\x7F]/;\n/* eslint-enable no-control-regex */\n\nfunction isMultibyte(str) {\n (0, _assertString.default)(str);\n return multibyte.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isNumeric;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _alpha = require(\"./alpha\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar numericNoSymbols = /^[0-9]+$/;\n\nfunction isNumeric(str, options) {\n (0, _assertString.default)(str);\n\n if (options && options.no_symbols) {\n return numericNoSymbols.test(str);\n }\n\n return new RegExp(\"^[+-]?([0-9]*[\".concat((options || {}).locale ? _alpha.decimal[options.locale] : '.', \"])?[0-9]+$\")).test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isOctal;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar octal = /^(0o)?[0-7]+$/i;\n\nfunction isOctal(str) {\n (0, _assertString.default)(str);\n return octal.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPassportNumber;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Reference:\n * https://en.wikipedia.org/ -- Wikipedia\n * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number\n * https://countrycode.org/ -- Country Codes\n */\nvar passportRegexByCountryCode = {\n AM: /^[A-Z]{2}\\d{7}$/,\n // ARMENIA\n AR: /^[A-Z]{3}\\d{6}$/,\n // ARGENTINA\n AT: /^[A-Z]\\d{7}$/,\n // AUSTRIA\n AU: /^[A-Z]\\d{7}$/,\n // AUSTRALIA\n BE: /^[A-Z]{2}\\d{6}$/,\n // BELGIUM\n BG: /^\\d{9}$/,\n // BULGARIA\n BY: /^[A-Z]{2}\\d{7}$/,\n // BELARUS\n CA: /^[A-Z]{2}\\d{6}$/,\n // CANADA\n CH: /^[A-Z]\\d{7}$/,\n // SWITZERLAND\n CN: /^[GE]\\d{8}$/,\n // CHINA [G=Ordinary, E=Electronic] followed by 8-digits\n CY: /^[A-Z](\\d{6}|\\d{8})$/,\n // CYPRUS\n CZ: /^\\d{8}$/,\n // CZECH REPUBLIC\n DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,\n // GERMANY\n DK: /^\\d{9}$/,\n // DENMARK\n DZ: /^\\d{9}$/,\n // ALGERIA\n EE: /^([A-Z]\\d{7}|[A-Z]{2}\\d{7})$/,\n // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits\n ES: /^[A-Z0-9]{2}([A-Z0-9]?)\\d{6}$/,\n // SPAIN\n FI: /^[A-Z]{2}\\d{7}$/,\n // FINLAND\n FR: /^\\d{2}[A-Z]{2}\\d{5}$/,\n // FRANCE\n GB: /^\\d{9}$/,\n // UNITED KINGDOM\n GR: /^[A-Z]{2}\\d{7}$/,\n // GREECE\n HR: /^\\d{9}$/,\n // CROATIA\n HU: /^[A-Z]{2}(\\d{6}|\\d{7})$/,\n // HUNGARY\n IE: /^[A-Z0-9]{2}\\d{7}$/,\n // IRELAND\n IN: /^[A-Z]{1}-?\\d{7}$/,\n // INDIA\n IS: /^(A)\\d{7}$/,\n // ICELAND\n IT: /^[A-Z0-9]{2}\\d{7}$/,\n // ITALY\n JP: /^[A-Z]{2}\\d{7}$/,\n // JAPAN\n KR: /^[MS]\\d{8}$/,\n // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports]\n LT: /^[A-Z0-9]{8}$/,\n // LITHUANIA\n LU: /^[A-Z0-9]{8}$/,\n // LUXEMBURG\n LV: /^[A-Z0-9]{2}\\d{7}$/,\n // LATVIA\n MT: /^\\d{7}$/,\n // MALTA\n NL: /^[A-Z]{2}[A-Z0-9]{6}\\d$/,\n // NETHERLANDS\n PO: /^[A-Z]{2}\\d{7}$/,\n // POLAND\n PT: /^[A-Z]\\d{6}$/,\n // PORTUGAL\n RO: /^\\d{8,9}$/,\n // ROMANIA\n RU: /^\\d{2}\\d{2}\\d{6}$/,\n // RUSSIAN FEDERATION\n SE: /^\\d{8}$/,\n // SWEDEN\n SL: /^(P)[A-Z]\\d{7}$/,\n // SLOVANIA\n SK: /^[0-9A-Z]\\d{7}$/,\n // SLOVAKIA\n TR: /^[A-Z]\\d{8}$/,\n // TURKEY\n UA: /^[A-Z]{2}\\d{6}$/,\n // UKRAINE\n US: /^\\d{9}$/ // UNITED STATES\n\n};\n/**\n * Check if str is a valid passport number\n * relative to provided ISO Country Code.\n *\n * @param {string} str\n * @param {string} countryCode\n * @return {boolean}\n */\n\nfunction isPassportNumber(str, countryCode) {\n (0, _assertString.default)(str);\n /** Remove All Whitespaces, Convert to UPPERCASE */\n\n var normalizedStr = str.replace(/\\s/g, '').toUpperCase();\n return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPort;\n\nvar _isInt = _interopRequireDefault(require(\"./isInt\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isPort(str) {\n return (0, _isInt.default)(str, {\n min: 0,\n max: 65535\n });\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPostalCode;\nexports.locales = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// common patterns\nvar threeDigit = /^\\d{3}$/;\nvar fourDigit = /^\\d{4}$/;\nvar fiveDigit = /^\\d{5}$/;\nvar sixDigit = /^\\d{6}$/;\nvar patterns = {\n AD: /^AD\\d{3}$/,\n AT: fourDigit,\n AU: fourDigit,\n AZ: /^AZ\\d{4}$/,\n BE: fourDigit,\n BG: fourDigit,\n BR: /^\\d{5}-\\d{3}$/,\n BY: /2[1-4]{1}\\d{4}$/,\n CA: /^[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][\\s\\-]?\\d[ABCEGHJ-NPRSTV-Z]\\d$/i,\n CH: fourDigit,\n CN: /^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\\d{4}$/,\n CZ: /^\\d{3}\\s?\\d{2}$/,\n DE: fiveDigit,\n DK: fourDigit,\n DO: fiveDigit,\n DZ: fiveDigit,\n EE: fiveDigit,\n ES: /^(5[0-2]{1}|[0-4]{1}\\d{1})\\d{3}$/,\n FI: fiveDigit,\n FR: /^\\d{2}\\s?\\d{3}$/,\n GB: /^(gir\\s?0aa|[a-z]{1,2}\\d[\\da-z]?\\s?(\\d[a-z]{2})?)$/i,\n GR: /^\\d{3}\\s?\\d{2}$/,\n HR: /^([1-5]\\d{4}$)/,\n HT: /^HT\\d{4}$/,\n HU: fourDigit,\n ID: fiveDigit,\n IE: /^(?!.*(?:o))[A-z]\\d[\\dw]\\s\\w{4}$/i,\n IL: /^(\\d{5}|\\d{7})$/,\n IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,\n IR: /\\b(?!(\\d)\\1{3})[13-9]{4}[1346-9][013-9]{5}\\b/,\n IS: threeDigit,\n IT: fiveDigit,\n JP: /^\\d{3}\\-\\d{4}$/,\n KE: fiveDigit,\n LI: /^(948[5-9]|949[0-7])$/,\n LT: /^LT\\-\\d{5}$/,\n LU: fourDigit,\n LV: /^LV\\-\\d{4}$/,\n MX: fiveDigit,\n MT: /^[A-Za-z]{3}\\s{0,1}\\d{4}$/,\n MY: fiveDigit,\n NL: /^\\d{4}\\s?[a-z]{2}$/i,\n NO: fourDigit,\n NP: /^(10|21|22|32|33|34|44|45|56|57)\\d{3}$|^(977)$/i,\n NZ: fourDigit,\n PL: /^\\d{2}\\-\\d{3}$/,\n PR: /^00[679]\\d{2}([ -]\\d{4})?$/,\n PT: /^\\d{4}\\-\\d{3}?$/,\n RO: sixDigit,\n RU: sixDigit,\n SA: fiveDigit,\n SE: /^[1-9]\\d{2}\\s?\\d{2}$/,\n SG: sixDigit,\n SI: fourDigit,\n SK: /^\\d{3}\\s?\\d{2}$/,\n TH: fiveDigit,\n TN: fourDigit,\n TW: /^\\d{3}(\\d{2})?$/,\n UA: fiveDigit,\n US: /^\\d{5}(-\\d{4})?$/,\n ZA: fourDigit,\n ZM: fiveDigit\n};\nvar locales = Object.keys(patterns);\nexports.locales = locales;\n\nfunction isPostalCode(str, locale) {\n (0, _assertString.default)(str);\n\n if (locale in patterns) {\n return patterns[locale].test(str);\n } else if (locale === 'any') {\n for (var key in patterns) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (patterns.hasOwnProperty(key)) {\n var pattern = patterns[key];\n\n if (pattern.test(str)) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isRFC3339;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* Based on https://tools.ietf.org/html/rfc3339#section-5.6 */\nvar dateFullYear = /[0-9]{4}/;\nvar dateMonth = /(0[1-9]|1[0-2])/;\nvar dateMDay = /([12]\\d|0[1-9]|3[01])/;\nvar timeHour = /([01][0-9]|2[0-3])/;\nvar timeMinute = /[0-5][0-9]/;\nvar timeSecond = /([0-5][0-9]|60)/;\nvar timeSecFrac = /(\\.[0-9]+)?/;\nvar timeNumOffset = new RegExp(\"[-+]\".concat(timeHour.source, \":\").concat(timeMinute.source));\nvar timeOffset = new RegExp(\"([zZ]|\".concat(timeNumOffset.source, \")\"));\nvar partialTime = new RegExp(\"\".concat(timeHour.source, \":\").concat(timeMinute.source, \":\").concat(timeSecond.source).concat(timeSecFrac.source));\nvar fullDate = new RegExp(\"\".concat(dateFullYear.source, \"-\").concat(dateMonth.source, \"-\").concat(dateMDay.source));\nvar fullTime = new RegExp(\"\".concat(partialTime.source).concat(timeOffset.source));\nvar rfc3339 = new RegExp(\"\".concat(fullDate.source, \"[ tT]\").concat(fullTime.source));\n\nfunction isRFC3339(str) {\n (0, _assertString.default)(str);\n return rfc3339.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isRgbColor;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar rgbColor = /^rgb\\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\)$/;\nvar rgbaColor = /^rgba\\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\\.\\d|1(\\.0)?|0(\\.0)?)\\)$/;\nvar rgbColorPercent = /^rgb\\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\\)/;\nvar rgbaColorPercent = /^rgba\\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\\.\\d|1(\\.0)?|0(\\.0)?)\\)/;\n\nfunction isRgbColor(str) {\n var includePercentValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n (0, _assertString.default)(str);\n\n if (!includePercentValues) {\n return rgbColor.test(str) || rgbaColor.test(str);\n }\n\n return rgbColor.test(str) || rgbaColor.test(str) || rgbColorPercent.test(str) || rgbaColorPercent.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSemVer;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _multilineRegex = _interopRequireDefault(require(\"./util/multilineRegex\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Regular Expression to match\n * semantic versioning (SemVer)\n * built from multi-line, multi-parts regexp\n * Reference: https://semver.org/\n */\nvar semanticVersioningRegex = (0, _multilineRegex.default)(['^(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)', '(?:-((?:0|[1-9]\\\\d*|\\\\d*[a-z-][0-9a-z-]*)(?:\\\\.(?:0|[1-9]\\\\d*|\\\\d*[a-z-][0-9a-z-]*))*))', '?(?:\\\\+([0-9a-z-]+(?:\\\\.[0-9a-z-]+)*))?$'], 'i');\n\nfunction isSemVer(str) {\n (0, _assertString.default)(str);\n return semanticVersioningRegex.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSlug;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar charsetRegex = /^[^\\s-_](?!.*?[-_]{2,})([a-z0-9-\\\\]{1,})[^\\s]*[^-_\\s]$/;\n\nfunction isSlug(str) {\n (0, _assertString.default)(str);\n return charsetRegex.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isStrongPassword;\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar upperCaseRegex = /^[A-Z]$/;\nvar lowerCaseRegex = /^[a-z]$/;\nvar numberRegex = /^[0-9]$/;\nvar symbolRegex = /^[-#!$%^&*()_+|~=`{}\\[\\]:\";'<>?,.\\/ ]$/;\nvar defaultOptions = {\n minLength: 8,\n minLowercase: 1,\n minUppercase: 1,\n minNumbers: 1,\n minSymbols: 1,\n returnScore: false,\n pointsPerUnique: 1,\n pointsPerRepeat: 0.5,\n pointsForContainingLower: 10,\n pointsForContainingUpper: 10,\n pointsForContainingNumber: 10,\n pointsForContainingSymbol: 10\n};\n/* Counts number of occurrences of each char in a string\n * could be moved to util/ ?\n*/\n\nfunction countChars(str) {\n var result = {};\n Array.from(str).forEach(function (char) {\n var curVal = result[char];\n\n if (curVal) {\n result[char] += 1;\n } else {\n result[char] = 1;\n }\n });\n return result;\n}\n/* Return information about a password */\n\n\nfunction analyzePassword(password) {\n var charMap = countChars(password);\n var analysis = {\n length: password.length,\n uniqueChars: Object.keys(charMap).length,\n uppercaseCount: 0,\n lowercaseCount: 0,\n numberCount: 0,\n symbolCount: 0\n };\n Object.keys(charMap).forEach(function (char) {\n if (upperCaseRegex.test(char)) {\n analysis.uppercaseCount += charMap[char];\n } else if (lowerCaseRegex.test(char)) {\n analysis.lowercaseCount += charMap[char];\n } else if (numberRegex.test(char)) {\n analysis.numberCount += charMap[char];\n } else if (symbolRegex.test(char)) {\n analysis.symbolCount += charMap[char];\n }\n });\n return analysis;\n}\n\nfunction scorePassword(analysis, scoringOptions) {\n var points = 0;\n points += analysis.uniqueChars * scoringOptions.pointsPerUnique;\n points += (analysis.length - analysis.uniqueChars) * scoringOptions.pointsPerRepeat;\n\n if (analysis.lowercaseCount > 0) {\n points += scoringOptions.pointsForContainingLower;\n }\n\n if (analysis.uppercaseCount > 0) {\n points += scoringOptions.pointsForContainingUpper;\n }\n\n if (analysis.numberCount > 0) {\n points += scoringOptions.pointsForContainingNumber;\n }\n\n if (analysis.symbolCount > 0) {\n points += scoringOptions.pointsForContainingSymbol;\n }\n\n return points;\n}\n\nfunction isStrongPassword(str) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n (0, _assertString.default)(str);\n var analysis = analyzePassword(str);\n options = (0, _merge.default)(options || {}, defaultOptions);\n\n if (options.returnScore) {\n return scorePassword(analysis, options);\n }\n\n return analysis.length >= options.minLength && analysis.lowercaseCount >= options.minLowercase && analysis.uppercaseCount >= options.minUppercase && analysis.numberCount >= options.minNumbers && analysis.symbolCount >= options.minSymbols;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSurrogatePair;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar surrogatePair = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/;\n\nfunction isSurrogatePair(str) {\n (0, _assertString.default)(str);\n return surrogatePair.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isTaxID;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar algorithms = _interopRequireWildcard(require(\"./util/algorithms\"));\n\nvar _isDate = _interopRequireDefault(require(\"./isDate\"));\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\n * TIN Validation\n * Validates Tax Identification Numbers (TINs) from the US, EU member states and the United Kingdom.\n *\n * EU-UK:\n * National TIN validity is calculated using public algorithms as made available by DG TAXUD.\n *\n * See `https://ec.europa.eu/taxation_customs/tin/specs/FS-TIN%20Algorithms-Public.docx` for more information.\n *\n * US:\n * An Employer Identification Number (EIN), also known as a Federal Tax Identification Number,\n * is used to identify a business entity.\n *\n * NOTES:\n * - Prefix 47 is being reserved for future use\n * - Prefixes 26, 27, 45, 46 and 47 were previously assigned by the Philadelphia campus.\n *\n * See `http://www.irs.gov/Businesses/Small-Businesses-&-Self-Employed/How-EINs-are-Assigned-and-Valid-EIN-Prefixes`\n * for more information.\n */\n// Locale functions\n\n/*\n * bg-BG validation function\n * (Edinen graždanski nomer (EGN/ЕГН), persons only)\n * Checks if birth date (first six digits) is valid and calculates check (last) digit\n */\nfunction bgBgCheck(tin) {\n // Extract full year, normalize month and check birth date validity\n var century_year = tin.slice(0, 2);\n var month = parseInt(tin.slice(2, 4), 10);\n\n if (month > 40) {\n month -= 40;\n century_year = \"20\".concat(century_year);\n } else if (month > 20) {\n month -= 20;\n century_year = \"18\".concat(century_year);\n } else {\n century_year = \"19\".concat(century_year);\n }\n\n if (month < 10) {\n month = \"0\".concat(month);\n }\n\n var date = \"\".concat(century_year, \"/\").concat(month, \"/\").concat(tin.slice(4, 6));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // split digits into an array for further processing\n\n\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n }); // Calculate checksum by multiplying digits with fixed values\n\n var multip_lookup = [2, 4, 8, 5, 10, 9, 7, 3, 6];\n var checksum = 0;\n\n for (var i = 0; i < multip_lookup.length; i++) {\n checksum += digits[i] * multip_lookup[i];\n }\n\n checksum = checksum % 11 === 10 ? 0 : checksum % 11;\n return checksum === digits[9];\n}\n/*\n * cs-CZ validation function\n * (Rodné číslo (RČ), persons only)\n * Checks if birth date (first six digits) is valid and divisibility by 11\n * Material not in DG TAXUD document sourced from:\n * -`https://lorenc.info/3MA381/overeni-spravnosti-rodneho-cisla.htm`\n * -`https://www.mvcr.cz/clanek/rady-a-sluzby-dokumenty-rodne-cislo.aspx`\n */\n\n\nfunction csCzCheck(tin) {\n tin = tin.replace(/\\W/, ''); // Extract full year from TIN length\n\n var full_year = parseInt(tin.slice(0, 2), 10);\n\n if (tin.length === 10) {\n if (full_year < 54) {\n full_year = \"20\".concat(full_year);\n } else {\n full_year = \"19\".concat(full_year);\n }\n } else {\n if (tin.slice(6) === '000') {\n return false;\n } // Three-zero serial not assigned before 1954\n\n\n if (full_year < 54) {\n full_year = \"19\".concat(full_year);\n } else {\n return false; // No 18XX years seen in any of the resources\n }\n } // Add missing zero if needed\n\n\n if (full_year.length === 3) {\n full_year = [full_year.slice(0, 2), '0', full_year.slice(2)].join('');\n } // Extract month from TIN and normalize\n\n\n var month = parseInt(tin.slice(2, 4), 10);\n\n if (month > 50) {\n month -= 50;\n }\n\n if (month > 20) {\n // Month-plus-twenty was only introduced in 2004\n if (parseInt(full_year, 10) < 2004) {\n return false;\n }\n\n month -= 20;\n }\n\n if (month < 10) {\n month = \"0\".concat(month);\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(month, \"/\").concat(tin.slice(4, 6));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Verify divisibility by 11\n\n\n if (tin.length === 10) {\n if (parseInt(tin, 10) % 11 !== 0) {\n // Some numbers up to and including 1985 are still valid if\n // check (last) digit equals 0 and modulo of first 9 digits equals 10\n var checkdigit = parseInt(tin.slice(0, 9), 10) % 11;\n\n if (parseInt(full_year, 10) < 1986 && checkdigit === 10) {\n if (parseInt(tin.slice(9), 10) !== 0) {\n return false;\n }\n } else {\n return false;\n }\n }\n }\n\n return true;\n}\n/*\n * de-AT validation function\n * (Abgabenkontonummer, persons/entities)\n * Verify TIN validity by calling luhnCheck()\n */\n\n\nfunction deAtCheck(tin) {\n return algorithms.luhnCheck(tin);\n}\n/*\n * de-DE validation function\n * (Steueridentifikationsnummer (Steuer-IdNr.), persons only)\n * Tests for single duplicate/triplicate value, then calculates ISO 7064 check (last) digit\n * Partial implementation of spec (same result with both algorithms always)\n */\n\n\nfunction deDeCheck(tin) {\n // Split digits into an array for further processing\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n }); // Fill array with strings of number positions\n\n var occurences = [];\n\n for (var i = 0; i < digits.length - 1; i++) {\n occurences.push('');\n\n for (var j = 0; j < digits.length - 1; j++) {\n if (digits[i] === digits[j]) {\n occurences[i] += j;\n }\n }\n } // Remove digits with one occurence and test for only one duplicate/triplicate\n\n\n occurences = occurences.filter(function (a) {\n return a.length > 1;\n });\n\n if (occurences.length !== 2 && occurences.length !== 3) {\n return false;\n } // In case of triplicate value only two digits are allowed next to each other\n\n\n if (occurences[0].length === 3) {\n var trip_locations = occurences[0].split('').map(function (a) {\n return parseInt(a, 10);\n });\n var recurrent = 0; // Amount of neighbour occurences\n\n for (var _i = 0; _i < trip_locations.length - 1; _i++) {\n if (trip_locations[_i] + 1 === trip_locations[_i + 1]) {\n recurrent += 1;\n }\n }\n\n if (recurrent === 2) {\n return false;\n }\n }\n\n return algorithms.iso7064Check(tin);\n}\n/*\n * dk-DK validation function\n * (CPR-nummer (personnummer), persons only)\n * Checks if birth date (first six digits) is valid and assigned to century (seventh) digit,\n * and calculates check (last) digit\n */\n\n\nfunction dkDkCheck(tin) {\n tin = tin.replace(/\\W/, ''); // Extract year, check if valid for given century digit and add century\n\n var year = parseInt(tin.slice(4, 6), 10);\n var century_digit = tin.slice(6, 7);\n\n switch (century_digit) {\n case '0':\n case '1':\n case '2':\n case '3':\n year = \"19\".concat(year);\n break;\n\n case '4':\n case '9':\n if (year < 37) {\n year = \"20\".concat(year);\n } else {\n year = \"19\".concat(year);\n }\n\n break;\n\n default:\n if (year < 37) {\n year = \"20\".concat(year);\n } else if (year > 58) {\n year = \"18\".concat(year);\n } else {\n return false;\n }\n\n break;\n } // Add missing zero if needed\n\n\n if (year.length === 3) {\n year = [year.slice(0, 2), '0', year.slice(2)].join('');\n } // Check date validity\n\n\n var date = \"\".concat(year, \"/\").concat(tin.slice(2, 4), \"/\").concat(tin.slice(0, 2));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Split digits into an array for further processing\n\n\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n });\n var checksum = 0;\n var weight = 4; // Multiply by weight and add to checksum\n\n for (var i = 0; i < 9; i++) {\n checksum += digits[i] * weight;\n weight -= 1;\n\n if (weight === 1) {\n weight = 7;\n }\n }\n\n checksum %= 11;\n\n if (checksum === 1) {\n return false;\n }\n\n return checksum === 0 ? digits[9] === 0 : digits[9] === 11 - checksum;\n}\n/*\n * el-CY validation function\n * (Arithmos Forologikou Mitroou (AFM/ΑΦΜ), persons only)\n * Verify TIN validity by calculating ASCII value of check (last) character\n */\n\n\nfunction elCyCheck(tin) {\n // split digits into an array for further processing\n var digits = tin.slice(0, 8).split('').map(function (a) {\n return parseInt(a, 10);\n });\n var checksum = 0; // add digits in even places\n\n for (var i = 1; i < digits.length; i += 2) {\n checksum += digits[i];\n } // add digits in odd places\n\n\n for (var _i2 = 0; _i2 < digits.length; _i2 += 2) {\n if (digits[_i2] < 2) {\n checksum += 1 - digits[_i2];\n } else {\n checksum += 2 * (digits[_i2] - 2) + 5;\n\n if (digits[_i2] > 4) {\n checksum += 2;\n }\n }\n }\n\n return String.fromCharCode(checksum % 26 + 65) === tin.charAt(8);\n}\n/*\n * el-GR validation function\n * (Arithmos Forologikou Mitroou (AFM/ΑΦΜ), persons/entities)\n * Verify TIN validity by calculating check (last) digit\n * Algorithm not in DG TAXUD document- sourced from:\n * - `http://epixeirisi.gr/%CE%9A%CE%A1%CE%99%CE%A3%CE%99%CE%9C%CE%91-%CE%98%CE%95%CE%9C%CE%91%CE%A4%CE%91-%CE%A6%CE%9F%CE%A1%CE%9F%CE%9B%CE%9F%CE%93%CE%99%CE%91%CE%A3-%CE%9A%CE%91%CE%99-%CE%9B%CE%9F%CE%93%CE%99%CE%A3%CE%A4%CE%99%CE%9A%CE%97%CE%A3/23791/%CE%91%CF%81%CE%B9%CE%B8%CE%BC%CF%8C%CF%82-%CE%A6%CE%BF%CF%81%CE%BF%CE%BB%CE%BF%CE%B3%CE%B9%CE%BA%CE%BF%CF%8D-%CE%9C%CE%B7%CF%84%CF%81%CF%8E%CE%BF%CF%85`\n */\n\n\nfunction elGrCheck(tin) {\n // split digits into an array for further processing\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n });\n var checksum = 0;\n\n for (var i = 0; i < 8; i++) {\n checksum += digits[i] * Math.pow(2, 8 - i);\n }\n\n return checksum % 11 === digits[8];\n}\n/*\n * en-GB validation function (should go here if needed)\n * (National Insurance Number (NINO) or Unique Taxpayer Reference (UTR),\n * persons/entities respectively)\n */\n\n/*\n * en-IE validation function\n * (Personal Public Service Number (PPS No), persons only)\n * Verify TIN validity by calculating check (second to last) character\n */\n\n\nfunction enIeCheck(tin) {\n var checksum = algorithms.reverseMultiplyAndSum(tin.split('').slice(0, 7).map(function (a) {\n return parseInt(a, 10);\n }), 8);\n\n if (tin.length === 9 && tin[8] !== 'W') {\n checksum += (tin[8].charCodeAt(0) - 64) * 9;\n }\n\n checksum %= 23;\n\n if (checksum === 0) {\n return tin[7].toUpperCase() === 'W';\n }\n\n return tin[7].toUpperCase() === String.fromCharCode(64 + checksum);\n} // Valid US IRS campus prefixes\n\n\nvar enUsCampusPrefix = {\n andover: ['10', '12'],\n atlanta: ['60', '67'],\n austin: ['50', '53'],\n brookhaven: ['01', '02', '03', '04', '05', '06', '11', '13', '14', '16', '21', '22', '23', '25', '34', '51', '52', '54', '55', '56', '57', '58', '59', '65'],\n cincinnati: ['30', '32', '35', '36', '37', '38', '61'],\n fresno: ['15', '24'],\n internet: ['20', '26', '27', '45', '46', '47'],\n kansas: ['40', '44'],\n memphis: ['94', '95'],\n ogden: ['80', '90'],\n philadelphia: ['33', '39', '41', '42', '43', '46', '48', '62', '63', '64', '66', '68', '71', '72', '73', '74', '75', '76', '77', '81', '82', '83', '84', '85', '86', '87', '88', '91', '92', '93', '98', '99'],\n sba: ['31']\n}; // Return an array of all US IRS campus prefixes\n\nfunction enUsGetPrefixes() {\n var prefixes = [];\n\n for (var location in enUsCampusPrefix) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (enUsCampusPrefix.hasOwnProperty(location)) {\n prefixes.push.apply(prefixes, _toConsumableArray(enUsCampusPrefix[location]));\n }\n }\n\n return prefixes;\n}\n/*\n * en-US validation function\n * Verify that the TIN starts with a valid IRS campus prefix\n */\n\n\nfunction enUsCheck(tin) {\n return enUsGetPrefixes().indexOf(tin.substr(0, 2)) !== -1;\n}\n/*\n * es-ES validation function\n * (Documento Nacional de Identidad (DNI)\n * or Número de Identificación de Extranjero (NIE), persons only)\n * Verify TIN validity by calculating check (last) character\n */\n\n\nfunction esEsCheck(tin) {\n // Split characters into an array for further processing\n var chars = tin.toUpperCase().split(''); // Replace initial letter if needed\n\n if (isNaN(parseInt(chars[0], 10)) && chars.length > 1) {\n var lead_replace = 0;\n\n switch (chars[0]) {\n case 'Y':\n lead_replace = 1;\n break;\n\n case 'Z':\n lead_replace = 2;\n break;\n\n default:\n }\n\n chars.splice(0, 1, lead_replace); // Fill with zeros if smaller than proper\n } else {\n while (chars.length < 9) {\n chars.unshift(0);\n }\n } // Calculate checksum and check according to lookup\n\n\n var lookup = ['T', 'R', 'W', 'A', 'G', 'M', 'Y', 'F', 'P', 'D', 'X', 'B', 'N', 'J', 'Z', 'S', 'Q', 'V', 'H', 'L', 'C', 'K', 'E'];\n chars = chars.join('');\n var checksum = parseInt(chars.slice(0, 8), 10) % 23;\n return chars[8] === lookup[checksum];\n}\n/*\n * et-EE validation function\n * (Isikukood (IK), persons only)\n * Checks if birth date (century digit and six following) is valid and calculates check (last) digit\n * Material not in DG TAXUD document sourced from:\n * - `https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Estonia-TIN.pdf`\n */\n\n\nfunction etEeCheck(tin) {\n // Extract year and add century\n var full_year = tin.slice(1, 3);\n var century_digit = tin.slice(0, 1);\n\n switch (century_digit) {\n case '1':\n case '2':\n full_year = \"18\".concat(full_year);\n break;\n\n case '3':\n case '4':\n full_year = \"19\".concat(full_year);\n break;\n\n default:\n full_year = \"20\".concat(full_year);\n break;\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(tin.slice(3, 5), \"/\").concat(tin.slice(5, 7));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Split digits into an array for further processing\n\n\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n });\n var checksum = 0;\n var weight = 1; // Multiply by weight and add to checksum\n\n for (var i = 0; i < 10; i++) {\n checksum += digits[i] * weight;\n weight += 1;\n\n if (weight === 10) {\n weight = 1;\n }\n } // Do again if modulo 11 of checksum is 10\n\n\n if (checksum % 11 === 10) {\n checksum = 0;\n weight = 3;\n\n for (var _i3 = 0; _i3 < 10; _i3++) {\n checksum += digits[_i3] * weight;\n weight += 1;\n\n if (weight === 10) {\n weight = 1;\n }\n }\n\n if (checksum % 11 === 10) {\n return digits[10] === 0;\n }\n }\n\n return checksum % 11 === digits[10];\n}\n/*\n * fi-FI validation function\n * (Henkilötunnus (HETU), persons only)\n * Checks if birth date (first six digits plus century symbol) is valid\n * and calculates check (last) digit\n */\n\n\nfunction fiFiCheck(tin) {\n // Extract year and add century\n var full_year = tin.slice(4, 6);\n var century_symbol = tin.slice(6, 7);\n\n switch (century_symbol) {\n case '+':\n full_year = \"18\".concat(full_year);\n break;\n\n case '-':\n full_year = \"19\".concat(full_year);\n break;\n\n default:\n full_year = \"20\".concat(full_year);\n break;\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(tin.slice(2, 4), \"/\").concat(tin.slice(0, 2));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Calculate check character\n\n\n var checksum = parseInt(tin.slice(0, 6) + tin.slice(7, 10), 10) % 31;\n\n if (checksum < 10) {\n return checksum === parseInt(tin.slice(10), 10);\n }\n\n checksum -= 10;\n var letters_lookup = ['A', 'B', 'C', 'D', 'E', 'F', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y'];\n return letters_lookup[checksum] === tin.slice(10);\n}\n/*\n * fr/nl-BE validation function\n * (Numéro national (N.N.), persons only)\n * Checks if birth date (first six digits) is valid and calculates check (last two) digits\n */\n\n\nfunction frBeCheck(tin) {\n // Zero month/day value is acceptable\n if (tin.slice(2, 4) !== '00' || tin.slice(4, 6) !== '00') {\n // Extract date from first six digits of TIN\n var date = \"\".concat(tin.slice(0, 2), \"/\").concat(tin.slice(2, 4), \"/\").concat(tin.slice(4, 6));\n\n if (!(0, _isDate.default)(date, 'YY/MM/DD')) {\n return false;\n }\n }\n\n var checksum = 97 - parseInt(tin.slice(0, 9), 10) % 97;\n var checkdigits = parseInt(tin.slice(9, 11), 10);\n\n if (checksum !== checkdigits) {\n checksum = 97 - parseInt(\"2\".concat(tin.slice(0, 9)), 10) % 97;\n\n if (checksum !== checkdigits) {\n return false;\n }\n }\n\n return true;\n}\n/*\n * fr-FR validation function\n * (Numéro fiscal de référence (numéro SPI), persons only)\n * Verify TIN validity by calculating check (last three) digits\n */\n\n\nfunction frFrCheck(tin) {\n tin = tin.replace(/\\s/g, '');\n var checksum = parseInt(tin.slice(0, 10), 10) % 511;\n var checkdigits = parseInt(tin.slice(10, 13), 10);\n return checksum === checkdigits;\n}\n/*\n * fr/lb-LU validation function\n * (numéro d’identification personnelle, persons only)\n * Verify birth date validity and run Luhn and Verhoeff checks\n */\n\n\nfunction frLuCheck(tin) {\n // Extract date and check validity\n var date = \"\".concat(tin.slice(0, 4), \"/\").concat(tin.slice(4, 6), \"/\").concat(tin.slice(6, 8));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Run Luhn check\n\n\n if (!algorithms.luhnCheck(tin.slice(0, 12))) {\n return false;\n } // Remove Luhn check digit and run Verhoeff check\n\n\n return algorithms.verhoeffCheck(\"\".concat(tin.slice(0, 11)).concat(tin[12]));\n}\n/*\n * hr-HR validation function\n * (Osobni identifikacijski broj (OIB), persons/entities)\n * Verify TIN validity by calling iso7064Check(digits)\n */\n\n\nfunction hrHrCheck(tin) {\n return algorithms.iso7064Check(tin);\n}\n/*\n * hu-HU validation function\n * (Adóazonosító jel, persons only)\n * Verify TIN validity by calculating check (last) digit\n */\n\n\nfunction huHuCheck(tin) {\n // split digits into an array for further processing\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n });\n var checksum = 8;\n\n for (var i = 1; i < 9; i++) {\n checksum += digits[i] * (i + 1);\n }\n\n return checksum % 11 === digits[9];\n}\n/*\n * lt-LT validation function (should go here if needed)\n * (Asmens kodas, persons/entities respectively)\n * Current validation check is alias of etEeCheck- same format applies\n */\n\n/*\n * it-IT first/last name validity check\n * Accepts it-IT TIN-encoded names as a three-element character array and checks their validity\n * Due to lack of clarity between resources (\"Are only Italian consonants used?\n * What happens if a person has X in their name?\" etc.) only two test conditions\n * have been implemented:\n * Vowels may only be followed by other vowels or an X character\n * and X characters after vowels may only be followed by other X characters.\n */\n\n\nfunction itItNameCheck(name) {\n // true at the first occurence of a vowel\n var vowelflag = false; // true at the first occurence of an X AFTER vowel\n // (to properly handle last names with X as consonant)\n\n var xflag = false;\n\n for (var i = 0; i < 3; i++) {\n if (!vowelflag && /[AEIOU]/.test(name[i])) {\n vowelflag = true;\n } else if (!xflag && vowelflag && name[i] === 'X') {\n xflag = true;\n } else if (i > 0) {\n if (vowelflag && !xflag) {\n if (!/[AEIOU]/.test(name[i])) {\n return false;\n }\n }\n\n if (xflag) {\n if (!/X/.test(name[i])) {\n return false;\n }\n }\n }\n }\n\n return true;\n}\n/*\n * it-IT validation function\n * (Codice fiscale (TIN-IT), persons only)\n * Verify name, birth date and codice catastale validity\n * and calculate check character.\n * Material not in DG-TAXUD document sourced from:\n * `https://en.wikipedia.org/wiki/Italian_fiscal_code`\n */\n\n\nfunction itItCheck(tin) {\n // Capitalize and split characters into an array for further processing\n var chars = tin.toUpperCase().split(''); // Check first and last name validity calling itItNameCheck()\n\n if (!itItNameCheck(chars.slice(0, 3))) {\n return false;\n }\n\n if (!itItNameCheck(chars.slice(3, 6))) {\n return false;\n } // Convert letters in number spaces back to numbers if any\n\n\n var number_locations = [6, 7, 9, 10, 12, 13, 14];\n var number_replace = {\n L: '0',\n M: '1',\n N: '2',\n P: '3',\n Q: '4',\n R: '5',\n S: '6',\n T: '7',\n U: '8',\n V: '9'\n };\n\n for (var _i4 = 0, _number_locations = number_locations; _i4 < _number_locations.length; _i4++) {\n var i = _number_locations[_i4];\n\n if (chars[i] in number_replace) {\n chars.splice(i, 1, number_replace[chars[i]]);\n }\n } // Extract month and day, and check date validity\n\n\n var month_replace = {\n A: '01',\n B: '02',\n C: '03',\n D: '04',\n E: '05',\n H: '06',\n L: '07',\n M: '08',\n P: '09',\n R: '10',\n S: '11',\n T: '12'\n };\n var month = month_replace[chars[8]];\n var day = parseInt(chars[9] + chars[10], 10);\n\n if (day > 40) {\n day -= 40;\n }\n\n if (day < 10) {\n day = \"0\".concat(day);\n }\n\n var date = \"\".concat(chars[6]).concat(chars[7], \"/\").concat(month, \"/\").concat(day);\n\n if (!(0, _isDate.default)(date, 'YY/MM/DD')) {\n return false;\n } // Calculate check character by adding up even and odd characters as numbers\n\n\n var checksum = 0;\n\n for (var _i5 = 1; _i5 < chars.length - 1; _i5 += 2) {\n var char_to_int = parseInt(chars[_i5], 10);\n\n if (isNaN(char_to_int)) {\n char_to_int = chars[_i5].charCodeAt(0) - 65;\n }\n\n checksum += char_to_int;\n }\n\n var odd_convert = {\n // Maps of characters at odd places\n A: 1,\n B: 0,\n C: 5,\n D: 7,\n E: 9,\n F: 13,\n G: 15,\n H: 17,\n I: 19,\n J: 21,\n K: 2,\n L: 4,\n M: 18,\n N: 20,\n O: 11,\n P: 3,\n Q: 6,\n R: 8,\n S: 12,\n T: 14,\n U: 16,\n V: 10,\n W: 22,\n X: 25,\n Y: 24,\n Z: 23,\n 0: 1,\n 1: 0\n };\n\n for (var _i6 = 0; _i6 < chars.length - 1; _i6 += 2) {\n var _char_to_int = 0;\n\n if (chars[_i6] in odd_convert) {\n _char_to_int = odd_convert[chars[_i6]];\n } else {\n var multiplier = parseInt(chars[_i6], 10);\n _char_to_int = 2 * multiplier + 1;\n\n if (multiplier > 4) {\n _char_to_int += 2;\n }\n }\n\n checksum += _char_to_int;\n }\n\n if (String.fromCharCode(65 + checksum % 26) !== chars[15]) {\n return false;\n }\n\n return true;\n}\n/*\n * lv-LV validation function\n * (Personas kods (PK), persons only)\n * Check validity of birth date and calculate check (last) digit\n * Support only for old format numbers (not starting with '32', issued before 2017/07/01)\n * Material not in DG TAXUD document sourced from:\n * `https://boot.ritakafija.lv/forums/index.php?/topic/88314-personas-koda-algoritms-%C4%8Deksumma/`\n */\n\n\nfunction lvLvCheck(tin) {\n tin = tin.replace(/\\W/, ''); // Extract date from TIN\n\n var day = tin.slice(0, 2);\n\n if (day !== '32') {\n // No date/checksum check if new format\n var month = tin.slice(2, 4);\n\n if (month !== '00') {\n // No date check if unknown month\n var full_year = tin.slice(4, 6);\n\n switch (tin[6]) {\n case '0':\n full_year = \"18\".concat(full_year);\n break;\n\n case '1':\n full_year = \"19\".concat(full_year);\n break;\n\n default:\n full_year = \"20\".concat(full_year);\n break;\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(tin.slice(2, 4), \"/\").concat(day);\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n }\n } // Calculate check digit\n\n\n var checksum = 1101;\n var multip_lookup = [1, 6, 3, 7, 9, 10, 5, 8, 4, 2];\n\n for (var i = 0; i < tin.length - 1; i++) {\n checksum -= parseInt(tin[i], 10) * multip_lookup[i];\n }\n\n return parseInt(tin[10], 10) === checksum % 11;\n }\n\n return true;\n}\n/*\n * mt-MT validation function\n * (Identity Card Number or Unique Taxpayer Reference, persons/entities)\n * Verify Identity Card Number structure (no other tests found)\n */\n\n\nfunction mtMtCheck(tin) {\n if (tin.length !== 9) {\n // No tests for UTR\n var chars = tin.toUpperCase().split(''); // Fill with zeros if smaller than proper\n\n while (chars.length < 8) {\n chars.unshift(0);\n } // Validate format according to last character\n\n\n switch (tin[7]) {\n case 'A':\n case 'P':\n if (parseInt(chars[6], 10) === 0) {\n return false;\n }\n\n break;\n\n default:\n {\n var first_part = parseInt(chars.join('').slice(0, 5), 10);\n\n if (first_part > 32000) {\n return false;\n }\n\n var second_part = parseInt(chars.join('').slice(5, 7), 10);\n\n if (first_part === second_part) {\n return false;\n }\n }\n }\n }\n\n return true;\n}\n/*\n * nl-NL validation function\n * (Burgerservicenummer (BSN) or Rechtspersonen Samenwerkingsverbanden Informatie Nummer (RSIN),\n * persons/entities respectively)\n * Verify TIN validity by calculating check (last) digit (variant of MOD 11)\n */\n\n\nfunction nlNlCheck(tin) {\n return algorithms.reverseMultiplyAndSum(tin.split('').slice(0, 8).map(function (a) {\n return parseInt(a, 10);\n }), 9) % 11 === parseInt(tin[8], 10);\n}\n/*\n * pl-PL validation function\n * (Powszechny Elektroniczny System Ewidencji Ludności (PESEL)\n * or Numer identyfikacji podatkowej (NIP), persons/entities)\n * Verify TIN validity by validating birth date (PESEL) and calculating check (last) digit\n */\n\n\nfunction plPlCheck(tin) {\n // NIP\n if (tin.length === 10) {\n // Calculate last digit by multiplying with lookup\n var lookup = [6, 5, 7, 2, 3, 4, 5, 6, 7];\n var _checksum = 0;\n\n for (var i = 0; i < lookup.length; i++) {\n _checksum += parseInt(tin[i], 10) * lookup[i];\n }\n\n _checksum %= 11;\n\n if (_checksum === 10) {\n return false;\n }\n\n return _checksum === parseInt(tin[9], 10);\n } // PESEL\n // Extract full year using month\n\n\n var full_year = tin.slice(0, 2);\n var month = parseInt(tin.slice(2, 4), 10);\n\n if (month > 80) {\n full_year = \"18\".concat(full_year);\n month -= 80;\n } else if (month > 60) {\n full_year = \"22\".concat(full_year);\n month -= 60;\n } else if (month > 40) {\n full_year = \"21\".concat(full_year);\n month -= 40;\n } else if (month > 20) {\n full_year = \"20\".concat(full_year);\n month -= 20;\n } else {\n full_year = \"19\".concat(full_year);\n } // Add leading zero to month if needed\n\n\n if (month < 10) {\n month = \"0\".concat(month);\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(month, \"/\").concat(tin.slice(4, 6));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Calculate last digit by mulitplying with odd one-digit numbers except 5\n\n\n var checksum = 0;\n var multiplier = 1;\n\n for (var _i7 = 0; _i7 < tin.length - 1; _i7++) {\n checksum += parseInt(tin[_i7], 10) * multiplier % 10;\n multiplier += 2;\n\n if (multiplier > 10) {\n multiplier = 1;\n } else if (multiplier === 5) {\n multiplier += 2;\n }\n }\n\n checksum = 10 - checksum % 10;\n return checksum === parseInt(tin[10], 10);\n}\n/*\n * pt-PT validation function\n * (Número de identificação fiscal (NIF), persons/entities)\n * Verify TIN validity by calculating check (last) digit (variant of MOD 11)\n */\n\n\nfunction ptPtCheck(tin) {\n var checksum = 11 - algorithms.reverseMultiplyAndSum(tin.split('').slice(0, 8).map(function (a) {\n return parseInt(a, 10);\n }), 9) % 11;\n\n if (checksum > 9) {\n return parseInt(tin[8], 10) === 0;\n }\n\n return checksum === parseInt(tin[8], 10);\n}\n/*\n * ro-RO validation function\n * (Cod Numeric Personal (CNP) or Cod de înregistrare fiscală (CIF),\n * persons only)\n * Verify CNP validity by calculating check (last) digit (test not found for CIF)\n * Material not in DG TAXUD document sourced from:\n * `https://en.wikipedia.org/wiki/National_identification_number#Romania`\n */\n\n\nfunction roRoCheck(tin) {\n if (tin.slice(0, 4) !== '9000') {\n // No test found for this format\n // Extract full year using century digit if possible\n var full_year = tin.slice(1, 3);\n\n switch (tin[0]) {\n case '1':\n case '2':\n full_year = \"19\".concat(full_year);\n break;\n\n case '3':\n case '4':\n full_year = \"18\".concat(full_year);\n break;\n\n case '5':\n case '6':\n full_year = \"20\".concat(full_year);\n break;\n\n default:\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(tin.slice(3, 5), \"/\").concat(tin.slice(5, 7));\n\n if (date.length === 8) {\n if (!(0, _isDate.default)(date, 'YY/MM/DD')) {\n return false;\n }\n } else if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n } // Calculate check digit\n\n\n var digits = tin.split('').map(function (a) {\n return parseInt(a, 10);\n });\n var multipliers = [2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9];\n var checksum = 0;\n\n for (var i = 0; i < multipliers.length; i++) {\n checksum += digits[i] * multipliers[i];\n }\n\n if (checksum % 11 === 10) {\n return digits[12] === 1;\n }\n\n return digits[12] === checksum % 11;\n }\n\n return true;\n}\n/*\n * sk-SK validation function\n * (Rodné číslo (RČ) or bezvýznamové identifikačné číslo (BIČ), persons only)\n * Checks validity of pre-1954 birth numbers (rodné číslo) only\n * Due to the introduction of the pseudo-random BIČ it is not possible to test\n * post-1954 birth numbers without knowing whether they are BIČ or RČ beforehand\n */\n\n\nfunction skSkCheck(tin) {\n if (tin.length === 9) {\n tin = tin.replace(/\\W/, '');\n\n if (tin.slice(6) === '000') {\n return false;\n } // Three-zero serial not assigned before 1954\n // Extract full year from TIN length\n\n\n var full_year = parseInt(tin.slice(0, 2), 10);\n\n if (full_year > 53) {\n return false;\n }\n\n if (full_year < 10) {\n full_year = \"190\".concat(full_year);\n } else {\n full_year = \"19\".concat(full_year);\n } // Extract month from TIN and normalize\n\n\n var month = parseInt(tin.slice(2, 4), 10);\n\n if (month > 50) {\n month -= 50;\n }\n\n if (month < 10) {\n month = \"0\".concat(month);\n } // Check date validity\n\n\n var date = \"\".concat(full_year, \"/\").concat(month, \"/\").concat(tin.slice(4, 6));\n\n if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n }\n }\n\n return true;\n}\n/*\n * sl-SI validation function\n * (Davčna številka, persons/entities)\n * Verify TIN validity by calculating check (last) digit (variant of MOD 11)\n */\n\n\nfunction slSiCheck(tin) {\n var checksum = 11 - algorithms.reverseMultiplyAndSum(tin.split('').slice(0, 7).map(function (a) {\n return parseInt(a, 10);\n }), 8) % 11;\n\n if (checksum === 10) {\n return parseInt(tin[7], 10) === 0;\n }\n\n return checksum === parseInt(tin[7], 10);\n}\n/*\n * sv-SE validation function\n * (Personnummer or samordningsnummer, persons only)\n * Checks validity of birth date and calls luhnCheck() to validate check (last) digit\n */\n\n\nfunction svSeCheck(tin) {\n // Make copy of TIN and normalize to two-digit year form\n var tin_copy = tin.slice(0);\n\n if (tin.length > 11) {\n tin_copy = tin_copy.slice(2);\n } // Extract date of birth\n\n\n var full_year = '';\n var month = tin_copy.slice(2, 4);\n var day = parseInt(tin_copy.slice(4, 6), 10);\n\n if (tin.length > 11) {\n full_year = tin.slice(0, 4);\n } else {\n full_year = tin.slice(0, 2);\n\n if (tin.length === 11 && day < 60) {\n // Extract full year from centenarian symbol\n // Should work just fine until year 10000 or so\n var current_year = new Date().getFullYear().toString();\n var current_century = parseInt(current_year.slice(0, 2), 10);\n current_year = parseInt(current_year, 10);\n\n if (tin[6] === '-') {\n if (parseInt(\"\".concat(current_century).concat(full_year), 10) > current_year) {\n full_year = \"\".concat(current_century - 1).concat(full_year);\n } else {\n full_year = \"\".concat(current_century).concat(full_year);\n }\n } else {\n full_year = \"\".concat(current_century - 1).concat(full_year);\n\n if (current_year - parseInt(full_year, 10) < 100) {\n return false;\n }\n }\n }\n } // Normalize day and check date validity\n\n\n if (day > 60) {\n day -= 60;\n }\n\n if (day < 10) {\n day = \"0\".concat(day);\n }\n\n var date = \"\".concat(full_year, \"/\").concat(month, \"/\").concat(day);\n\n if (date.length === 8) {\n if (!(0, _isDate.default)(date, 'YY/MM/DD')) {\n return false;\n }\n } else if (!(0, _isDate.default)(date, 'YYYY/MM/DD')) {\n return false;\n }\n\n return algorithms.luhnCheck(tin.replace(/\\W/, ''));\n} // Locale lookup objects\n\n/*\n * Tax id regex formats for various locales\n *\n * Where not explicitly specified in DG-TAXUD document both\n * uppercase and lowercase letters are acceptable.\n */\n\n\nvar taxIdFormat = {\n 'bg-BG': /^\\d{10}$/,\n 'cs-CZ': /^\\d{6}\\/{0,1}\\d{3,4}$/,\n 'de-AT': /^\\d{9}$/,\n 'de-DE': /^[1-9]\\d{10}$/,\n 'dk-DK': /^\\d{6}-{0,1}\\d{4}$/,\n 'el-CY': /^[09]\\d{7}[A-Z]$/,\n 'el-GR': /^([0-4]|[7-9])\\d{8}$/,\n 'en-GB': /^\\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\\d{6}[ABCD ]$/i,\n 'en-IE': /^\\d{7}[A-W][A-IW]{0,1}$/i,\n 'en-US': /^\\d{2}[- ]{0,1}\\d{7}$/,\n 'es-ES': /^(\\d{0,8}|[XYZKLM]\\d{7})[A-HJ-NP-TV-Z]$/i,\n 'et-EE': /^[1-6]\\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\\d$/,\n 'fi-FI': /^\\d{6}[-+A]\\d{3}[0-9A-FHJ-NPR-Y]$/i,\n 'fr-BE': /^\\d{11}$/,\n 'fr-FR': /^[0-3]\\d{12}$|^[0-3]\\d\\s\\d{2}(\\s\\d{3}){3}$/,\n // Conforms both to official spec and provided example\n 'fr-LU': /^\\d{13}$/,\n 'hr-HR': /^\\d{11}$/,\n 'hu-HU': /^8\\d{9}$/,\n 'it-IT': /^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,\n 'lv-LV': /^\\d{6}-{0,1}\\d{5}$/,\n // Conforms both to DG TAXUD spec and original research\n 'mt-MT': /^\\d{3,7}[APMGLHBZ]$|^([1-8])\\1\\d{7}$/i,\n 'nl-NL': /^\\d{9}$/,\n 'pl-PL': /^\\d{10,11}$/,\n 'pt-PT': /^\\d{9}$/,\n 'ro-RO': /^\\d{13}$/,\n 'sk-SK': /^\\d{6}\\/{0,1}\\d{3,4}$/,\n 'sl-SI': /^[1-9]\\d{7}$/,\n 'sv-SE': /^(\\d{6}[-+]{0,1}\\d{4}|(18|19|20)\\d{6}[-+]{0,1}\\d{4})$/\n}; // taxIdFormat locale aliases\n\ntaxIdFormat['lb-LU'] = taxIdFormat['fr-LU'];\ntaxIdFormat['lt-LT'] = taxIdFormat['et-EE'];\ntaxIdFormat['nl-BE'] = taxIdFormat['fr-BE']; // Algorithmic tax id check functions for various locales\n\nvar taxIdCheck = {\n 'bg-BG': bgBgCheck,\n 'cs-CZ': csCzCheck,\n 'de-AT': deAtCheck,\n 'de-DE': deDeCheck,\n 'dk-DK': dkDkCheck,\n 'el-CY': elCyCheck,\n 'el-GR': elGrCheck,\n 'en-IE': enIeCheck,\n 'en-US': enUsCheck,\n 'es-ES': esEsCheck,\n 'et-EE': etEeCheck,\n 'fi-FI': fiFiCheck,\n 'fr-BE': frBeCheck,\n 'fr-FR': frFrCheck,\n 'fr-LU': frLuCheck,\n 'hr-HR': hrHrCheck,\n 'hu-HU': huHuCheck,\n 'it-IT': itItCheck,\n 'lv-LV': lvLvCheck,\n 'mt-MT': mtMtCheck,\n 'nl-NL': nlNlCheck,\n 'pl-PL': plPlCheck,\n 'pt-PT': ptPtCheck,\n 'ro-RO': roRoCheck,\n 'sk-SK': skSkCheck,\n 'sl-SI': slSiCheck,\n 'sv-SE': svSeCheck\n}; // taxIdCheck locale aliases\n\ntaxIdCheck['lb-LU'] = taxIdCheck['fr-LU'];\ntaxIdCheck['lt-LT'] = taxIdCheck['et-EE'];\ntaxIdCheck['nl-BE'] = taxIdCheck['fr-BE']; // Regexes for locales where characters should be omitted before checking format\n\nvar allsymbols = /[-\\\\\\/!@#$%\\^&\\*\\(\\)\\+\\=\\[\\]]+/g;\nvar sanitizeRegexes = {\n 'de-AT': allsymbols,\n 'de-DE': /[\\/\\\\]/g,\n 'fr-BE': allsymbols\n}; // sanitizeRegexes locale aliases\n\nsanitizeRegexes['nl-BE'] = sanitizeRegexes['fr-BE'];\n/*\n * Validator function\n * Return true if the passed string is a valid tax identification number\n * for the specified locale.\n * Throw an error exception if the locale is not supported.\n */\n\nfunction isTaxID(str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n (0, _assertString.default)(str); // Copy TIN to avoid replacement if sanitized\n\n var strcopy = str.slice(0);\n\n if (locale in taxIdFormat) {\n if (locale in sanitizeRegexes) {\n strcopy = strcopy.replace(sanitizeRegexes[locale], '');\n }\n\n if (!taxIdFormat[locale].test(strcopy)) {\n return false;\n }\n\n if (locale in taxIdCheck) {\n return taxIdCheck[locale](strcopy);\n } // Fallthrough; not all locales have algorithmic checks\n\n\n return true;\n }\n\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isURL;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _isFQDN = _interopRequireDefault(require(\"./isFQDN\"));\n\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\noptions for isURL method\n\nrequire_protocol - if set as true isURL will return false if protocol is not present in the URL\nrequire_valid_protocol - isURL will check if the URL's protocol is present in the protocols option\nprotocols - valid protocols can be modified with this option\nrequire_host - if set as false isURL will not check if host is present in the URL\nrequire_port - if set as true isURL will check if port is present in the URL\nallow_protocol_relative_urls - if set as true protocol relative URLs will be allowed\nvalidate_length - if set as false isURL will skip string length validation (IE maximum is 2083)\n\n*/\nvar default_url_options = {\n protocols: ['http', 'https', 'ftp'],\n require_tld: true,\n require_protocol: false,\n require_host: true,\n require_port: false,\n require_valid_protocol: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_protocol_relative_urls: false,\n validate_length: true\n};\nvar wrapped_ipv6 = /^\\[([^\\]]+)\\](?::([0-9]+))?$/;\n\nfunction isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n}\n\nfunction checkHost(host, matches) {\n for (var i = 0; i < matches.length; i++) {\n var match = matches[i];\n\n if (host === match || isRegExp(match) && match.test(host)) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction isURL(url, options) {\n (0, _assertString.default)(url);\n\n if (!url || /[\\s<>]/.test(url)) {\n return false;\n }\n\n if (url.indexOf('mailto:') === 0) {\n return false;\n }\n\n options = (0, _merge.default)(options, default_url_options);\n\n if (options.validate_length && url.length >= 2083) {\n return false;\n }\n\n var protocol, auth, host, hostname, port, port_str, split, ipv6;\n split = url.split('#');\n url = split.shift();\n split = url.split('?');\n url = split.shift();\n split = url.split('://');\n\n if (split.length > 1) {\n protocol = split.shift().toLowerCase();\n\n if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\n return false;\n }\n } else if (options.require_protocol) {\n return false;\n } else if (url.substr(0, 2) === '//') {\n if (!options.allow_protocol_relative_urls) {\n return false;\n }\n\n split[0] = url.substr(2);\n }\n\n url = split.join('://');\n\n if (url === '') {\n return false;\n }\n\n split = url.split('/');\n url = split.shift();\n\n if (url === '' && !options.require_host) {\n return true;\n }\n\n split = url.split('@');\n\n if (split.length > 1) {\n if (options.disallow_auth) {\n return false;\n }\n\n auth = split.shift();\n\n if (auth.indexOf(':') === -1 || auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\n return false;\n }\n }\n\n hostname = split.join('@');\n port_str = null;\n ipv6 = null;\n var ipv6_match = hostname.match(wrapped_ipv6);\n\n if (ipv6_match) {\n host = '';\n ipv6 = ipv6_match[1];\n port_str = ipv6_match[2] || null;\n } else {\n split = hostname.split(':');\n host = split.shift();\n\n if (split.length) {\n port_str = split.join(':');\n }\n }\n\n if (port_str !== null) {\n port = parseInt(port_str, 10);\n\n if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\n return false;\n }\n } else if (options.require_port) {\n return false;\n }\n\n if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {\n return false;\n }\n\n host = host || ipv6;\n\n if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {\n return false;\n }\n\n if (options.host_blacklist && checkHost(host, options.host_blacklist)) {\n return false;\n }\n\n return true;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isUUID;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar uuid = {\n 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i\n};\n\nfunction isUUID(str) {\n var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all';\n (0, _assertString.default)(str);\n var pattern = uuid[version];\n return pattern && pattern.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isUppercase;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isUppercase(str) {\n (0, _assertString.default)(str);\n return str === str.toUpperCase();\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isVAT;\nexports.vatMatchers = void 0;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar vatMatchers = {\n GB: /^GB((\\d{3} \\d{4} ([0-8][0-9]|9[0-6]))|(\\d{9} \\d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/\n};\nexports.vatMatchers = vatMatchers;\n\nfunction isVAT(str, countryCode) {\n (0, _assertString.default)(str);\n (0, _assertString.default)(countryCode);\n\n if (countryCode in vatMatchers) {\n return vatMatchers[countryCode].test(str);\n }\n\n throw new Error(\"Invalid country code: '\".concat(countryCode, \"'\"));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isVariableWidth;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _isFullWidth = require(\"./isFullWidth\");\n\nvar _isHalfWidth = require(\"./isHalfWidth\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isVariableWidth(str) {\n (0, _assertString.default)(str);\n return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isWhitelisted;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isWhitelisted(str, chars) {\n (0, _assertString.default)(str);\n\n for (var i = str.length - 1; i >= 0; i--) {\n if (chars.indexOf(str[i]) === -1) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = ltrim;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction ltrim(str, chars) {\n (0, _assertString.default)(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\n\n var pattern = chars ? new RegExp(\"^[\".concat(chars.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'), \"]+\"), 'g') : /^\\s+/g;\n return str.replace(pattern, '');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = matches;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction matches(str, pattern, modifiers) {\n (0, _assertString.default)(str);\n\n if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {\n pattern = new RegExp(pattern, modifiers);\n }\n\n return pattern.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = normalizeEmail;\n\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar default_normalize_email_options = {\n // The following options apply to all email addresses\n // Lowercases the local part of the email address.\n // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024).\n // The domain is always lowercased, as per RFC 1035\n all_lowercase: true,\n // The following conversions are specific to GMail\n // Lowercases the local part of the GMail address (known to be case-insensitive)\n gmail_lowercase: true,\n // Removes dots from the local part of the email address, as that's ignored by GMail\n gmail_remove_dots: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n gmail_remove_subaddress: true,\n // Conversts the googlemail.com domain to gmail.com\n gmail_convert_googlemaildotcom: true,\n // The following conversions are specific to Outlook.com / Windows Live / Hotmail\n // Lowercases the local part of the Outlook.com address (known to be case-insensitive)\n outlookdotcom_lowercase: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n outlookdotcom_remove_subaddress: true,\n // The following conversions are specific to Yahoo\n // Lowercases the local part of the Yahoo address (known to be case-insensitive)\n yahoo_lowercase: true,\n // Removes the subaddress (e.g. \"-foo\") from the email address\n yahoo_remove_subaddress: true,\n // The following conversions are specific to Yandex\n // Lowercases the local part of the Yandex address (known to be case-insensitive)\n yandex_lowercase: true,\n // The following conversions are specific to iCloud\n // Lowercases the local part of the iCloud address (known to be case-insensitive)\n icloud_lowercase: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n icloud_remove_subaddress: true\n}; // List of domains used by iCloud\n\nvar icloud_domains = ['icloud.com', 'me.com']; // List of domains used by Outlook.com and its predecessors\n// This list is likely incomplete.\n// Partial reference:\n// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/\n\nvar outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com']; // List of domains used by Yahoo Mail\n// This list is likely incomplete\n\nvar yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com']; // List of domains used by yandex.ru\n\nvar yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru']; // replace single dots, but not multiple consecutive dots\n\nfunction dotsReplacer(match) {\n if (match.length > 1) {\n return match;\n }\n\n return '';\n}\n\nfunction normalizeEmail(email, options) {\n options = (0, _merge.default)(options, default_normalize_email_options);\n var raw_parts = email.split('@');\n var domain = raw_parts.pop();\n var user = raw_parts.join('@');\n var parts = [user, domain]; // The domain is always lowercased, as it's case-insensitive per RFC 1035\n\n parts[1] = parts[1].toLowerCase();\n\n if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') {\n // Address is GMail\n if (options.gmail_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n\n if (options.gmail_remove_dots) {\n // this does not replace consecutive dots like example..email@gmail.com\n parts[0] = parts[0].replace(/\\.+/g, dotsReplacer);\n }\n\n if (!parts[0].length) {\n return false;\n }\n\n if (options.all_lowercase || options.gmail_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n\n parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1];\n } else if (icloud_domains.indexOf(parts[1]) >= 0) {\n // Address is iCloud\n if (options.icloud_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n\n if (!parts[0].length) {\n return false;\n }\n\n if (options.all_lowercase || options.icloud_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) {\n // Address is Outlook.com\n if (options.outlookdotcom_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n\n if (!parts[0].length) {\n return false;\n }\n\n if (options.all_lowercase || options.outlookdotcom_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (yahoo_domains.indexOf(parts[1]) >= 0) {\n // Address is Yahoo\n if (options.yahoo_remove_subaddress) {\n var components = parts[0].split('-');\n parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0];\n }\n\n if (!parts[0].length) {\n return false;\n }\n\n if (options.all_lowercase || options.yahoo_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (yandex_domains.indexOf(parts[1]) >= 0) {\n if (options.all_lowercase || options.yandex_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n\n parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preferred\n } else if (options.all_lowercase) {\n // Any other address\n parts[0] = parts[0].toLowerCase();\n }\n\n return parts.join('@');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = rtrim;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction rtrim(str, chars) {\n (0, _assertString.default)(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\n\n var pattern = chars ? new RegExp(\"[\".concat(chars.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'), \"]+$\"), 'g') : /\\s+$/g;\n return str.replace(pattern, '');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = stripLow;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nvar _blacklist = _interopRequireDefault(require(\"./blacklist\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction stripLow(str, keep_new_lines) {\n (0, _assertString.default)(str);\n var chars = keep_new_lines ? '\\\\x00-\\\\x09\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F' : '\\\\x00-\\\\x1F\\\\x7F';\n return (0, _blacklist.default)(str, chars);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toBoolean;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction toBoolean(str, strict) {\n (0, _assertString.default)(str);\n\n if (strict) {\n return str === '1' || /^true$/i.test(str);\n }\n\n return str !== '0' && !/^false$/i.test(str) && str !== '';\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toDate;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction toDate(date) {\n (0, _assertString.default)(date);\n date = Date.parse(date);\n return !isNaN(date) ? new Date(date) : null;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toFloat;\n\nvar _isFloat = _interopRequireDefault(require(\"./isFloat\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction toFloat(str) {\n if (!(0, _isFloat.default)(str)) return NaN;\n return parseFloat(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toInt;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction toInt(str, radix) {\n (0, _assertString.default)(str);\n return parseInt(str, radix || 10);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = trim;\n\nvar _rtrim = _interopRequireDefault(require(\"./rtrim\"));\n\nvar _ltrim = _interopRequireDefault(require(\"./ltrim\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction trim(str, chars) {\n return (0, _rtrim.default)((0, _ltrim.default)(str, chars), chars);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = unescape;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction unescape(str) {\n (0, _assertString.default)(str);\n return str.replace(/&amp;/g, '&').replace(/&quot;/g, '\"').replace(/&#x27;/g, \"'\").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#x5C;/g, '\\\\').replace(/&#96;/g, '`');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.iso7064Check = iso7064Check;\nexports.luhnCheck = luhnCheck;\nexports.reverseMultiplyAndSum = reverseMultiplyAndSum;\nexports.verhoeffCheck = verhoeffCheck;\n\n/**\n * Algorithmic validation functions\n * May be used as is or implemented in the workflow of other validators.\n */\n\n/*\n * ISO 7064 validation function\n * Called with a string of numbers (incl. check digit)\n * to validate according to ISO 7064 (MOD 11, 10).\n */\nfunction iso7064Check(str) {\n var checkvalue = 10;\n\n for (var i = 0; i < str.length - 1; i++) {\n checkvalue = (parseInt(str[i], 10) + checkvalue) % 10 === 0 ? 10 * 2 % 11 : (parseInt(str[i], 10) + checkvalue) % 10 * 2 % 11;\n }\n\n checkvalue = checkvalue === 1 ? 0 : 11 - checkvalue;\n return checkvalue === parseInt(str[10], 10);\n}\n/*\n * Luhn (mod 10) validation function\n * Called with a string of numbers (incl. check digit)\n * to validate according to the Luhn algorithm.\n */\n\n\nfunction luhnCheck(str) {\n var checksum = 0;\n var second = false;\n\n for (var i = str.length - 1; i >= 0; i--) {\n if (second) {\n var product = parseInt(str[i], 10) * 2;\n\n if (product > 9) {\n // sum digits of product and add to checksum\n checksum += product.toString().split('').map(function (a) {\n return parseInt(a, 10);\n }).reduce(function (a, b) {\n return a + b;\n }, 0);\n } else {\n checksum += product;\n }\n } else {\n checksum += parseInt(str[i], 10);\n }\n\n second = !second;\n }\n\n return checksum % 10 === 0;\n}\n/*\n * Reverse TIN multiplication and summation helper function\n * Called with an array of single-digit integers and a base multiplier\n * to calculate the sum of the digits multiplied in reverse.\n * Normally used in variations of MOD 11 algorithmic checks.\n */\n\n\nfunction reverseMultiplyAndSum(digits, base) {\n var total = 0;\n\n for (var i = 0; i < digits.length; i++) {\n total += digits[i] * (base - i);\n }\n\n return total;\n}\n/*\n * Verhoeff validation helper function\n * Called with a string of numbers\n * to validate according to the Verhoeff algorithm.\n */\n\n\nfunction verhoeffCheck(str) {\n var d_table = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]];\n var p_table = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]]; // Copy (to prevent replacement) and reverse\n\n var str_copy = str.split('').reverse().join('');\n var checksum = 0;\n\n for (var i = 0; i < str_copy.length; i++) {\n checksum = d_table[checksum][p_table[i % 8][parseInt(str_copy[i], 10)]];\n }\n\n return checksum === 0;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = assertString;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction assertString(input) {\n var isString = typeof input === 'string' || input instanceof String;\n\n if (!isString) {\n var invalidType = _typeof(input);\n\n if (input === null) invalidType = 'null';else if (invalidType === 'object') invalidType = input.constructor.name;\n throw new TypeError(\"Expected a string but received a \".concat(invalidType));\n }\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar includes = function includes(arr, val) {\n return arr.some(function (arrVal) {\n return val === arrVal;\n });\n};\n\nvar _default = includes;\nexports.default = _default;\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = merge;\n\nfunction merge() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaults = arguments.length > 1 ? arguments[1] : undefined;\n\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n\n return obj;\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = multilineRegexp;\n\n/**\n * Build RegExp object from an array\n * of multiple/multi-line regexp parts\n *\n * @param {string[]} parts\n * @param {string} flags\n * @return {object} - RegExp object\n */\nfunction multilineRegexp(parts, flags) {\n var regexpAsStringLiteral = parts.join('');\n return new RegExp(regexpAsStringLiteral, flags);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toString;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction toString(input) {\n if (_typeof(input) === 'object' && input !== null) {\n if (typeof input.toString === 'function') {\n input = input.toString();\n } else {\n input = '[object Object]';\n }\n } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) {\n input = '';\n }\n\n return String(input);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = whitelist;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction whitelist(str, chars) {\n (0, _assertString.default)(str);\n return str.replace(new RegExp(\"[^\".concat(chars, \"]+\"), 'g'), '');\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","var uppercamelcase = require('uppercamelcase');\nvar statusCodes = require('builtin-status-codes');\n\nmodule.exports = WPError;\n\nfunction WPError () {\n var self = new Error();\n\n for (var i = 0; i < arguments.length; i++) {\n process(self, arguments[i]);\n }\n\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(self, WPError);\n }\n\n return self;\n}\n\nfunction process ( self, data ) {\n if ( ! data ) { \n return;\n }\n \n if (typeof data === 'number') {\n setStatusCode( self, data );\n\n } else {\n // assume it's a plain 'ol Object with some props to copy over\n if ( data.status_code ) {\n setStatusCode( self, data.status_code );\n }\n\n if ( data.error ) {\n self.name = toName( data.error );\n }\n\n if ( data.error_description ) {\n self.message = data.error_description;\n }\n\n var errors = data.errors;\n if ( errors ) {\n var first = errors.length ? errors[0] : errors;\n process( self, first );\n }\n\n for ( var i in data ) {\n self[i] = data[i];\n }\n\n if ( self.status && ( data.method || data.path ) ) {\n setStatusCodeMessage( self );\n }\n }\n}\n\nfunction setStatusCode ( self, code ) {\n self.name = toName( statusCodes[ code ] );\n self.status = self.statusCode = code;\n setStatusCodeMessage( self );\n}\n\nfunction setStatusCodeMessage ( self ) {\n var code = self.status;\n var method = self.method;\n var path = self.path;\n\n var m = code + ' status code';\n var extended = method || path;\n\n if ( extended ) m += ' for \"';\n if ( method ) m += method;\n if ( extended ) m += ' ';\n if ( path ) m += path;\n if ( extended ) m += '\"';\n\n self.message = m;\n}\n\nfunction toName ( str ) {\n return uppercamelcase( String(str).replace(/error$/i, ''), 'error' );\n}\n","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"dataControls\"];","module.exports = window[\"wp\"][\"deprecated\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["compile","expression","terms","variables","OPERATORS","a","b","c","evaluate","postfix","i","j","args","getOperatorResult","term","value","stack","length","Array","pop","apply","earlyReturn","hasOwnProperty","push","pluralForms","n","PRECEDENCE","OPENERS","TERMINATORS","PATTERN","match","operator","element","substr","index","trim","indexOf","concat","reverse","sprintf","string","isArray","arguments","replace","name","precision","type","undefined","parseFloat","parseInt","toFixed","module","exports","GetIntrinsic","callBind","$indexOf","allowMissing","intrinsic","bind","$apply","$call","$reflectApply","call","$gOPD","$defineProperty","$max","e","originalFunction","func","desc","configurable","applyBind","s","m","h","d","w","y","plural","ms","msAbs","isPlural","Math","round","val","options","str","String","exec","toLowerCase","parse","isFinite","long","abs","fmtLong","fmtShort","Error","JSON","stringify","ReflectOwnKeys","R","Reflect","ReflectApply","target","receiver","Function","prototype","ownKeys","Object","getOwnPropertySymbols","getOwnPropertyNames","NumberIsNaN","Number","isNaN","EventEmitter","init","this","once","emitter","Promise","resolve","reject","errorListener","err","removeListener","resolver","slice","eventTargetAgnosticAddListener","handler","flags","on","addErrorHandlerIfEventEmitter","_events","_eventsCount","_maxListeners","defaultMaxListeners","checkListener","listener","TypeError","_getMaxListeners","that","_addListener","prepend","events","existing","warning","create","newListener","emit","unshift","warned","count","console","warn","onceWrapper","fired","wrapFn","_onceWrap","state","wrapped","_listeners","unwrap","evlistener","arr","ret","unwrapListeners","arrayClone","listenerCount","copy","addEventListener","wrapListener","arg","removeEventListener","defineProperty","enumerable","get","set","RangeError","getPrototypeOf","setMaxListeners","getMaxListeners","doError","error","er","message","context","len","listeners","addListener","prependListener","prependOnceListener","list","position","originalListener","shift","spliceOne","off","removeAllListeners","key","keys","rawListeners","eventNames","data","opts","cmp","f","cycles","node","aobj","bobj","seen","toJSON","out","seenIndex","sort","splice","ERROR_MESSAGE","toStr","toString","funcType","bound","binder","result","boundLength","max","boundArgs","join","Empty","implementation","$SyntaxError","SyntaxError","$Function","$TypeError","getEvalledConstructor","expressionSyntax","getOwnPropertyDescriptor","throwTypeError","ThrowTypeError","calleeThrows","gOPDthrows","hasSymbols","getProto","x","__proto__","needsEval","TypedArray","Uint8Array","INTRINSICS","AggregateError","ArrayBuffer","Symbol","iterator","Atomics","BigInt","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","eval","EvalError","Float32Array","Float64Array","FinalizationRegistry","Int8Array","Int16Array","Int32Array","Map","Proxy","ReferenceError","RegExp","Set","SharedArrayBuffer","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakRef","WeakSet","doEval","fn","gen","LEGACY_ALIASES","hasOwn","$concat","$spliceApply","$replace","$strSlice","rePropName","reEscapeChar","stringToPath","first","last","number","quote","subString","getBaseIntrinsic","alias","intrinsicName","parts","intrinsicBaseName","intrinsicRealName","skipFurtherCaching","isOwn","part","origSymbol","hasSymbolSham","obj","sym","symObj","syms","propertyIsEnumerable","descriptor","utils","assert","BlockHash","pending","pendingTotal","blockSize","constructor","outSize","hmacStrength","padLength","endian","_delta8","_delta32","update","msg","enc","toArray","r","join32","_update","digest","_pad","_digest","bytes","k","res","t","common","shaCommon","rotl32","sum32","sum32_5","ft_1","sha1_K","SHA1","W","inherits","start","toHex32","split32","rotr32","ch32","z","maj32","p32","s0_256","s1_256","g0_256","g1_256","isSurrogatePair","charCodeAt","htonl","zero2","word","zero8","p","toHex","end","sum32_3","sum32_4","sum64","buf","pos","ah","al","bh","lo","hi","sum64_hi","bl","sum64_lo","sum64_4_hi","ch","cl","dh","dl","carry","sum64_4_lo","sum64_5_hi","eh","el","sum64_5_lo","rotr64_hi","num","rotr64_lo","shr64_hi","shr64_lo","ctor","superCtor","super_","writable","TempCtor","LRU","cache","head","tail","maxAge","clear","remove","_unlink","prev","next","peek","_checkAge","modified","now","evict","equal","l","hasMap","mapSizeDescriptor","mapSize","mapForEach","forEach","hasSet","setSizeDescriptor","setSize","setForEach","weakMapHas","has","weakSetHas","weakRefDeref","deref","booleanValueOf","valueOf","objectToString","functionToString","bigIntValueOf","gOPS","symToString","hasShammedSymbols","isEnumerable","gPO","O","inspectCustom","inspectSymbol","isSymbol","toStringTag","wrapQuotes","defaultStyle","quoteChar","quoteStyle","inspect_","depth","maxStringLength","Infinity","customInspect","indent","inspectString","maxDepth","baseIndent","base","getIndent","inspect","from","noIndent","newOpts","nameOf","arrObjKeys","symString","markBoxed","HTMLElement","nodeName","getAttribute","isElement","attrs","attributes","childNodes","xs","singleLineValues","indentedJoin","isError","isMap","mapParts","collectionOf","isSet","setParts","isWeakMap","weakCollectionOf","isWeakSet","isWeakRef","isNumber","isBigInt","isBoolean","isString","isDate","isRegExp","ys","isPlainObject","protoTag","stringTag","tag","remaining","trailer","lowbyte","toUpperCase","size","entries","lineJoiner","isArr","symMap","test","NativeProgressEvent","ProgressEvent","useNative","document","createEvent","props","initEvent","lengthComputable","loaded","total","createEventObject","percentTwenties","Format","formatters","RFC1738","RFC3986","formats","defaults","allowDots","allowPrototypes","allowSparse","arrayLimit","charset","charsetSentinel","comma","decoder","decode","delimiter","ignoreQueryPrefix","interpretNumericEntities","parameterLimit","parseArrays","plainObjects","strictNullHandling","$0","numberStr","fromCharCode","parseArrayValue","split","parseKeys","givenKey","valuesParsed","child","segment","parent","chain","leaf","root","cleanRoot","charAt","parseObject","normalizeParseOptions","tempObj","cleanStr","limit","skipIndex","bracketEqualsPos","maybeMap","encodedVal","combine","parseValues","newObj","merge","compact","getSideChannel","arrayPrefixGenerators","brackets","prefix","indices","repeat","pushToArray","valueOrArray","toISO","toISOString","defaultFormat","addQueryPrefix","encode","encoder","encodeValuesOnly","format","formatter","serializeDate","date","skipNulls","sentinel","object","generateArrayPrefix","filter","sideChannel","v","tmpSc","step","findFlag","isBuffer","keyValue","valuesArray","valuesJoined","objKeys","values","keyPrefix","valueSideChannel","normalizeStringifyOptions","arrayFormat","joined","hexTable","array","arrayToObject","source","assign","reduce","acc","queue","o","prop","refs","item","compacted","compactQueue","strWithoutPlus","unescape","defaultEncoder","kind","escape","mapped","mergeTarget","targetItem","callBound","$WeakMap","$Map","$weakMapGet","$weakMapSet","$weakMapHas","$mapGet","$mapSet","$mapHas","listGetNode","curr","$wm","$m","$o","channel","objects","listGet","listHas","listSet","DEFAULT_OPTIONS","contextDelimiter","onMissingKey","Tannin","getPluralForm","domain","config","pf","plural_forms","getPluralExpression","dcnpgettext","singular","entry","DomainSuggestions","Launch","Plans","Site","client_id","client_secret","WPCOMFeatures","receiveCategories","categories","fetchDomainSuggestions","timeStamp","receiveDomainAvailability","domainName","availability","receiveDomainSuggestionsSuccess","queryObject","suggestions","receiveDomainSuggestionsError","errorMessage","STORE_KEY","DataStatus","isRegistered","register","registerStore","actions","controls","reducer","resolvers","selectors","initialDomainSuggestionState","lastUpdated","pendingSince","combineReducers","action","domainSuggestions","stringifyDomainQueryObject","isAvailable","url","getAvailabilityURL","body","fetchAndParse","domain_name","mappable","status","supports_privacy","getCategories","__internalGetDomainSuggestions","query","wpcomRequest","apiVersion","path","translate","validator","some","suggestionsLackThisFQDN","unavailableSuggestion","unavailable","cost","raw_price","currency_code","processedSuggestions","map","suggestion","getFormattedPrice","tier","title","localeCompare","getDomainSuggestions","_state","search","normalizedQuery","normalizeDomainSuggestionQuery","select","getDomainState","getDomainErrorMessage","isLoadingDomainSuggestions","isResolving","getDomainAvailabilities","deterministicStringify","price","currencyCode","formatCurrency","stripZeros","queryOptions","include_wordpressdotcom","only_wordpressdotcom","include_dotblogsubdomain","quantity","vendor","toLocaleLowerCase","setSidebarFullscreen","unsetSidebarFullscreen","setStep","setSiteTitle","setDomain","unsetDomain","confirmDomainSelection","setDomainSearch","domainSearch","setPlanProductId","planProductId","PLANS_STORE","isPlanProductFree","planProduct","getPlanProductById","billingPeriod","__internalSetBillingPeriod","unsetPlanProductId","updatePlan","openSidebar","closeSidebar","openFocusedLaunch","closeFocusedLaunch","enableAnchorFm","showSiteTitleStep","setModalDismissible","unsetModalDismissible","showModalTitle","hideModalTitle","enablePersistentSuccessView","disablePersistentSuccessView","LaunchStep","Name","Domain","Plan","Final","LaunchSequence","use","plugins","persistOptions","persist","persistenceConfigFactory","siteTitle","confirmedDomainSelection","planBillingPeriod","isSidebarOpen","isSidebarFullscreen","isAnchorFm","isFocusedLaunchOpen","isSiteTitleStepVisible","isModalDismissible","isModalTitleVisible","getLaunchSequence","getLaunchStep","getState","hasPaidDomain","is_free","getSelectedDomain","getSelectedPlanProductId","getLastPlanBillingPeriod","isSelectedPlanPaid","hasSelectedDomainOrSubdomain","isStepCompleted","site","getEntityRecord","LAUNCH_STORE","isFlowCompleted","every","isFlowStarted","getFirstIncompleteStep","getSiteTitle","getCurrentStep","getDomainSearch","createPersistenceConfig","storageKey","STORAGE_KEY","STORAGE_TS_KEY","objStore","objStorage","getItem","setItem","removeItem","storageHandler","window","localStorage","localStorageSupport","storage","timestamp","timestampStr","isNotExpired","URLSearchParams","location","setFeatures","features","locale","setFeaturesByType","featuresByType","setPlans","plans","setPlanProducts","products","resetPlan","FREE_PLAN_PRODUCT_ID","TIMELESS_PLAN_FREE","TIMELESS_PLAN_PERSONAL","TIMELESS_PLAN_PREMIUM","TIMELESS_PLAN_BUSINESS","TIMELESS_PLAN_ECOMMERCE","plansSlugs","plansOrder","DEFAULT_PAID_PLAN","annualSlugs","monthlySlugs","plansProductSlugs","FEATURE_IDS_THAT_REQUIRE_ANNUALLY_BILLED_PLAN","planProducts","getAnnualPrice","plan","processFeatures","feature","id","description","requiresAnnuallyBilledPlan","featureRequiresAnnual","featureName","allFeaturesData","matchedFeatureId","find","featureId","processPlanFeatures","planData","highlighted_features","normalizePlanProducts","pricedPlans","periodAgnosticPlans","plansProducts","slug","pricedPlan","product_slug","periodAgnosticPlan","productIds","product_id","productId","bill_period","periodAgnosticSlug","storeSlug","rawPrice","pathSlug","path_slug","annualPrice","annualPlan","monthlyPlan","annualCostIfPaidMonthly","annualCostIfPaidAnnually","discount","annualDiscount","calculateDiscounts","getSupportedPlans","plansFeatures","mode","credentials","planSlug","nonlocalized_short_name","tagline","short_name","featuresSlugs","slugs","isFree","isPopular","plan_id","features_by_type","getFeatures","getFeaturesByType","getPlanByProductId","getPlansProducts","product","getPlanByPeriodAgnosticSlug","getDefaultPaidPlan","_","getDefaultFreePlan","_locale","getPrices","deprecate","alternative","prices","getPlanByPath","getPlanProduct","matchesSlug","matchesBillingPeriod","isPlanEcommerce","isPlanFree","createActions","clientCreds","fetchNewSite","receiveNewSite","response","receiveNewSiteFailed","receiveSiteTitle","siteId","receiveSiteTagline","receiveSiteVerticalId","verticalId","launchSiteStart","launchSiteSuccess","launchSiteFailure","updateSiteSettings","settings","receiveSiteGlobalStyles","globalStyles","saveSiteSettings","method","blogname","blogdescription","site_vertical_id","atomicTransferStart","softwareSet","atomicTransferSuccess","atomicTransferFailure","latestAtomicTransferStart","latestAtomicTransferSuccess","transfer","latestAtomicTransferFailure","atomicSoftwareStatusStart","atomicSoftwareStatusSuccess","atomicSoftwareStatusFailure","atomicSoftwareInstallStart","atomicSoftwareInstallSuccess","atomicSoftwareInstallFailure","receiveSiteDomains","domains","receiveSiteSettings","saveSiteTitle","setIntentOnSite","siteSlug","intent","apiNamespace","site_intent","setStaticHomepageOnSite","siteID","pageId","is_page_on_front","page_on_front_id","setGoalsOnSite","goals","site_goals","fetchSite","resetNewSiteFailed","setThemeOnSite","theme","dont_change_homepage","setDesignOnSite","selectedDesign","siteVerticalId","recipe","stylesheet","template","themeSetupOptions","trim_content","verticalizable","vertical_id","pattern_ids","header_pattern_ids","footer_pattern_ids","createSite","params","authToken","providedParams","mergedParams","find_available_url","public","validate","newSite","token","receiveSite","receiveSiteFailed","saveSiteTagline","reset","launchSite","SiteLaunchError","getCart","setCart","cartData","getGlobalStyles","setSiteSetupError","clearSiteSetupError","initiateAtomicTransfer","software_set","AtomicTransferError","requestLatestAtomicTransfer","requestAtomicSoftwareStatus","initiateSoftwareInstall","setBundledPluginSlug","pluginSlug","blog_details","statusCode","isFetching","isFetchingSiteDetails","fetchingSiteError","sites","ID","idToBeRemoved","remainingState","launchStatus","SiteLaunchStatus","errorCode","sitesDomains","sitesSettings","sitesGlobalStyles","siteSetupErrors","atomicTransferStatus","AtomicTransferStatus","latestAtomicTransferStatus","LatestAtomicTransferStatus","atomicSoftwareStatus","atomicSoftwareInstallStatus","AtomicSoftwareInstallStatus","bundledPluginSlug","getSite","async","dispatch","existingSite","getSiteDomains","getSiteSettings","getNewSite","getNewSiteError","isFetchingSite","getFetchingSiteError","isNewSite","URL","host","getSiteIdBySlug","getSiteVerticalId","isSiteLaunched","isSiteLaunching","isSiteAtomic","is_wpcom_atomic","isSiteWPForTeams","is_wpforteams_site","getSiteGlobalStyles","getSiteSetupError","getSiteOptions","getSiteOption","optionName","getPrimarySiteDomain","primary_domain","getSiteSubdomain","is_subdomain","getSiteLatestAtomicTransfer","getSiteLatestAtomicTransferError","getAtomicSoftwareStatus","getAtomicSoftwareError","getAtomicSoftwareInstallError","siteHasFeature","featureKey","active","includes","requiresUpgrade","isJetpackSite","jetpack","isEligibleForProPlan","getBundledPluginSlug","Visibility","featuresList","minSupportedPlan","store","seo","support","getAllFeatures","getRecommendedPlanSlug","selectedFeatures","allFeatures","currentMinSupportedPlan","featureMinSupportedPlan","request","resource","WPCOM_REQUEST","wpcomProxyRequest","FETCH_AND_PARSE","fetch","ok","json","RELOAD_PROXY","triggerReloadProxy","REQUEST_ALL_BLOGS_ACCESS","triggerRequestAllBlogsAccess","WAIT","setTimeout","CURRENCIES","AED","symbol","grouping","decimal","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDD","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEB","VEF","VND","VUV","WST","XAF","XCD","XOF","XPF","YER","ZAR","ZMW","WON","getCurrencyDefaults","code","regex","convertPriceForSmallestUnit","getSmallestUnitDivisor","currencyDefaults","isSmallestUnit","sign","isInteger","numberFormat","toFixedFix","prec","pow","number_format","_number","decimals","dec_point","thousands_sep","I18N","debug","debugFactory","decimal_point_translation_key","thousands_sep_translation_key","domain_key","translationLookup","hashCache","throwErrors","simpleArguments","normalizeTranslateArguments","original","single","getTranslationFromTannin","tannin","getTranslation","i18n","lookup","defaultLocaleSlug","defaultPluralForms","numberFormatSettings","localeSlug","localeVariant","textDirection","translations","componentUpdateHooks","translateHooks","stateObserver","configure","decPoint","decimal_point","thousandsSep","setLocale","localeData","keyHash","transform","hashLength","lookupPrefix","hash","sha1","generateLookup","variableHashLengthPos","minHashLength","maxHashLength","momentjs_locale","getLocale","getLocaleSlug","getLocaleVariant","isRtl","addTranslations","messages","hasTranslation","translation","sprintfArgs","errorMethod","components","interpolateComponents","mixedString","hook","reRenderTranslations","registerComponentUpdateHook","callback","registerTranslateHook","sep","dec","buildChildren","tokens","openComponent","openIndex","children","closeIndex","openToken","nestLevel","getCloseIndex","grandChildren","clonedOpenComponent","cloneElement","siblings","createElement","Fragment","interpolate","tokenize","identifyToken","startsWith","endsWith","proxyOrigin","origin","protocol","onStreamRecord","postStrings","postMessage","supportsFileConstructor","File","buffered","iframe","requests","supportsProgress","FormData","makeRequest","originalParams","install","uuidv4","supports_args","supports_error_obj","supports_progress","xhr","XMLHttpRequest","called","xhrOnLoad","headers","xhrOnError","submitRequest","rej","requestAllBlogsAccess","metaAPI","accessAllUsersBlogs","formData","chrome","getFileValue","patchFileObjects","contentWindow","isFile","fileContents","onmessage","removeChild","src","style","display","appendChild","reloadProxy","onload","upload","download","callbackId","prog","dispatchEvent","onprogress","contentType","floor","WPError","formatArgs","useColors","namespace","humanize","diff","color","lastC","save","namespaces","load","process","env","DEBUG","__nwjs","navigator","userAgent","documentElement","WebkitAppearance","firebug","exception","table","$1","localstorage","destroy","colors","log","require","createDebug","prevTime","namespacesCache","enabledCache","enableOverride","enabled","self","coerce","logFn","selectColor","extend","newDebug","toNamespace","regexp","substring","default","disable","names","skips","enable","camelCase","cased","p1","getRandomValues","rnds8","rng","crypto","msCrypto","byteToHex","offset","uuid","rnds","random","_typeof","_toDate","_interopRequireDefault","_toFloat","_toInt","_toBoolean","_equals","_contains","_matches","_isEmail","_isURL","_isMACAddress","_isIP","_isIPRange","_isFQDN","_isDate","_isBoolean","_isLocale","_isAlpha","_interopRequireWildcard","_isAlphanumeric","_isNumeric","_isPassportNumber","_isPort","_isLowercase","_isUppercase","_isIMEI","_isAscii","_isFullWidth","_isHalfWidth","_isVariableWidth","_isMultibyte","_isSemVer","_isSurrogatePair","_isInt","_isFloat","_isDecimal","_isHexadecimal","_isOctal","_isDivisibleBy","_isHexColor","_isRgbColor","_isHSL","_isISRC","_isIBAN","_isBIC","_isMD","_isHash","_isJWT","_isJSON","_isEmpty","_isLength","_isByteLength","_isUUID","_isMongoId","_isAfter","_isBefore","_isIn","_isCreditCard","_isIdentityCard","_isEAN","_isISIN","_isISBN","_isISSN","_isTaxID","_isMobilePhone","_isEthereumAddress","_isCurrency","_isBtcAddress","_isISO","_isRFC","_isISO31661Alpha","_isISO31661Alpha2","_isBase","_isBase2","_isBase3","_isDataURI","_isMagnetURI","_isMimeType","_isLatLong","_isPostalCode","_ltrim","_rtrim","_trim","_escape","_unescape","_stripLow","_whitelist","_blacklist","_isWhitelisted","_normalizeEmail","_isSlug","_isStrongPassword","_isVAT","_getRequireWildcardCache","__esModule","hasPropertyDescriptor","_default","version","toDate","toFloat","toInt","toBoolean","equals","contains","matches","isEmail","isURL","isMACAddress","isIP","isIPRange","isFQDN","isIBAN","isBIC","isAlpha","isAlphaLocales","locales","isAlphanumeric","isAlphanumericLocales","isNumeric","isPassportNumber","isPort","isLowercase","isUppercase","isAscii","isFullWidth","isHalfWidth","isVariableWidth","isMultibyte","isSemVer","isInt","isIMEI","isFloat","isFloatLocales","isDecimal","isHexadecimal","isOctal","isDivisibleBy","isHexColor","isRgbColor","isHSL","isISRC","isMD5","isHash","isJWT","isJSON","isEmpty","isLength","isLocale","isByteLength","isUUID","isMongoId","isAfter","isBefore","isIn","isCreditCard","isIdentityCard","isEAN","isISIN","isISBN","isISSN","isMobilePhone","isMobilePhoneLocales","isPostalCode","isPostalCodeLocales","isEthereumAddress","isCurrency","isBtcAddress","isISO8601","isRFC3339","isISO31661Alpha2","isISO31661Alpha3","isBase32","isBase58","isBase64","isDataURI","isMagnetURI","isMimeType","isLatLong","ltrim","rtrim","stripLow","whitelist","blacklist","isWhitelisted","normalizeEmail","isSlug","isStrongPassword","isTaxID","isVAT","commaDecimal","dotDecimal","farsiLocales","arabicLocales","englishLocales","alphanumeric","alpha","ar","he","fa","_i","_locale2","_i2","_i3","_i4","chars","_assertString","elem","_merge","defaulContainsOptions","ignoreCase","_toString","comparison","_str","ignore","_alpha","ascii","isBICReg","base32","base58Reg","defaultBase64Options","urlSafe","urlSafeBase64","notBase64","firstPaddingChar","btc","min","sanitized","creditCard","digit","tmpNum","shouldDouble","sum","decimal_digits","digits_after_decimal","require_symbol","negative","whole_dollar_amount_with_sep","thousands_separator","whole_dollar_amount","decimal_amount","decimal_separator","require_decimal","pattern","allow_decimal","allow_negatives","parens_for_negatives","negative_sign_after_digits","negative_sign_before_digits","allow_negative_sign_placeholder","allow_space_after_symbol","allow_space_after_digits","symbol_after_digits","currencyRegex","default_currency_options","schemeAndMediaType","mediaType","validMediaType","validAttribute","validData","input","default_date_options","_step","formatDelimiter","delimiters","dateDelimiter","strictMode","dateAndFormat","zippedArr","zip","dateObj","_iterator","allowArrayLike","it","_unsupportedIterableToArray","F","done","_e2","normalCompletion","didErr","_e3","return","_createForOfIteratorHelper","_step$value","_arrayWithHoles","_arr","_n","_d","_e","_s","_iterableToArrayLimit","_nonIterableRest","dateWord","formatWord","getDate","minLen","_arrayLikeToArray","arr2","default_decimal_options","_includes","force_decimal","decimalRegExp","actualCheckDigit","validEanRegex","ean","remainder","char","getPositionWeightThroughLengthAndIndex","partialSum","default_email_options","require_display_name","allow_display_name","display_email","splitNameAddress","display_name","_display_email","_slicedToArray","trim_quotes","display_name_without_quotes","validateDisplayName","ignore_max_length","user","lower_domain","domain_specific_validation","username","_user_parts","gmailUserPart","require_tld","allow_ip_domain","noBracketdomain","allow_utf8_local_part","quotedEmailUserUtf8","quotedEmailUser","emailUserUtf8Part","emailUserPart","user_parts","blacklisted_chars","default_is_empty_options","ignore_whitespace","eth","default_fqdn_options","allow_trailing_dot","tld","allow_numeric_tld","allow_underscores","float","lt","gt","fullWidth","hslcomma","hslspace","halfWidth","algorithm","lengths","md5","md4","sha256","sha384","sha512","ripemd128","ripemd160","tiger128","tiger160","tiger192","crc32","crc32b","hexcolor","hexadecimal","strippedStr","isoCountryCode","ibanRegexThroughCountryCode","hasValidIbanFormat","hasValidIbanChecksum","AD","AE","AL","AT","AZ","BA","BE","BG","BH","BR","BY","CH","CR","CY","CZ","DE","DK","DO","EE","EG","ES","FI","FO","FR","GB","GE","GI","GL","GR","GT","HR","HU","IE","IL","IQ","IR","IS","IT","JO","KW","KZ","LB","LC","LI","LT","LU","LV","MC","MD","ME","MK","MR","MT","MU","NL","NO","PK","PL","PS","PT","QA","RO","RS","SA","SC","SE","SI","SK","SM","SV","TL","TN","TR","UA","VA","VG","XK","imeiRegex","imeiRegexWithoutHypens","allow_hyphens","imeiRegexWithHypens","mul","tp","ipv4Maybe","addressAndZone","blocks","foundOmissionBlock","foundIPv4TransitionBlock","expectedNumberOfBlocks","ipv6Block","subnetMaybe","checksum","isbn10Maybe","isbn13Maybe","factor","isin","checksumStr","character","validISO31661Alpha2CountriesCodes","validISO31661Alpha3CountriesCodes","check","strictSeparator","iso8601StrictSeparator","iso8601","strict","isValidDate","ordinalMatch","oYear","oDay","year","month","day","monthString","dayString","getUTCFullYear","getUTCMonth","getUTCDate","isrc","testIssn","issn","require_hyphen","case_sensitive","digits","validators","charsValue","X","Y","Z","IN","k1","k2","incNum","idCardNo","provincesAndCities","powers","parityBit","checkAddressCode","addressCode","checkBirthDayCode","birDayCode","yyyy","mm","dd","xdata","getFullYear","getMonth","checkParityBit","id17","power","getParityBit","check15IdCardNo","check18IdCardNo","ALPHABET_CODES","A","B","C","D","E","G","H","I","J","K","L","M","N","P","Q","S","T","U","V","allow_leading_zeroes","int","intLeadingZeroes","minCheckPassed","maxCheckPassed","ltCheckPassed","gtCheckPassed","default_json_options","primitives","allow_primitives","dotSplit","currElem","defaultLatLongOptions","pair","checkDMS","latDMS","longDMS","lat","surrogatePairs","localeReg","no_colons","macAddressNoColons","macAddress","macAddressWithHyphen","macAddressWithSpaces","macAddressWithDots","magnetURI","mimeTypeSimple","mimeTypeText","mimeTypeMultipart","phones","multibyte","no_symbols","numericNoSymbols","octal","countryCode","normalizedStr","passportRegexByCountryCode","AM","AR","AU","CA","CN","DZ","JP","KR","PO","RU","SL","US","patterns","fourDigit","fiveDigit","sixDigit","HT","KE","MX","MY","NP","NZ","PR","SG","TH","TW","ZA","ZM","rfc3339","timeHour","timeMinute","timeNumOffset","timeOffset","partialTime","fullDate","fullTime","includePercentValues","rgbColor","rgbaColor","rgbColorPercent","rgbaColorPercent","semanticVersioningRegex","charsetRegex","analysis","analyzePassword","defaultOptions","returnScore","scorePassword","minLength","lowercaseCount","minLowercase","uppercaseCount","minUppercase","numberCount","minNumbers","symbolCount","minSymbols","upperCaseRegex","lowerCaseRegex","numberRegex","symbolRegex","pointsPerUnique","pointsPerRepeat","pointsForContainingLower","pointsForContainingUpper","pointsForContainingNumber","pointsForContainingSymbol","password","charMap","uniqueChars","scoringOptions","points","surrogatePair","strcopy","taxIdFormat","sanitizeRegexes","taxIdCheck","algorithms","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","enUsCampusPrefix","andover","atlanta","austin","brookhaven","cincinnati","fresno","internet","kansas","memphis","ogden","philadelphia","sba","itItNameCheck","vowelflag","xflag","tin","century_year","multip_lookup","full_year","checkdigit","luhnCheck","occurences","trip_locations","recurrent","iso7064Check","weight","reverseMultiplyAndSum","prefixes","enUsGetPrefixes","lead_replace","checkdigits","verhoeffCheck","number_replace","_number_locations","_i5","char_to_int","odd_convert","_i6","_char_to_int","multiplier","first_part","_checksum","_i7","multipliers","tin_copy","current_year","current_century","allsymbols","default_url_options","validate_length","auth","hostname","port","port_str","ipv6","require_valid_protocol","protocols","require_protocol","allow_protocol_relative_urls","require_host","disallow_auth","ipv6_match","wrapped_ipv6","require_port","host_whitelist","checkHost","host_blacklist","all","vatMatchers","modifiers","email","default_normalize_email_options","raw_parts","gmail_remove_subaddress","gmail_remove_dots","dotsReplacer","all_lowercase","gmail_lowercase","gmail_convert_googlemaildotcom","icloud_domains","icloud_remove_subaddress","icloud_lowercase","outlookdotcom_domains","outlookdotcom_remove_subaddress","outlookdotcom_lowercase","yahoo_domains","yahoo_remove_subaddress","yahoo_lowercase","yandex_domains","yandex_lowercase","keep_new_lines","NaN","radix","checkvalue","second","d_table","p_table","str_copy","invalidType","arrVal","regexpAsStringLiteral","uppercamelcase","statusCodes","setStatusCode","status_code","toName","error_description","errors","setStatusCodeMessage","extended","captureStackTrace","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","definition"],"sourceRoot":""}
 
common/dist/disable-heic-images.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"disable-heic-images.min.js","mappings":"mCAAAA,EAAOC,QAAUC,OAAW,GAAW,S,SCAvCF,EAAOC,QAAUC,OAAW,GAAW,S,SCAvCF,EAAOC,QAAUC,OAAW,GAAS,O,SCArCF,EAAOC,QAAUC,OAAW,GAAQ,OCChCC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,IAOV,OAHAO,EAAoBH,GAAUL,EAAQA,EAAOC,QAASG,GAG/CJ,EAAOC,QCpBfG,EAAoBK,EAAKT,IACxB,IAAIU,EAASV,GAAUA,EAAOW,WAC7B,IAAOX,EAAiB,QACxB,IAAM,EAEP,OADAI,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRN,EAAoBQ,EAAI,CAACX,EAASa,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEf,EAASc,IAC5EE,OAAOC,eAAejB,EAASc,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFlB,EAAoBsB,EAAKzB,IACH,oBAAX0B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAejB,EAAS0B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAejB,EAAS,aAAc,CAAE4B,OAAO,K,gFCAjDC,GAAoBC,EAAAA,EAAAA,6BAA8BC,GAC9CC,IACDC,EAAAA,EAAAA,eAAeF,EAAkB,IACpCC,EACHE,iBAAoBC,IACnB,GAAKA,EAcJ,OAbAnB,OAAOoB,OAAQD,GAAQE,SAAWC,IAAU,MAC3C,MACMC,EAAS,UADED,EAAKE,KACKC,MAAO,KAAMC,aAAzB,aAAG,EAA6BC,cAE/C,GAAK,SAAWJ,GAAa,SAAWA,EAAY,CACnD,MAAMK,EAAQC,GACb,kGACA,qBAGD,MADAb,EAAMc,QAASF,GACTG,MAAOH,OAGRT,MAKT,sBAEHa,EAAAA,EAAAA,WAAW,0BAA2B,0BAA2BnB,I","sources":["webpack://EditingToolkit/external window [\"wp\",\"compose\"]","webpack://EditingToolkit/external window [\"wp\",\"element\"]","webpack://EditingToolkit/external window [\"wp\",\"hooks\"]","webpack://EditingToolkit/external window [\"wp\",\"i18n\"]","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object","webpack://EditingToolkit/./editing-toolkit-plugin/common/disable-heic-images.js"],"sourcesContent":["module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { createHigherOrderComponent } from '@wordpress/compose';\nimport { createElement } from '@wordpress/element';\nimport { addFilter } from '@wordpress/hooks';\nimport { __ } from '@wordpress/i18n';\n\nconst DisableHEICImages = createHigherOrderComponent( ( MediaPlaceholder ) => {\n\treturn ( props ) => {\n\t\treturn createElement( MediaPlaceholder, {\n\t\t\t...props,\n\t\t\tonFilesPreUpload: ( files ) => {\n\t\t\t\tif ( files ) {\n\t\t\t\t\tObject.values( files ).forEach( ( file ) => {\n\t\t\t\t\t\tconst filename = file.name;\n\t\t\t\t\t\tconst extension = filename.split( '.' ).pop()?.toLowerCase();\n\n\t\t\t\t\t\tif ( 'heic' === extension || 'heif' === extension ) {\n\t\t\t\t\t\t\tconst error = __(\n\t\t\t\t\t\t\t\t'HEIC images are not viewable in the editor. Please convert to a JPG, PNG, or GIF and try again.',\n\t\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tprops.onError( error );\n\t\t\t\t\t\t\tthrow Error( error );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\t\t\t\t\treturn files;\n\t\t\t\t}\n\t\t\t},\n\t\t} );\n\t};\n}, 'DisableHEICImages' );\n\naddFilter( 'editor.MediaPlaceholder', 'wpcom/DisableHEICImages', DisableHEICImages );\n"],"names":["module","exports","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","DisableHEICImages","createHigherOrderComponent","MediaPlaceholder","props","createElement","onFilesPreUpload","files","values","forEach","file","extension","name","split","pop","toLowerCase","error","__","onError","Error","addFilter"],"sourceRoot":""}
 
common/dist/hide-plugin-buttons-mobile.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"hide-plugin-buttons-mobile.css","mappings":"AAKC,wBADD,iDAEE","sources":["webpack://EditingToolkit/./editing-toolkit-plugin/common/hide-plugin-buttons-mobile.scss"],"sourcesContent":["@import '@wordpress/base-styles/mixins';\n@import '@wordpress/base-styles/variables';\n@import '@wordpress/base-styles/breakpoints';\n\n.interface-pinned-items > button:not( :first-child ) {\n\t@media ( max-width: $break-medium ) {\n\t\tdisplay: none;\n\t}\n}\n"],"names":[],"sourceRoot":""}
 
common/dist/hide-plugin-buttons-mobile.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"hide-plugin-buttons-mobile.min.js","mappings":"uCACIA,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,IAOV,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,QCpBfJ,EAAoBO,EAAKH,IACH,oBAAXI,QAA0BA,OAAOC,aAC1CC,OAAOC,eAAeP,EAASI,OAAOC,YAAa,CAAEG,MAAO,WAE7DF,OAAOC,eAAeP,EAAS,aAAc,CAAEQ,OAAO,K","sources":["webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/make namespace object"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","r","Symbol","toStringTag","Object","defineProperty","value"],"sourceRoot":""}
 
common/dist/override-preview-button-url.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"override-preview-button-url.min.js","mappings":"mCAAAA,EAAOC,QAAUC,OAAW,GAAQ,OCChCC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,IAOV,OAHAO,EAAoBH,GAAUL,EAAQA,EAAOC,QAASG,GAG/CJ,EAAOC,QCpBfG,EAAoBK,EAAKT,IACxB,IAAIU,EAASV,GAAUA,EAAOW,WAC7B,IAAOX,EAAiB,QACxB,IAAM,EAEP,OADAI,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRN,EAAoBQ,EAAI,CAACX,EAASa,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAEf,EAASc,IAC5EE,OAAOC,eAAejB,EAASc,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFlB,EAAoBsB,EAAKzB,IACH,oBAAX0B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAejB,EAAS0B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAejB,EAAS,aAAc,CAAE4B,OAAO,K,qCCqBvDC,sBAxBsBA,UACrB,IAAIC,SAAWC,IACd,MAAMC,GAAcC,EAAAA,EAAAA,YAAW,OAMRC,EAAAA,EAAAA,QAAQ,eAAgBC,yBAC3CD,EAAAA,EAAAA,QAAQ,eAAgBC,2BACxBD,EAAAA,EAAAA,QAAQ,eAAgBE,oBAE1BJ,IACAD,WAYGM,GAGN,MAAMC,EAAsB,IAAIrC,OAAOsC,kBAAoBC,IAC1D,MAAMC,EAAwBC,GAAUA,EAAKC,UAAUC,SAAU,sBAEjE,IAAM,MAAMC,KAAUL,EACrB,IAAM,MAAME,KAAQG,EAAOC,WAC1B,GAAKL,EAAqBC,GAAS,CAClC,MAAMK,EAAgBL,EAAKM,cAAe,2BAMrCD,IACJA,EAAcE,QAAU,SAAWC,GAClCA,EAAEC,iBACFD,EAAEE,kBACFnD,OAAOoD,KAAO,GAAGN,EAAcO,6BAQ/BC,EAAkBC,SAASR,cAAe,iDAChDV,EAAoBmB,QAASF,EAAiB,CAAEG,WAAW,IAG5DC,I","sources":["webpack://EditingToolkit/external window [\"wp\",\"data\"]","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object","webpack://EditingToolkit/./editing-toolkit-plugin/common/override-preview-button-url.js"],"sourcesContent":["module.exports = window[\"wp\"][\"data\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { select, subscribe } from '@wordpress/data';\n\nconst isEditorReady = async () =>\n\tnew Promise( ( resolve ) => {\n\t\tconst unsubscribe = subscribe( () => {\n\t\t\t// Calypso sends the message as soon as the iframe is loaded, so we\n\t\t\t// need to be sure that the editor is initialized and the core blocks\n\t\t\t// registered. There is an unstable selector for that, so we use\n\t\t\t// `isCleanNewPost` otherwise which is triggered when everything is\n\t\t\t// initialized if the post is new.\n\t\t\tconst editorIsReady = select( 'core/editor' ).__unstableIsEditorReady\n\t\t\t\t? select( 'core/editor' ).__unstableIsEditorReady()\n\t\t\t\t: select( 'core/editor' ).isCleanNewPost();\n\t\t\tif ( editorIsReady ) {\n\t\t\t\tunsubscribe();\n\t\t\t\tresolve();\n\t\t\t}\n\t\t} );\n\t} );\n\n/**\n * The gutenberg block editor preview button opens a new window to a simple site's mapped\n * domain.\n * Adds logmein query param to editor draft post preview url to add WordPress cookies in\n * a first party context ( allowing us to avoid third party cookie issues )\n */\nasync function overridePreviewButtonUrl() {\n\tawait isEditorReady();\n\n\t// Tracks when a popover is introduced into the post editor DOM\n\tconst popoverSlotObserver = new window.MutationObserver( ( mutations ) => {\n\t\tconst isComponentsPopover = ( node ) => node.classList.contains( 'components-popover' );\n\n\t\tfor ( const record of mutations ) {\n\t\t\tfor ( const node of record.addedNodes ) {\n\t\t\t\tif ( isComponentsPopover( node ) ) {\n\t\t\t\t\tconst previewButton = node.querySelector( 'a[href$=\"preview=true\"]' );\n\t\t\t\t\t// Disables default onclick behavior for the preview button and replaces\n\t\t\t\t\t// it with our own window opening logic. Overriding the href directly\n\t\t\t\t\t// doesn't work because the custom href we apply is overridden somewhere\n\t\t\t\t\t// upstream.\n\n\t\t\t\t\tif ( previewButton ) {\n\t\t\t\t\t\tpreviewButton.onclick = function ( e ) {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\twindow.open( `${ previewButton.href }&logmein=direct` );\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} );\n\n\tconst popoverSlotElem = document.querySelector( '.interface-interface-skeleton ~ .popover-slot' );\n\tpopoverSlotObserver.observe( popoverSlotElem, { childList: true } );\n}\n\noverridePreviewButtonUrl();\n"],"names":["module","exports","window","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","async","Promise","resolve","unsubscribe","subscribe","select","__unstableIsEditorReady","isCleanNewPost","isEditorReady","popoverSlotObserver","MutationObserver","mutations","isComponentsPopover","node","classList","contains","record","addedNodes","previewButton","querySelector","onclick","e","preventDefault","stopPropagation","open","href","popoverSlotElem","document","observe","childList","overridePreviewButtonUrl"],"sourceRoot":""}
 
error-reporting/dist/error-reporting.min.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-reporting.min.js","mappings":"+LAMIA,GAAe,SAQnB,MAAMC,UAAsB,IAMzBC,YAAYC,GACXA,EAAQC,UAAYD,EAAQC,WAAa,GACzCD,EAAQC,UAAUC,IAAMF,EAAQC,UAAUC,KAAO,CAC/CC,KAAM,4BACNC,SAAU,CACR,CACED,KAAM,sBACNE,QAAS,MAGbA,QAAS,KAGXC,MAAMN,GAEFA,EAAQO,mBAAqBV,EAAaW,UAC5CX,EAAaW,SAASC,iBAAiB,oBAAoB,KACX,WAA1CZ,EAAaW,SAASE,iBACxBC,KAAKC,oBASZC,mBAAmBC,EAAWC,GAC7B,OAAO,QAAmBJ,KAAKK,SAASC,YAAaH,EAAWC,EAAMJ,KAAKK,SAASE,kBAMrFC,iBACCC,EACIC,EAAQ,OACZN,GAEA,OAAO,QAAiBJ,KAAKK,SAASC,YAAaG,EAASC,EAAON,EAAMJ,KAAKK,SAASE,kBAMxFI,UAAUC,EAAOR,GAOhB,IAAIS,EAAwBb,KAAKc,mBAAmB,KAElDD,GAIAA,EAAsBxB,SACtBwB,EAAsBxB,QAAQ0B,SAE9B,UAAgBC,cACd,CACEC,SAAU,WAAyB,gBAAfL,EAAMM,KAAyB,cAAgB,SACnEC,SAAUP,EAAMO,SAChBT,MAAOE,EAAMF,MACbD,SAAS,QAAoBG,IAE/B,CACEA,MAAAA,IAKNjB,MAAMgB,UAAUC,EAAOR,GAMxBgB,cAAcR,EAAOR,EAAMiB,GAE1B,OADAT,EAAMU,SAAWV,E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MAAO,qDAIhC+M,OAAOlQ,iBAAkB,QAASo/B,GAGlCG,QAAQC,WAAYb,EAAWz5B,IAAKk6B,IAAgB7sB,MAAM,WAAarC,OAAO0uB,SAM9Ea,GAIDvvB,OAAOwvB,oBAAqB,QAASb,UAC9B3uB,OAAO4uB,qB","sources":["webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/client.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/eventbuilder.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/helpers.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/integrations/breadcrumbs.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/integrations/dedupe.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/integrations/globalhandlers.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/integrations/httpcontext.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/integrations/linkederrors.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/integrations/trycatch.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/sdk.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/stack-parsers.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/transports/fetch.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/transports/utils.js","webpack://EditingToolkit/../../node_modules/@sentry/browser/esm/transports/xhr.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/api.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/baseclient.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/envelope.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/integration.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/integrations/functiontostring.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/integrations/inboundfilters.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/sdk.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/transports/base.js","webpack://EditingToolkit/../../node_modules/@sentry/core/esm/version.js","webpack://EditingToolkit/../../node_modules/@sentry/hub/esm/exports.js","webpack://EditingToolkit/../../node_modules/@sentry/hub/esm/hub.js","webpack://EditingToolkit/../../node_modules/@sentry/hub/esm/scope.js","webpack://EditingToolkit/../../node_modules/@sentry/hub/esm/session.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/baggage.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/browser.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/clientreport.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/dsn.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/env.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/envelope.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/error.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/global.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/instrument.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/is.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/logger.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/memo.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/misc.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/node.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/normalize.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/object.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/promisebuffer.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/ratelimit.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/severity.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/stacktrace.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/string.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/supports.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/syncpromise.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/time.js","webpack://EditingToolkit/../../node_modules/@sentry/utils/esm/url.js","webpack://EditingToolkit/external window [\"wp\",\"apiFetch\"]","webpack://EditingToolkit/external window [\"wp\",\"hooks\"]","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/harmony module decorator","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object","webpack://EditingToolkit/./editing-toolkit-plugin/error-reporting/index.js"],"sourcesContent":["import { BaseClient, SDK_VERSION, getCurrentHub, getEnvelopeEndpointWithUrlEncodedAuth } from '@sentry/core';\nimport { getGlobalObject, getEventDescription, logger, createClientReportEnvelope, dsnToString, serializeEnvelope } from '@sentry/utils';\nimport { eventFromException, eventFromMessage } from './eventbuilder.js';\nimport { BREADCRUMB_INTEGRATION_ID } from './integrations/breadcrumbs.js';\nimport { sendReport } from './transports/utils.js';\n\nvar globalObject = getGlobalObject();\n\n/**\n * The Sentry Browser SDK Client.\n *\n * @see BrowserOptions for documentation on configuration options.\n * @see SentryClient for usage documentation.\n */\nclass BrowserClient extends BaseClient {\n /**\n * Creates a new Browser SDK instance.\n *\n * @param options Configuration options for this SDK.\n */\n constructor(options) {\n options._metadata = options._metadata || {};\n options._metadata.sdk = options._metadata.sdk || {\n name: 'sentry.javascript.browser',\n packages: [\n {\n name: 'npm:@sentry/browser',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n\n super(options);\n\n if (options.sendClientReports && globalObject.document) {\n globalObject.document.addEventListener('visibilitychange', () => {\n if (globalObject.document.visibilityState === 'hidden') {\n this._flushOutcomes();\n }\n });\n }\n }\n\n /**\n * @inheritDoc\n */\n eventFromException(exception, hint) {\n return eventFromException(this._options.stackParser, exception, hint, this._options.attachStacktrace);\n }\n\n /**\n * @inheritDoc\n */\n eventFromMessage(\n message,\n level = 'info',\n hint,\n ) {\n return eventFromMessage(this._options.stackParser, message, level, hint, this._options.attachStacktrace);\n }\n\n /**\n * @inheritDoc\n */\n sendEvent(event, hint) {\n // We only want to add the sentry event breadcrumb when the user has the breadcrumb integration installed and\n // activated its `sentry` option.\n // We also do not want to use the `Breadcrumbs` class here directly, because we do not want it to be included in\n // bundles, if it is not used by the SDK.\n // This all sadly is a bit ugly, but we currently don't have a \"pre-send\" hook on the integrations so we do it this\n // way for now.\n var breadcrumbIntegration = this.getIntegrationById(BREADCRUMB_INTEGRATION_ID) ;\n if (\n breadcrumbIntegration &&\n // We check for definedness of `options`, even though it is not strictly necessary, because that access to\n // `.sentry` below does not throw, in case users provided their own integration with id \"Breadcrumbs\" that does\n // not have an`options` field\n breadcrumbIntegration.options &&\n breadcrumbIntegration.options.sentry\n ) {\n getCurrentHub().addBreadcrumb(\n {\n category: `sentry.${event.type === 'transaction' ? 'transaction' : 'event'}`,\n event_id: event.event_id,\n level: event.level,\n message: getEventDescription(event),\n },\n {\n event,\n },\n );\n }\n\n super.sendEvent(event, hint);\n }\n\n /**\n * @inheritDoc\n */\n _prepareEvent(event, hint, scope) {\n event.platform = event.platform || 'javascript';\n return super._prepareEvent(event, hint, scope);\n }\n\n /**\n * Sends client reports as an envelope.\n */\n _flushOutcomes() {\n var outcomes = this._clearOutcomes();\n\n if (outcomes.length === 0) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('No outcomes to send');\n return;\n }\n\n if (!this._dsn) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('No dsn provided, will not send outcomes');\n return;\n }\n\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Sending outcomes:', outcomes);\n\n var url = getEnvelopeEndpointWithUrlEncodedAuth(this._dsn, this._options);\n var envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));\n\n try {\n sendReport(url, serializeEnvelope(envelope));\n } catch (e) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(e);\n }\n }\n}\n\nexport { BrowserClient };\n//# sourceMappingURL=client.js.map\n","import { isEvent, extractExceptionKeysForMessage, normalizeToSize, addExceptionMechanism, resolvedSyncPromise, isErrorEvent, isDOMError, isDOMException, addExceptionTypeValue, isError, isPlainObject } from '@sentry/utils';\n\n/**\n * This function creates an exception from a JavaScript Error\n */\nfunction exceptionFromError(stackParser, ex) {\n // Get the frames first since Opera can lose the stack if we touch anything else first\n var frames = parseStackFrames(stackParser, ex);\n\n var exception = {\n type: ex && ex.name,\n value: extractMessage(ex),\n };\n\n if (frames.length) {\n exception.stacktrace = { frames };\n }\n\n if (exception.type === undefined && exception.value === '') {\n exception.value = 'Unrecoverable error caught';\n }\n\n return exception;\n}\n\n/**\n * @hidden\n */\nfunction eventFromPlainObject(\n stackParser,\n exception,\n syntheticException,\n isUnhandledRejection,\n) {\n var event = {\n exception: {\n values: [\n {\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: `Non-Error ${\n isUnhandledRejection ? 'promise rejection' : 'exception'\n } captured with keys: ${extractExceptionKeysForMessage(exception)}`,\n },\n ],\n },\n extra: {\n __serialized__: normalizeToSize(exception),\n },\n };\n\n if (syntheticException) {\n var frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n // event.exception.values[0] has been set above\n (event.exception ).values[0].stacktrace = { frames };\n }\n }\n\n return event;\n}\n\n/**\n * @hidden\n */\nfunction eventFromError(stackParser, ex) {\n return {\n exception: {\n values: [exceptionFromError(stackParser, ex)],\n },\n };\n}\n\n/** Parses stack frames from an error */\nfunction parseStackFrames(\n stackParser,\n ex,\n) {\n // Access and store the stacktrace property before doing ANYTHING\n // else to it because Opera is not very good at providing it\n // reliably in other circumstances.\n var stacktrace = ex.stacktrace || ex.stack || '';\n\n var popSize = getPopSize(ex);\n\n try {\n return stackParser(stacktrace, popSize);\n } catch (e) {\n // no-empty\n }\n\n return [];\n}\n\n// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108\nvar reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\nfunction getPopSize(ex) {\n if (ex) {\n if (typeof ex.framesToPop === 'number') {\n return ex.framesToPop;\n }\n\n if (reactMinifiedRegexp.test(ex.message)) {\n return 1;\n }\n }\n\n return 0;\n}\n\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\nfunction extractMessage(ex) {\n var message = ex && ex.message;\n if (!message) {\n return 'No error message';\n }\n if (message.error && typeof message.error.message === 'string') {\n return message.error.message;\n }\n return message;\n}\n\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\nfunction eventFromException(\n stackParser,\n exception,\n hint,\n attachStacktrace,\n) {\n var syntheticException = (hint && hint.syntheticException) || undefined;\n var event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);\n addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }\n event.level = 'error';\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nfunction eventFromMessage(\n stackParser,\n message,\n level = 'info',\n hint,\n attachStacktrace,\n) {\n var syntheticException = (hint && hint.syntheticException) || undefined;\n var event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n event.level = level;\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * @hidden\n */\nfunction eventFromUnknownInput(\n stackParser,\n exception,\n syntheticException,\n attachStacktrace,\n isUnhandledRejection,\n) {\n let event;\n\n if (isErrorEvent(exception ) && (exception ).error) {\n // If it is an ErrorEvent with `error` property, extract it to get actual Error\n var errorEvent = exception ;\n return eventFromError(stackParser, errorEvent.error );\n }\n\n // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n if (isDOMError(exception ) || isDOMException(exception )) {\n var domException = exception ;\n\n if ('stack' in (exception )) {\n event = eventFromError(stackParser, exception );\n } else {\n var name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n var message = domException.message ? `${name}: ${domException.message}` : name;\n event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, message);\n }\n if ('code' in domException) {\n event.tags = { ...event.tags, 'DOMException.code': `${domException.code}` };\n }\n\n return event;\n }\n if (isError(exception)) {\n // we have a real Error object, do nothing\n return eventFromError(stackParser, exception);\n }\n if (isPlainObject(exception) || isEvent(exception)) {\n // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n // group on any key/value change.\n var objectException = exception ;\n event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n return event;\n }\n\n // If none of previous checks were valid, then it means that it's not:\n // - an instance of DOMError\n // - an instance of DOMException\n // - an instance of Event\n // - an instance of Error\n // - a valid ErrorEvent (one with an error property)\n // - a plain Object\n //\n // So bail out and capture it as a simple message:\n event = eventFromString(stackParser, exception , syntheticException, attachStacktrace);\n addExceptionTypeValue(event, `${exception}`, undefined);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n\n return event;\n}\n\n/**\n * @hidden\n */\nfunction eventFromString(\n stackParser,\n input,\n syntheticException,\n attachStacktrace,\n) {\n var event = {\n message: input,\n };\n\n if (attachStacktrace && syntheticException) {\n var frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n event.exception = {\n values: [{ value: input, stacktrace: { frames } }],\n };\n }\n }\n\n return event;\n}\n\nexport { eventFromError, eventFromException, eventFromMessage, eventFromPlainObject, eventFromString, eventFromUnknownInput, exceptionFromError, parseStackFrames };\n//# sourceMappingURL=eventbuilder.js.map\n","import { withScope, captureException } from '@sentry/core';\nimport { getOriginalFunction, addExceptionTypeValue, addExceptionMechanism, markFunctionWrapped, addNonEnumerableProperty } from '@sentry/utils';\n\nlet ignoreOnError = 0;\n\n/**\n * @hidden\n */\nfunction shouldIgnoreOnError() {\n return ignoreOnError > 0;\n}\n\n/**\n * @hidden\n */\nfunction ignoreNextOnError() {\n // onerror should trigger before setTimeout\n ignoreOnError += 1;\n setTimeout(() => {\n ignoreOnError -= 1;\n });\n}\n\n/**\n * Instruments the given function and sends an event to Sentry every time the\n * function throws an exception.\n *\n * @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always\n * has a correct `this` context.\n * @returns The wrapped function.\n * @hidden\n */\nfunction wrap(\n fn,\n options\n\n = {},\n before,\n ) {\n // for future readers what this does is wrap a function and then create\n // a bi-directional wrapping between them.\n //\n // example: wrapped = wrap(original);\n // original.__sentry_wrapped__ -> wrapped\n // wrapped.__sentry_original__ -> original\n\n if (typeof fn !== 'function') {\n return fn;\n }\n\n try {\n // if we're dealing with a function that was previously wrapped, return\n // the original wrapper.\n var wrapper = fn.__sentry_wrapped__;\n if (wrapper) {\n return wrapper;\n }\n\n // We don't wanna wrap it twice\n if (getOriginalFunction(fn)) {\n return fn;\n }\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n // Bail on wrapping and return the function as-is (defers to window.onerror).\n return fn;\n }\n\n // It is important that `sentryWrapped` is not an arrow function to preserve the context of `this`\n var sentryWrapped = function () {\n var args = Array.prototype.slice.call(arguments);\n\n try {\n if (before && typeof before === 'function') {\n before.apply(this, arguments);\n }\n\n var wrappedArguments = args.map((arg) => wrap(arg, options));\n\n // Attempt to invoke user-land function\n // NOTE: If you are a Sentry user, and you are seeing this stack frame, it\n // means the sentry.javascript SDK caught an error invoking your application code. This\n // is expected behavior and NOT indicative of a bug with sentry.javascript.\n return fn.apply(this, wrappedArguments);\n } catch (ex) {\n ignoreNextOnError();\n\n withScope((scope) => {\n scope.addEventProcessor((event) => {\n if (options.mechanism) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, options.mechanism);\n }\n\n event.extra = {\n ...event.extra,\n arguments: args,\n };\n\n return event;\n });\n\n captureException(ex);\n });\n\n throw ex;\n }\n };\n \n // Accessing some objects may throw\n // ref: https://github.com/getsentry/sentry-javascript/issues/1168\n try {\n for (var property in fn) {\n if (Object.prototype.hasOwnProperty.call(fn, property)) {\n sentryWrapped[property] = fn[property];\n }\n }\n } catch (_oO) {} \n // Signal that this function has been wrapped/filled already\n // for both debugging and to prevent it to being wrapped/filled twice\n markFunctionWrapped(sentryWrapped, fn);\n\n addNonEnumerableProperty(fn, '__sentry_wrapped__', sentryWrapped);\n\n // Restore original function name (not all browsers allow that)\n try {\n var descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name') ;\n if (descriptor.configurable) {\n Object.defineProperty(sentryWrapped, 'name', {\n get() {\n return fn.name;\n },\n });\n }\n } catch (_oO) {}\n\n return sentryWrapped;\n}\n\n/**\n * All properties the report dialog supports\n */\n\nexport { ignoreNextOnError, shouldIgnoreOnError, wrap };\n//# sourceMappingURL=helpers.js.map\n","import { getCurrentHub } from '@sentry/core';\nimport { addInstrumentationHandler, htmlTreeAsString, severityLevelFromString, safeJoin, getGlobalObject, parseUrl } from '@sentry/utils';\n\n/** JSDoc */\n\nvar BREADCRUMB_INTEGRATION_ID = 'Breadcrumbs';\n\n/**\n * Default Breadcrumbs instrumentations\n * TODO: Deprecated - with v6, this will be renamed to `Instrument`\n */\nclass Breadcrumbs {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = BREADCRUMB_INTEGRATION_ID;}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = Breadcrumbs.id;}\n\n /**\n * Options of the breadcrumbs integration.\n */\n // This field is public, because we use it in the browser client to check if the `sentry` option is enabled.\n \n\n /**\n * @inheritDoc\n */\n constructor(options) {;Breadcrumbs.prototype.__init.call(this);\n this.options = {\n console: true,\n dom: true,\n fetch: true,\n history: true,\n sentry: true,\n xhr: true,\n ...options,\n };\n }\n\n /**\n * Instrument browser built-ins w/ breadcrumb capturing\n * - Console API\n * - DOM API (click/typing)\n * - XMLHttpRequest API\n * - Fetch API\n * - History API\n */\n setupOnce() {\n if (this.options.console) {\n addInstrumentationHandler('console', _consoleBreadcrumb);\n }\n if (this.options.dom) {\n addInstrumentationHandler('dom', _domBreadcrumb(this.options.dom));\n }\n if (this.options.xhr) {\n addInstrumentationHandler('xhr', _xhrBreadcrumb);\n }\n if (this.options.fetch) {\n addInstrumentationHandler('fetch', _fetchBreadcrumb);\n }\n if (this.options.history) {\n addInstrumentationHandler('history', _historyBreadcrumb);\n }\n }\n} Breadcrumbs.__initStatic();\n\n/**\n * A HOC that creaes a function that creates breadcrumbs from DOM API calls.\n * This is a HOC so that we get access to dom options in the closure.\n */\nfunction _domBreadcrumb(dom) {\n function _innerDomBreadcrumb(handlerData) {\n let target;\n let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;\n\n if (typeof keyAttrs === 'string') {\n keyAttrs = [keyAttrs];\n }\n\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n target = handlerData.event.target\n ? htmlTreeAsString(handlerData.event.target , keyAttrs)\n : htmlTreeAsString(handlerData.event , keyAttrs);\n } catch (e) {\n target = '<unknown>';\n }\n\n if (target.length === 0) {\n return;\n }\n\n getCurrentHub().addBreadcrumb(\n {\n category: `ui.${handlerData.name}`,\n message: target,\n },\n {\n event: handlerData.event,\n name: handlerData.name,\n global: handlerData.global,\n },\n );\n }\n\n return _innerDomBreadcrumb;\n}\n\n/**\n * Creates breadcrumbs from console API calls\n */\nfunction _consoleBreadcrumb(handlerData) {\n var breadcrumb = {\n category: 'console',\n data: {\n arguments: handlerData.args,\n logger: 'console',\n },\n level: severityLevelFromString(handlerData.level),\n message: safeJoin(handlerData.args, ' '),\n };\n\n if (handlerData.level === 'assert') {\n if (handlerData.args[0] === false) {\n breadcrumb.message = `Assertion failed: ${safeJoin(handlerData.args.slice(1), ' ') || 'console.assert'}`;\n breadcrumb.data.arguments = handlerData.args.slice(1);\n } else {\n // Don't capture a breadcrumb for passed assertions\n return;\n }\n }\n\n getCurrentHub().addBreadcrumb(breadcrumb, {\n input: handlerData.args,\n level: handlerData.level,\n });\n}\n\n/**\n * Creates breadcrumbs from XHR API calls\n */\nfunction _xhrBreadcrumb(handlerData) {\n if (handlerData.endTimestamp) {\n // We only capture complete, non-sentry requests\n if (handlerData.xhr.__sentry_own_request__) {\n return;\n }\n\n const { method, url, status_code, body } = handlerData.xhr.__sentry_xhr__ || {};\n\n getCurrentHub().addBreadcrumb(\n {\n category: 'xhr',\n data: {\n method,\n url,\n status_code,\n },\n type: 'http',\n },\n {\n xhr: handlerData.xhr,\n input: body,\n },\n );\n\n return;\n }\n}\n\n/**\n * Creates breadcrumbs from fetch API calls\n */\nfunction _fetchBreadcrumb(handlerData) {\n // We only capture complete fetch requests\n if (!handlerData.endTimestamp) {\n return;\n }\n\n if (handlerData.fetchData.url.match(/sentry_key/) && handlerData.fetchData.method === 'POST') {\n // We will not create breadcrumbs for fetch requests that contain `sentry_key` (internal sentry requests)\n return;\n }\n\n if (handlerData.error) {\n getCurrentHub().addBreadcrumb(\n {\n category: 'fetch',\n data: handlerData.fetchData,\n level: 'error',\n type: 'http',\n },\n {\n data: handlerData.error,\n input: handlerData.args,\n },\n );\n } else {\n getCurrentHub().addBreadcrumb(\n {\n category: 'fetch',\n data: {\n ...handlerData.fetchData,\n status_code: handlerData.response.status,\n },\n type: 'http',\n },\n {\n input: handlerData.args,\n response: handlerData.response,\n },\n );\n }\n}\n\n/**\n * Creates breadcrumbs from history API calls\n */\nfunction _historyBreadcrumb(handlerData) {\n var global = getGlobalObject();\n let from = handlerData.from;\n let to = handlerData.to;\n var parsedLoc = parseUrl(global.location.href);\n let parsedFrom = parseUrl(from);\n var parsedTo = parseUrl(to);\n\n // Initial pushState doesn't provide `from` information\n if (!parsedFrom.path) {\n parsedFrom = parsedLoc;\n }\n\n // Use only the path component of the URL if the URL matches the current\n // document (almost all the time when using pushState)\n if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) {\n to = parsedTo.relative;\n }\n if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) {\n from = parsedFrom.relative;\n }\n\n getCurrentHub().addBreadcrumb({\n category: 'navigation',\n data: {\n from,\n to,\n },\n });\n}\n\nexport { BREADCRUMB_INTEGRATION_ID, Breadcrumbs };\n//# sourceMappingURL=breadcrumbs.js.map\n","import { logger } from '@sentry/utils';\n\n/** Deduplication filter */\nclass Dedupe {constructor() { Dedupe.prototype.__init.call(this); }\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'Dedupe';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = Dedupe.id;}\n\n /**\n * @inheritDoc\n */\n \n\n /**\n * @inheritDoc\n */\n setupOnce(addGlobalEventProcessor, getCurrentHub) {\n var eventProcessor = currentEvent => {\n var self = getCurrentHub().getIntegration(Dedupe);\n if (self) {\n // Juuust in case something goes wrong\n try {\n if (_shouldDropEvent(currentEvent, self._previousEvent)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Event dropped due to being a duplicate of previously captured event.');\n return null;\n }\n } catch (_oO) {\n return (self._previousEvent = currentEvent);\n }\n\n return (self._previousEvent = currentEvent);\n }\n return currentEvent;\n };\n\n eventProcessor.id = this.name;\n addGlobalEventProcessor(eventProcessor);\n }\n} Dedupe.__initStatic();\n\n/** JSDoc */\nfunction _shouldDropEvent(currentEvent, previousEvent) {\n if (!previousEvent) {\n return false;\n }\n\n if (_isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n return false;\n}\n\n/** JSDoc */\nfunction _isSameMessageEvent(currentEvent, previousEvent) {\n var currentMessage = currentEvent.message;\n var previousMessage = previousEvent.message;\n\n // If neither event has a message property, they were both exceptions, so bail out\n if (!currentMessage && !previousMessage) {\n return false;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n return false;\n }\n\n if (currentMessage !== previousMessage) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\n/** JSDoc */\nfunction _isSameExceptionEvent(currentEvent, previousEvent) {\n var previousException = _getExceptionFromEvent(previousEvent);\n var currentException = _getExceptionFromEvent(currentEvent);\n\n if (!previousException || !currentException) {\n return false;\n }\n\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\n/** JSDoc */\nfunction _isSameStacktrace(currentEvent, previousEvent) {\n let currentFrames = _getFramesFromEvent(currentEvent);\n let previousFrames = _getFramesFromEvent(previousEvent);\n\n // If neither event has a stacktrace, they are assumed to be the same\n if (!currentFrames && !previousFrames) {\n return true;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentFrames && !previousFrames) || (!currentFrames && previousFrames)) {\n return false;\n }\n\n currentFrames = currentFrames ;\n previousFrames = previousFrames ;\n\n // If number of frames differ, they are not the same\n if (previousFrames.length !== currentFrames.length) {\n return false;\n }\n\n // Otherwise, compare the two\n for (let i = 0; i < previousFrames.length; i++) {\n var frameA = previousFrames[i];\n var frameB = currentFrames[i];\n\n if (\n frameA.filename !== frameB.filename ||\n frameA.lineno !== frameB.lineno ||\n frameA.colno !== frameB.colno ||\n frameA.function !== frameB.function\n ) {\n return false;\n }\n }\n\n return true;\n}\n\n/** JSDoc */\nfunction _isSameFingerprint(currentEvent, previousEvent) {\n let currentFingerprint = currentEvent.fingerprint;\n let previousFingerprint = previousEvent.fingerprint;\n\n // If neither event has a fingerprint, they are assumed to be the same\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n }\n\n // If only one event has a fingerprint, but not the other one, they are not the same\n if ((currentFingerprint && !previousFingerprint) || (!currentFingerprint && previousFingerprint)) {\n return false;\n }\n\n currentFingerprint = currentFingerprint ;\n previousFingerprint = previousFingerprint ;\n\n // Otherwise, compare the two\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n } catch (_oO) {\n return false;\n }\n}\n\n/** JSDoc */\nfunction _getExceptionFromEvent(event) {\n return event.exception && event.exception.values && event.exception.values[0];\n}\n\n/** JSDoc */\nfunction _getFramesFromEvent(event) {\n var exception = event.exception;\n\n if (exception) {\n try {\n // @ts-ignore Object could be undefined\n return exception.values[0].stacktrace.frames;\n } catch (_oO) {\n return undefined;\n }\n }\n return undefined;\n}\n\nexport { Dedupe };\n//# sourceMappingURL=dedupe.js.map\n","import { getCurrentHub } from '@sentry/core';\nimport { addInstrumentationHandler, isString, isPrimitive, isErrorEvent, getLocationHref, logger, addExceptionMechanism } from '@sentry/utils';\nimport { eventFromUnknownInput } from '../eventbuilder.js';\nimport { shouldIgnoreOnError } from '../helpers.js';\n\n/** Global handlers */\nclass GlobalHandlers {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'GlobalHandlers';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = GlobalHandlers.id;}\n\n /** JSDoc */\n \n\n /**\n * Stores references functions to installing handlers. Will set to undefined\n * after they have been run so that they are not used twice.\n */\n __init2() {this._installFunc = {\n onerror: _installGlobalOnErrorHandler,\n onunhandledrejection: _installGlobalOnUnhandledRejectionHandler,\n };}\n\n /** JSDoc */\n constructor(options) {;GlobalHandlers.prototype.__init.call(this);GlobalHandlers.prototype.__init2.call(this);\n this._options = {\n onerror: true,\n onunhandledrejection: true,\n ...options,\n };\n }\n /**\n * @inheritDoc\n */\n setupOnce() {\n Error.stackTraceLimit = 50;\n var options = this._options;\n\n // We can disable guard-for-in as we construct the options object above + do checks against\n // `this._installFunc` for the property.\n for (var key in options) {\n var installFunc = this._installFunc[key ];\n if (installFunc && options[key ]) {\n globalHandlerLog(key);\n installFunc();\n this._installFunc[key ] = undefined;\n }\n }\n }\n} GlobalHandlers.__initStatic();\n\n/** JSDoc */\nfunction _installGlobalOnErrorHandler() {\n addInstrumentationHandler(\n 'error',\n (data) => {\n const [hub, stackParser, attachStacktrace] = getHubAndOptions();\n if (!hub.getIntegration(GlobalHandlers)) {\n return;\n }\n const { msg, url, line, column, error } = data;\n if (shouldIgnoreOnError() || (error && error.__sentry_own_request__)) {\n return;\n }\n\n var event =\n error === undefined && isString(msg)\n ? _eventFromIncompleteOnError(msg, url, line, column)\n : _enhanceEventWithInitialFrame(\n eventFromUnknownInput(stackParser, error || msg, undefined, attachStacktrace, false),\n url,\n line,\n column,\n );\n\n event.level = 'error';\n\n addMechanismAndCapture(hub, error, event, 'onerror');\n },\n );\n}\n\n/** JSDoc */\nfunction _installGlobalOnUnhandledRejectionHandler() {\n addInstrumentationHandler(\n 'unhandledrejection',\n (e) => {\n const [hub, stackParser, attachStacktrace] = getHubAndOptions();\n if (!hub.getIntegration(GlobalHandlers)) {\n return;\n }\n let error = e;\n\n // dig the object of the rejection out of known event types\n try {\n // PromiseRejectionEvents store the object of the rejection under 'reason'\n // see https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent\n if ('reason' in e) {\n error = e.reason;\n }\n // something, somewhere, (likely a browser extension) effectively casts PromiseRejectionEvents\n // to CustomEvents, moving the `promise` and `reason` attributes of the PRE into\n // the CustomEvent's `detail` attribute, since they're not part of CustomEvent's spec\n // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent and\n // https://github.com/getsentry/sentry-javascript/issues/2380\n else if ('detail' in e && 'reason' in e.detail) {\n error = e.detail.reason;\n }\n } catch (_oO) {\n // no-empty\n }\n\n if (shouldIgnoreOnError() || (error && error.__sentry_own_request__)) {\n return true;\n }\n\n var event = isPrimitive(error)\n ? _eventFromRejectionWithPrimitive(error)\n : eventFromUnknownInput(stackParser, error, undefined, attachStacktrace, true);\n\n event.level = 'error';\n\n addMechanismAndCapture(hub, error, event, 'onunhandledrejection');\n return;\n },\n );\n}\n\n/**\n * Create an event from a promise rejection where the `reason` is a primitive.\n *\n * @param reason: The `reason` property of the promise rejection\n * @returns An Event object with an appropriate `exception` value\n */\nfunction _eventFromRejectionWithPrimitive(reason) {\n return {\n exception: {\n values: [\n {\n type: 'UnhandledRejection',\n // String() is needed because the Primitive type includes symbols (which can't be automatically stringified)\n value: `Non-Error promise rejection captured with value: ${String(reason)}`,\n },\n ],\n },\n };\n}\n\n/**\n * This function creates a stack from an old, error-less onerror handler.\n */\nfunction _eventFromIncompleteOnError(msg, url, line, column) {\n var ERROR_TYPES_RE =\n /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;\n\n // If 'message' is ErrorEvent, get real message from inside\n let message = isErrorEvent(msg) ? msg.message : msg;\n let name = 'Error';\n\n var groups = message.match(ERROR_TYPES_RE);\n if (groups) {\n name = groups[1];\n message = groups[2];\n }\n\n var event = {\n exception: {\n values: [\n {\n type: name,\n value: message,\n },\n ],\n },\n };\n\n return _enhanceEventWithInitialFrame(event, url, line, column);\n}\n\n/** JSDoc */\nfunction _enhanceEventWithInitialFrame(event, url, line, column) {\n // event.exception\n var e = (event.exception = event.exception || {});\n // event.exception.values\n var ev = (e.values = e.values || []);\n // event.exception.values[0]\n var ev0 = (ev[0] = ev[0] || {});\n // event.exception.values[0].stacktrace\n var ev0s = (ev0.stacktrace = ev0.stacktrace || {});\n // event.exception.values[0].stacktrace.frames\n var ev0sf = (ev0s.frames = ev0s.frames || []);\n\n var colno = isNaN(parseInt(column, 10)) ? undefined : column;\n var lineno = isNaN(parseInt(line, 10)) ? undefined : line;\n var filename = isString(url) && url.length > 0 ? url : getLocationHref();\n\n // event.exception.values[0].stacktrace.frames\n if (ev0sf.length === 0) {\n ev0sf.push({\n colno,\n filename,\n function: '?',\n in_app: true,\n lineno,\n });\n }\n\n return event;\n}\n\nfunction globalHandlerLog(type) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Global Handler attached: ${type}`);\n}\n\nfunction addMechanismAndCapture(hub, error, event, type) {\n addExceptionMechanism(event, {\n handled: false,\n type,\n });\n hub.captureEvent(event, {\n originalException: error,\n });\n}\n\nfunction getHubAndOptions() {\n var hub = getCurrentHub();\n var client = hub.getClient();\n var options = (client && client.getOptions()) || {\n stackParser: () => [],\n attachStacktrace: false,\n };\n return [hub, options.stackParser, options.attachStacktrace];\n}\n\nexport { GlobalHandlers };\n//# sourceMappingURL=globalhandlers.js.map\n","import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { getGlobalObject } from '@sentry/utils';\n\nvar global = getGlobalObject();\n\n/** HttpContext integration collects information about HTTP request headers */\nclass HttpContext {constructor() { HttpContext.prototype.__init.call(this); }\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'HttpContext';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = HttpContext.id;}\n\n /**\n * @inheritDoc\n */\n setupOnce() {\n addGlobalEventProcessor((event) => {\n if (getCurrentHub().getIntegration(HttpContext)) {\n // if none of the information we want exists, don't bother\n if (!global.navigator && !global.location && !global.document) {\n return event;\n }\n\n // grab as much info as exists and add it to the event\n var url = (event.request && event.request.url) || (global.location && global.location.href);\n const { referrer } = global.document || {};\n const { userAgent } = global.navigator || {};\n\n var headers = {\n ...(event.request && event.request.headers),\n ...(referrer && { Referer: referrer }),\n ...(userAgent && { 'User-Agent': userAgent }),\n };\n var request = { ...(url && { url }), headers };\n\n return { ...event, request };\n }\n return event;\n });\n }\n} HttpContext.__initStatic();\n\nexport { HttpContext };\n//# sourceMappingURL=httpcontext.js.map\n","import { getCurrentHub, addGlobalEventProcessor } from '@sentry/core';\nimport { isInstanceOf } from '@sentry/utils';\nimport { exceptionFromError } from '../eventbuilder.js';\n\nvar DEFAULT_KEY = 'cause';\nvar DEFAULT_LIMIT = 5;\n\n/** Adds SDK info to an event. */\nclass LinkedErrors {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'LinkedErrors';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = LinkedErrors.id;}\n\n /**\n * @inheritDoc\n */\n \n\n /**\n * @inheritDoc\n */\n \n\n /**\n * @inheritDoc\n */\n constructor(options = {}) {;LinkedErrors.prototype.__init.call(this);\n this._key = options.key || DEFAULT_KEY;\n this._limit = options.limit || DEFAULT_LIMIT;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce() {\n var client = getCurrentHub().getClient();\n if (!client) {\n return;\n }\n addGlobalEventProcessor((event, hint) => {\n var self = getCurrentHub().getIntegration(LinkedErrors);\n return self ? _handler(client.getOptions().stackParser, self._key, self._limit, event, hint) : event;\n });\n }\n} LinkedErrors.__initStatic();\n\n/**\n * @inheritDoc\n */\nfunction _handler(\n parser,\n key,\n limit,\n event,\n hint,\n) {\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return event;\n }\n var linkedErrors = _walkErrorTree(parser, limit, hint.originalException , key);\n event.exception.values = [...linkedErrors, ...event.exception.values];\n return event;\n}\n\n/**\n * JSDOC\n */\nfunction _walkErrorTree(\n parser,\n limit,\n error,\n key,\n stack = [],\n) {\n if (!isInstanceOf(error[key], Error) || stack.length + 1 >= limit) {\n return stack;\n }\n var exception = exceptionFromError(parser, error[key]);\n return _walkErrorTree(parser, limit, error[key], key, [exception, ...stack]);\n}\n\nexport { LinkedErrors, _handler, _walkErrorTree };\n//# sourceMappingURL=linkederrors.js.map\n","import { getGlobalObject, fill, getFunctionName, getOriginalFunction } from '@sentry/utils';\nimport { wrap } from '../helpers.js';\n\nvar DEFAULT_EVENT_TARGET = [\n 'EventTarget',\n 'Window',\n 'Node',\n 'ApplicationCache',\n 'AudioTrackList',\n 'ChannelMergerNode',\n 'CryptoOperation',\n 'EventSource',\n 'FileReader',\n 'HTMLUnknownElement',\n 'IDBDatabase',\n 'IDBRequest',\n 'IDBTransaction',\n 'KeyOperation',\n 'MediaController',\n 'MessagePort',\n 'ModalWindow',\n 'Notification',\n 'SVGElementInstance',\n 'Screen',\n 'TextTrack',\n 'TextTrackCue',\n 'TextTrackList',\n 'WebSocket',\n 'WebSocketWorker',\n 'Worker',\n 'XMLHttpRequest',\n 'XMLHttpRequestEventTarget',\n 'XMLHttpRequestUpload',\n];\n\n/** Wrap timer functions and event targets to catch errors and provide better meta data */\nclass TryCatch {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'TryCatch';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = TryCatch.id;}\n\n /** JSDoc */\n \n\n /**\n * @inheritDoc\n */\n constructor(options) {;TryCatch.prototype.__init.call(this);\n this._options = {\n XMLHttpRequest: true,\n eventTarget: true,\n requestAnimationFrame: true,\n setInterval: true,\n setTimeout: true,\n ...options,\n };\n }\n\n /**\n * Wrap timer functions and event targets to catch errors\n * and provide better metadata.\n */\n setupOnce() {\n var global = getGlobalObject();\n\n if (this._options.setTimeout) {\n fill(global, 'setTimeout', _wrapTimeFunction);\n }\n\n if (this._options.setInterval) {\n fill(global, 'setInterval', _wrapTimeFunction);\n }\n\n if (this._options.requestAnimationFrame) {\n fill(global, 'requestAnimationFrame', _wrapRAF);\n }\n\n if (this._options.XMLHttpRequest && 'XMLHttpRequest' in global) {\n fill(XMLHttpRequest.prototype, 'send', _wrapXHR);\n }\n\n var eventTargetOption = this._options.eventTarget;\n if (eventTargetOption) {\n var eventTarget = Array.isArray(eventTargetOption) ? eventTargetOption : DEFAULT_EVENT_TARGET;\n eventTarget.forEach(_wrapEventTarget);\n }\n }\n} TryCatch.__initStatic();\n\n/** JSDoc */\nfunction _wrapTimeFunction(original) {\n return function ( ...args) {\n var originalCallback = args[0];\n args[0] = wrap(originalCallback, {\n mechanism: {\n data: { function: getFunctionName(original) },\n handled: true,\n type: 'instrument',\n },\n });\n return original.apply(this, args);\n };\n}\n\n/** JSDoc */\nfunction _wrapRAF(original) {\n return function ( callback) {\n return original.apply(this, [\n wrap(callback, {\n mechanism: {\n data: {\n function: 'requestAnimationFrame',\n handler: getFunctionName(original),\n },\n handled: true,\n type: 'instrument',\n },\n }),\n ]);\n };\n}\n\n/** JSDoc */\nfunction _wrapXHR(originalSend) {\n return function ( ...args) {\n var xhr = this;\n var xmlHttpRequestProps = ['onload', 'onerror', 'onprogress', 'onreadystatechange'];\n\n xmlHttpRequestProps.forEach(prop => {\n if (prop in xhr && typeof xhr[prop] === 'function') {\n fill(xhr, prop, function (original) {\n var wrapOptions = {\n mechanism: {\n data: {\n function: prop,\n handler: getFunctionName(original),\n },\n handled: true,\n type: 'instrument',\n },\n };\n\n // If Instrument integration has been called before TryCatch, get the name of original function\n var originalFunction = getOriginalFunction(original);\n if (originalFunction) {\n wrapOptions.mechanism.data.handler = getFunctionName(originalFunction);\n }\n\n // Otherwise wrap directly\n return wrap(original, wrapOptions);\n });\n }\n });\n\n return originalSend.apply(this, args);\n };\n}\n\n/** JSDoc */\nfunction _wrapEventTarget(target) {\n var global = getGlobalObject() ;\n var proto = global[target] && global[target].prototype;\n\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (original)\n\n {\n return function (\n \n eventName,\n fn,\n options,\n ) {\n try {\n if (typeof fn.handleEvent === 'function') {\n // ESlint disable explanation:\n // First, it is generally safe to call `wrap` with an unbound function. Furthermore, using `.bind()` would\n // introduce a bug here, because bind returns a new function that doesn't have our\n // flags(like __sentry_original__) attached. `wrap` checks for those flags to avoid unnecessary wrapping.\n // Without those flags, every call to addEventListener wraps the function again, causing a memory leak.\n fn.handleEvent = wrap(fn.handleEvent, {\n mechanism: {\n data: {\n function: 'handleEvent',\n handler: getFunctionName(fn),\n target,\n },\n handled: true,\n type: 'instrument',\n },\n });\n }\n } catch (err) {\n // can sometimes get 'Permission denied to access property \"handle Event'\n }\n\n return original.apply(this, [\n eventName,\n wrap(fn , {\n mechanism: {\n data: {\n function: 'addEventListener',\n handler: getFunctionName(fn),\n target,\n },\n handled: true,\n type: 'instrument',\n },\n }),\n options,\n ]);\n };\n });\n\n fill(\n proto,\n 'removeEventListener',\n function (\n originalRemoveEventListener,\n ) {\n return function (\n \n eventName,\n fn,\n options,\n ) {\n /**\n * There are 2 possible scenarios here:\n *\n * 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified\n * method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function\n * as a pass-through, and call original `removeEventListener` with it.\n *\n * 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using\n * our wrapped version of `addEventListener`, which internally calls `wrap` helper.\n * This helper \"wraps\" whole callback inside a try/catch statement, and attached appropriate metadata to it,\n * in order for us to make a distinction between wrapped/non-wrapped functions possible.\n * If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.\n *\n * When someone adds a handler prior to initialization, and then do it again, but after,\n * then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible\n * to get rid of the initial handler and it'd stick there forever.\n */\n var wrappedEventHandler = fn ;\n try {\n var originalEventHandler = wrappedEventHandler && wrappedEventHandler.__sentry_wrapped__;\n if (originalEventHandler) {\n originalRemoveEventListener.call(this, eventName, originalEventHandler, options);\n }\n } catch (e) {\n // ignore, accessing __sentry_wrapped__ will throw in some Selenium environments\n }\n return originalRemoveEventListener.call(this, eventName, wrappedEventHandler, options);\n };\n },\n );\n}\n\nexport { TryCatch };\n//# sourceMappingURL=trycatch.js.map\n","import { Integrations, getIntegrationsToSetup, initAndBind, getCurrentHub, getReportDialogEndpoint } from '@sentry/core';\nimport { getGlobalObject, stackParserFromStackParserOptions, supportsFetch, logger, resolvedSyncPromise, addInstrumentationHandler } from '@sentry/utils';\nimport { BrowserClient } from './client.js';\nimport { wrap as wrap$1 } from './helpers.js';\nimport './integrations/index.js';\nimport { defaultStackParser } from './stack-parsers.js';\nimport './transports/index.js';\nimport { TryCatch } from './integrations/trycatch.js';\nimport { Breadcrumbs } from './integrations/breadcrumbs.js';\nimport { GlobalHandlers } from './integrations/globalhandlers.js';\nimport { LinkedErrors } from './integrations/linkederrors.js';\nimport { Dedupe } from './integrations/dedupe.js';\nimport { HttpContext } from './integrations/httpcontext.js';\nimport { makeFetchTransport } from './transports/fetch.js';\nimport { makeXHRTransport } from './transports/xhr.js';\n\nvar defaultIntegrations = [\n new Integrations.InboundFilters(),\n new Integrations.FunctionToString(),\n new TryCatch(),\n new Breadcrumbs(),\n new GlobalHandlers(),\n new LinkedErrors(),\n new Dedupe(),\n new HttpContext(),\n];\n\n/**\n * The Sentry Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@sentry/browser';\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { configureScope } from '@sentry/browser';\n * configureScope((scope: Scope) => {\n * scope.setExtra({ battery: 0.7 });\n * scope.setTag({ user_mode: 'admin' });\n * scope.setUser({ id: '4711' });\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@sentry/browser';\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Sentry from '@sentry/browser';\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\nfunction init(options = {}) {\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = defaultIntegrations;\n }\n if (options.release === undefined) {\n var window = getGlobalObject();\n // This supports the variable that sentry-webpack-plugin injects\n if (window.SENTRY_RELEASE && window.SENTRY_RELEASE.id) {\n options.release = window.SENTRY_RELEASE.id;\n }\n }\n if (options.autoSessionTracking === undefined) {\n options.autoSessionTracking = true;\n }\n if (options.sendClientReports === undefined) {\n options.sendClientReports = true;\n }\n\n var clientOptions = {\n ...options,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup(options),\n transport: options.transport || (supportsFetch() ? makeFetchTransport : makeXHRTransport),\n };\n\n initAndBind(BrowserClient, clientOptions);\n\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n}\n\n/**\n * Present the user with a report dialog.\n *\n * @param options Everything is optional, we try to fetch all info need from the global scope.\n */\nfunction showReportDialog(options = {}, hub = getCurrentHub()) {\n // doesn't work without a document (React Native)\n var global = getGlobalObject();\n if (!global.document) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Global document not defined in showReportDialog call');\n return;\n }\n\n const { client, scope } = hub.getStackTop();\n var dsn = options.dsn || (client && client.getDsn());\n if (!dsn) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('DSN not configured for showReportDialog call');\n return;\n }\n\n if (scope) {\n options.user = {\n ...scope.getUser(),\n ...options.user,\n };\n }\n\n if (!options.eventId) {\n options.eventId = hub.lastEventId();\n }\n\n var script = global.document.createElement('script');\n script.async = true;\n script.src = getReportDialogEndpoint(dsn, options);\n\n if (options.onLoad) {\n script.onload = options.onLoad;\n }\n\n var injectionPoint = global.document.head || global.document.body;\n if (injectionPoint) {\n injectionPoint.appendChild(script);\n } else {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Not injecting report dialog. No injection point found in HTML');\n }\n}\n\n/**\n * This is the getter for lastEventId.\n *\n * @returns The last event id of a captured event.\n */\nfunction lastEventId() {\n return getCurrentHub().lastEventId();\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nfunction forceLoad() {\n // Noop\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nfunction onLoad(callback) {\n callback();\n}\n\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nfunction flush(timeout) {\n var client = getCurrentHub().getClient();\n if (client) {\n return client.flush(timeout);\n }\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot flush events. No client defined.');\n return resolvedSyncPromise(false);\n}\n\n/**\n * Call `close()` on the current client, if there is one. See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nfunction close(timeout) {\n var client = getCurrentHub().getClient();\n if (client) {\n return client.close(timeout);\n }\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot flush events and disable SDK. No client defined.');\n return resolvedSyncPromise(false);\n}\n\n/**\n * Wrap code within a try/catch block so the SDK is able to capture errors.\n *\n * @param fn A function to wrap.\n *\n * @returns The result of wrapped function call.\n */\nfunction wrap(fn) {\n return wrap$1(fn)();\n}\n\nfunction startSessionOnHub(hub) {\n hub.startSession({ ignoreDuration: true });\n hub.captureSession();\n}\n\n/**\n * Enable automatic Session Tracking for the initial page load.\n */\nfunction startSessionTracking() {\n var window = getGlobalObject();\n var document = window.document;\n\n if (typeof document === 'undefined') {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn('Session tracking in non-browser environment with @sentry/browser is not supported.');\n return;\n }\n\n var hub = getCurrentHub();\n\n // The only way for this to be false is for there to be a version mismatch between @sentry/browser (>= 6.0.0) and\n // @sentry/hub (< 5.27.0). In the simple case, there won't ever be such a mismatch, because the two packages are\n // pinned at the same version in package.json, but there are edge cases where it's possible. See\n // https://github.com/getsentry/sentry-javascript/issues/3207 and\n // https://github.com/getsentry/sentry-javascript/issues/3234 and\n // https://github.com/getsentry/sentry-javascript/issues/3278.\n if (!hub.captureSession) {\n return;\n }\n\n // The session duration for browser sessions does not track a meaningful\n // concept that can be used as a metric.\n // Automatically captured sessions are akin to page views, and thus we\n // discard their duration.\n startSessionOnHub(hub);\n\n // We want to create a session for every navigation as well\n addInstrumentationHandler('history', ({ from, to }) => {\n // Don't create an additional session for the initial route or if the location did not change\n if (!(from === undefined || from === to)) {\n startSessionOnHub(getCurrentHub());\n }\n });\n}\n\nexport { close, defaultIntegrations, flush, forceLoad, init, lastEventId, onLoad, showReportDialog, wrap };\n//# sourceMappingURL=sdk.js.map\n","import { createStackParser } from '@sentry/utils';\n\n// global reference to slice\nvar UNKNOWN_FUNCTION = '?';\n\nvar OPERA10_PRIORITY = 10;\nvar OPERA11_PRIORITY = 20;\nvar CHROME_PRIORITY = 30;\nvar WINJS_PRIORITY = 40;\nvar GECKO_PRIORITY = 50;\n\nfunction createFrame(filename, func, lineno, colno) {\n var frame = {\n filename,\n function: func,\n // All browser frames are considered in_app\n in_app: true,\n };\n\n if (lineno !== undefined) {\n frame.lineno = lineno;\n }\n\n if (colno !== undefined) {\n frame.colno = colno;\n }\n\n return frame;\n}\n\n// Chromium based browsers: Chrome, Brave, new Opera, new Edge\nvar chromeRegex =\n /^\\s*at (?:(.*\\).*?|.*?) ?\\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\\/)?.*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nvar chromeEvalRegex = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\n\nvar chrome = line => {\n var parts = chromeRegex.exec(line);\n\n if (parts) {\n var isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line\n\n if (isEval) {\n var subMatch = chromeEvalRegex.exec(parts[2]);\n\n if (subMatch) {\n // throw out eval line/column and use top-most line/column number\n parts[2] = subMatch[1]; // url\n parts[3] = subMatch[2]; // line\n parts[4] = subMatch[3]; // column\n }\n }\n\n // Kamil: One more hack won't hurt us right? Understanding and adding more rules on top of these regexps right now\n // would be way too time consuming. (TODO: Rewrite whole RegExp to be more readable)\n const [func, filename] = extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]);\n\n return createFrame(filename, func, parts[3] ? +parts[3] : undefined, parts[4] ? +parts[4] : undefined);\n }\n\n return;\n};\n\nvar chromeStackLineParser = [CHROME_PRIORITY, chrome];\n\n// gecko regex: `(?:bundle|\\d+\\.js)`: `bundle` is for react native, `\\d+\\.js` also but specifically for ram bundles because it\n// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js\n// We need this specific case for now because we want no other regex to match.\nvar geckoREgex =\n /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\\/.*?|\\[native code\\]|[^@]*(?:bundle|\\d+\\.js)|\\/[\\w\\-. /=]+)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nvar geckoEvalRegex = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\n\nvar gecko = line => {\n var parts = geckoREgex.exec(line);\n\n if (parts) {\n var isEval = parts[3] && parts[3].indexOf(' > eval') > -1;\n if (isEval) {\n var subMatch = geckoEvalRegex.exec(parts[3]);\n\n if (subMatch) {\n // throw out eval line/column and use top-most line number\n parts[1] = parts[1] || 'eval';\n parts[3] = subMatch[1];\n parts[4] = subMatch[2];\n parts[5] = ''; // no column when eval\n }\n }\n\n let filename = parts[3];\n let func = parts[1] || UNKNOWN_FUNCTION;\n [func, filename] = extractSafariExtensionDetails(func, filename);\n\n return createFrame(filename, func, parts[4] ? +parts[4] : undefined, parts[5] ? +parts[5] : undefined);\n }\n\n return;\n};\n\nvar geckoStackLineParser = [GECKO_PRIORITY, gecko];\n\nvar winjsRegex =\n /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nvar winjs = line => {\n var parts = winjsRegex.exec(line);\n\n return parts\n ? createFrame(parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined)\n : undefined;\n};\n\nvar winjsStackLineParser = [WINJS_PRIORITY, winjs];\n\nvar opera10Regex = / line (\\d+).*script (?:in )?(\\S+)(?:: in function (\\S+))?$/i;\n\nvar opera10 = line => {\n var parts = opera10Regex.exec(line);\n return parts ? createFrame(parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : undefined;\n};\n\nvar opera10StackLineParser = [OPERA10_PRIORITY, opera10];\n\nvar opera11Regex =\n / line (\\d+), column (\\d+)\\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\\(.*\\))? in (.*):\\s*$/i;\n\nvar opera11 = line => {\n var parts = opera11Regex.exec(line);\n return parts ? createFrame(parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;\n};\n\nvar opera11StackLineParser = [OPERA11_PRIORITY, opera11];\n\nvar defaultStackLineParsers = [chromeStackLineParser, geckoStackLineParser, winjsStackLineParser];\n\nvar defaultStackParser = createStackParser(...defaultStackLineParsers);\n\n/**\n * Safari web extensions, starting version unknown, can produce \"frames-only\" stacktraces.\n * What it means, is that instead of format like:\n *\n * Error: wat\n * at function@url:row:col\n * at function@url:row:col\n * at function@url:row:col\n *\n * it produces something like:\n *\n * function@url:row:col\n * function@url:row:col\n * function@url:row:col\n *\n * Because of that, it won't be captured by `chrome` RegExp and will fall into `Gecko` branch.\n * This function is extracted so that we can use it in both places without duplicating the logic.\n * Unfortunately \"just\" changing RegExp is too complicated now and making it pass all tests\n * and fix this case seems like an impossible, or at least way too time-consuming task.\n */\nvar extractSafariExtensionDetails = (func, filename) => {\n var isSafariExtension = func.indexOf('safari-extension') !== -1;\n var isSafariWebExtension = func.indexOf('safari-web-extension') !== -1;\n\n return isSafariExtension || isSafariWebExtension\n ? [\n func.indexOf('@') !== -1 ? func.split('@')[0] : UNKNOWN_FUNCTION,\n isSafariExtension ? `safari-extension:${filename}` : `safari-web-extension:${filename}`,\n ]\n : [func, filename];\n};\n\nexport { chromeStackLineParser, defaultStackLineParsers, defaultStackParser, geckoStackLineParser, opera10StackLineParser, opera11StackLineParser, winjsStackLineParser };\n//# sourceMappingURL=stack-parsers.js.map\n","import { createTransport } from '@sentry/core';\nimport { getNativeFetchImplementation } from './utils.js';\n\n/**\n * Creates a Transport that uses the Fetch API to send events to Sentry.\n */\nfunction makeFetchTransport(\n options,\n nativeFetch = getNativeFetchImplementation(),\n) {\n function makeRequest(request) {\n var requestOptions = {\n body: request.body,\n method: 'POST',\n referrerPolicy: 'origin',\n headers: options.headers,\n ...options.fetchOptions,\n };\n\n return nativeFetch(options.url, requestOptions).then(response => ({\n statusCode: response.status,\n headers: {\n 'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n 'retry-after': response.headers.get('Retry-After'),\n },\n }));\n }\n\n return createTransport(options, makeRequest);\n}\n\nexport { makeFetchTransport };\n//# sourceMappingURL=fetch.js.map\n","import { getGlobalObject, isNativeFetch, logger, supportsFetch } from '@sentry/utils';\n\nvar global = getGlobalObject();\nlet cachedFetchImpl;\n\n/**\n * A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.\n * Whenever someone wraps the Fetch API and returns the wrong promise chain,\n * this chain becomes orphaned and there is no possible way to capture it's rejections\n * other than allowing it bubble up to this very handler. eg.\n *\n * var f = window.fetch;\n * window.fetch = function () {\n * var p = f.apply(this, arguments);\n *\n * p.then(function() {\n * console.log('hi.');\n * });\n *\n * return p;\n * }\n *\n * `p.then(function () { ... })` is producing a completely separate promise chain,\n * however, what's returned is `p` - the result of original `fetch` call.\n *\n * This mean, that whenever we use the Fetch API to send our own requests, _and_\n * some ad-blocker blocks it, this orphaned chain will _always_ reject,\n * effectively causing another event to be captured.\n * This makes a whole process become an infinite loop, which we need to somehow\n * deal with, and break it in one way or another.\n *\n * To deal with this issue, we are making sure that we _always_ use the real\n * browser Fetch API, instead of relying on what `window.fetch` exposes.\n * The only downside to this would be missing our own requests as breadcrumbs,\n * but because we are already not doing this, it should be just fine.\n *\n * Possible failed fetch error messages per-browser:\n *\n * Chrome: Failed to fetch\n * Edge: Failed to Fetch\n * Firefox: NetworkError when attempting to fetch resource\n * Safari: resource blocked by content blocker\n */\nfunction getNativeFetchImplementation() {\n if (cachedFetchImpl) {\n return cachedFetchImpl;\n }\n\n // Fast path to avoid DOM I/O\n if (isNativeFetch(global.fetch)) {\n return (cachedFetchImpl = global.fetch.bind(global));\n }\n\n var document = global.document;\n let fetchImpl = global.fetch;\n if (document && typeof document.createElement === 'function') {\n try {\n var sandbox = document.createElement('iframe');\n sandbox.hidden = true;\n document.head.appendChild(sandbox);\n var contentWindow = sandbox.contentWindow;\n if (contentWindow && contentWindow.fetch) {\n fetchImpl = contentWindow.fetch;\n }\n document.head.removeChild(sandbox);\n } catch (e) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', e);\n }\n }\n\n return (cachedFetchImpl = fetchImpl.bind(global));\n }\n\n/**\n * Sends sdk client report using sendBeacon or fetch as a fallback if available\n *\n * @param url report endpoint\n * @param body report payload\n */\nfunction sendReport(url, body) {\n var isRealNavigator = Object.prototype.toString.call(global && global.navigator) === '[object Navigator]';\n var hasSendBeacon = isRealNavigator && typeof global.navigator.sendBeacon === 'function';\n\n if (hasSendBeacon) {\n // Prevent illegal invocations - https://xgwang.me/posts/you-may-not-know-beacon/#it-may-throw-error%2C-be-sure-to-catch\n var sendBeacon = global.navigator.sendBeacon.bind(global.navigator);\n sendBeacon(url, body);\n } else if (supportsFetch()) {\n var fetch = getNativeFetchImplementation();\n fetch(url, {\n body,\n method: 'POST',\n credentials: 'omit',\n keepalive: true,\n }).then(null, error => {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(error);\n });\n }\n}\n\nexport { getNativeFetchImplementation, sendReport };\n//# sourceMappingURL=utils.js.map\n","import { createTransport } from '@sentry/core';\nimport { SyncPromise } from '@sentry/utils';\n\n/**\n * The DONE ready state for XmlHttpRequest\n *\n * Defining it here as a constant b/c XMLHttpRequest.DONE is not always defined\n * (e.g. during testing, it is `undefined`)\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState}\n */\nvar XHR_READYSTATE_DONE = 4;\n\n/**\n * Creates a Transport that uses the XMLHttpRequest API to send events to Sentry.\n */\nfunction makeXHRTransport(options) {\n function makeRequest(request) {\n return new SyncPromise((resolve, reject) => {\n var xhr = new XMLHttpRequest();\n\n xhr.onerror = reject;\n\n xhr.onreadystatechange = () => {\n if (xhr.readyState === XHR_READYSTATE_DONE) {\n resolve({\n statusCode: xhr.status,\n headers: {\n 'x-sentry-rate-limits': xhr.getResponseHeader('X-Sentry-Rate-Limits'),\n 'retry-after': xhr.getResponseHeader('Retry-After'),\n },\n });\n }\n };\n\n xhr.open('POST', options.url);\n\n for (var header in options.headers) {\n if (Object.prototype.hasOwnProperty.call(options.headers, header)) {\n xhr.setRequestHeader(header, options.headers[header]);\n }\n }\n\n xhr.send(request.body);\n });\n }\n\n return createTransport(options, makeRequest);\n}\n\nexport { makeXHRTransport };\n//# sourceMappingURL=xhr.js.map\n","import { urlEncode, makeDsn, dsnToString } from '@sentry/utils';\n\nvar SENTRY_API_VERSION = '7';\n\n/** Returns the prefix to construct Sentry ingestion API endpoints. */\nfunction getBaseApiEndpoint(dsn) {\n var protocol = dsn.protocol ? `${dsn.protocol}:` : '';\n var port = dsn.port ? `:${dsn.port}` : '';\n return `${protocol}//${dsn.host}${port}${dsn.path ? `/${dsn.path}` : ''}/api/`;\n}\n\n/** Returns the ingest API endpoint for target. */\nfunction _getIngestEndpoint(dsn) {\n return `${getBaseApiEndpoint(dsn)}${dsn.projectId}/envelope/`;\n}\n\n/** Returns a URL-encoded string with auth config suitable for a query string. */\nfunction _encodedAuth(dsn, sdkInfo) {\n return urlEncode({\n // We send only the minimum set of required information. See\n // https://github.com/getsentry/sentry-javascript/issues/2572.\n sentry_key: dsn.publicKey,\n sentry_version: SENTRY_API_VERSION,\n ...(sdkInfo && { sentry_client: `${sdkInfo.name}/${sdkInfo.version}` }),\n });\n}\n\n/**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\nfunction getEnvelopeEndpointWithUrlEncodedAuth(\n dsn,\n // TODO (v8): Remove `tunnelOrOptions` in favor of `options`, and use the substitute code below\n // options: ClientOptions = {} as ClientOptions,\n tunnelOrOptions = {} ,\n) {\n // TODO (v8): Use this code instead\n // const { tunnel, _metadata = {} } = options;\n // return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, _metadata.sdk)}`;\n\n var tunnel = typeof tunnelOrOptions === 'string' ? tunnelOrOptions : tunnelOrOptions.tunnel;\n var sdkInfo =\n typeof tunnelOrOptions === 'string' || !tunnelOrOptions._metadata ? undefined : tunnelOrOptions._metadata.sdk;\n\n return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, sdkInfo)}`;\n}\n\n/** Returns the url to the report dialog endpoint. */\nfunction getReportDialogEndpoint(\n dsnLike,\n dialogOptions\n\n,\n) {\n var dsn = makeDsn(dsnLike);\n var endpoint = `${getBaseApiEndpoint(dsn)}embed/error-page/`;\n\n let encodedOptions = `dsn=${dsnToString(dsn)}`;\n for (var key in dialogOptions) {\n if (key === 'dsn') {\n continue;\n }\n\n if (key === 'user') {\n var user = dialogOptions.user;\n if (!user) {\n continue;\n }\n if (user.name) {\n encodedOptions += `&name=${encodeURIComponent(user.name)}`;\n }\n if (user.email) {\n encodedOptions += `&email=${encodeURIComponent(user.email)}`;\n }\n } else {\n encodedOptions += `&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key] )}`;\n }\n }\n\n return `${endpoint}?${encodedOptions}`;\n}\n\nexport { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint };\n//# sourceMappingURL=api.js.map\n","import { updateSession, Scope } from '@sentry/hub';\nimport { makeDsn, logger, checkOrSetAlreadyCaught, isPrimitive, resolvedSyncPromise, addItemToEnvelope, createAttachmentEnvelopeItem, SyncPromise, uuid4, dateTimestampInSeconds, normalize, truncate, rejectedSyncPromise, SentryError, isThenable, isPlainObject } from '@sentry/utils';\nimport { getEnvelopeEndpointWithUrlEncodedAuth } from './api.js';\nimport { createEventEnvelope, createSessionEnvelope } from './envelope.js';\nimport { setupIntegrations } from './integration.js';\n\nvar ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\n\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event, it is passed through\n * {@link BaseClient._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends BaseClient<NodeOptions> {\n * public constructor(options: NodeOptions) {\n * super(options);\n * }\n *\n * // ...\n * }\n */\nclass BaseClient {\n /** Options passed to the SDK. */\n \n\n /** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */\n \n\n /** Array of set up integrations. */\n __init() {this._integrations = {};}\n\n /** Indicates whether this client's integrations have been set up. */\n __init2() {this._integrationsInitialized = false;}\n\n /** Number of calls being processed */\n __init3() {this._numProcessing = 0;}\n\n /** Holds flushable */\n __init4() {this._outcomes = {};}\n\n /**\n * Initializes this client instance.\n *\n * @param options Options for the client.\n */\n constructor(options) {;BaseClient.prototype.__init.call(this);BaseClient.prototype.__init2.call(this);BaseClient.prototype.__init3.call(this);BaseClient.prototype.__init4.call(this);\n this._options = options;\n if (options.dsn) {\n this._dsn = makeDsn(options.dsn);\n var url = getEnvelopeEndpointWithUrlEncodedAuth(this._dsn, options);\n this._transport = options.transport({\n recordDroppedEvent: this.recordDroppedEvent.bind(this),\n ...options.transportOptions,\n url,\n });\n } else {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('No DSN provided, client will not do anything.');\n }\n }\n\n /**\n * @inheritDoc\n */\n captureException(exception, hint, scope) {\n // ensure we haven't captured this very object before\n if (checkOrSetAlreadyCaught(exception)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n\n let eventId = hint && hint.event_id;\n\n this._process(\n this.eventFromException(exception, hint)\n .then(event => this._captureEvent(event, hint, scope))\n .then(result => {\n eventId = result;\n }),\n );\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureMessage(\n message,\n level,\n hint,\n scope,\n ) {\n let eventId = hint && hint.event_id;\n\n var promisedEvent = isPrimitive(message)\n ? this.eventFromMessage(String(message), level, hint)\n : this.eventFromException(message, hint);\n\n this._process(\n promisedEvent\n .then(event => this._captureEvent(event, hint, scope))\n .then(result => {\n eventId = result;\n }),\n );\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureEvent(event, hint, scope) {\n // ensure we haven't captured this very object before\n if (hint && hint.originalException && checkOrSetAlreadyCaught(hint.originalException)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n\n let eventId = hint && hint.event_id;\n\n this._process(\n this._captureEvent(event, hint, scope).then(result => {\n eventId = result;\n }),\n );\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureSession(session) {\n if (!this._isEnabled()) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('SDK not enabled, will not capture session.');\n return;\n }\n\n if (!(typeof session.release === 'string')) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Discarded session because of missing or non-string release');\n } else {\n this.sendSession(session);\n // After sending, we set init false to indicate it's not the first occurrence\n updateSession(session, { init: false });\n }\n }\n\n /**\n * @inheritDoc\n */\n getDsn() {\n return this._dsn;\n }\n\n /**\n * @inheritDoc\n */\n getOptions() {\n return this._options;\n }\n\n /**\n * @inheritDoc\n */\n getTransport() {\n return this._transport;\n }\n\n /**\n * @inheritDoc\n */\n flush(timeout) {\n var transport = this._transport;\n if (transport) {\n return this._isClientDoneProcessing(timeout).then(clientFinished => {\n return transport.flush(timeout).then(transportFlushed => clientFinished && transportFlushed);\n });\n } else {\n return resolvedSyncPromise(true);\n }\n }\n\n /**\n * @inheritDoc\n */\n close(timeout) {\n return this.flush(timeout).then(result => {\n this.getOptions().enabled = false;\n return result;\n });\n }\n\n /**\n * Sets up the integrations\n */\n setupIntegrations() {\n if (this._isEnabled() && !this._integrationsInitialized) {\n this._integrations = setupIntegrations(this._options.integrations);\n this._integrationsInitialized = true;\n }\n }\n\n /**\n * Gets an installed integration by its `id`.\n *\n * @returns The installed integration or `undefined` if no integration with that `id` was installed.\n */\n getIntegrationById(integrationId) {\n return this._integrations[integrationId];\n }\n\n /**\n * @inheritDoc\n */\n getIntegration(integration) {\n try {\n return (this._integrations[integration.id] ) || null;\n } catch (_oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);\n return null;\n }\n }\n\n /**\n * @inheritDoc\n */\n sendEvent(event, hint = {}) {\n if (this._dsn) {\n let env = createEventEnvelope(event, this._dsn, this._options._metadata, this._options.tunnel);\n\n for (var attachment of hint.attachments || []) {\n env = addItemToEnvelope(\n env,\n createAttachmentEnvelopeItem(\n attachment,\n this._options.transportOptions && this._options.transportOptions.textEncoder,\n ),\n );\n }\n\n this._sendEnvelope(env);\n }\n }\n\n /**\n * @inheritDoc\n */\n sendSession(session) {\n if (this._dsn) {\n var env = createSessionEnvelope(session, this._dsn, this._options._metadata, this._options.tunnel);\n this._sendEnvelope(env);\n }\n }\n\n /**\n * @inheritDoc\n */\n recordDroppedEvent(reason, category) {\n if (this._options.sendClientReports) {\n // We want to track each category (error, transaction, session) separately\n // but still keep the distinction between different type of outcomes.\n // We could use nested maps, but it's much easier to read and type this way.\n // A correct type for map-based implementation if we want to go that route\n // would be `Partial<Record<SentryRequestType, Partial<Record<Outcome, number>>>>`\n // With typescript 4.1 we could even use template literal types\n var key = `${reason}:${category}`;\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Adding outcome: \"${key}\"`);\n\n // The following works because undefined + 1 === NaN and NaN is falsy\n this._outcomes[key] = this._outcomes[key] + 1 || 1;\n }\n }\n\n /** Updates existing session based on the provided event */\n _updateSessionFromEvent(session, event) {\n let crashed = false;\n let errored = false;\n var exceptions = event.exception && event.exception.values;\n\n if (exceptions) {\n errored = true;\n\n for (var ex of exceptions) {\n var mechanism = ex.mechanism;\n if (mechanism && mechanism.handled === false) {\n crashed = true;\n break;\n }\n }\n }\n\n // A session is updated and that session update is sent in only one of the two following scenarios:\n // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status crashed and send update\n var sessionNonTerminal = session.status === 'ok';\n var shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && crashed);\n\n if (shouldUpdateAndSend) {\n updateSession(session, {\n ...(crashed && { status: 'crashed' }),\n errors: session.errors || Number(errored || crashed),\n });\n this.captureSession(session);\n }\n }\n\n /**\n * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n * `false` otherwise\n */\n _isClientDoneProcessing(timeout) {\n return new SyncPromise(resolve => {\n let ticked = 0;\n var tick = 1;\n\n var interval = setInterval(() => {\n if (this._numProcessing == 0) {\n clearInterval(interval);\n resolve(true);\n } else {\n ticked += tick;\n if (timeout && ticked >= timeout) {\n clearInterval(interval);\n resolve(false);\n }\n }\n }, tick);\n });\n }\n\n /** Determines whether this SDK is enabled and a valid Dsn is present. */\n _isEnabled() {\n return this.getOptions().enabled !== false && this._dsn !== undefined;\n }\n\n /**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n */\n _prepareEvent(event, hint, scope) {\n const { normalizeDepth = 3, normalizeMaxBreadth = 1000 } = this.getOptions();\n var prepared = {\n ...event,\n event_id: event.event_id || hint.event_id || uuid4(),\n timestamp: event.timestamp || dateTimestampInSeconds(),\n };\n\n this._applyClientOptions(prepared);\n this._applyIntegrationsMetadata(prepared);\n\n // If we have scope given to us, use it as the base for further modifications.\n // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n let finalScope = scope;\n if (hint.captureContext) {\n finalScope = Scope.clone(finalScope).update(hint.captureContext);\n }\n\n // We prepare the result here with a resolved Event.\n let result = resolvedSyncPromise(prepared);\n\n // This should be the last thing called, since we want that\n // {@link Hub.addEventProcessor} gets the finished prepared event.\n if (finalScope) {\n // Collect attachments from the hint and scope\n var attachments = [...(hint.attachments || []), ...finalScope.getAttachments()];\n\n if (attachments.length) {\n hint.attachments = attachments;\n }\n\n // In case we have a hub we reassign it.\n result = finalScope.applyToEvent(prepared, hint);\n }\n\n return result.then(evt => {\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return this._normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);\n }\n return evt;\n });\n }\n\n /**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\n _normalizeEvent(event, depth, maxBreadth) {\n if (!event) {\n return null;\n }\n\n var normalized = {\n ...event,\n ...(event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(b => ({\n ...b,\n ...(b.data && {\n data: normalize(b.data, depth, maxBreadth),\n }),\n })),\n }),\n ...(event.user && {\n user: normalize(event.user, depth, maxBreadth),\n }),\n ...(event.contexts && {\n contexts: normalize(event.contexts, depth, maxBreadth),\n }),\n ...(event.extra && {\n extra: normalize(event.extra, depth, maxBreadth),\n }),\n };\n\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace && normalized.contexts) {\n normalized.contexts.trace = event.contexts.trace;\n\n // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n if (event.contexts.trace.data) {\n normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);\n }\n }\n\n // event.spans[].data may contain circular/dangerous data so we need to normalize it\n if (event.spans) {\n normalized.spans = event.spans.map(span => {\n // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n if (span.data) {\n span.data = normalize(span.data, depth, maxBreadth);\n }\n return span;\n });\n }\n\n return normalized;\n }\n\n /**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n * @param event event instance to be enhanced\n */\n _applyClientOptions(event) {\n var options = this.getOptions();\n const { environment, release, dist, maxValueLength = 250 } = options;\n\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : 'production';\n }\n\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n\n var exception = event.exception && event.exception.values && event.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n\n var request = event.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n }\n\n /**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\n _applyIntegrationsMetadata(event) {\n var integrationsArray = Object.keys(this._integrations);\n if (integrationsArray.length > 0) {\n event.sdk = event.sdk || {};\n event.sdk.integrations = [...(event.sdk.integrations || []), ...integrationsArray];\n }\n }\n\n /**\n * Processes the event and logs an error in case of rejection\n * @param event\n * @param hint\n * @param scope\n */\n _captureEvent(event, hint = {}, scope) {\n return this._processEvent(event, hint, scope).then(\n finalEvent => {\n return finalEvent.event_id;\n },\n reason => {\n if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n // If something's gone wrong, log the error as a warning. If it's just us having used a `SentryError` for\n // control flow, log just the message (no stack) as a log-level log.\n var sentryError = reason ;\n if (sentryError.logLevel === 'log') {\n logger.log(sentryError.message);\n } else {\n logger.warn(sentryError);\n }\n }\n return undefined;\n },\n );\n }\n\n /**\n * Processes an event (either error or message) and sends it to Sentry.\n *\n * This also adds breadcrumbs and context information to the event. However,\n * platform specific meta data (such as the User's IP address) must be added\n * by the SDK implementor.\n *\n *\n * @param event The event to send to Sentry.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n */\n _processEvent(event, hint, scope) {\n const { beforeSend, sampleRate } = this.getOptions();\n\n if (!this._isEnabled()) {\n return rejectedSyncPromise(new SentryError('SDK not enabled, will not capture event.', 'log'));\n }\n\n var isTransaction = event.type === 'transaction';\n // 1.0 === 100% events are sent\n // 0.0 === 0% events are sent\n // Sampling for transaction happens somewhere else\n if (!isTransaction && typeof sampleRate === 'number' && Math.random() > sampleRate) {\n this.recordDroppedEvent('sample_rate', 'error');\n return rejectedSyncPromise(\n new SentryError(\n `Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`,\n 'log',\n ),\n );\n }\n\n return this._prepareEvent(event, hint, scope)\n .then(prepared => {\n if (prepared === null) {\n this.recordDroppedEvent('event_processor', event.type || 'error');\n throw new SentryError('An event processor returned null, will not send event.', 'log');\n }\n\n var isInternalException = hint.data && (hint.data ).__sentry__ === true;\n if (isInternalException || isTransaction || !beforeSend) {\n return prepared;\n }\n\n var beforeSendResult = beforeSend(prepared, hint);\n return _ensureBeforeSendRv(beforeSendResult);\n })\n .then(processedEvent => {\n if (processedEvent === null) {\n this.recordDroppedEvent('before_send', event.type || 'error');\n throw new SentryError('`beforeSend` returned `null`, will not send event.', 'log');\n }\n\n var session = scope && scope.getSession();\n if (!isTransaction && session) {\n this._updateSessionFromEvent(session, processedEvent);\n }\n\n this.sendEvent(processedEvent, hint);\n return processedEvent;\n })\n .then(null, reason => {\n if (reason instanceof SentryError) {\n throw reason;\n }\n\n this.captureException(reason, {\n data: {\n __sentry__: true,\n },\n originalException: reason ,\n });\n throw new SentryError(\n `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: ${reason}`,\n );\n });\n }\n\n /**\n * Occupies the client with processing and event\n */\n _process(promise) {\n this._numProcessing += 1;\n void promise.then(\n value => {\n this._numProcessing -= 1;\n return value;\n },\n reason => {\n this._numProcessing -= 1;\n return reason;\n },\n );\n }\n\n /**\n * @inheritdoc\n */\n _sendEnvelope(envelope) {\n if (this._transport && this._dsn) {\n this._transport.send(envelope).then(null, reason => {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Error while sending event:', reason);\n });\n } else {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Transport disabled');\n }\n }\n\n /**\n * Clears outcomes on this client and returns them.\n */\n _clearOutcomes() {\n var outcomes = this._outcomes;\n this._outcomes = {};\n return Object.keys(outcomes).map(key => {\n const [reason, category] = key.split(':') ;\n return {\n reason,\n category,\n quantity: outcomes[key],\n };\n });\n }\n\n /**\n * @inheritDoc\n */\n \n\n}\n\n/**\n * Verifies that return value of configured `beforeSend` is of expected type.\n */\nfunction _ensureBeforeSendRv(rv) {\n var nullErr = '`beforeSend` method has to return `null` or a valid event.';\n if (isThenable(rv)) {\n return rv.then(\n event => {\n if (!(isPlainObject(event) || event === null)) {\n throw new SentryError(nullErr);\n }\n return event;\n },\n e => {\n throw new SentryError(`beforeSend rejected with ${e}`);\n },\n );\n } else if (!(isPlainObject(rv) || rv === null)) {\n throw new SentryError(nullErr);\n }\n return rv;\n}\n\nexport { BaseClient };\n//# sourceMappingURL=baseclient.js.map\n","import { dsnToString, createEnvelope, dropUndefinedKeys, getSentryBaggageItems } from '@sentry/utils';\n\n/** Extract sdk info from from the API metadata */\nfunction getSdkMetadataForEnvelopeHeader(metadata) {\n if (!metadata || !metadata.sdk) {\n return;\n }\n const { name, version } = metadata.sdk;\n return { name, version };\n}\n\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n **/\nfunction enhanceEventWithSdkInfo(event, sdkInfo) {\n if (!sdkInfo) {\n return event;\n }\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || sdkInfo.name;\n event.sdk.version = event.sdk.version || sdkInfo.version;\n event.sdk.integrations = [...(event.sdk.integrations || []), ...(sdkInfo.integrations || [])];\n event.sdk.packages = [...(event.sdk.packages || []), ...(sdkInfo.packages || [])];\n return event;\n}\n\n/** Creates an envelope from a Session */\nfunction createSessionEnvelope(\n session,\n dsn,\n metadata,\n tunnel,\n) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n var envelopeHeaders = {\n sent_at: new Date().toISOString(),\n ...(sdkInfo && { sdk: sdkInfo }),\n ...(!!tunnel && { dsn: dsnToString(dsn) }),\n };\n\n var envelopeItem =\n 'aggregates' in session ? [{ type: 'sessions' }, session] : [{ type: 'session' }, session];\n\n return createEnvelope(envelopeHeaders, [envelopeItem]);\n}\n\n/**\n * Create an Envelope from an event.\n */\nfunction createEventEnvelope(\n event,\n dsn,\n metadata,\n tunnel,\n) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n var eventType = event.type || 'event';\n\n const { transactionSampling } = event.sdkProcessingMetadata || {};\n const { method: samplingMethod, rate: sampleRate } = transactionSampling || {};\n\n enhanceEventWithSdkInfo(event, metadata && metadata.sdk);\n\n var envelopeHeaders = createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn);\n\n // Prevent this data (which, if it exists, was used in earlier steps in the processing pipeline) from being sent to\n // sentry. (Note: Our use of this property comes and goes with whatever we might be debugging, whatever hacks we may\n // have temporarily added, etc. Even if we don't happen to be using it at some point in the future, let's not get rid\n // of this `delete`, lest we miss putting it back in the next time the property is in use.)\n delete event.sdkProcessingMetadata;\n\n var eventItem = [\n {\n type: eventType,\n sample_rates: [{ id: samplingMethod, rate: sampleRate }],\n },\n event,\n ];\n return createEnvelope(envelopeHeaders, [eventItem]);\n}\n\nfunction createEventEnvelopeHeaders(\n event,\n sdkInfo,\n tunnel,\n dsn,\n) {\n var baggage = event.sdkProcessingMetadata && event.sdkProcessingMetadata.baggage;\n var dynamicSamplingContext = baggage && getSentryBaggageItems(baggage);\n\n return {\n event_id: event.event_id ,\n sent_at: new Date().toISOString(),\n ...(sdkInfo && { sdk: sdkInfo }),\n ...(!!tunnel && { dsn: dsnToString(dsn) }),\n ...(event.type === 'transaction' &&\n dynamicSamplingContext && {\n trace: dropUndefinedKeys({ ...dynamicSamplingContext }) ,\n }),\n };\n}\n\nexport { createEventEnvelope, createSessionEnvelope };\n//# sourceMappingURL=envelope.js.map\n","import { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\n\nvar installedIntegrations = [];\n\n/** Map of integrations assigned to a client */\n\n/**\n * @private\n */\nfunction filterDuplicates(integrations) {\n return integrations.reduce((acc, integrations) => {\n if (acc.every(accIntegration => integrations.name !== accIntegration.name)) {\n acc.push(integrations);\n }\n return acc;\n }, [] );\n}\n\n/** Gets integration to install */\nfunction getIntegrationsToSetup(options) {\n var defaultIntegrations = (options.defaultIntegrations && [...options.defaultIntegrations]) || [];\n var userIntegrations = options.integrations;\n\n let integrations = [...filterDuplicates(defaultIntegrations)];\n\n if (Array.isArray(userIntegrations)) {\n // Filter out integrations that are also included in user options\n integrations = [\n ...integrations.filter(integrations =>\n userIntegrations.every(userIntegration => userIntegration.name !== integrations.name),\n ),\n // And filter out duplicated user options integrations\n ...filterDuplicates(userIntegrations),\n ];\n } else if (typeof userIntegrations === 'function') {\n integrations = userIntegrations(integrations);\n integrations = Array.isArray(integrations) ? integrations : [integrations];\n }\n\n // Make sure that if present, `Debug` integration will always run last\n var integrationsNames = integrations.map(i => i.name);\n var alwaysLastToRun = 'Debug';\n if (integrationsNames.indexOf(alwaysLastToRun) !== -1) {\n integrations.push(...integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1));\n }\n\n return integrations;\n}\n\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nfunction setupIntegrations(integrations) {\n var integrationIndex = {};\n\n integrations.forEach(integration => {\n integrationIndex[integration.name] = integration;\n\n if (installedIntegrations.indexOf(integration.name) === -1) {\n integration.setupOnce(addGlobalEventProcessor, getCurrentHub);\n installedIntegrations.push(integration.name);\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Integration installed: ${integration.name}`);\n }\n });\n\n return integrationIndex;\n}\n\nexport { getIntegrationsToSetup, installedIntegrations, setupIntegrations };\n//# sourceMappingURL=integration.js.map\n","import { getOriginalFunction } from '@sentry/utils';\n\nlet originalFunctionToString;\n\n/** Patch toString calls to return proper name for wrapped functions */\nclass FunctionToString {constructor() { FunctionToString.prototype.__init.call(this); }\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'FunctionToString';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = FunctionToString.id;}\n\n /**\n * @inheritDoc\n */\n setupOnce() {\n originalFunctionToString = Function.prototype.toString;\n\n Function.prototype.toString = function ( ...args) {\n var context = getOriginalFunction(this) || this;\n return originalFunctionToString.apply(context, args);\n };\n }\n} FunctionToString.__initStatic();\n\nexport { FunctionToString };\n//# sourceMappingURL=functiontostring.js.map\n","import { logger, getEventDescription, isMatchingPattern } from '@sentry/utils';\n\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nvar DEFAULT_IGNORE_ERRORS = [/^Script error\\.?$/, /^Javascript error: Script error\\.? on line 0$/];\n\n/** Options for the InboundFilters integration */\n\n/** Inbound filters configurable by the user */\nclass InboundFilters {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'InboundFilters';}\n\n /**\n * @inheritDoc\n */\n __init() {this.name = InboundFilters.id;}\n\n constructor( _options = {}) {;this._options = _options;InboundFilters.prototype.__init.call(this);}\n\n /**\n * @inheritDoc\n */\n setupOnce(addGlobalEventProcessor, getCurrentHub) {\n var eventProcess = (event) => {\n var hub = getCurrentHub();\n if (hub) {\n var self = hub.getIntegration(InboundFilters);\n if (self) {\n var client = hub.getClient();\n var clientOptions = client ? client.getOptions() : {};\n var options = _mergeOptions(self._options, clientOptions);\n return _shouldDropEvent(event, options) ? null : event;\n }\n }\n return event;\n };\n\n eventProcess.id = this.name;\n addGlobalEventProcessor(eventProcess);\n }\n} InboundFilters.__initStatic();\n\n/** JSDoc */\nfunction _mergeOptions(\n internalOptions = {},\n clientOptions = {},\n) {\n return {\n allowUrls: [...(internalOptions.allowUrls || []), ...(clientOptions.allowUrls || [])],\n denyUrls: [...(internalOptions.denyUrls || []), ...(clientOptions.denyUrls || [])],\n ignoreErrors: [\n ...(internalOptions.ignoreErrors || []),\n ...(clientOptions.ignoreErrors || []),\n ...DEFAULT_IGNORE_ERRORS,\n ],\n ignoreInternal: internalOptions.ignoreInternal !== undefined ? internalOptions.ignoreInternal : true,\n };\n}\n\n/** JSDoc */\nfunction _shouldDropEvent(event, options) {\n if (options.ignoreInternal && _isSentryError(event)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(`Event dropped due to being internal Sentry Error.\\nEvent: ${getEventDescription(event)}`);\n return true;\n }\n if (_isIgnoredError(event, options.ignoreErrors)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to being matched by \\`ignoreErrors\\` option.\\nEvent: ${getEventDescription(event)}`,\n );\n return true;\n }\n if (_isDeniedUrl(event, options.denyUrls)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to being matched by \\`denyUrls\\` option.\\nEvent: ${getEventDescription(\n event,\n )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n );\n return true;\n }\n if (!_isAllowedUrl(event, options.allowUrls)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to not being matched by \\`allowUrls\\` option.\\nEvent: ${getEventDescription(\n event,\n )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n );\n return true;\n }\n return false;\n}\n\nfunction _isIgnoredError(event, ignoreErrors) {\n if (!ignoreErrors || !ignoreErrors.length) {\n return false;\n }\n\n return _getPossibleEventMessages(event).some(message =>\n ignoreErrors.some(pattern => isMatchingPattern(message, pattern)),\n );\n}\n\nfunction _isDeniedUrl(event, denyUrls) {\n // TODO: Use Glob instead?\n if (!denyUrls || !denyUrls.length) {\n return false;\n }\n var url = _getEventFilterUrl(event);\n return !url ? false : denyUrls.some(pattern => isMatchingPattern(url, pattern));\n}\n\nfunction _isAllowedUrl(event, allowUrls) {\n // TODO: Use Glob instead?\n if (!allowUrls || !allowUrls.length) {\n return true;\n }\n var url = _getEventFilterUrl(event);\n return !url ? true : allowUrls.some(pattern => isMatchingPattern(url, pattern));\n}\n\nfunction _getPossibleEventMessages(event) {\n if (event.message) {\n return [event.message];\n }\n if (event.exception) {\n try {\n const { type = '', value = '' } = (event.exception.values && event.exception.values[0]) || {};\n return [`${value}`, `${type}: ${value}`];\n } catch (oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(`Cannot extract message for event ${getEventDescription(event)}`);\n return [];\n }\n }\n return [];\n}\n\nfunction _isSentryError(event) {\n try {\n // @ts-ignore can't be a sentry error if undefined\n return event.exception.values[0].type === 'SentryError';\n } catch (e) {\n // ignore\n }\n return false;\n}\n\nfunction _getLastValidUrl(frames = []) {\n for (let i = frames.length - 1; i >= 0; i--) {\n var frame = frames[i];\n\n if (frame && frame.filename !== '<anonymous>' && frame.filename !== '[native code]') {\n return frame.filename || null;\n }\n }\n\n return null;\n}\n\nfunction _getEventFilterUrl(event) {\n try {\n let frames;\n try {\n // @ts-ignore we only care about frames if the whole thing here is defined\n frames = event.exception.values[0].stacktrace.frames;\n } catch (e) {\n // ignore\n }\n return frames ? _getLastValidUrl(frames) : null;\n } catch (oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);\n return null;\n }\n}\n\nexport { InboundFilters, _mergeOptions, _shouldDropEvent };\n//# sourceMappingURL=inboundfilters.js.map\n","import { getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\n\n/** A class object that can instantiate Client objects. */\n\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nfunction initAndBind(\n clientClass,\n options,\n) {\n if (options.debug === true) {\n if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n }\n }\n var hub = getCurrentHub();\n var scope = hub.getScope();\n if (scope) {\n scope.update(options.initialScope);\n }\n\n var client = new clientClass(options);\n hub.bindClient(client);\n}\n\nexport { initAndBind };\n//# sourceMappingURL=sdk.js.map\n","import { makePromiseBuffer, forEachEnvelopeItem, envelopeItemTypeToDataCategory, isRateLimited, resolvedSyncPromise, createEnvelope, serializeEnvelope, logger, updateRateLimits, SentryError } from '@sentry/utils';\n\nvar DEFAULT_TRANSPORT_BUFFER_SIZE = 30;\n\n/**\n * Creates an instance of a Sentry `Transport`\n *\n * @param options\n * @param makeRequest\n */\nfunction createTransport(\n options,\n makeRequest,\n buffer = makePromiseBuffer(options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE),\n) {\n let rateLimits = {};\n\n var flush = (timeout) => buffer.drain(timeout);\n\n function send(envelope) {\n var filteredEnvelopeItems = [];\n\n // Drop rate limited items from envelope\n forEachEnvelopeItem(envelope, (item, type) => {\n var envelopeItemDataCategory = envelopeItemTypeToDataCategory(type);\n if (isRateLimited(rateLimits, envelopeItemDataCategory)) {\n options.recordDroppedEvent('ratelimit_backoff', envelopeItemDataCategory);\n } else {\n filteredEnvelopeItems.push(item);\n }\n });\n\n // Skip sending if envelope is empty after filtering out rate limited events\n if (filteredEnvelopeItems.length === 0) {\n return resolvedSyncPromise();\n }\n\n var filteredEnvelope = createEnvelope(envelope[0], filteredEnvelopeItems );\n\n // Creates client report for each item in an envelope\n var recordEnvelopeLoss = (reason) => {\n forEachEnvelopeItem(filteredEnvelope, (_, type) => {\n options.recordDroppedEvent(reason, envelopeItemTypeToDataCategory(type));\n });\n };\n\n var requestTask = () =>\n makeRequest({ body: serializeEnvelope(filteredEnvelope, options.textEncoder) }).then(\n response => {\n // We don't want to throw on NOK responses, but we want to at least log them\n if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);\n }\n\n rateLimits = updateRateLimits(rateLimits, response);\n },\n error => {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Failed while sending event:', error);\n recordEnvelopeLoss('network_error');\n },\n );\n\n return buffer.add(requestTask).then(\n result => result,\n error => {\n if (error instanceof SentryError) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Skipped sending event due to full buffer');\n recordEnvelopeLoss('queue_overflow');\n return resolvedSyncPromise();\n } else {\n throw error;\n }\n },\n );\n }\n\n return {\n send,\n flush,\n };\n}\n\nexport { DEFAULT_TRANSPORT_BUFFER_SIZE, createTransport };\n//# sourceMappingURL=base.js.map\n","var SDK_VERSION = '7.11.1';\n\nexport { SDK_VERSION };\n//# sourceMappingURL=version.js.map\n","import { getCurrentHub } from './hub.js';\n\n// Note: All functions in this file are typed with a return value of `ReturnType<Hub[HUB_FUNCTION]>`,\n// where HUB_FUNCTION is some method on the Hub class.\n//\n// This is done to make sure the top level SDK methods stay in sync with the hub methods.\n// Although every method here has an explicit return type, some of them (that map to void returns) do not\n// contain `return` keywords. This is done to save on bundle size, as `return` is not minifiable.\n\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception An exception-like object.\n * @param captureContext Additional scope data to apply to exception event.\n * @returns The generated eventId.\n */\nfunction captureException(exception, captureContext) {\n return getCurrentHub().captureException(exception, { captureContext });\n}\n\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param message The message to send to Sentry.\n * @param Severity Define the level of the message.\n * @returns The generated eventId.\n */\nfunction captureMessage(\n message,\n captureContext,\n) {\n // This is necessary to provide explicit scopes upgrade, without changing the original\n // arity of the `captureMessage(message, level)` method.\n var level = typeof captureContext === 'string' ? captureContext : undefined;\n var context = typeof captureContext !== 'string' ? { captureContext } : undefined;\n return getCurrentHub().captureMessage(message, level, context);\n}\n\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param event The event to send to Sentry.\n * @returns The generated eventId.\n */\nfunction captureEvent(event, hint) {\n return getCurrentHub().captureEvent(event, hint);\n}\n\n/**\n * Callback to set context information onto the scope.\n * @param callback Callback function that receives Scope.\n */\nfunction configureScope(callback) {\n getCurrentHub().configureScope(callback);\n}\n\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n *\n * @param breadcrumb The breadcrumb to record.\n */\nfunction addBreadcrumb(breadcrumb) {\n getCurrentHub().addBreadcrumb(breadcrumb);\n}\n\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\nfunction setContext(name, context) {\n getCurrentHub().setContext(name, context);\n}\n\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\nfunction setExtras(extras) {\n getCurrentHub().setExtras(extras);\n}\n\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\nfunction setExtra(key, extra) {\n getCurrentHub().setExtra(key, extra);\n}\n\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\nfunction setTags(tags) {\n getCurrentHub().setTags(tags);\n}\n\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\nfunction setTag(key, value) {\n getCurrentHub().setTag(key, value);\n}\n\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\nfunction setUser(user) {\n getCurrentHub().setUser(user);\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n *\n * This is essentially a convenience function for:\n *\n * pushScope();\n * callback();\n * popScope();\n *\n * @param callback that will be enclosed into push/popScope.\n */\nfunction withScope(callback) {\n getCurrentHub().withScope(callback);\n}\n\n/**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * NOTE: This function should only be used for *manual* instrumentation. Auto-instrumentation should call\n * `startTransaction` directly on the hub.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n */\nfunction startTransaction(\n context,\n customSamplingContext,\n) {\n return getCurrentHub().startTransaction(\n {\n metadata: { source: 'custom' },\n ...context,\n },\n customSamplingContext,\n );\n}\n\nexport { addBreadcrumb, captureEvent, captureException, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, withScope };\n//# sourceMappingURL=exports.js.map\n","import { uuid4, dateTimestampInSeconds, consoleSandbox, logger, getGlobalObject, getGlobalSingleton, isNodeEnv } from '@sentry/utils';\nimport { Scope } from './scope.js';\nimport { closeSession, makeSession, updateSession } from './session.js';\n\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nvar API_VERSION = 4;\n\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nvar DEFAULT_BREADCRUMBS = 100;\n\n/**\n * A layer in the process stack.\n * @hidden\n */\n\n/**\n * @inheritDoc\n */\nclass Hub {\n /** Is a {@link Layer}[] containing the client and scope */\n __init() {this._stack = [{}];}\n\n /** Contains the last event id of a captured event. */\n \n\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n */\n constructor(client, scope = new Scope(), _version = API_VERSION) {;this._version = _version;Hub.prototype.__init.call(this);\n this.getStackTop().scope = scope;\n if (client) {\n this.bindClient(client);\n }\n }\n\n /**\n * @inheritDoc\n */\n isOlderThan(version) {\n return this._version < version;\n }\n\n /**\n * @inheritDoc\n */\n bindClient(client) {\n var top = this.getStackTop();\n top.client = client;\n if (client && client.setupIntegrations) {\n client.setupIntegrations();\n }\n }\n\n /**\n * @inheritDoc\n */\n pushScope() {\n // We want to clone the content of prev scope\n var scope = Scope.clone(this.getScope());\n this.getStack().push({\n client: this.getClient(),\n scope,\n });\n return scope;\n }\n\n /**\n * @inheritDoc\n */\n popScope() {\n if (this.getStack().length <= 1) return false;\n return !!this.getStack().pop();\n }\n\n /**\n * @inheritDoc\n */\n withScope(callback) {\n var scope = this.pushScope();\n try {\n callback(scope);\n } finally {\n this.popScope();\n }\n }\n\n /**\n * @inheritDoc\n */\n getClient() {\n return this.getStackTop().client ;\n }\n\n /** Returns the scope of the top stack. */\n getScope() {\n return this.getStackTop().scope;\n }\n\n /** Returns the scope stack for domains or the process. */\n getStack() {\n return this._stack;\n }\n\n /** Returns the topmost scope layer in the order domain > local > process. */\n getStackTop() {\n return this._stack[this._stack.length - 1];\n }\n\n /**\n * @inheritDoc\n */\n captureException(exception, hint) {\n var eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n var syntheticException = new Error('Sentry syntheticException');\n this._withClient((client, scope) => {\n client.captureException(\n exception,\n {\n originalException: exception,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n scope,\n );\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureMessage(\n message,\n level,\n hint,\n ) {\n var eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n var syntheticException = new Error(message);\n this._withClient((client, scope) => {\n client.captureMessage(\n message,\n level,\n {\n originalException: message,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n scope,\n );\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureEvent(event, hint) {\n var eventId = hint && hint.event_id ? hint.event_id : uuid4();\n if (event.type !== 'transaction') {\n this._lastEventId = eventId;\n }\n\n this._withClient((client, scope) => {\n client.captureEvent(event, { ...hint, event_id: eventId }, scope);\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n lastEventId() {\n return this._lastEventId;\n }\n\n /**\n * @inheritDoc\n */\n addBreadcrumb(breadcrumb, hint) {\n const { scope, client } = this.getStackTop();\n\n if (!scope || !client) return;\n\n const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } =\n (client.getOptions && client.getOptions()) || {};\n\n if (maxBreadcrumbs <= 0) return;\n\n var timestamp = dateTimestampInSeconds();\n var mergedBreadcrumb = { timestamp, ...breadcrumb };\n var finalBreadcrumb = beforeBreadcrumb\n ? (consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) )\n : mergedBreadcrumb;\n\n if (finalBreadcrumb === null) return;\n\n scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n }\n\n /**\n * @inheritDoc\n */\n setUser(user) {\n var scope = this.getScope();\n if (scope) scope.setUser(user);\n }\n\n /**\n * @inheritDoc\n */\n setTags(tags) {\n var scope = this.getScope();\n if (scope) scope.setTags(tags);\n }\n\n /**\n * @inheritDoc\n */\n setExtras(extras) {\n var scope = this.getScope();\n if (scope) scope.setExtras(extras);\n }\n\n /**\n * @inheritDoc\n */\n setTag(key, value) {\n var scope = this.getScope();\n if (scope) scope.setTag(key, value);\n }\n\n /**\n * @inheritDoc\n */\n setExtra(key, extra) {\n var scope = this.getScope();\n if (scope) scope.setExtra(key, extra);\n }\n\n /**\n * @inheritDoc\n */\n setContext(name, context) {\n var scope = this.getScope();\n if (scope) scope.setContext(name, context);\n }\n\n /**\n * @inheritDoc\n */\n configureScope(callback) {\n const { scope, client } = this.getStackTop();\n if (scope && client) {\n callback(scope);\n }\n }\n\n /**\n * @inheritDoc\n */\n run(callback) {\n var oldHub = makeMain(this);\n try {\n callback(this);\n } finally {\n makeMain(oldHub);\n }\n }\n\n /**\n * @inheritDoc\n */\n getIntegration(integration) {\n var client = this.getClient();\n if (!client) return null;\n try {\n return client.getIntegration(integration);\n } catch (_oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);\n return null;\n }\n }\n\n /**\n * @inheritDoc\n */\n startTransaction(context, customSamplingContext) {\n return this._callExtensionMethod('startTransaction', context, customSamplingContext);\n }\n\n /**\n * @inheritDoc\n */\n traceHeaders() {\n return this._callExtensionMethod('traceHeaders');\n }\n\n /**\n * @inheritDoc\n */\n captureSession(endSession = false) {\n // both send the update and pull the session from the scope\n if (endSession) {\n return this.endSession();\n }\n\n // only send the update\n this._sendSessionUpdate();\n }\n\n /**\n * @inheritDoc\n */\n endSession() {\n var layer = this.getStackTop();\n var scope = layer && layer.scope;\n var session = scope && scope.getSession();\n if (session) {\n closeSession(session);\n }\n this._sendSessionUpdate();\n\n // the session is over; take it off of the scope\n if (scope) {\n scope.setSession();\n }\n }\n\n /**\n * @inheritDoc\n */\n startSession(context) {\n const { scope, client } = this.getStackTop();\n const { release, environment } = (client && client.getOptions()) || {};\n\n // Will fetch userAgent if called from browser sdk\n var global = getGlobalObject();\n const { userAgent } = global.navigator || {};\n\n var session = makeSession({\n release,\n environment,\n ...(scope && { user: scope.getUser() }),\n ...(userAgent && { userAgent }),\n ...context,\n });\n\n if (scope) {\n // End existing session if there's one\n var currentSession = scope.getSession && scope.getSession();\n if (currentSession && currentSession.status === 'ok') {\n updateSession(currentSession, { status: 'exited' });\n }\n this.endSession();\n\n // Afterwards we set the new session on the scope\n scope.setSession(session);\n }\n\n return session;\n }\n\n /**\n * Returns if default PII should be sent to Sentry and propagated in ourgoing requests\n * when Tracing is used.\n */\n shouldSendDefaultPii() {\n var client = this.getClient();\n var options = client && client.getOptions();\n return Boolean(options && options.sendDefaultPii);\n }\n\n /**\n * Sends the current Session on the scope\n */\n _sendSessionUpdate() {\n const { scope, client } = this.getStackTop();\n if (!scope) return;\n\n var session = scope.getSession();\n if (session) {\n if (client && client.captureSession) {\n client.captureSession(session);\n }\n }\n }\n\n /**\n * Internal helper function to call a method on the top client if it exists.\n *\n * @param method The method to call on the client.\n * @param args Arguments to pass to the client function.\n */\n _withClient(callback) {\n const { scope, client } = this.getStackTop();\n if (client) {\n callback(client, scope);\n }\n }\n\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-ignore Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n _callExtensionMethod(method, ...args) {\n var carrier = getMainCarrier();\n var sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);\n }\n}\n\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nfunction getMainCarrier() {\n var carrier = getGlobalObject();\n carrier.__SENTRY__ = carrier.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return carrier;\n}\n\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n */\nfunction makeMain(hub) {\n var registry = getMainCarrier();\n var oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n */\nfunction getCurrentHub() {\n // Get main carrier (global for every environment)\n var registry = getMainCarrier();\n\n // If there's no hub, or its an old API, assign a new one\n if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) {\n setHubOnCarrier(registry, new Hub());\n }\n\n // Prefer domains over global if they are there (applicable only to Node environment)\n if (isNodeEnv()) {\n return getHubFromActiveDomain(registry);\n }\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n\n/**\n * Try to read the hub from an active domain, and fallback to the registry if one doesn't exist\n * @returns discovered hub\n */\nfunction getHubFromActiveDomain(registry) {\n try {\n var sentry = getMainCarrier().__SENTRY__;\n var activeDomain = sentry && sentry.extensions && sentry.extensions.domain && sentry.extensions.domain.active;\n\n // If there's no active domain, just return global hub\n if (!activeDomain) {\n return getHubFromCarrier(registry);\n }\n\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (!hasHubOnCarrier(activeDomain) || getHubFromCarrier(activeDomain).isOlderThan(API_VERSION)) {\n var registryHubTopStack = getHubFromCarrier(registry).getStackTop();\n setHubOnCarrier(activeDomain, new Hub(registryHubTopStack.client, Scope.clone(registryHubTopStack.scope)));\n }\n\n // Return hub that lives on a domain\n return getHubFromCarrier(activeDomain);\n } catch (_Oo) {\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n }\n}\n\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier) {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\nfunction getHubFromCarrier(carrier) {\n return getGlobalSingleton('hub', () => new Hub(), carrier);\n}\n\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n * @returns A boolean indicating success or failure\n */\nfunction setHubOnCarrier(carrier, hub) {\n if (!carrier) return false;\n var __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n __SENTRY__.hub = hub;\n return true;\n}\n\nexport { API_VERSION, Hub, getCurrentHub, getHubFromCarrier, getMainCarrier, makeMain, setHubOnCarrier };\n//# sourceMappingURL=hub.js.map\n","import { isPlainObject, dateTimestampInSeconds, getGlobalSingleton, SyncPromise, logger, isThenable } from '@sentry/utils';\nimport { updateSession } from './session.js';\n\n/**\n * Absolute maximum number of breadcrumbs added to an event.\n * The `maxBreadcrumbs` option cannot be higher than this value.\n */\nvar MAX_BREADCRUMBS = 100;\n\n/**\n * Holds additional event information. {@link Scope.applyToEvent} will be\n * called by the client before an event will be sent.\n */\nclass Scope {\n /** Flag if notifying is happening. */\n \n\n /** Callback for client to receive scope changes. */\n \n\n /** Callback list that will be called after {@link applyToEvent}. */\n \n\n /** Array of breadcrumbs. */\n \n\n /** User */\n \n\n /** Tags */\n \n\n /** Extra */\n \n\n /** Contexts */\n \n\n /** Attachments */\n \n\n /**\n * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n * sent to Sentry\n */\n \n\n /** Fingerprint */\n \n\n /** Severity */\n \n\n /** Transaction Name */\n \n\n /** Span */\n \n\n /** Session */\n \n\n /** Request Mode Session Status */\n \n\n constructor() {\n this._notifyingListeners = false;\n this._scopeListeners = [];\n this._eventProcessors = [];\n this._breadcrumbs = [];\n this._attachments = [];\n this._user = {};\n this._tags = {};\n this._extra = {};\n this._contexts = {};\n this._sdkProcessingMetadata = {};\n }\n\n /**\n * Inherit values from the parent scope.\n * @param scope to clone.\n */\n static clone(scope) {\n var newScope = new Scope();\n if (scope) {\n newScope._breadcrumbs = [...scope._breadcrumbs];\n newScope._tags = { ...scope._tags };\n newScope._extra = { ...scope._extra };\n newScope._contexts = { ...scope._contexts };\n newScope._user = scope._user;\n newScope._level = scope._level;\n newScope._span = scope._span;\n newScope._session = scope._session;\n newScope._transactionName = scope._transactionName;\n newScope._fingerprint = scope._fingerprint;\n newScope._eventProcessors = [...scope._eventProcessors];\n newScope._requestSession = scope._requestSession;\n newScope._attachments = [...scope._attachments];\n }\n return newScope;\n }\n\n /**\n * Add internal on change listener. Used for sub SDKs that need to store the scope.\n * @hidden\n */\n addScopeListener(callback) {\n this._scopeListeners.push(callback);\n }\n\n /**\n * @inheritDoc\n */\n addEventProcessor(callback) {\n this._eventProcessors.push(callback);\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setUser(user) {\n this._user = user || {};\n if (this._session) {\n updateSession(this._session, { user });\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getUser() {\n return this._user;\n }\n\n /**\n * @inheritDoc\n */\n getRequestSession() {\n return this._requestSession;\n }\n\n /**\n * @inheritDoc\n */\n setRequestSession(requestSession) {\n this._requestSession = requestSession;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setTags(tags) {\n this._tags = {\n ...this._tags,\n ...tags,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setTag(key, value) {\n this._tags = { ...this._tags, [key]: value };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setExtras(extras) {\n this._extra = {\n ...this._extra,\n ...extras,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setExtra(key, extra) {\n this._extra = { ...this._extra, [key]: extra };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setFingerprint(fingerprint) {\n this._fingerprint = fingerprint;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setLevel(\n level,\n ) {\n this._level = level;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setTransactionName(name) {\n this._transactionName = name;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setContext(key, context) {\n if (context === null) {\n delete this._contexts[key];\n } else {\n this._contexts = { ...this._contexts, [key]: context };\n }\n\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setSpan(span) {\n this._span = span;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getSpan() {\n return this._span;\n }\n\n /**\n * @inheritDoc\n */\n getTransaction() {\n // Often, this span (if it exists at all) will be a transaction, but it's not guaranteed to be. Regardless, it will\n // have a pointer to the currently-active transaction.\n var span = this.getSpan();\n return span && span.transaction;\n }\n\n /**\n * @inheritDoc\n */\n setSession(session) {\n if (!session) {\n delete this._session;\n } else {\n this._session = session;\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getSession() {\n return this._session;\n }\n\n /**\n * @inheritDoc\n */\n update(captureContext) {\n if (!captureContext) {\n return this;\n }\n\n if (typeof captureContext === 'function') {\n var updatedScope = (captureContext )(this);\n return updatedScope instanceof Scope ? updatedScope : this;\n }\n\n if (captureContext instanceof Scope) {\n this._tags = { ...this._tags, ...captureContext._tags };\n this._extra = { ...this._extra, ...captureContext._extra };\n this._contexts = { ...this._contexts, ...captureContext._contexts };\n if (captureContext._user && Object.keys(captureContext._user).length) {\n this._user = captureContext._user;\n }\n if (captureContext._level) {\n this._level = captureContext._level;\n }\n if (captureContext._fingerprint) {\n this._fingerprint = captureContext._fingerprint;\n }\n if (captureContext._requestSession) {\n this._requestSession = captureContext._requestSession;\n }\n } else if (isPlainObject(captureContext)) {\n captureContext = captureContext ;\n this._tags = { ...this._tags, ...captureContext.tags };\n this._extra = { ...this._extra, ...captureContext.extra };\n this._contexts = { ...this._contexts, ...captureContext.contexts };\n if (captureContext.user) {\n this._user = captureContext.user;\n }\n if (captureContext.level) {\n this._level = captureContext.level;\n }\n if (captureContext.fingerprint) {\n this._fingerprint = captureContext.fingerprint;\n }\n if (captureContext.requestSession) {\n this._requestSession = captureContext.requestSession;\n }\n }\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n clear() {\n this._breadcrumbs = [];\n this._tags = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._requestSession = undefined;\n this._span = undefined;\n this._session = undefined;\n this._notifyScopeListeners();\n this._attachments = [];\n return this;\n }\n\n /**\n * @inheritDoc\n */\n addBreadcrumb(breadcrumb, maxBreadcrumbs) {\n var maxCrumbs = typeof maxBreadcrumbs === 'number' ? Math.min(maxBreadcrumbs, MAX_BREADCRUMBS) : MAX_BREADCRUMBS;\n\n // No data has been changed, so don't notify scope listeners\n if (maxCrumbs <= 0) {\n return this;\n }\n\n var mergedBreadcrumb = {\n timestamp: dateTimestampInSeconds(),\n ...breadcrumb,\n };\n this._breadcrumbs = [...this._breadcrumbs, mergedBreadcrumb].slice(-maxCrumbs);\n this._notifyScopeListeners();\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n clearBreadcrumbs() {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n addAttachment(attachment) {\n this._attachments.push(attachment);\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getAttachments() {\n return this._attachments;\n }\n\n /**\n * @inheritDoc\n */\n clearAttachments() {\n this._attachments = [];\n return this;\n }\n\n /**\n * Applies the current context and fingerprint to the event.\n * Note that breadcrumbs will be added by the client.\n * Also if the event has already breadcrumbs on it, we do not merge them.\n * @param event Event\n * @param hint May contain additional information about the original exception.\n * @hidden\n */\n applyToEvent(event, hint = {}) {\n if (this._extra && Object.keys(this._extra).length) {\n event.extra = { ...this._extra, ...event.extra };\n }\n if (this._tags && Object.keys(this._tags).length) {\n event.tags = { ...this._tags, ...event.tags };\n }\n if (this._user && Object.keys(this._user).length) {\n event.user = { ...this._user, ...event.user };\n }\n if (this._contexts && Object.keys(this._contexts).length) {\n event.contexts = { ...this._contexts, ...event.contexts };\n }\n if (this._level) {\n event.level = this._level;\n }\n if (this._transactionName) {\n event.transaction = this._transactionName;\n }\n\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relies on that.\n if (this._span) {\n event.contexts = { trace: this._span.getTraceContext(), ...event.contexts };\n var transactionName = this._span.transaction && this._span.transaction.name;\n if (transactionName) {\n event.tags = { transaction: transactionName, ...event.tags };\n }\n }\n\n this._applyFingerprint(event);\n\n event.breadcrumbs = [...(event.breadcrumbs || []), ...this._breadcrumbs];\n event.breadcrumbs = event.breadcrumbs.length > 0 ? event.breadcrumbs : undefined;\n\n event.sdkProcessingMetadata = { ...event.sdkProcessingMetadata, ...this._sdkProcessingMetadata };\n\n return this._notifyEventProcessors([...getGlobalEventProcessors(), ...this._eventProcessors], event, hint);\n }\n\n /**\n * Add data which will be accessible during event processing but won't get sent to Sentry\n */\n setSDKProcessingMetadata(newData) {\n this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...newData };\n\n return this;\n }\n\n /**\n * This will be called after {@link applyToEvent} is finished.\n */\n _notifyEventProcessors(\n processors,\n event,\n hint,\n index = 0,\n ) {\n return new SyncPromise((resolve, reject) => {\n var processor = processors[index];\n if (event === null || typeof processor !== 'function') {\n resolve(event);\n } else {\n var result = processor({ ...event }, hint) ;\n\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n processor.id &&\n result === null &&\n logger.log(`Event processor \"${processor.id}\" dropped event`);\n\n if (isThenable(result)) {\n void result\n .then(final => this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve))\n .then(null, reject);\n } else {\n void this._notifyEventProcessors(processors, result, hint, index + 1)\n .then(resolve)\n .then(null, reject);\n }\n }\n });\n }\n\n /**\n * This will be called on every set call.\n */\n _notifyScopeListeners() {\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(callback => {\n callback(this);\n });\n this._notifyingListeners = false;\n }\n }\n\n /**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\n _applyFingerprint(event) {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint\n ? Array.isArray(event.fingerprint)\n ? event.fingerprint\n : [event.fingerprint]\n : [];\n\n // If we have something on the scope, then merge it with event\n if (this._fingerprint) {\n event.fingerprint = event.fingerprint.concat(this._fingerprint);\n }\n\n // If we have no data at all, remove empty array default\n if (event.fingerprint && !event.fingerprint.length) {\n delete event.fingerprint;\n }\n }\n}\n\n/**\n * Returns the global event processors.\n */\nfunction getGlobalEventProcessors() {\n return getGlobalSingleton('globalEventProcessors', () => []);\n}\n\n/**\n * Add a EventProcessor to be kept globally.\n * @param callback EventProcessor to add\n */\nfunction addGlobalEventProcessor(callback) {\n getGlobalEventProcessors().push(callback);\n}\n\nexport { Scope, addGlobalEventProcessor };\n//# sourceMappingURL=scope.js.map\n","import { timestampInSeconds, uuid4, dropUndefinedKeys } from '@sentry/utils';\n\n/**\n * Creates a new `Session` object by setting certain default parameters. If optional @param context\n * is passed, the passed properties are applied to the session object.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns a new `Session` object\n */\nfunction makeSession(context) {\n // Both timestamp and started are in seconds since the UNIX epoch.\n var startingTime = timestampInSeconds();\n\n var session = {\n sid: uuid4(),\n init: true,\n timestamp: startingTime,\n started: startingTime,\n duration: 0,\n status: 'ok',\n errors: 0,\n ignoreDuration: false,\n toJSON: () => sessionToJSON(session),\n };\n\n if (context) {\n updateSession(session, context);\n }\n\n return session;\n}\n\n/**\n * Updates a session object with the properties passed in the context.\n *\n * Note that this function mutates the passed object and returns void.\n * (Had to do this instead of returning a new and updated session because closing and sending a session\n * makes an update to the session after it was passed to the sending logic.\n * @see BaseClient.captureSession )\n *\n * @param session the `Session` to update\n * @param context the `SessionContext` holding the properties that should be updated in @param session\n */\nfunction updateSession(session, context = {}) {\n if (context.user) {\n if (!session.ipAddress && context.user.ip_address) {\n session.ipAddress = context.user.ip_address;\n }\n\n if (!session.did && !context.did) {\n session.did = context.user.id || context.user.email || context.user.username;\n }\n }\n\n session.timestamp = context.timestamp || timestampInSeconds();\n\n if (context.ignoreDuration) {\n session.ignoreDuration = context.ignoreDuration;\n }\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n session.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n if (context.init !== undefined) {\n session.init = context.init;\n }\n if (!session.did && context.did) {\n session.did = `${context.did}`;\n }\n if (typeof context.started === 'number') {\n session.started = context.started;\n }\n if (session.ignoreDuration) {\n session.duration = undefined;\n } else if (typeof context.duration === 'number') {\n session.duration = context.duration;\n } else {\n var duration = session.timestamp - session.started;\n session.duration = duration >= 0 ? duration : 0;\n }\n if (context.release) {\n session.release = context.release;\n }\n if (context.environment) {\n session.environment = context.environment;\n }\n if (!session.ipAddress && context.ipAddress) {\n session.ipAddress = context.ipAddress;\n }\n if (!session.userAgent && context.userAgent) {\n session.userAgent = context.userAgent;\n }\n if (typeof context.errors === 'number') {\n session.errors = context.errors;\n }\n if (context.status) {\n session.status = context.status;\n }\n}\n\n/**\n * Closes a session by setting its status and updating the session object with it.\n * Internally calls `updateSession` to update the passed session object.\n *\n * Note that this function mutates the passed session (@see updateSession for explanation).\n *\n * @param session the `Session` object to be closed\n * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,\n * this function will keep the previously set status, unless it was `'ok'` in which case\n * it is changed to `'exited'`.\n */\nfunction closeSession(session, status) {\n let context = {};\n if (status) {\n context = { status };\n } else if (session.status === 'ok') {\n context = { status: 'exited' };\n }\n\n updateSession(session, context);\n}\n\n/**\n * Serializes a passed session object to a JSON object with a slightly different structure.\n * This is necessary because the Sentry backend requires a slightly different schema of a session\n * than the one the JS SDKs use internally.\n *\n * @param session the session to be converted\n *\n * @returns a JSON object of the passed session\n */\nfunction sessionToJSON(session) {\n return dropUndefinedKeys({\n sid: `${session.sid}`,\n init: session.init,\n // Make sure that sec is converted to ms for date constructor\n started: new Date(session.started * 1000).toISOString(),\n timestamp: new Date(session.timestamp * 1000).toISOString(),\n status: session.status,\n errors: session.errors,\n did: typeof session.did === 'number' || typeof session.did === 'string' ? `${session.did}` : undefined,\n duration: session.duration,\n attrs: {\n release: session.release,\n environment: session.environment,\n ip_address: session.ipAddress,\n user_agent: session.userAgent,\n },\n });\n}\n\nexport { closeSession, makeSession, updateSession };\n//# sourceMappingURL=session.js.map\n","import { isString } from './is.js';\nimport { logger } from './logger.js';\n\nvar BAGGAGE_HEADER_NAME = 'baggage';\n\nvar SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-';\n\nvar SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;\n\n/**\n * Max length of a serialized baggage string\n *\n * https://www.w3.org/TR/baggage/#limits\n */\nvar MAX_BAGGAGE_STRING_LENGTH = 8192;\n\n/** Create an instance of Baggage */\nfunction createBaggage(initItems, baggageString = '', mutable = true) {\n return [{ ...initItems }, baggageString, mutable];\n}\n\n/** Get a value from baggage */\nfunction getBaggageValue(baggage, key) {\n return baggage[0][key];\n}\n\n/** Add a value to baggage */\nfunction setBaggageValue(baggage, key, value) {\n if (isBaggageMutable(baggage)) {\n baggage[0][key] = value;\n }\n}\n\n/** Check if the Sentry part of the passed baggage (i.e. the first element in the tuple) is empty */\nfunction isSentryBaggageEmpty(baggage) {\n return Object.keys(baggage[0]).length === 0;\n}\n\n/** Returns Sentry specific baggage values */\nfunction getSentryBaggageItems(baggage) {\n return baggage[0];\n}\n\n/**\n * Returns 3rd party baggage string of @param baggage\n * @param baggage\n */\nfunction getThirdPartyBaggage(baggage) {\n return baggage[1];\n}\n\n/**\n * Checks if baggage is mutable\n * @param baggage\n * @returns true if baggage is mutable, else false\n */\nfunction isBaggageMutable(baggage) {\n return baggage[2];\n}\n\n/**\n * Sets the passed baggage immutable\n * @param baggage\n */\nfunction setBaggageImmutable(baggage) {\n baggage[2] = false;\n}\n\n/** Serialize a baggage object */\nfunction serializeBaggage(baggage) {\n return Object.keys(baggage[0]).reduce((prev, key) => {\n var val = baggage[0][key] ;\n var baggageEntry = `${SENTRY_BAGGAGE_KEY_PREFIX}${encodeURIComponent(key)}=${encodeURIComponent(val)}`;\n var newVal = prev === '' ? baggageEntry : `${prev},${baggageEntry}`;\n if (newVal.length > MAX_BAGGAGE_STRING_LENGTH) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(`Not adding key: ${key} with val: ${val} to baggage due to exceeding baggage size limits.`);\n return prev;\n } else {\n return newVal;\n }\n }, baggage[1]);\n}\n\n/**\n * Parse a baggage header from a string or a string array and return a Baggage object\n *\n * If @param includeThirdPartyEntries is set to true, third party baggage entries are added to the Baggage object\n * (This is necessary for merging potentially pre-existing baggage headers in outgoing requests with\n * our `sentry-` values)\n */\nfunction parseBaggageHeader(\n inputBaggageValue,\n includeThirdPartyEntries = false,\n) {\n // Adding this check here because we got reports of this function failing due to the input value\n // not being a string. This debug log might help us determine what's going on here.\n if ((!Array.isArray(inputBaggageValue) && !isString(inputBaggageValue)) || typeof inputBaggageValue === 'number') {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n '[parseBaggageHeader] Received input value of incompatible type: ',\n typeof inputBaggageValue,\n inputBaggageValue,\n );\n\n // Gonna early-return an empty baggage object so that we don't fail later on\n return createBaggage({}, '');\n }\n\n var baggageEntries = (isString(inputBaggageValue) ? inputBaggageValue : inputBaggageValue.join(','))\n .split(',')\n .map(entry => entry.trim())\n .filter(entry => entry !== '' && (includeThirdPartyEntries || SENTRY_BAGGAGE_KEY_PREFIX_REGEX.test(entry)));\n\n return baggageEntries.reduce(\n ([baggageObj, baggageString], curr) => {\n const [key, val] = curr.split('=');\n if (SENTRY_BAGGAGE_KEY_PREFIX_REGEX.test(key)) {\n var baggageKey = decodeURIComponent(key.split('-')[1]);\n return [\n {\n ...baggageObj,\n [baggageKey]: decodeURIComponent(val),\n },\n baggageString,\n true,\n ];\n } else {\n return [baggageObj, baggageString === '' ? curr : `${baggageString},${curr}`, true];\n }\n },\n [{}, '', true],\n );\n}\n\n/**\n * Merges the baggage header we saved from the incoming request (or meta tag) with\n * a possibly created or modified baggage header by a third party that's been added\n * to the outgoing request header.\n *\n * In case @param headerBaggageString exists, we can safely add the the 3rd party part of @param headerBaggage\n * with our @param incomingBaggage. This is possible because if we modified anything beforehand,\n * it would only affect parts of the sentry baggage (@see Baggage interface).\n *\n * @param incomingBaggage the baggage header of the incoming request that might contain sentry entries\n * @param thirdPartyBaggageHeader possibly existing baggage header string or string[] added from a third\n * party to the request headers\n *\n * @return a merged and serialized baggage string to be propagated with the outgoing request\n */\nfunction mergeAndSerializeBaggage(incomingBaggage, thirdPartyBaggageHeader) {\n if (!incomingBaggage && !thirdPartyBaggageHeader) {\n return '';\n }\n\n var headerBaggage = (thirdPartyBaggageHeader && parseBaggageHeader(thirdPartyBaggageHeader, true)) || undefined;\n var thirdPartyHeaderBaggage = headerBaggage && getThirdPartyBaggage(headerBaggage);\n\n var finalBaggage = createBaggage((incomingBaggage && incomingBaggage[0]) || {}, thirdPartyHeaderBaggage || '');\n return serializeBaggage(finalBaggage);\n}\n\n/**\n * Helper function that takes a raw baggage string (if available) and the processed sentry-trace header\n * data (if available), parses the baggage string and creates a Baggage object\n * If there is no baggage string, it will create an empty Baggage object.\n * In a second step, this functions determines if the created Baggage object should be set immutable\n * to prevent mutation of the Sentry data.\n *\n * Extracted this logic to a function because it's duplicated in a lot of places.\n *\n * @param rawBaggageValue\n * @param sentryTraceHeader\n */\nfunction parseBaggageSetMutability(\n rawBaggageValue,\n sentryTraceHeader,\n) {\n var baggage = parseBaggageHeader(rawBaggageValue || '');\n\n // Because we are always creating a Baggage object by calling `parseBaggageHeader` above\n // (either a filled one or an empty one, even if we didn't get a `baggage` header),\n // we only need to check if we have a sentry-trace header or not. As soon as we have it,\n // we set baggage immutable. In case we don't get a sentry-trace header, we can assume that\n // this SDK is the head of the trace and thus we still permit mutation at this time.\n // There is one exception though, which is that we get a baggage-header with `sentry-`\n // items but NO sentry-trace header. In this case we also set the baggage immutable for now\n // but if smoething like this would ever happen, we should revisit this and determine\n // what this would actually mean for the trace (i.e. is this SDK the head?, what happened\n // before that we don't have a sentry-trace header?, etc)\n (sentryTraceHeader || !isSentryBaggageEmpty(baggage)) && setBaggageImmutable(baggage);\n\n return baggage;\n}\n\nexport { BAGGAGE_HEADER_NAME, MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, createBaggage, getBaggageValue, getSentryBaggageItems, getThirdPartyBaggage, isBaggageMutable, isSentryBaggageEmpty, mergeAndSerializeBaggage, parseBaggageHeader, parseBaggageSetMutability, serializeBaggage, setBaggageImmutable, setBaggageValue };\n//# sourceMappingURL=baggage.js.map\n","import { getGlobalObject } from './global.js';\nimport { isString } from './is.js';\n\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction htmlTreeAsString(elem, keyAttrs) {\n \n\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n let currentElem = elem ;\n var MAX_TRAVERSE_HEIGHT = 5;\n var MAX_OUTPUT_LEN = 80;\n var out = [];\n let height = 0;\n let len = 0;\n var separator = ' > ';\n var sepLength = separator.length;\n let nextStr;\n\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem, keyAttrs);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds MAX_OUTPUT_LEN\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) {\n break;\n }\n\n out.push(nextStr);\n\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n\n return out.reverse().join(separator);\n } catch (_oO) {\n return '<unknown>';\n }\n}\n\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el, keyAttrs) {\n var elem = el \n\n;\n\n var out = [];\n let className;\n let classes;\n let key;\n let attr;\n let i;\n\n if (!elem || !elem.tagName) {\n return '';\n }\n\n out.push(elem.tagName.toLowerCase());\n\n // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n var keyAttrPairs =\n keyAttrs && keyAttrs.length\n ? keyAttrs.filter(keyAttr => elem.getAttribute(keyAttr)).map(keyAttr => [keyAttr, elem.getAttribute(keyAttr)])\n : null;\n\n if (keyAttrPairs && keyAttrPairs.length) {\n keyAttrPairs.forEach(keyAttrPair => {\n out.push(`[${keyAttrPair[0]}=\"${keyAttrPair[1]}\"]`);\n });\n } else {\n if (elem.id) {\n out.push(`#${elem.id}`);\n }\n\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(`.${classes[i]}`);\n }\n }\n }\n var allowedAttrs = ['type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(`[${key}=\"${attr}\"]`);\n }\n }\n return out.join('');\n}\n\n/**\n * A safe form of location.href\n */\nfunction getLocationHref() {\n var global = getGlobalObject();\n try {\n return global.document.location.href;\n } catch (oO) {\n return '';\n }\n}\n\nexport { getLocationHref, htmlTreeAsString };\n//# sourceMappingURL=browser.js.map\n","import { createEnvelope } from './envelope.js';\nimport { dateTimestampInSeconds } from './time.js';\n\n/**\n * Creates client report envelope\n * @param discarded_events An array of discard events\n * @param dsn A DSN that can be set on the header. Optional.\n */\nfunction createClientReportEnvelope(\n discarded_events,\n dsn,\n timestamp,\n) {\n var clientReportItem = [\n { type: 'client_report' },\n {\n timestamp: timestamp || dateTimestampInSeconds(),\n discarded_events,\n },\n ];\n return createEnvelope(dsn ? { dsn } : {}, [clientReportItem]);\n}\n\nexport { createClientReportEnvelope };\n//# sourceMappingURL=clientreport.js.map\n","import { SentryError } from './error.js';\n\n/** Regular expression used to parse a Dsn. */\nvar DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+))?@)([\\w.-]+)(?::(\\d+))?\\/(.+)/;\n\nfunction isValidProtocol(protocol) {\n return protocol === 'http' || protocol === 'https';\n}\n\n/**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\nfunction dsnToString(dsn, withPassword = false) {\n const { host, path, pass, port, projectId, protocol, publicKey } = dsn;\n return (\n `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ''}` +\n `@${host}${port ? `:${port}` : ''}/${path ? `${path}/` : path}${projectId}`\n );\n}\n\n/**\n * Parses a Dsn from a given string.\n *\n * @param str A Dsn as string\n * @returns Dsn as DsnComponents\n */\nfunction dsnFromString(str) {\n var match = DSN_REGEX.exec(str);\n\n if (!match) {\n throw new SentryError(`Invalid Sentry Dsn: ${str}`);\n }\n\n const [protocol, publicKey, pass = '', host, port = '', lastPath] = match.slice(1);\n let path = '';\n let projectId = lastPath;\n\n var split = projectId.split('/');\n if (split.length > 1) {\n path = split.slice(0, -1).join('/');\n projectId = split.pop() ;\n }\n\n if (projectId) {\n var projectMatch = projectId.match(/^\\d+/);\n if (projectMatch) {\n projectId = projectMatch[0];\n }\n }\n\n return dsnFromComponents({ host, pass, path, projectId, port, protocol: protocol , publicKey });\n}\n\nfunction dsnFromComponents(components) {\n return {\n protocol: components.protocol,\n publicKey: components.publicKey || '',\n pass: components.pass || '',\n host: components.host,\n port: components.port || '',\n path: components.path || '',\n projectId: components.projectId,\n };\n}\n\nfunction validateDsn(dsn) {\n if (!(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n return;\n }\n\n const { port, projectId, protocol } = dsn;\n\n var requiredComponents = ['protocol', 'publicKey', 'host', 'projectId'];\n requiredComponents.forEach(component => {\n if (!dsn[component]) {\n throw new SentryError(`Invalid Sentry Dsn: ${component} missing`);\n }\n });\n\n if (!projectId.match(/^\\d+$/)) {\n throw new SentryError(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);\n }\n\n if (!isValidProtocol(protocol)) {\n throw new SentryError(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);\n }\n\n if (port && isNaN(parseInt(port, 10))) {\n throw new SentryError(`Invalid Sentry Dsn: Invalid port ${port}`);\n }\n\n return true;\n}\n\n/** The Sentry Dsn, identifying a Sentry instance and project. */\nfunction makeDsn(from) {\n var components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);\n validateDsn(components);\n return components;\n}\n\nexport { dsnFromString, dsnToString, makeDsn };\n//# sourceMappingURL=dsn.js.map\n","/*\n * This module exists for optimizations in the build process through rollup and terser. We define some global\n * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these\n * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will\n * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to\n * `logger` and preventing node-related code from appearing in browser bundles.\n *\n * Attention:\n * This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by\n * users. These fags should live in their respective packages, as we identified user tooling (specifically webpack)\n * having issues tree-shaking these constants across package boundaries.\n * An example for this is the __SENTRY_DEBUG__ constant. It is declared in each package individually because we want\n * users to be able to shake away expressions that it guards.\n */\n\n/**\n * Figures out if we're building a browser bundle.\n *\n * @returns true if this is a browser bundle build.\n */\nfunction isBrowserBundle() {\n return typeof __SENTRY_BROWSER_BUNDLE__ !== 'undefined' && !!__SENTRY_BROWSER_BUNDLE__;\n}\n\nexport { isBrowserBundle };\n//# sourceMappingURL=env.js.map\n","import { dropUndefinedKeys } from './object.js';\n\n/**\n * Creates an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nfunction createEnvelope(headers, items = []) {\n return [headers, items] ;\n}\n\n/**\n * Add an item to an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nfunction addItemToEnvelope(envelope, newItem) {\n const [headers, items] = envelope;\n return [headers, [...items, newItem]] ;\n}\n\n/**\n * Convenience function to loop through the items and item types of an envelope.\n * (This function was mostly created because working with envelope types is painful at the moment)\n */\nfunction forEachEnvelopeItem(\n envelope,\n callback,\n) {\n var envelopeItems = envelope[1];\n envelopeItems.forEach((envelopeItem) => {\n var envelopeItemType = envelopeItem[0].type;\n callback(envelopeItem, envelopeItemType);\n });\n}\n\nfunction encodeUTF8(input, textEncoder) {\n var utf8 = textEncoder || new TextEncoder();\n return utf8.encode(input);\n}\n\n/**\n * Serializes an envelope.\n */\nfunction serializeEnvelope(envelope, textEncoder) {\n const [envHeaders, items] = envelope;\n\n // Initially we construct our envelope as a string and only convert to binary chunks if we encounter binary data\n let parts = JSON.stringify(envHeaders);\n\n function append(next) {\n if (typeof parts === 'string') {\n parts = typeof next === 'string' ? parts + next : [encodeUTF8(parts, textEncoder), next];\n } else {\n parts.push(typeof next === 'string' ? encodeUTF8(next, textEncoder) : next);\n }\n }\n\n for (var item of items) {\n const [itemHeaders, payload] = item ;\n append(`\\n${JSON.stringify(itemHeaders)}\\n`);\n append(typeof payload === 'string' || payload instanceof Uint8Array ? payload : JSON.stringify(payload));\n }\n\n return typeof parts === 'string' ? parts : concatBuffers(parts);\n}\n\nfunction concatBuffers(buffers) {\n var totalLength = buffers.reduce((acc, buf) => acc + buf.length, 0);\n\n var merged = new Uint8Array(totalLength);\n let offset = 0;\n for (var buffer of buffers) {\n merged.set(buffer, offset);\n offset += buffer.length;\n }\n\n return merged;\n}\n\n/**\n * Creates attachment envelope items\n */\nfunction createAttachmentEnvelopeItem(\n attachment,\n textEncoder,\n) {\n var buffer = typeof attachment.data === 'string' ? encodeUTF8(attachment.data, textEncoder) : attachment.data;\n\n return [\n dropUndefinedKeys({\n type: 'attachment',\n length: buffer.length,\n filename: attachment.filename,\n content_type: attachment.contentType,\n attachment_type: attachment.attachmentType,\n }),\n buffer,\n ];\n}\n\nvar ITEM_TYPE_TO_DATA_CATEGORY_MAP = {\n session: 'session',\n sessions: 'session',\n attachment: 'attachment',\n transaction: 'transaction',\n event: 'error',\n client_report: 'internal',\n user_report: 'default',\n};\n\n/**\n * Maps the type of an envelope item to a data category.\n */\nfunction envelopeItemTypeToDataCategory(type) {\n return ITEM_TYPE_TO_DATA_CATEGORY_MAP[type];\n}\n\nexport { addItemToEnvelope, createAttachmentEnvelopeItem, createEnvelope, envelopeItemTypeToDataCategory, forEachEnvelopeItem, serializeEnvelope };\n//# sourceMappingURL=envelope.js.map\n","/** An error emitted by Sentry SDKs and related utilities. */\nclass SentryError extends Error {\n /** Display name of this error instance. */\n \n\n constructor( message, logLevel = 'warn') {\n super(message);this.message = message;;\n\n this.name = new.target.prototype.constructor.name;\n // This sets the prototype to be `Error`, not `SentryError`. It's unclear why we do this, but commenting this line\n // out causes various (seemingly totally unrelated) playwright tests consistently time out. FYI, this makes\n // instances of `SentryError` fail `obj instanceof SentryError` checks.\n Object.setPrototypeOf(this, new.target.prototype);\n this.logLevel = logLevel;\n }\n}\n\nexport { SentryError };\n//# sourceMappingURL=error.js.map\n","import { isNodeEnv } from './node.js';\n\n/** Internal */\n\nvar fallbackGlobalObject = {};\n\n/**\n * Safely get global scope object\n *\n * @returns Global scope object\n */\nfunction getGlobalObject() {\n return (\n isNodeEnv()\n ? global\n : typeof window !== 'undefined' ? window : typeof self !== 'undefined'\n ? self\n : fallbackGlobalObject\n ) ;\n}\n\n/**\n * Returns a global singleton contained in the global `__SENTRY__` object.\n *\n * If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory\n * function and added to the `__SENTRY__` object.\n *\n * @param name name of the global singleton on __SENTRY__\n * @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`\n * @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `getGlobalObject`'s return value\n * @returns the singleton\n */\nfunction getGlobalSingleton(name, creator, obj) {\n var global = (obj || getGlobalObject()) ;\n var __SENTRY__ = (global.__SENTRY__ = global.__SENTRY__ || {});\n var singleton = __SENTRY__[name] || (__SENTRY__[name] = creator());\n return singleton;\n}\n\nexport { getGlobalObject, getGlobalSingleton };\n//# sourceMappingURL=global.js.map\n","import { getGlobalObject } from './global.js';\nimport { isInstanceOf, isString } from './is.js';\nimport { logger, CONSOLE_LEVELS } from './logger.js';\nimport { fill } from './object.js';\nimport { getFunctionName } from './stacktrace.js';\nimport { supportsNativeFetch, supportsHistory } from './supports.js';\n\nvar global = getGlobalObject();\n\n/**\n * Instrument native APIs to call handlers that can be used to create breadcrumbs, APM spans etc.\n * - Console API\n * - Fetch API\n * - XHR API\n * - History API\n * - DOM API (click/typing)\n * - Error API\n * - UnhandledRejection API\n */\n\nvar handlers = {};\nvar instrumented = {};\n\n/** Instruments given API */\nfunction instrument(type) {\n if (instrumented[type]) {\n return;\n }\n\n instrumented[type] = true;\n\n switch (type) {\n case 'console':\n instrumentConsole();\n break;\n case 'dom':\n instrumentDOM();\n break;\n case 'xhr':\n instrumentXHR();\n break;\n case 'fetch':\n instrumentFetch();\n break;\n case 'history':\n instrumentHistory();\n break;\n case 'error':\n instrumentError();\n break;\n case 'unhandledrejection':\n instrumentUnhandledRejection();\n break;\n default:\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('unknown instrumentation type:', type);\n return;\n }\n}\n\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nfunction addInstrumentationHandler(type, callback) {\n handlers[type] = handlers[type] || [];\n (handlers[type] ).push(callback);\n instrument(type);\n}\n\n/** JSDoc */\nfunction triggerHandlers(type, data) {\n if (!type || !handlers[type]) {\n return;\n }\n\n for (var handler of handlers[type] || []) {\n try {\n handler(data);\n } catch (e) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.error(\n `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(handler)}\\nError:`,\n e,\n );\n }\n }\n}\n\n/** JSDoc */\nfunction instrumentConsole() {\n if (!('console' in global)) {\n return;\n }\n\n CONSOLE_LEVELS.forEach(function (level) {\n if (!(level in global.console)) {\n return;\n }\n\n fill(global.console, level, function (originalConsoleMethod) {\n return function (...args) {\n triggerHandlers('console', { args, level });\n\n // this fails for some browsers. :(\n if (originalConsoleMethod) {\n originalConsoleMethod.apply(global.console, args);\n }\n };\n });\n });\n}\n\n/** JSDoc */\nfunction instrumentFetch() {\n if (!supportsNativeFetch()) {\n return;\n }\n\n fill(global, 'fetch', function (originalFetch) {\n return function (...args) {\n var handlerData = {\n args,\n fetchData: {\n method: getFetchMethod(args),\n url: getFetchUrl(args),\n },\n startTimestamp: Date.now(),\n };\n\n triggerHandlers('fetch', {\n ...handlerData,\n });\n\n return originalFetch.apply(global, args).then(\n (response) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: Date.now(),\n response,\n });\n return response;\n },\n (error) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: Date.now(),\n error,\n });\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n },\n );\n };\n });\n}\n\n/** Extract `method` from fetch call arguments */\nfunction getFetchMethod(fetchArgs = []) {\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request) && fetchArgs[0].method) {\n return String(fetchArgs[0].method).toUpperCase();\n }\n if (fetchArgs[1] && fetchArgs[1].method) {\n return String(fetchArgs[1].method).toUpperCase();\n }\n return 'GET';\n}\n\n/** Extract `url` from fetch call arguments */\nfunction getFetchUrl(fetchArgs = []) {\n if (typeof fetchArgs[0] === 'string') {\n return fetchArgs[0];\n }\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request)) {\n return fetchArgs[0].url;\n }\n return String(fetchArgs[0]);\n}\n\n/** JSDoc */\nfunction instrumentXHR() {\n if (!('XMLHttpRequest' in global)) {\n return;\n }\n\n var xhrproto = XMLHttpRequest.prototype;\n\n fill(xhrproto, 'open', function (originalOpen) {\n return function ( ...args) {\n var xhr = this;\n var url = args[1];\n var xhrInfo = (xhr.__sentry_xhr__ = {\n method: isString(args[0]) ? args[0].toUpperCase() : args[0],\n url: args[1],\n });\n\n // if Sentry key appears in URL, don't capture it as a request\n if (isString(url) && xhrInfo.method === 'POST' && url.match(/sentry_key/)) {\n xhr.__sentry_own_request__ = true;\n }\n\n var onreadystatechangeHandler = function () {\n if (xhr.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n xhrInfo.status_code = xhr.status;\n } catch (e) {\n /* do nothing */\n }\n\n triggerHandlers('xhr', {\n args,\n endTimestamp: Date.now(),\n startTimestamp: Date.now(),\n xhr,\n });\n }\n };\n\n if ('onreadystatechange' in xhr && typeof xhr.onreadystatechange === 'function') {\n fill(xhr, 'onreadystatechange', function (original) {\n return function (...readyStateArgs) {\n onreadystatechangeHandler();\n return original.apply(xhr, readyStateArgs);\n };\n });\n } else {\n xhr.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n\n return originalOpen.apply(xhr, args);\n };\n });\n\n fill(xhrproto, 'send', function (originalSend) {\n return function ( ...args) {\n if (this.__sentry_xhr__ && args[0] !== undefined) {\n this.__sentry_xhr__.body = args[0];\n }\n\n triggerHandlers('xhr', {\n args,\n startTimestamp: Date.now(),\n xhr: this,\n });\n\n return originalSend.apply(this, args);\n };\n });\n}\n\nlet lastHref;\n\n/** JSDoc */\nfunction instrumentHistory() {\n if (!supportsHistory()) {\n return;\n }\n\n var oldOnPopState = global.onpopstate;\n global.onpopstate = function ( ...args) {\n var to = global.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n var from = lastHref;\n lastHref = to;\n triggerHandlers('history', {\n from,\n to,\n });\n if (oldOnPopState) {\n // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.\n // https://github.com/getsentry/sentry-javascript/issues/3344\n // https://github.com/bugsnag/bugsnag-js/issues/469\n try {\n return oldOnPopState.apply(this, args);\n } catch (_oO) {\n // no-empty\n }\n }\n };\n\n /** @hidden */\n function historyReplacementFunction(originalHistoryFunction) {\n return function ( ...args) {\n var url = args.length > 2 ? args[2] : undefined;\n if (url) {\n // coerce to string (this is what pushState does)\n var from = lastHref;\n var to = String(url);\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n triggerHandlers('history', {\n from,\n to,\n });\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n\n fill(global.history, 'pushState', historyReplacementFunction);\n fill(global.history, 'replaceState', historyReplacementFunction);\n}\n\nvar debounceDuration = 1000;\nlet debounceTimerID;\nlet lastCapturedEvent;\n\n/**\n * Decide whether the current event should finish the debounce of previously captured one.\n * @param previous previously captured event\n * @param current event to be captured\n */\nfunction shouldShortcircui