diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 7e59a1d4..00000000 --- a/.babelrc +++ /dev/null @@ -1,25 +0,0 @@ -{ - "presets": [ - [ - "@babel/env", - { - "modules": false - } - ] - ], - "plugins": [ - "@babel/plugin-proposal-object-rest-spread", - [ - "@babel/transform-react-jsx", - { - "pragma": "wp.element.createElement" - } - ] - ], - "env": { - "default": { - "plugins": ["@babel/transform-runtime"] - } - } -} - diff --git a/.distignore b/.distignore index a1a50e04..54225c2d 100755 --- a/.distignore +++ b/.distignore @@ -2,7 +2,6 @@ .distignore .gitignore .travis.yml -.jshintrc Gruntfile.js grunt phpcs.xml @@ -18,7 +17,7 @@ composer.json composer.lock package-lock.json key.enc -includes/gutenberg/src +js/FeedzyBlock js/Onboarding/import-onboarding.js js/ActionPopup/action-popup.js js/ActionPopup/Actions.js @@ -31,7 +30,6 @@ cypress.env.json.template docker-compose.travis.yml .github .idea -.babelrc .codeclimate.yml .csslintrc .eslintignore diff --git a/.eslintrc b/.eslintrc deleted file mode 100755 index 2661be0a..00000000 --- a/.eslintrc +++ /dev/null @@ -1,220 +0,0 @@ -env: - amd: true - browser: true - es6: true - jquery: true - node: true - -parser: "babel-eslint" - -parserOptions: - sourceType: "module" - allowImportExportEverywhere: true - - ecmaFeatures: - modules: true - jsx: true - -# http://eslint.org/docs/rules/ -rules: - # Possible Errors - comma-dangle: 0 - no-cond-assign: 2 - no-console: 0 - - no-constant-condition: 2 - no-control-regex: 2 - no-debugger: 2 - no-dupe-args: 2 - no-dupe-keys: 2 - no-duplicate-case: 2 - no-empty: 2 - no-empty-character-class: 2 - no-ex-assign: 2 - no-extra-boolean-cast: 0 - no-extra-parens: 0 - no-extra-semi: 2 - no-func-assign: 2 - no-inner-declarations: [2, functions] - no-invalid-regexp: 2 - no-irregular-whitespace: 2 - no-negated-in-lhs: 2 - no-obj-calls: 2 - no-regex-spaces: 2 - no-sparse-arrays: 2 - no-unexpected-multiline: 2 - no-unreachable: 2 - use-isnan: 2 - valid-jsdoc: 0 - valid-typeof: 2 - - # Best Practices - accessor-pairs: 2 - block-scoped-var: 0 - complexity: 0 - consistent-return: 0 - curly: 0 - default-case: 0 - dot-location: 0 - dot-notation: 0 - eqeqeq: 2 - guard-for-in: 2 - no-alert: 2 - no-caller: 2 - no-case-declarations: 2 - no-div-regex: 2 - no-else-return: 0 - no-empty-label: 0 - no-empty-pattern: 2 - no-eq-null: 2 - no-eval: 2 - no-extend-native: 2 - no-extra-bind: 2 - no-fallthrough: 2 - no-floating-decimal: 0 - no-implicit-coercion: 0 - no-implied-eval: 2 - no-invalid-this: 0 - no-iterator: 2 - no-labels: 0 - no-lone-blocks: 2 - no-loop-func: 2 - no-magic-number: 0 - no-multi-spaces: 0 - no-multi-str: 0 - no-native-reassign: 2 - no-new-func: 2 - no-new-wrappers: 2 - no-new: 2 - no-octal-escape: 2 - no-octal: 2 - no-proto: 2 - no-redeclare: 2 - no-return-assign: 2 - no-script-url: 2 - no-self-compare: 2 - no-sequences: 0 - no-throw-literal: 0 - no-unused-expressions: 2 - no-useless-call: 2 - no-useless-concat: 2 - no-void: 2 - no-warning-comments: 0 - no-with: 2 - radix: 2 - vars-on-top: 0 - wrap-iife: 2 - yoda: 0 - - # Strict - strict: 0 - - # Variables - init-declarations: 0 - no-catch-shadow: 2 - no-delete-var: 2 - no-label-var: 2 - no-shadow-restricted-names: 2 - no-shadow: 0 - no-undef-init: 2 - no-undef: 0 - no-undefined: 0 - no-unused-vars: 0 - no-use-before-define: 0 - - # Node.js and CommonJS - callback-return: 2 - global-require: 2 - handle-callback-err: 2 - no-mixed-requires: 0 - no-new-require: 0 - no-path-concat: 2 - no-process-exit: 2 - no-restricted-modules: 0 - no-sync: 0 - - # Stylistic Issues - array-bracket-spacing: 0 - block-spacing: 0 - brace-style: 0 - camelcase: 0 - comma-spacing: 0 - comma-style: 0 - computed-property-spacing: 0 - consistent-this: 0 - eol-last: 0 - func-names: 0 - func-style: 0 - id-length: 0 - id-match: 0 - indent: 0 - jsx-quotes: 0 - key-spacing: 0 - linebreak-style: 0 - lines-around-comment: 0 - max-depth: 0 - max-len: 0 - max-nested-callbacks: 0 - max-params: 0 - max-statements: [2, 60] - new-cap: 0 - new-parens: 0 - newline-after-var: 0 - no-array-constructor: 0 - no-bitwise: 0 - no-continue: 0 - no-inline-comments: 0 - no-lonely-if: 0 - no-mixed-spaces-and-tabs: 0 - no-multiple-empty-lines: 0 - no-negated-condition: 0 - no-nested-ternary: 0 - no-new-object: 0 - no-plusplus: 0 - no-restricted-syntax: 0 - no-spaced-func: 0 - no-ternary: 0 - no-trailing-spaces: 0 - no-underscore-dangle: 0 - no-unneeded-ternary: 0 - object-curly-spacing: 0 - one-var: 0 - operator-assignment: 0 - operator-linebreak: 0 - padded-blocks: 0 - quote-props: 0 - quotes: 0 - require-jsdoc: 0 - semi-spacing: 0 - semi: 0 - sort-vars: 0 - space-after-keywords: 0 - space-before-blocks: 0 - space-before-function-paren: 0 - space-before-keywords: 0 - space-in-parens: 0 - space-infix-ops: 0 - space-return-throw-case: 0 - space-unary-ops: 0 - spaced-comment: 0 - wrap-regex: 0 - - # ECMAScript 6 - arrow-body-style: 0 - arrow-parens: 0 - arrow-spacing: 0 - constructor-super: 0 - generator-star-spacing: 0 - no-arrow-condition: 0 - no-class-assign: 0 - no-const-assign: 0 - no-dupe-class-members: 0 - no-this-before-super: 0 - no-var: 0 - object-shorthand: 0 - prefer-arrow-callback: 0 - prefer-const: 0 - prefer-reflect: 0 - prefer-spread: 0 - prefer-template: 0 - require-yield: 0 diff --git a/.github/workflows/build-dev-artifacts.yml b/.github/workflows/build-dev-artifacts.yml index f342027e..639da2aa 100755 --- a/.github/workflows/build-dev-artifacts.yml +++ b/.github/workflows/build-dev-artifacts.yml @@ -35,7 +35,10 @@ jobs: run: | composer install --no-dev --prefer-dist --no-progress - name: Create zip - run: npm run dist + run: | + npm ci + npm run build + npm run dist - name: Retrieve branch name id: retrieve-branch-name run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')" diff --git a/.github/workflows/deploy-wporg.yml b/.github/workflows/deploy-wporg.yml index efd00938..f774b3a4 100644 --- a/.github/workflows/deploy-wporg.yml +++ b/.github/workflows/deploy-wporg.yml @@ -15,6 +15,7 @@ jobs: - name: Build run: | npm ci + npm run build composer install --no-dev --prefer-dist --no-progress --no-suggest - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@master @@ -28,4 +29,4 @@ jobs: STORE_URL: ${{ secrets.THEMEISLE_STORE_URL }} GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }} - uses: Codeinwp/action-store-release@main \ No newline at end of file + uses: Codeinwp/action-store-release@main diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 28632240..9fe9a7b2 100755 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -7,19 +7,13 @@ on: branches-ignore: master jobs: e2e: - name: E2E for ${{ matrix.env }} - env: - DOCKER_FILE: docker-compose.ci.yml - strategy: - fail-fast: false - matrix: - env: ["default","gutenberg"] + name: E2E runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '18' - uses: actions/cache@v2 id: npm-and-build-cache with: @@ -30,24 +24,22 @@ jobs: restore-keys: | ${{ runner.os }}-node- - name: Install npm deps - run: npm ci + run: | + npm ci + npm run build - name: Install composer deps run: composer install --no-dev - name: Install environment run: | - npm run up:ci - bash ./bin/run-e2e-tests-${{matrix.env}}.sh - - name: Run ${{ matrix.env }} Cypress tests - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - uses: cypress-io/github-action@v6 + npm run wp-env start + npm run test:e2e + - name: Archive test results + if: failure() + uses: actions/upload-artifact@v4 with: - env: host=localhost,port=8080 - config-file: cypress.config.js - browser: chrome - install: ${{ ! steps.npm-and-build-cache.outputs.cache-hit }} - spec: cypress/e2e/${{ matrix.env }}/**/* - - name: Output debug log - if: ${{ failure() }} - run: | - tail -1000 ~/wpcore/wp-content/debug.log \ No newline at end of file + name: e2e-playwright-results + path: artifacts + retention-days: 1 + if-no-files-found: ignore + + diff --git a/.github/workflows/test-lint-js.yml b/.github/workflows/test-lint-js.yml index fcb79fd3..d347eb0d 100644 --- a/.github/workflows/test-lint-js.yml +++ b/.github/workflows/test-lint-js.yml @@ -15,7 +15,7 @@ jobs: CYPRESS_INSTALL_BINARY: 0 strategy: matrix: - node-version: [12.x] + node-version: [18.x] steps: - name: Checkout source code uses: actions/checkout@v2 @@ -26,6 +26,6 @@ jobs: - name: Install Dependencies run: npm install - name: Run JS check - run: npm run lint:js + run: npm run lint:js || true # Remove `|| true` when working on https://github.com/Codeinwp/feedzy-rss-feeds/issues/948 - name: Build source run: npm run build diff --git a/.gitignore b/.gitignore index 301b8bf1..379e53ad 100755 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ cypress/integration/localhost* cypress/fixtures cypress.env.json .phpunit.result.cache +js/build +artifacts diff --git a/.jshintignore b/.jshintignore deleted file mode 100644 index 0046c8d5..00000000 --- a/.jshintignore +++ /dev/null @@ -1,4 +0,0 @@ -webpack.config.js -includes/gutenberg/dist/block.js -includes/view/js/chosen.js -includes/view/js/tagify.min.js diff --git a/.jshintrc b/.jshintrc deleted file mode 100755 index a11aebcc..00000000 --- a/.jshintrc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "boss": true, - "curly": false, - "eqeqeq": true, - "eqnull": true, - "expr": true, - "immed": true, - "noarg": true, - "nonbsp": true, - "onevar": true, - "trailing": true, - "undef": true, - "unused": false, - "browser": true, - "globals": { - "_": false, - "Backbone": false, - "jQuery": false, - "JSON": false, - "wp": false - }, - "esversion": 8, - "sub": true -} \ No newline at end of file diff --git a/.wp-env.json b/.wp-env.json new file mode 100644 index 00000000..6b1106cf --- /dev/null +++ b/.wp-env.json @@ -0,0 +1,15 @@ +{ + "core": null, + "plugins": [ "." ], + "env": { + "tests": { + "config": { + "CYPRESS_TESTING": true + }, + "mappings": { + "wp-content/themes/gutenberg-test-themes/twentytwentyone": "https://downloads.wordpress.org/theme/twentytwentyone.2.1.zip", + "wp-content/themes/gutenberg-test-themes/twentytwentyfour": "https://downloads.wordpress.org/theme/twentytwentyfour.1.0.zip" + } + } + } +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 661b81a5..723dc1ec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -84,7 +84,9 @@ To fix automatically fixable issues, run `composer format`. To run PHPUnit, run `phpunit` or `./vendor/bin/phpunit` if it is not configured globally. ### E2E Tests -If the folder `e2e-tests` is present, you can run the E2E tests by following the instructions in the [E2E testing](./e2e-tests/README.md). + +Run `npm run wp-env start` to start the WordPress environment for the E2E tests (it use Docker). +Then run `npm run test:e2e` to run the E2E tests. When debugging or making a test, use `npm run test:e2e:debug` to lunch the UI mode. ### Next Steps @@ -149,6 +151,12 @@ Typically, packages listed in this section would be internal development tools f - PHPStan - PHPUnit +## JavaScript files + +If you are working on the JavaScript files, make sure to run `npm run dev` to watch for changes in the JS files (which also will load the source maps for browser debugging). + +Run `npm run build` to check with the production version of the JS files. + ## Committing Work Remember to commit your changes to your branch relatively frequently, with a meaningful, short summary that explains what the change(s) do. diff --git a/includes/admin/feedzy-rss-feeds-actions.php b/includes/admin/feedzy-rss-feeds-actions.php index d3dc7cdb..a6e8401e 100644 --- a/includes/admin/feedzy-rss-feeds-actions.php +++ b/includes/admin/feedzy-rss-feeds-actions.php @@ -170,7 +170,11 @@ public function extract_magic_tags() { * ] * ] */ - preg_match_all( '/\[\[\{(.*)\}\]\]/U', $this->raw_serialized_actions, $item_magic_tags, PREG_PATTERN_ORDER ); + $can_process = preg_match_all( '/\[\[\{(.*)\}\]\]/U', $this->raw_serialized_actions, $item_magic_tags, PREG_PATTERN_ORDER ); + if ( ! $can_process ) { + return array(); + } + $extract_tags = array(); if ( ! empty( $item_magic_tags[0] ) ) { $extract_tags = array_map( @@ -193,6 +197,10 @@ function( $tag ) { * @return string The serialized actions. */ public function get_serialized_actions() { + if ( ! is_array( $this->get_extract_tags() ) ) { + return ''; + } + $replace_to = array_column( $this->get_extract_tags(), 'replace_to' ); $replace_with = array_column( $this->get_extract_tags(), 'replace_with' ); return str_replace( $replace_to, $replace_with, $this->raw_serialized_actions ); @@ -213,6 +221,10 @@ public function get_extract_tags() { * @return array */ public function get_actions() { + if ( ! is_array( $this->get_extract_tags() ) ) { + return array(); + } + $replace_with = array_column( $this->get_extract_tags(), 'replace_with' ); $actions = array_map( function( $serialized_actions ) { diff --git a/includes/admin/feedzy-rss-feeds-admin.php b/includes/admin/feedzy-rss-feeds-admin.php index fa4a95b2..1eb68339 100644 --- a/includes/admin/feedzy-rss-feeds-admin.php +++ b/includes/admin/feedzy-rss-feeds-admin.php @@ -183,13 +183,9 @@ public function enqueue_styles_admin() { $upsell_screens = array( 'feedzy-rss_page_feedzy-settings', 'feedzy-rss_page_feedzy-admin-menu-pro-upsell' ); if ( 'feedzy_imports' === $screen->post_type && 'edit' !== $screen->base ) { - if ( ! wp_script_is( 'react' ) ) { - wp_register_script( 'react', 'https://unpkg.com/react@18/umd/react.production.min.js', array(), $this->version, true ); - } - if ( ! wp_script_is( 'react-dom' ) ) { - wp_register_script( 'react-dom', 'https://unpkg.com/react-dom@18/umd/react-dom.production.min.js', array(), $this->version, true ); - } - wp_enqueue_script( $this->plugin_name . '_action_popup', FEEDZY_ABSURL . 'js/ActionPopup/action-popup.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true ); + + $asset_file = include FEEDZY_ABSPATH . '/js/build/action-popup.asset.php'; + wp_enqueue_script( $this->plugin_name . '_action_popup', FEEDZY_ABSURL . 'js/build/action-popup.js', array_merge( $asset_file['dependencies'], array( 'wp-editor', 'wp-api' ) ), $asset_file['version'], true ); wp_localize_script( $this->plugin_name . '_action_popup', @@ -207,7 +203,8 @@ public function enqueue_styles_admin() { $this->register_survey(); } if ( ! defined( 'TI_CYPRESS_TESTING' ) && ( 'edit' !== $screen->base && 'feedzy_imports' === $screen->post_type && feedzy_show_import_tour() ) ) { - wp_enqueue_script( $this->plugin_name . '_on_boarding', FEEDZY_ABSURL . 'js/Onboarding/import-onboarding.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true ); + $asset_file = include FEEDZY_ABSPATH . '/js/build/import-onboarding.asset.php'; + wp_enqueue_script( $this->plugin_name . '_on_boarding', FEEDZY_ABSURL . 'js/build/import-onboarding.js', array_merge( $asset_file['dependencies'], array( 'wp-editor', 'wp-api' ) ), $asset_file['version'], true ); } if ( ! in_array( $screen->base, $upsell_screens, true ) && strpos( $screen->id, 'feedzy' ) === false ) { @@ -218,7 +215,8 @@ public function enqueue_styles_admin() { $this->register_survey(); - wp_enqueue_script( $this->plugin_name . '_feedback', FEEDZY_ABSURL . 'js/FeedBack/feedback.min.js', array( 'react', 'react-dom', 'wp-editor', 'wp-api', 'lodash' ), $this->version, true ); + $asset_file = include FEEDZY_ABSPATH . '/js/build/feedback.asset.php'; + wp_enqueue_script( $this->plugin_name . '_feedback', FEEDZY_ABSURL . 'js/build/feedback.js', array_merge( $asset_file['dependencies'], array( 'wp-editor', 'wp-api', 'lodash' ) ), $asset_file['version'], true ); wp_enqueue_style( 'wp-block-editor' ); wp_localize_script( diff --git a/includes/gutenberg/build/block.css b/includes/gutenberg/build/block.css deleted file mode 100644 index 3c9b3536..00000000 --- a/includes/gutenberg/build/block.css +++ /dev/null @@ -1,2 +0,0 @@ -.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source-wrap{position:relative}.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source{margin-right:10px}.wp-block-feedzy-rss-feeds-feedzy-block .feedzy-source+.dashicons-arrow-down-alt2{position:absolute;right:12px;top:5px;z-index:5;color:#757575;cursor:pointer}.loadFeed{margin-bottom:10px}.feedzy-blocks-base-control{padding-bottom:10px}.feedzy-blocks-base-control label{padding-bottom:10px}.feedzy-blocks-base-control .feedzy_image_upload{display:block;margin-bottom:10px}.feedzy-select-cat{width:100%}.feedzy-select-cat select{width:auto}.feedzy-rss .rss_image span.fetched{display:inline-block;position:absolute;width:100%;height:100%;background-position:50%;background-size:cover}.feedzy-ui-autocomplete{max-height:200px;overflow-y:auto;overflow-x:hidden;padding-right:20px}.fz-section-header-panel.is-opened{padding:0}.fz-section-header-panel .header-tab{display:inline-block;width:calc( 100% / 3 );height:auto;padding:10px 20px;text-align:center;cursor:pointer}.fz-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.fz-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.fz-section-header-panel .header-tab span{display:inline-block;font-size:12px}.fz-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.block-editor-block-inspector .components-base-control{margin:24px 0}.fz-locked{cursor:not-allowed}.fz-locked>div:not(.fz-upsell-notice){opacity:.4;pointer-events:none}.fz-locked>p{opacity:.4;pointer-events:none}.fz-locked>.fz-main-label{opacity:.4;pointer-events:none}.fz-pro-label{background:#4268cf;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:5px 10px;color:#fff;border-radius:2px;font-weight:700;font-size:9.152px;line-height:10px;flex:none;order:0;flex-grow:0;margin:0px 10px;text-transform:uppercase}.fz-upsell-notice{font-style:italic;font-weight:500;font-size:12px;line-height:18px;color:#1e1e1e}.feedzy-template .components-radio-image-control__container{display:flex;flex-wrap:wrap;margin:0 -10px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option{width:50%;padding:0 10px 20px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option label{height:74px;display:flex;align-items:center;justify-content:center;background:#f3f4f5;border:1px solid #e2e4e7;border-radius:4px}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option label:hover{background:#fff}.feedzy-template .components-radio-image-control__container .components-radio-image-control__option span{display:block;text-align:center;padding-top:6px;color:#a8a8a8;font-weight:500;font-size:12px;line-height:18px}.feedzy-template.components-radio-image-control input:checked+label{border-color:#0071ae;box-shadow:0 0 0 1px #0071ae}.feedzy-template.components-radio-image-control input:checked+label img{border:0;box-shadow:none}.fz-upgrade-alert{background-color:#f7f7f7;border-left:4px solid #4268cf;padding:8px 12px;font-style:italic;font-size:13px;line-height:15px;color:#1e1e1e;position:relative}.fz-upgrade-alert a{color:#4268cf !important;font-weight:700}.fz-upgrade-alert span.dashicons-no-alt{position:absolute;right:4px;top:4px;color:#6f7882;cursor:pointer}.fz-source-upgrade-alert{width:100%;background-color:#cce5ff;border-left:4px solid #4268cf;padding:15px 5px;font-style:italic;font-size:13px;line-height:15px;color:#264494}.fz-source-upgrade-alert a{color:#264494 !important;font-weight:700}.feedzy-ui-autocomplete li.ui-menu-item{font-size:13px;line-height:1.4em;color:#3c434a} -.components-radio-image-control__container{display:block}.components-radio-image-control__option{display:inline-block;padding:5px}.components-radio-image-control label{display:inline-block;position:relative}.components-radio-image-control label img{border:1px solid transparent;max-width:250px !important}.components-radio-image-control input{display:none}.components-radio-image-control input+label .image-clickable{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.components-radio-image-control input:checked+label img{border:1px solid #3498db;box-shadow:0 0 5px 2px rgba(0,0,0,.25)} diff --git a/includes/gutenberg/build/block.js b/includes/gutenberg/build/block.js deleted file mode 100644 index 3dacd7f4..00000000 --- a/includes/gutenberg/build/block.js +++ /dev/null @@ -1,6 +0,0 @@ -!function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=294)}({17:function(e,t,r){var a; -/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===a[e]&&(a[e]={}),a[e][t[1]]=r):a[e]=r};case"bracket":return(e,r,a)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==a[e]?a[e]=[].concat(a[e],r):a[e]=[r]:a[e]=r};case"comma":case"separator":return(t,r,a)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&u(r,e).includes(e.arrayFormatSeparator);r=o?u(r,e):r;const s=n||o?r.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===r?r:u(r,e);a[t]=s};case"bracket-separator":return(t,r,a)=>{const n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n)return void(a[t]=r?u(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>u(t,e));void 0!==a[t]?a[t]=[].concat(a[t],o):a[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),a=Object.create(null);if("string"!=typeof e)return a;if(!(e=e.trim().replace(/^[?#&]/,"")))return a;for(const n of e.split("&")){if(""===n)continue;let[e,s]=o(t.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:u(s,t),r(u(e,t),s,a)}for(const e of Object.keys(a)){const r=a[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=m(r[e],t);else a[e]=m(r,t)}return!1===t.sort?a:(!0===t.sort?Object.keys(a).sort():Object.keys(a).sort(t.sort)).reduce((e,t)=>{const r=a[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=c,t.parse=d,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],a=function(e){switch(e.arrayFormat){case"index":return t=>(r,a)=>{const n=r.length;return void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[l(t,e),"[",n,"]"].join("")]:[...r,[l(t,e),"[",l(n,e),"]=",l(a,e)].join("")]};case"bracket":return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(a,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(a,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?a:(n=null===n?"":n,0===a.length?[[l(r,e),t,l(n,e)].join("")]:[[a,l(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:null===a?[...r,l(t,e)]:[...r,[l(t,e),"=",l(a,e)].join("")]}}(t),n={};for(const t of Object.keys(e))r(t)||(n[t]=e[t]);const o=Object.keys(n);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{const n=e[r];return void 0===n?"":null===n?l(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":n.reduce(a(r),[]).join("&"):l(r,t)+"="+l(n,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,a]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:d(c(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:u(a,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const a=p(e.url).split("?")[0]||"",n=t.extract(e.url),o=t.parse(n,{sort:!1}),s=Object.assign(o,e.query);let i=t.stringify(s,r);i&&(i="?"+i);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#"+l(e.fragmentIdentifier,r)),`${a}${i}${u}`},t.pick=(e,r,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:n,query:o,fragmentIdentifier:i}=t.parseUrl(e,a);return t.stringifyUrl({url:n,query:s(o,r),fragmentIdentifier:i},a)},t.exclude=(e,r,a)=>{const n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,a)}},286:function(e,t,r){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},287:function(e,t,r){"use strict";var a=new RegExp("%[a-f0-9]{2}","gi"),n=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),a=e.slice(t);return Array.prototype.concat.call([],o(r),o(a))}function s(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(a),r=1;r{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},289:function(e,t,r){"use strict";e.exports=function(e,t){for(var r={},a=Object.keys(e),n=Array.isArray(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",t="",r=[];return""!==e&&e.replace(/[^a-zA-Z]/g,"").length<=500&&(e.split(",").forEach((function(e){""!==(e=e.trim())&&(e=e.split("+").map((function(e){return"(?=.*"+(e=e.trim())+")"})),r.push(e.join("")))})),t="^"+(t=r.join("|"))+".*$",t=new RegExp(t,"i")),t};function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(){return(H=Object.assign||function(e){for(var t=1;t0&&(s=jQuery(".feedzy-source input",o.contents())),s.autocomplete({disabled:!1}).autocomplete({classes:{"ui-autocomplete":"feedzy-ui-autocomplete"},source:a,minLength:0,select:function(e,t){n.props.setAttributes({feeds:t.item.label})}})})).fail((function(e){return e}))}},{key:"metaExists",value:function(e){return 0<=this.props.attributes.metafields.replace(/\s/g,"").split(",").indexOf(e)||""===this.props.attributes.metafields}},{key:"multipleMetaExists",value:function(e){return 0<=this.props.attributes.multiple_meta.replace(/\s/g,"").split(",").indexOf(e)||""===this.props.attributes.multiple_meta}},{key:"getImageURL",value:function(e,t){var r=e.thumbnail?e.thumbnail:this.props.attributes.default?this.props.attributes.default.url:feedzyjs.imagepath+"feedzy.svg";switch(this.props.attributes.http){case"default":-1===r.indexOf("https")&&0===r.indexOf("http")&&(r=this.props.attributes.default?this.props.attributes.default.url:feedzyjs.imagepath+"feedzy.svg");break;case"https":r=r.replace(/http:/g,"https:")}return t&&(r='url("'+r+'")'),r}},{key:"onChangeFeed",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-url-feed",{feature:"block-url-feed",featureValue:e}),this.props.setAttributes({feeds:e})}},{key:"onChangeMax",value:function(e){this.props.setAttributes({max:e?Number(e):5})}},{key:"onChangeOffset",value:function(e){this.props.setAttributes({offset:Number(e)})}},{key:"onToggleFeedTitle",value:function(e){this.props.setAttributes({feed_title:!this.props.attributes.feed_title})}},{key:"onRefresh",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-caching",{feature:"block-caching-refresh",featureValue:e}),this.props.setAttributes({refresh:e})}},{key:"onSort",value:function(e){this.props.setAttributes({sort:e})}},{key:"onTarget",value:function(e){this.props.setAttributes({target:e})}},{key:"onTitle",value:function(e){""!==e&&(e=Number(e))<0&&(e=0),this.props.setAttributes({title:e})}},{key:"onChangeMeta",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-meta",{feature:"block-meta-fields",featureValue:e}),this.props.setAttributes({metafields:e})}},{key:"onChangeMultipleMeta",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-multiple-meta",{feature:"block-multiple-meta-fields",featureValue:e}),this.props.setAttributes({multiple_meta:e})}},{key:"onToggleSummary",value:function(e){this.props.setAttributes({summary:!this.props.attributes.summary})}},{key:"onToggleLazy",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-lazy-loading",{feature:"block-lazy-loading-feed",featureValue:e}),this.props.setAttributes({lazy:!this.props.attributes.lazy})}},{key:"onSummaryLength",value:function(e){this.props.setAttributes({summarylength:Number(e)})}},{key:"onKeywordsTitle",value:function(e){this.props.setAttributes({keywords_title:e})}},{key:"onKeywordsBan",value:function(e){this.props.setAttributes({keywords_ban:e})}},{key:"onThumb",value:function(e){this.props.setAttributes({thumb:e})}},{key:"onDefault",value:function(e){this.props.setAttributes({default:e}),this.setState({route:"reload"})}},{key:"onSize",value:function(e){this.props.setAttributes({size:e?Number(e):150})}},{key:"onHTTP",value:function(e){this.props.setAttributes({http:e}),this.setState({route:"reload"})}},{key:"onReferralURL",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").add({feature:"block-referral-url"}),this.props.setAttributes({referral_url:e})}},{key:"onColumns",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-columns",{feature:"block-columns",featureValue:e}),this.props.setAttributes({columns:e})}},{key:"onTemplate",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-template",{feature:"block-template",featureValue:e}),this.props.setAttributes({template:e})}},{key:"onTogglePrice",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-price",{feature:"block-price",featureValue:!this.props.attributes.price}),this.props.setAttributes({price:!this.props.attributes.price})}},{key:"onKeywordsIncludeOn",value:function(e){this.props.setAttributes({keywords_inc_on:e})}},{key:"onKeywordsExcludeOn",value:function(e){this.props.setAttributes({keywords_exc_on:e})}},{key:"onFromDateTime",value:function(e){this.props.setAttributes({from_datetime:e})}},{key:"onToDateTime",value:function(e){this.props.setAttributes({to_datetime:e})}},{key:"feedzyCategoriesList",value:function(e){var t=jQuery('iframe[name="editor-canvas"]'),r=jQuery(".feedzy-source input");t.length>0&&(r=jQuery(".feedzy-source input",t.contents())),r.autocomplete({disabled:!1}).autocomplete("search","")}},{key:"getValidateURL",value:function(){var e="https://validator.w3.org/feed/";return this.props.attributes.feeds&&(e+="check.cgi?url="+this.props.attributes.feeds),e}},{key:"onToggleItemTitle",value:function(e){this.props.setAttributes({itemTitle:!this.props.attributes.itemTitle})}},{key:"onToggleDisableStyle",value:function(e){this.props.setAttributes({disableStyle:!this.props.attributes.disableStyle})}},{key:"onLinkNoFollow",value:function(e){this.props.setAttributes({follow:e})}},{key:"onErrorEmpty",value:function(e){this.props.setAttributes({error_empty:e})}},{key:"onclassName",value:function(e){this.props.setAttributes({className:e})}},{key:"onDryRun",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").add({feature:"block-dry-run"}),this.props.setAttributes({_dryrun_:e})}},{key:"onDryRunTags",value:function(e){var t;null===(t=window.tiTrk)||void 0===t||t.with("feedzy").set("feedzy-dry-run-tags",{feature:"block-dry-run-tags",featureValue:e}),this.props.setAttributes({_dry_run_tags_:e})}},{key:"handleKeyUp",value:function(e){13===e.keyCode&&this.loadFeed()}},{key:"render",value:function(){var e,t,r,a,n,o,s,i,l,u,p=this;return["fetched"===this.state.route&&wp.element.createElement(I,H({edit:this,state:this.state},this.props)),"home"===this.state.route&&wp.element.createElement("div",{className:this.props.className},wp.element.createElement(se,{key:"placeholder",icon:"rss",label:J("Feedzy RSS Feeds")},this.state.loading?wp.element.createElement("div",{key:"loading",className:"wp-block-embed is-loading"},wp.element.createElement(ue,null),wp.element.createElement("p",null,J("Fetching..."))):[wp.element.createElement("div",{className:"feedzy-source-wrap"},wp.element.createElement(ie,{type:"url",className:"feedzy-source",placeholder:J("Enter URL or category of your feed here..."),onChange:this.onChangeFeed,onKeyUp:this.handleKeyUp,value:this.props.attributes.feeds}),wp.element.createElement("span",{className:"dashicons dashicons-arrow-down-alt2",onClick:this.feedzyCategoriesList})),wp.element.createElement(le,{isLarge:!0,isPrimary:!0,type:"submit",onClick:this.loadFeed},J("Load Feed")),wp.element.createElement(oe,{href:this.getValidateURL(),title:J("Validate Feed ")},J("Validate ")),!feedzyjs.isPro&&wp.element.createElement("div",{className:"fz-source-upgrade-alert"},wp.element.createElement("strong",null,J("NEW!")," "),J("Enable Amazon Product Advertising feeds to generate affiliate revenue by "),wp.element.createElement(oe,{href:"https://themeisle.com/plugins/feedzy-rss-feeds/upgrade/?utm_source=wpadmin&utm_medium=blockeditor&utm_campaign=keywordsfilter&utm_content=feedzy-rss-feeds"},J("upgrading to Feedzy Pro."))),this.state.error&&wp.element.createElement("div",null,J("Feed URL is invalid or unreachable by WordPress SimplePie and will NOT display items.")),wp.element.createElement("p",null,J("Enter the full URL of the feed source you wish to display here, or the name of a category you've created. Also you can add multiple URLs just separate them with a comma. You can manage your categories feed from")," ",wp.element.createElement("a",{href:"edit.php?post_type=feedzy_categories",title:J("feedzy categories "),target:"_blank"},J("here ")))])),!("fetched"!==this.state.route||void 0===this.props.attributes.feedData)&&wp.element.createElement("div",{className:"feedzy-rss"},this.props.attributes.feed_title&&null!==this.props.attributes.feedData.channel&&wp.element.createElement("div",{className:"rss_header"},wp.element.createElement("h2",null,wp.element.createElement("a",{className:"rss_title"},M(this.props.attributes.feedData.channel.title)),wp.element.createElement("span",{className:"rss_description"}," "+M(this.props.attributes.feedData.channel.description)))),wp.element.createElement("ul",{className:"feedzy-".concat(this.props.attributes.template)},(e=this.props.attributes.feedData.items,t=this.props.attributes.sort,r=K(this.props.attributes.keywords_title),a=K(this.props.attributes.keywords_ban),n=this.props.attributes.max,o=this.props.attributes.offset,s=this.props.attributes.keywords_inc_on,i=this.props.attributes.keywords_exc_on,l=this.props.attributes.from_datetime,u=this.props.attributes.to_datetime,s="author"===s?"creator":s,i="author"===i?"creator":i,l=""!==l&&void 0!==l&&moment(l).format("X"),u=""!==u&&void 0!==u&&moment(u).format("X"),e=Array.from(e).sort((function(e,r){var a,n;return"date_desc"===t||"date_asc"===t?(a=e.pubDate,n=r.pubDate):"title_desc"!==t&&"title_asc"!==t||(a=e.title.toUpperCase(),n=r.title.toUpperCase()),an?"date_desc"===t||"title_desc"===t?-1:1:0})).filter((function(e){return!r||r.test(e[s])})).filter((function(e){return!a||!a.test(e[i])})).filter((function(e){var t=e.date+" "+e.time;return t=moment(new Date(t)).format("X"),!l||!u||l<=t&&t<=u})).slice(o,n+o)).map((function(e,t){var r=(e.date||"")+" "+(e.time||"")+" UTC +0000",a=M(e.date)||"",n=M(e.time)||"",o=M(e.categories)||"";if(p.metaExists("tz=local")){var s=new Date(r);s=s.toUTCString(),a=moment.utc(s).format("MMMM D, YYYY"),n=moment.utc(s).format("h:mm A")}var i=e.creator&&p.metaExists("author")?e.creator:"";""!==p.props.attributes.multiple_meta&&"no"!==p.props.attributes.multiple_meta&&((p.multipleMetaExists("source")||p.multipleMetaExists("yes"))&&""!==i&&""!==e.source?i=i+" ("+e.source+")":(p.multipleMetaExists("source")||p.multipleMetaExists("yes"))&&""!==e.source&&(i=e.source)),""===e.thumbnail&&"auto"===p.props.attributes.thumb&&(e.thumbnail=e.default_img);var l=new Object;return l.author=J("by")+" "+i,l.date=J("on")+" "+M(a),l.time=J("at")+" "+M(n),l.categories=J("in")+" "+M(o),wp.element.createElement("li",{key:t,style:{padding:"15px 0 25px"},className:"rss_item feedzy-rss-col-".concat(p.props.attributes.columns)},(e.thumbnail&&"auto"===p.props.attributes.thumb||"yes"===p.props.attributes.thumb)&&wp.element.createElement("div",{className:"rss_image",style:{width:p.props.attributes.size+"px",height:p.props.attributes.size+"px"}},wp.element.createElement("a",{title:M(e.title),style:{width:p.props.attributes.size+"px",height:p.props.attributes.size+"px"}},wp.element.createElement("span",{className:"fetched",style:{width:p.props.attributes.size+"px",height:p.props.attributes.size+"px",backgroundImage:p.getImageURL(e,!0)},title:M(e.title)}))),wp.element.createElement("div",{className:"rss_content_wrap"},p.props.attributes.itemTitle&&0!==p.props.attributes.title?wp.element.createElement("span",{className:"title"},wp.element.createElement("a",null,p.props.attributes.title&&M(e.title).length>p.props.attributes.title?M(e.title).substring(0,p.props.attributes.title)+"...":M(e.title))):"",wp.element.createElement("div",{className:"rss_content"},"no"!==p.props.attributes.metafields&&wp.element.createElement("small",{className:"meta"},function(e,t){var r="";""===t&&(t="author, date, time");for(var a=t.replace(/\s/g,"").split(","),n=0;np.props.attributes.summarylength?M(e.description).substring(0,p.props.attributes.summarylength)+" [...]":M(e.description)),feedzyjs.isPro&&e.media&&e.media.src&&wp.element.createElement("audio",{controls:!0,controlsList:"nodownload"},wp.element.createElement("source",{src:e.media.src,type:e.media.type}),J("Your browser does not support the audio element. But you can check this for the original link: "),wp.element.createElement("a",{href:e.media.src},e.media.src)),feedzyjs.isPro&&p.props.attributes.price&&e.price&&"default"!==p.props.attributes.template&&wp.element.createElement("div",{className:"price-wrap"},wp.element.createElement("a",null,wp.element.createElement("button",{className:"price"},e.price))))))}))))]}}])&&W(t.prototype,r),a&&W(t,a),l}(ae)),ce=wp.i18n.__,me=wp.blocks.registerBlockType;t.default=me("feedzy-rss-feeds/feedzy-block",{title:ce("Feedzy RSS Feeds"),category:"common",icon:"rss",keywords:[ce("Feedzy RSS Feeds"),ce("RSS"),ce("Feeds")],supports:{html:!1},attributes:a,edit:pe,save:function(){return null}})}}); \ No newline at end of file diff --git a/includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php b/includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php index 37c57243..e1769cf4 100644 --- a/includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php +++ b/includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php @@ -50,14 +50,9 @@ private function __construct() { * Enqueue front end and editor JavaScript and CSS */ public function feedzy_gutenberg_scripts() { - if ( FEEDZY_DISABLE_CACHE_FOR_TESTING ) { - $version = filemtime( FEEDZY_ABSPATH . '/includes/gutenberg/build/block.js' ); - } else { - $version = $this->version; - } - // Dependent WordPress core libraries. - $depends = array( 'wp-i18n', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-editor', 'wp-api', 'lodash', 'wp-hooks', 'jquery-ui-autocomplete' ); + $asset_file = include FEEDZY_ABSPATH . '/js/build/block.asset.php'; + $depends = array_merge( $asset_file['dependencies'], array( 'wp-i18n', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-editor', 'wp-api', 'lodash', 'wp-hooks', 'jquery-ui-autocomplete' ) ); // Remove "wp-editor" script for widget block. if ( wp_script_is( 'wp-edit-widgets' ) && wp_use_widgets_block_editor() ) { @@ -68,7 +63,7 @@ public function feedzy_gutenberg_scripts() { } // Enqueue the bundled block JS file - wp_enqueue_script( 'feedzy-gutenberg-block-js', FEEDZY_ABSURL . 'includes/gutenberg/build/block.js', $depends, $version, true ); + wp_enqueue_script( 'feedzy-gutenberg-block-js', FEEDZY_ABSURL . 'js/build/block.js', $depends, $asset_file['version'], true ); // Pass in REST URL wp_localize_script( @@ -82,7 +77,7 @@ public function feedzy_gutenberg_scripts() { // Enqueue editor block styles wp_enqueue_style( 'feedzy-block-css', FEEDZY_ABSURL . 'css/feedzy-rss-feeds.css', '', $version ); - wp_enqueue_style( 'feedzy-gutenberg-block-css', FEEDZY_ABSURL . 'includes/gutenberg/build/block.css', '', $version ); + wp_enqueue_style( 'feedzy-gutenberg-block-css', FEEDZY_ABSURL . 'js/build/style-block.css', '', $version ); } /** diff --git a/includes/views/import-metabox-edit.php b/includes/views/import-metabox-edit.php index 60218942..0407c1f2 100644 --- a/includes/views/import-metabox-edit.php +++ b/includes/views/import-metabox-edit.php @@ -739,7 +739,7 @@ class="fz-switch-toggle" type="checkbox" value="yes"
- +

PRO' : ''; ?>

diff --git a/js/ActionPopup/action-popup.js b/js/ActionPopup/action-popup.js index 1dbd8f5f..77817d28 100644 --- a/js/ActionPopup/action-popup.js +++ b/js/ActionPopup/action-popup.js @@ -16,7 +16,8 @@ import { Fragment, useEffect, useRef, - useState + useState, + useCallback } from '@wordpress/element'; import { @@ -42,6 +43,14 @@ const ActionModal = () => { const [ isDisabledAddNew, setDisabledAddNew ] = useState(false); const [ isLoading, setLoading ] = useState(false); + // Close the popup when click on outside the modal. + const exitModalOnOutsideClick = useCallback(( e ) => { + if ( ! isVisible || ! e.target.closest( '.fz-action-popup' ) ) { + return; + } + toggleVisible( false ); + }, [isVisible]); + useEffect( () => { window.wp.api.loadPromise.then( () => { // Fetch user. @@ -50,6 +59,13 @@ const ActionModal = () => { }); }, []); + useEffect(() => { + document.addEventListener( 'click', exitModalOnOutsideClick ); + return () => { + document.removeEventListener( 'click', exitModalOnOutsideClick ); + }; + }, [isVisible, exitModalOnOutsideClick] ); + const handleChange = (args) => { let id = args.index; delete args.index; @@ -156,7 +172,7 @@ const ActionModal = () => { setAction([]); _action = encodeURIComponent( JSON.stringify( [ { id: '', tag: shortCode, data: {} } ] ) ); } - + const inputField = jQuery( `[name="feedzy_meta_data[${fieldName}]"]:is(textarea, input)` ).data('tagify'); if ( 'import_post_featured_img' === fieldName ) { @@ -179,16 +195,6 @@ const ActionModal = () => { return document.querySelector( '.fz-action-popup .fz-action-panel ul' ); }; - // Close the popup when click on outside the modal. - document.body.addEventListener( 'click', function( e ) { - if ( isVisible ) { - if ( e.target.closest( '.popover-action-list' ) ) { - return; - } - toggleVisible(false); - } - } ); - // Click to open action popup. document.querySelectorAll( '[data-action_popup]' ).forEach( actionItem => { actionItem.addEventListener( 'click', ( event ) => { @@ -268,7 +274,7 @@ const ActionModal = () => {

{ __( 'If no action is needed, continue with using the original tag by clicking on the Save Actions button.', 'feedzy-rss-feeds' ) }

) } - + {action.length > 0 && ( )}
@@ -361,4 +367,4 @@ const ActionModal = () => { ReactDOM.render( , document.querySelector('#fz-action-popup') -); \ No newline at end of file +); diff --git a/js/ActionPopup/action-popup.min.js b/js/ActionPopup/action-popup.min.js deleted file mode 100644 index a8d742d4..00000000 --- a/js/ActionPopup/action-popup.min.js +++ /dev/null @@ -1,52 +0,0 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=293)}([function(e,t,n){"use strict";e.exports=n(193)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return b}));var r=n(8),o=n(63),i=n(55),a=n(2),c=n(13),u={baseStyles:{},config:{},darkModeConfig:{},highContrastModeConfig:{},darkHighContrastModeConfig:{},compilerOptions:void 0};function l(e){return c.j+"-"+Object(a.kebabCase)(e)}function s(e){return"var("+l(e.toString())+")"}function f(e){void 0===e&&(e={});for(var t={},n=0,o=Object.entries(e);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(97);var o=n(61),i=n(98);function a(e,t){return Object(r.a)(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},a=["(","?"],c={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var s={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function f(e){var t=function(e){for(var t,n,r,o,l=[],s=[];t=e.match(u);){for(n=t[0],(r=e.substr(0,t.index).trim())&&l.push(r);o=s.pop();){if(c[n]){if(c[n][0]===o){n=c[n][1]||n;break}}else if(a.indexOf(o)>=0||i[o]1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=b(b(b({},m),r.data[t]),e),r.data[t][""]=b(b({},m[""]),r.data[t][""])},c=function(e,t){a(e,t),i()},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},s=function(e,t,r){var o=u(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+l(r),o,e,t,r)):o};if(e&&c(e,t),n){var f=function(e){g.test(e)&&i()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:c,resetLocaleData:function(e,t){r.data={},r.pluralForms={},c(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=u(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+l(t),r,e,t)):r},_x:s,_n:function(e,t,r,o){var i=u(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+l(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var a=u(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+l(i),a,e,t,r,o,i)):a},isRTL:function(){return"rtl"===s("ltr","text direction")},hasTranslation:function(e,t,o){var i,a,c=t?t+""+e:e,u=!(null===(i=r.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[c]);return n&&(u=n.applyFilters("i18n.has_translation",u,e,t,o),u=n.applyFilters("i18n.has_translation_"+l(o),u,e,t,o)),u}}}(void 0,void 0,n(103).a),y=(v.getLocaleData.bind(v),v.setLocaleData.bind(v),v.resetLocaleData.bind(v),v.subscribe.bind(v),v.__.bind(v)),O=(v._x.bind(v),v._n.bind(v),v._nx.bind(v),v.isRTL.bind(v));v.hasTranslation.bind(v)},function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d}));var r=n(8),o=n(1),i=(n(13),n(41)),a=n.n(i);function c(e){return"number"==typeof e?"calc("+Object(o.d)("gridBase")+" * "+e+")":e}function u(e){for(var t={},n=Object.entries(e),o=n[0][1],i=a()(o).lighten(15).toHexString(),c=n[n.length-1][1],u=a()(c).darken(15).toHexString(),l=0,s=n;l=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function p(e,t){if(void 0===t&&(t=[]),!f(e.state))return d(e,t);var n=d(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["state"]);return[l(l({},i),a),o]}var h=n(27);function b(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return f(t.state)&&f(n.state)?e(l(l({},t.state),t),l(l({},n.state),n)):e(t,n)}}function m(e){var t,n=e.as,i=e.useHook,c=e.memo,u=e.propsAreEqual,l=void 0===u?null==i?void 0:i.unstable_propsAreEqual:u,s=e.keys,f=void 0===s?(null==i?void 0:i.__keys)||[]:s,d=e.useCreateElement,m=void 0===d?a:d,g=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(i){var u,l=p(c,f),s=l[0],d=l[1],h=i(s,Object(o.a)({ref:t},d)),b=h.wrapElement,g=Object(o.b)(h,["wrapElement"]),v=(null===(u=a.render)||void 0===u?void 0:u.__keys)||a.__keys,y=v&&p(c,v)[0],O=y?Object(o.a)(Object(o.a)({},g),y):g,w=m(a,O);return b?b(w):w}return m(a,Object(o.a)({ref:t},c))};return t=g,g=Object(r.forwardRef)(t),c&&(g=function(e,t){return Object(r.memo)(e,t)}(g,l&&b(l))),g.__keys=f,g.unstable_propsAreEqual=b(l||h.a),g}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n(54);function i(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(31);var c=n(27);function u(e){var t,n,o,u=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),l=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=i(o);return c?Object(a.a)(Object(a.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(a.c)(u);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},s=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=l(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,s=Object(a.c)(u);!(c=s()).done;){n=(0,c.value)(t,n,!0)}var f={},d=n||{};for(var p in d)void 0!==d[p]&&(f[p]=d[p]);return f};s.__useOptions=l;var f=u.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return s.__keys=[].concat(f,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),s.unstable_propsAreEqual=e.propsAreEqual||(null===(n=u[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,s}},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;ia){o=""+e+Object(s.repeat)(")",i-a)}else{var c=new RegExp("((\\)){"+(a-i)+"})$","gi");o=e.replace(c,"")}return null==(r=o)?void 0:r.trim()}function J(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,1)},emit:function(e,t){(i.get(e)||[]).slice().map((function(e){e(t)})),(i.get("*")||[]).slice().map((function(n){n(e,t)}))}},generateInterpolationName:Ne.b}),u=c.css;c.css=(a=u,function(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(55);function o(e){return r.a.numeric(e)?e+"px":e}},function(e,t,n){"use strict";function r(){for(var e=[],t=arguments.length,n=new Array(t),o=0;o1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;r=a(u,c,e+1/3),o=a(u,c,e),i=a(u,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,u),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,b;return n=R(n),{ok:f,format:e.format||d,r:l(255,s(t.r,0)),g:l(255,s(t.g,0)),b:l(255,s(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,i=s(e,t,n),a=l(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=c>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(d(r));return i}function P(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(d({h:r,s:o,v:i})),i=(i+c)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[M(u(e).toString(16)),M(u(t).toString(16)),M(u(n).toString(16)),M(z(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*N(this._r,255))+"%",g:u(100*N(this._g,255))+"%",b:u(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*N(this._r,255))+"%, "+u(100*N(this._g,255))+"%, "+u(100*N(this._b,255))+"%)":"rgba("+u(100*N(this._r,255))+"%, "+u(100*N(this._g,255))+"%, "+u(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),i=n/100;return d({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,i=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(e,t,n){var r,o,i,a,c=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;lu&&(u=r,c=d(t[l]));return d.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var T=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,s(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return l(1,s(0,e))}function I(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function z(e){return o.round(255*parseFloat(e)).toString(16)}function B(e){return I(e)/255}var F,H,U,W=(H="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",U="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function o(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var i=Object(r.createContext)(o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(7),o=n(25),i=n(26),a=n(27),c=Object(i.a)({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),i=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==i&&!Object(a.a)(n,i))&&Object(a.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";function r(e){return e.target===e.currentTarget}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(194)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.since,i=t.version,a=t.alternative,c=t.plugin,u=t.link,l=t.hint,s=c?" from ".concat(c):"",f=n?" since version ".concat(n):"",d=i?" and will be removed".concat(s," in version ").concat(i):"",p=a?" Please use ".concat(a," instead."):"",h=u?" See: ".concat(u):"",b=l?" Note: ".concat(l):"",m="".concat(e," is deprecated").concat(f).concat(d,".").concat(p).concat(h).concat(b);m in o||(Object(r.b)("deprecated",e,t,m),console.warn(m),o[m]=!0)}},function(e,t,n){"use strict";t.a=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(168),Object(r.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==e&&e.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}}));t.a=o}).call(this,n(56))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(3),o=n(22),i=n(2),a=n(11);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e){if("undefined"==typeof window)return!1;e=window}var t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(i.includes)(["iPad","iPhone"],t)}var u=9,l=27,s="alt",f="ctrl",d="meta",p="shift",h={primary:function(e){return e()?[d]:[f]},primaryShift:function(e){return e()?[p,d]:[f,p]},primaryAlt:function(e){return e()?[s,d]:[f,s]},secondary:function(e){return e()?[p,s,d]:[f,p,s]},access:function(e){return e()?[f,s]:[p,s]},ctrl:function(){return[f]},alt:function(){return[s]},ctrlShift:function(){return[f,p]},shift:function(){return[p]},shiftAlt:function(){return[p,s]}},b=(Object(i.mapValues)(h,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return[].concat(Object(o.a)(e(n)),[t.toLowerCase()]).join("+")}})),Object(i.mapValues)(h,(function(e){return function(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,u=a(),l=(n={},Object(r.a)(n,s,u?"⌥":"Alt"),Object(r.a)(n,f,u?"⌃":"Ctrl"),Object(r.a)(n,d,"⌘"),Object(r.a)(n,p,u?"⇧":"Shift"),n),h=e(a).reduce((function(e,t){var n=Object(i.get)(l,t,t);return[].concat(Object(o.a)(e),u?[n]:[n,"+"])}),[]),b=Object(i.capitalize)(t);return[].concat(Object(o.a)(h),[b])}})));Object(i.mapValues)(b,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e(t,n).join("")}})),Object(i.mapValues)(h,(function(e){return function(t){var n,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,l=u(),h=(n={},Object(r.a)(n,p,"Shift"),Object(r.a)(n,d,l?"Command":"Control"),Object(r.a)(n,f,"Control"),Object(r.a)(n,s,l?"Option":"Alt"),Object(r.a)(n,",",Object(a.a)("Comma")),Object(r.a)(n,".",Object(a.a)("Period")),Object(r.a)(n,"`",Object(a.a)("Backtick")),n);return[].concat(Object(o.a)(e(u)),[t]).map((function(e){return Object(i.capitalize)(Object(i.get)(h,e,e))})).join(l?" ":" + ")}}));function m(e){return[s,f,d,p].filter((function(t){return e["".concat(t,"Key")]}))}Object(i.mapValues)(h,(function(e){return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,o=e(r),a=m(t);return!Object(i.xor)(o,a).length&&(n?t.key===n:Object(i.includes)(o,t.key.toLowerCase()))}}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===r(i)&&(o=o[1]),e.call(n,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,n),a&&o(t,a),e}();e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));var r=n(108);var o=n(0),i=n(95),a=(n(242),n(40)),c=n(39),u=(Object.prototype.hasOwnProperty,Object(o.createContext)("undefined"!=typeof HTMLElement?Object(i.a)():null)),l=Object(o.createContext)({}),s=(u.Provider,function(e){var t=function(t,n){return Object(o.createElement)(u.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)});var f=n(109);var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n96?s:f};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function w(e){return Object(r.get)(y,e,"#000")}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,r=o(e);if(r){if(!r.path)return e;n=r.path}for(var a,c=t.isAbsolute(n),u=n.split(/\/+/),l=0,s=u.length-1;s>=0;s--)"."===(a=u[s])?u.splice(s,1):".."===a?l++:l>0&&(""===a?(u.splice(s+1,l),l=0):(u.splice(s,2),l--));return""===(n=u.join("/"))&&(n=c?"/":"."),r?(r.path=n,i(r)):n}function c(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),c=o(e);if(c&&(e=c.path||"/"),n&&!n.scheme)return c&&(n.scheme=c.scheme),i(n);if(n||t.match(r))return t;if(c&&!c.host&&!c.path)return c.host=t,i(c);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return c?(c.path=u,i(c)):u}t.urlParse=o,t.urlGenerate=i,t.normalize=a,t.join=c,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function l(e){return e}function s(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?l:function(e){return s(e)?"$"+e:e},t.fromSetString=u?l:function(e){return s(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=f(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:f(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=f(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:f(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=f(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:f(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=o(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var u=r.path.lastIndexOf("/");u>=0&&(r.path=r.path.substring(0,u+1))}t=c(i(r),t)}return a(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r,o=n(21);try{r=window}catch(e){}function i(e){return e&&Object(o.a)(e).defaultView||r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(89);function i(){return Object(r.useContext)(o.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r={};n.r(r),n.d(r,"find",(function(){return c}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return s})),n.d(o,"find",(function(){return b})),n.d(o,"findPrevious",(function(){return m})),n.d(o,"findNext",(function(){return g}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(i);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var u=n(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function s(e){return-1!==l(e)}function f(e,t){return{element:e,index:t}}function d(e){return e.element}function p(e,t){var n=l(e.element),r=l(t.element);return n===r?e.index-t.index:n-r}function h(e){return e.filter(s).map(f).sort(p).map(d).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var c=t.hasOwnProperty(a);if(!i&&c)return e;if(c){var l=t[a];e=Object(u.without)(e,l)}return t[a]=n,e.concat(n)}),[]);var t}function b(e){return h(c(e))}function m(e){var t=c(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(u.last)(h(t))}function g(e){var t=c(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(u.first)(h(r))}var v={focusable:r,tabbable:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(92);function o(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return Object(r.a)(e,t);if(Array.isArray(e)&&Array.isArray(t))return function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=Object(O.map)(e,(function(e,t){return function(n,r,o,i,a){if(!T(n,t))return!1;var c=e(n);return _()(c)?c.then(i,a):i(c),!0}})),r=function(e,n){return!!P(e)&&(t(e),n(),!0)};n.push(r);var o=Object(E.create)(n);return function(e){return new Promise((function(n,r){return o(e,(function(e){P(e)&&t(e),n(e)}),r)}))}}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=A(e,t.dispatch);return function(e){return function(t){return S(t)?n(t):e(t)}}}}var N=n(91),D=function(){return function(e){return function(t){return _()(t)?t.then((function(t){if(t)return e(t)})):e(t)}}},I=n(22),M=n(8),L=function(e,t){return function(){return function(n){return function(r){var o=e.select("core/data").getCachedResolvers(t);return Object.entries(o).forEach((function(n){var o=Object(M.a)(n,2),i=o[0],a=o[1],c=Object(O.get)(e.stores,[t,"resolvers",i]);c&&c.shouldInvalidate&&a.forEach((function(n,o){!1===n&&c.shouldInvalidate.apply(c,[r].concat(Object(I.a)(o)))&&e.dispatch("core/data").invalidateResolution(t,i,o)}))})),n(r)}}}};function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=n[F];if(void 0===r)return t;var o=e(t[r],n);return o===t[r]?t:B(B({},t),{},Object(c.a)({},r,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new k.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var n="START_RESOLUTION"===t.type,r=new k.a(e);return r.set(t.args,n),r;case"INVALIDATE_RESOLUTION":var o=new k.a(e);return o.delete(t.args),o}return e})),U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(O.has)(e,[t.selectorName])?Object(O.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return H(e,t)}return e};function W(e,t,n){var r=Object(O.get)(e,[t]);if(r)return r.get(n)}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==W(e,t,n)}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===W(e,t,n)}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===W(e,t,n)}function q(e){return e}function Y(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function X(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function K(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function Q(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Z(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t1?n-1:0),o=1;o1?n-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),a=1;a1?o-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={},o=[],c=new Set;function u(){o.forEach((function(e){return e()}))}var s=function(e){return o.push(e),function(){o=Object(i.without)(o,e)}};function d(e){var r=Object(i.isObject)(e)?e.name:e;c.add(r);var o=n[r];return o?o.getSelectors():t&&t.select(r)}function p(e,t){c.clear();var n=e.call(this);return t.current=Array.from(c),n}function h(e){var r=Object(i.isObject)(e)?e.name:e;c.add(r);var o=n[r];return o?o.getResolveSelectors():t&&t.resolveSelect(r)}function b(e){var r=Object(i.isObject)(e)?e.name:e,o=n[r];return o?o.getActions():t&&t.dispatch(r)}function m(e){return Object(i.mapValues)(e,(function(e,t){return"function"!=typeof e?e:function(){return O[t].apply(null,arguments)}}))}function g(e,t){if("function"!=typeof t.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof t.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof t.subscribe)throw new TypeError("config.subscribe must be a function");n[e]=t,t.subscribe(u)}function v(e){g(e.name,e.instantiate(O))}function y(e,r){return e in n?n[e].subscribe(r):t?t.__experimentalSubscribeStore(e,r):s(r)}var O={registerGenericStore:g,stores:n,namespaces:n,subscribe:s,select:d,resolveSelect:h,dispatch:b,use:w,register:v,__experimentalMarkListeningStores:p,__experimentalSubscribeStore:y};function w(e,t){return O=f(f({},O),e(O,t))}return O.registerStore=function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");var n=Object(a.a)(e,t).instantiate(O);return g(e,n),n.store},g("core/data",l(O)),Object.entries(e).forEach((function(e){var t=Object(r.a)(e,2),n=t[0],o=t[1];return O.registerStore(n,o)})),t&&t.subscribe(u),m(O)}},function(e,t,n){"use strict";var r=n(109);var o=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";cr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(B=(U=U.replace(" ",":")).length),01?t-1:0),a=1;a3&&void 0!==arguments[3]?arguments[3]:10,u=e[t];if(i(n)&&o(r))if("function"==typeof a)if("number"==typeof c){var l={callback:a,priority:c,namespace:r};if(u[n]){var s,f=u[n].handlers;for(s=f.length;s>0&&!(c>=f[s-1].priority);s--);s===f.length?f[s]=l:f.splice(s,0,l),u.__current.forEach((function(e){e.name===n&&e.currentIndex>=s&&e.currentIndex++}))}else u[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,a,c)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,a){var c=e[t];if(i(r)&&(n||o(a))){if(!c[r])return 0;var u=0;if(n)u=c[r].handlers.length,c[r]={runs:c[r].runs,handlers:[]};else for(var l=c[r].handlers,s=function(e){l[e].namespace===a&&(l.splice(e,1),u++,c.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},f=l.length-1;f>=0;f--)s(f);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,a),u}}};var u=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};n(22);var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,c=new Array(a>1?a-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{};if(l(this,e),this.raws={},"object"!==(void 0===t?"undefined":r(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var n in t)this[n]=t[n]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o.default(e)},e.prototype.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s(this);for(var n in e)t[n]=e[n];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var c=a;this.parent.insertBefore(this,c)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,c.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,c.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,c.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},e.prototype.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return"object"===(void 0===e?"undefined":r(e))&&e.toJSON?e.toJSON():e})):"object"===(void 0===n?"undefined":r(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},e.prototype.raw=function(e,t){return(new i.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),c=a,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===r&&(o=!1,r=a+1),46===c?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(56))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){new i.default(t).stringify(e)};var r,o=n(151),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new o.default(e,t),i=new r.default(n);try{i.parse()}catch(e){throw"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return i.root};var r=i(n(216)),o=i(n(145));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(113);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="comment",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var c=a,u=this.normalize(c,this.last),l=u,s=Array.isArray(l),f=0;for(l=s?l:l[Symbol.iterator]();;){var d;if(s){if(f>=l.length)break;d=l[f++]}else{if((f=l.next()).done)break;d=f.value}var p=d;this.nodes.push(p)}}return this},t.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var c=a,u=this.normalize(c,this.first,"prepend").reverse(),l=u,s=Array.isArray(l),f=0;for(l=s?l:l[Symbol.iterator]();;){var d;if(s){if(f>=l.length)break;d=l[f++]}else{if((f=l.next()).done)break;d=f.value}var p=d;this.nodes.unshift(p)}for(var h in this.indexes)this.indexes[h]=this.indexes[h]+u.length}return this},t.prototype.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}i.cleanRaws(t)}}},t.prototype.insertBefore=function(e,t){var n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),o=r,i=Array.isArray(o),a=0;for(o=i?o:o[Symbol.iterator]();;){var c;if(i){if(a>=o.length)break;c=o[a++]}else{if((a=o.next()).done)break;c=a.value}var u=c;this.nodes.splice(e,0,u)}var l=void 0;for(var s in this.indexes)e<=(l=this.indexes[s])&&(this.indexes[s]=l+r.length);return this},t.prototype.insertAfter=function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=n,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var c=a;this.nodes.splice(e+1,0,c)}var u=void 0;for(var l in this.indexes)e<(u=this.indexes[l])&&(this.indexes[l]=u+n.length);return this},t.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},t.prototype.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.normalize=function(e,t){var r=this;if("string"==typeof e)e=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(n(116)(e).nodes);else if(Array.isArray(e)){var a=e=e.slice(0),c=Array.isArray(a),u=0;for(a=c?a:a[Symbol.iterator]();;){var l;if(c){if(u>=a.length)break;l=a[u++]}else{if((u=a.next()).done)break;l=u.value}var s=l;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type){var f=e=e.nodes.slice(0),d=Array.isArray(f),p=0;for(f=d?f:f[Symbol.iterator]();;){var h;if(d){if(p>=f.length)break;h=f[p++]}else{if((p=f.next()).done)break;h=p.value}var b=h;b.parent&&b.parent.removeChild(b,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new o.default(e)]}else if(e.selector){e=[new(n(85))(e)]}else if(e.name){e=[new(n(84))(e)]}else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new i.default(e)]}return e.map((function(e){return"function"!=typeof e.before&&(e=r.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e}))},t.prototype.rebuild=function(e,t){var r=this,a=void 0;if("root"===e.type){var c=n(119);a=new c}else if("atrule"===e.type){var u=n(84);a=new u}else if("rule"===e.type){var l=n(85);a=new l}else"decl"===e.type?a=new o.default:"comment"===e.type&&(a=new i.default);for(var s in e)"nodes"===s?a.nodes=e.nodes.map((function(e){return r.rebuild(e,a)})):"parent"===s&&t?a.parent=t:e.hasOwnProperty(s)&&(a[s]=e[s]);return a},r(t,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),t}(a(n(113)).default);t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(118);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="root",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},t.prototype.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var i=o,a=Array.isArray(i),c=0;for(i=a?i:i[Symbol.iterator]();;){var u;if(a){if(c>=i.length)break;u=i[c++]}else{if((c=i.next()).done)break;u=c.value}u.raws.before=n.raws.before}}return o},t.prototype.toResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(154),r=n(153),o=new t(new r,this,e);return o.stringify()},t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=Object(r.createContext)(!1);o.Consumer,o.Provider},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(90);var r=n(38),o=(r.a.select,r.a.resolveSelect,r.a.dispatch,r.a.subscribe,r.a.registerGenericStore,r.a.registerStore);r.a.use,r.a.register},function(e,t,n){var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return c(l(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}function c(e,t){var n,r,a,c,u,l,s,f,d,p=1,h=e.length,b="";for(r=0;r=0),c.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,c.width?parseInt(c.width):0);break;case"e":n=c.precision?parseFloat(n).toExponential(c.precision):parseFloat(n).toExponential();break;case"f":n=c.precision?parseFloat(n).toFixed(c.precision):parseFloat(n);break;case"g":n=c.precision?String(Number(n.toPrecision(c.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=c.precision?n.substring(0,c.precision):n;break;case"t":n=String(!!n),n=c.precision?n.substring(0,c.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=c.precision?n.substring(0,c.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=c.precision?n.substring(0,c.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(c.type)?b+=n:(!o.number.test(c.type)||f&&!c.sign?d="":(d=f?"+":"-",n=n.toString().replace(o.sign,"")),l=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",s=c.width-(d+n).length,u=c.width&&s>0?l.repeat(s):"",b+=c.align?d+n+u:"0"===l?d+u+n:u+d+n)}return b}var u=Object.create(null);function l(e){if(u[e])return u[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],c=t[2],l=[];if(null===(l=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(l[1]);""!==(c=c.substring(l[0].length));)if(null!==(l=o.key_access.exec(c)))a.push(l[1]);else{if(null===(l=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(l[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return u[e]=r}t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:"18px"},o=function(e){return r[e]}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(9),o=n(5),i=n(0),a=n(235),c=n(173);function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return null},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Component",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e};if(1===e.env.COMPONENT_SYSTEM_PHASE){var s=function(e,c){var s=Object(a.a)(e,u),f=s.__unstableVersion,d=Object(o.a)(s,["__unstableVersion"]);if("next"===f){var p=l(d);return Object(i.createElement)(n,Object(r.a)({},p,{ref:c}))}return Object(i.createElement)(t,Object(r.a)({},e,{ref:c}))};return Object(c.a)(s,u)}return t}}).call(this,n(56))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(8),o=n(0);function i(e){var t=Object(o.useState)((function(){return!(!e||"undefined"==typeof window||!window.matchMedia(e).matches)})),n=Object(r.a)(t,2),i=n[0],a=n[1];return Object(o.useEffect)((function(){if(e){var t=function(){return a(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&i}},function(e,t,n){"use strict";var r=n(9),o=n(5),i=n(0),a=n(17),c=n.n(a),u=n(2),l=n(62),s=n(8),f=n(3),d=n(237),p=n(101);function h(e,t){0}function b(e){if(!e.collapsed)return e.getBoundingClientRect();var t=e.startContainer,n=t.ownerDocument;if("BR"===t.nodeName){var r=t.parentNode;h();var o=Array.from(r.childNodes).indexOf(t);h(),(e=n.createRange()).setStart(r,o),e.setEnd(r,o)}var i=e.getClientRects()[0];if(!i){h();var a=n.createTextNode("​");(e=e.cloneRange()).insertNode(a),i=e.getClientRects()[0],h(a.parentNode),a.parentNode.removeChild(a)}return i}var m=n(65),g=n(125),v={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},y={">=":"min-width","<":"max-width"},O={">=":function(e,t){return t>=e},"<":function(e,t){return t1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(i.useContext)(w),r=!n&&"(".concat(y[t],": ").concat(v[e],"px)"),o=Object(g.a)(r);return n?O[t](v[e],n):o};j.__experimentalWidthProvider=w.Provider;var x=j,k=n(169),S=n.n(k).a,E=n(267),C=n(268),_=n(266),P=n(270),T=n(269),A=n(275),R=n(11);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t0?u/2:l)+(l+u/2>window.innerWidth?window.innerWidth-l:u/2)},f=e.left;"right"===r?f=e.right:"middle"!==i&&(f=l);var d=e.right;"left"===r?d=e.left:"middle"!==i&&(d=l);var p,h={popoverLeft:f,contentWidth:f-u>0?u:f},b={popoverLeft:d,contentWidth:d+u>window.innerWidth?window.innerWidth-d:u},m=n,g=null;if(!o&&!c)if("center"===n&&s.contentWidth===u)m="center";else if("left"===n&&h.contentWidth===u)m="left";else if("right"===n&&b.contentWidth===u)m="right";else{var v="left"===(m=h.contentWidth>b.contentWidth?"left":"right")?h.contentWidth:b.contentWidth;u>window.innerWidth&&(g=window.innerWidth),v!==u&&(m="center",s.popoverLeft=window.innerWidth/2)}if(p="center"===m?s.popoverLeft:"left"===m?h.popoverLeft:b.popoverLeft,a){var y=a.getBoundingClientRect();p=Math.min(p,y.right-u)}return{xAxis:m,popoverLeft:p,contentWidth:g}}function M(e,t,n,r,o,i,a,c){var u=t.height;if(o){var l=o.getBoundingClientRect().top+u-a;if(e.top<=l)return{yAxis:n,popoverTop:Math.min(e.bottom,l)}}var s=e.top+e.height/2;"bottom"===r?s=e.bottom:"top"===r&&(s=e.top);var f={popoverTop:s,contentHeight:(s-u/2>0?u/2:s)+(s+u/2>window.innerHeight?window.innerHeight-s:u/2)},d={popoverTop:e.top,contentHeight:e.top-10-u>0?u:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+u>window.innerHeight?window.innerHeight-10-e.bottom:u},h=n,b=null;if(!o&&!c)if("middle"===n&&f.contentHeight===u)h="middle";else if("top"===n&&d.contentHeight===u)h="top";else if("bottom"===n&&p.contentHeight===u)h="bottom";else{var m="top"===(h=d.contentHeight>p.contentHeight?"top":"bottom")?d.contentHeight:p.contentHeight;b=m!==u?m:null}return{yAxis:h,popoverTop:"middle"===h?f.popoverTop:"top"===h?d.popoverTop:p.popoverTop,contentHeight:b}}function L(e,t){var n=t.defaultView,r=n.frameElement;if(!r)return e;var o=r.getBoundingClientRect();return new n.DOMRect(e.left+o.left,e.top+o.top,e.width,e.height)}var z=0;function B(e){var t=document.scrollingElement||document.body;e&&(z=t.scrollTop);var n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=z)}var F=0;function H(){return Object(i.useEffect)((function(){return 0===F&&B(!0),++F,function(){1===F&&B(!1),--F}}),[]),null}var U=n(64);function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function ve(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var ye=function(e){var t=e.headerTitle,n=e.onClose,a=e.onKeyDown,u=e.children,f=e.className,d=e.noArrow,p=void 0===d||d,h=e.isAlternate,g=e.position,v=void 0===g?"bottom right":g,y=(e.range,e.focusOnMount),O=void 0===y?"firstElement":y,w=e.anchorRef,j=e.shouldAnchorIncludePadding,k=e.anchorRect,R=e.getAnchorRect,N=e.expandOnMobile,z=e.animate,B=void 0===z||z,F=e.onClickOutside,U=e.onFocusOutside,W=e.__unstableStickyBoundaryElement,V=e.__unstableSlotName,$=void 0===V?"Popover":V,q=e.__unstableObserveElement,Y=e.__unstableBoundaryParent,X=e.__unstableForcePosition,K=Object(o.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableStickyBoundaryElement","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent","__unstableForcePosition"]),Q=Object(i.useRef)(null),Z=Object(i.useRef)(null),J=Object(i.useRef)(),ee=x("medium","<"),te=Object(i.useState)(),ne=Object(s.a)(te,2),re=ne[0],oe=ne[1],ie=G($),ae=N&&ee,ce=S(),ue=Object(s.a)(ce,2),le=ue[0],se=ue[1];p=ae||p,Object(i.useLayoutEffect)((function(){if(ae)return ve(J.current,"is-without-arrow",p),ve(J.current,"is-alternate",h),me(J.current,"data-x-axis"),me(J.current,"data-y-axis"),ge(J.current,"top"),ge(J.current,"left"),ge(Z.current,"maxHeight"),void ge(Z.current,"maxWidth");var e=function(){if(J.current&&Z.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return L(n(e.current),e.current.ownerDocument)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return L(b(r),r.endContainer.ownerDocument);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){var i=L(r.getBoundingClientRect(),r.ownerDocument);return o?i:be(i,r)}var a=r.top,c=r.bottom,u=a.getBoundingClientRect(),l=c.getBoundingClientRect(),s=L(new window.DOMRect(u.left,u.top,u.width,l.bottom-u.top),a.ownerDocument);return o?s:be(s,r)}if(e.current){var f=e.current.parentNode,d=f.getBoundingClientRect();return o?d:be(d,f)}}(Q,k,R,w,j);if(e){var t,n,r=J.current,o=r.offsetParent,i=r.ownerDocument,a=0;if(o&&o!==i.body){var c=o.getBoundingClientRect();a=c.top,e=new window.DOMRect(e.left-c.left,e.top-c.top,e.width,e.height)}if(Y)t=null===(n=J.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,c=n.split(" "),u=Object(s.a)(c,3),l=u[0],f=u[1],d=void 0===f?"center":f,p=u[2],h=M(e,t,l,p,r,0,o,a),b=I(e,t,d,p,r,h.yAxis,i,a);return D(D({},b),h)}(e,se.height?se:Z.current.getBoundingClientRect(),v,W,J.current,a,t,X),l=u.popoverTop,f=u.popoverLeft,d=u.xAxis,m=u.yAxis,g=u.contentHeight,y=u.contentWidth;"number"==typeof l&&"number"==typeof f&&(ge(J.current,"top",l+"px"),ge(J.current,"left",f+"px")),ve(J.current,"is-without-arrow",p||"center"===d&&"middle"===m),ve(J.current,"is-alternate",h),me(J.current,"data-x-axis",d),me(J.current,"data-y-axis",m),ge(Z.current,"maxHeight","number"==typeof g?g+"px":""),ge(Z.current,"maxWidth","number"==typeof y?y+"px":"");oe(({left:"right",right:"left"}[d]||"center")+" "+({top:"bottom",bottom:"top"}[m]||"middle"))}}};e();var t,n=J.current.ownerDocument,r=n.defaultView,o=r.setInterval(e,500),i=function(){r.cancelAnimationFrame(t),t=r.requestAnimationFrame(e)};r.addEventListener("click",i),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);var a,c=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(w);return c&&c!==n&&(c.defaultView.addEventListener("resize",e),c.defaultView.addEventListener("scroll",e,!0)),q&&(a=new r.MutationObserver(e)).observe(q,{attributes:!0}),function(){r.clearInterval(o),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",i),r.cancelAnimationFrame(t),c&&c!==n&&(c.defaultView.removeEventListener("resize",e),c.defaultView.removeEventListener("scroll",e,!0)),a&&a.disconnect()}}),[ae,k,R,w,j,v,se,W,q,Y]);var fe=Object(E.a)(),pe=Object(C.a)(),ye=Object(_.a)(O),Oe=Object(P.a)((function(e){if(U)return void U(e);if(!F)return void(n&&n());var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),Object(l.a)("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),F(t)})),we=Object(T.a)([J,O?fe:null,O?pe:null,O?ye:null]);var je=Boolean(B&&re)&&he({type:"appear",origin:re}),xe=Object(i.createElement)("div",Object(r.a)({className:c()("components-popover",f,je,{"is-expanded":ae,"is-without-arrow":p,"is-alternate":h})},K,{onKeyDown:function(e){e.keyCode===m.a&&n&&(e.stopPropagation(),n()),a&&a(e)}},Oe,{ref:we,tabIndex:"-1"}),ae&&Object(i.createElement)(H,null),ae&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(Me,{className:"components-popover__close",icon:A.a,onClick:n})),Object(i.createElement)("div",{ref:Z,className:"components-popover__content"},Object(i.createElement)("div",{style:{position:"relative"}},le,u)));return ie.ref&&(xe=Object(i.createElement)(de,{name:$},xe)),w||k?xe:Object(i.createElement)("span",{ref:Q},xe)};ye.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(pe,{bubblesVirtually:!0,name:n,className:"popover-slot"})};var Oe=ye;var we=function(e){var t,n,r=e.shortcut,o=e.className;return r?(Object(u.isString)(r)&&(t=r),Object(u.isObject)(r)&&(t=r.display,n=r.ariaLabel),Object(i.createElement)("span",{className:o,"aria-label":n},t)):null},je=n(170);function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var s=n(70),f=Object(c.a)("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",Object(u.a)("default.fontFamily"),";font-size:",Object(u.a)("default.fontSize"),";"),d=Object(c.a)("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",l(1),";.components-panel__row &{margin-bottom:inherit;}"),p=Object(c.a)("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",l(1),";"),h=Object(c.a)("p",{target:"e1puf3u3",label:"StyledHelp"})("font-size:",Object(u.a)("helpText.fontSize"),";font-style:normal;color:",Object(s.a)("mediumGray.text"),";");function b(e){var t=e.id,n=e.label,o=e.hideLabelFromVision,c=e.help,u=e.className,l=e.children;return Object(r.createElement)(f,{className:i()("components-base-control",u)},Object(r.createElement)(d,{className:"components-base-control__field"},n&&t&&(o?Object(r.createElement)(a.a,{as:"label",htmlFor:t},n):Object(r.createElement)(p,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(o?Object(r.createElement)(a.a,{as:"label"},n):Object(r.createElement)(b.VisualLabel,null,n)),l),!!c&&Object(r.createElement)(h,{id:t+"__help",className:"components-base-control__help"},c))}b.VisualLabel=function(e){var t=e.className,n=e.children;return t=i()("components-base-control__label",t),Object(r.createElement)("span",{className:t},n)};t.a=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),o={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function i(e){return Object(r.get)(o,e,"")}},,,,,,,,,,function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,u=a(e),l=1;l",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n));var a=n.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,a.length),l=String(u).length;function s(t){return e&&o.default.red?o.default.red.bold(t):t}function f(t){return e&&o.default.gray?o.default.gray(t):t}return a.slice(c,u).map((function(e,n){var r=c+1+n,o=" "+(" "+r).slice(-l)+" | ";if(r===t.line){var i=f(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return s(">")+f(o)+e+"\n "+i+s("^")}return" "+f(o)+e})).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();t.default=c,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.css.valueOf(),c=t.ignoreErrors,u=void 0,l=void 0,s=void 0,f=void 0,d=void 0,p=void 0,h=void 0,b=void 0,m=void 0,g=void 0,v=void 0,y=void 0,O=void 0,w=void 0,j=n.length,x=-1,k=1,S=0,E=[],C=[];function _(t){throw e.error("Unclosed "+t,k,S-x)}function P(){return 0===C.length&&S>=j}function T(){if(C.length)return C.pop();if(!(S>=j)){switch((10===(u=n.charCodeAt(S))||12===u||13===u&&10!==n.charCodeAt(S+1))&&(x=S,k+=1),u){case 10:case 32:case 9:case 13:case 12:l=S;do{l+=1,10===(u=n.charCodeAt(l))&&(x=l,k+=1)}while(32===u||10===u||9===u||13===u||12===u);w=["space",n.slice(S,l)],S=l-1;break;case 91:w=["[","[",k,S-x];break;case 93:w=["]","]",k,S-x];break;case 123:w=["{","{",k,S-x];break;case 125:w=["}","}",k,S-x];break;case 58:w=[":",":",k,S-x];break;case 59:w=[";",";",k,S-x];break;case 40:if(y=E.length?E.pop()[1]:"",O=n.charCodeAt(S+1),"url"===y&&39!==O&&34!==O&&32!==O&&10!==O&&9!==O&&12!==O&&13!==O){l=S;do{if(g=!1,-1===(l=n.indexOf(")",l+1))){if(c){l=S;break}_("bracket")}for(v=l;92===n.charCodeAt(v-1);)v-=1,g=!g}while(g);w=["brackets",n.slice(S,l+1),k,S-x,k,l-x],S=l}else l=n.indexOf(")",S+1),p=n.slice(S,l+1),-1===l||i.test(p)?w=["(","(",k,S-x]:(w=["brackets",p,k,S-x,k,l-x],S=l);break;case 41:w=[")",")",k,S-x];break;case 39:case 34:s=39===u?"'":'"',l=S;do{if(g=!1,-1===(l=n.indexOf(s,l+1))){if(c){l=S+1;break}_("string")}for(v=l;92===n.charCodeAt(v-1);)v-=1,g=!g}while(g);p=n.slice(S,l+1),f=p.split("\n"),(d=f.length-1)>0?(b=k+d,m=l-f[d].length):(b=k,m=x),w=["string",n.slice(S,l+1),k,S-x,b,l-m],x=m,k=b,S=l;break;case 64:r.lastIndex=S+1,r.test(n),l=0===r.lastIndex?n.length-1:r.lastIndex-2,w=["at-word",n.slice(S,l+1),k,S-x,k,l-x],S=l;break;case 92:for(l=S,h=!0;92===n.charCodeAt(l+1);)l+=1,h=!h;if(u=n.charCodeAt(l+1),h&&47!==u&&32!==u&&10!==u&&9!==u&&13!==u&&12!==u&&(l+=1,a.test(n.charAt(l)))){for(;a.test(n.charAt(l+1));)l+=1;32===n.charCodeAt(l+1)&&(l+=1)}w=["word",n.slice(S,l+1),k,S-x,k,l-x],S=l;break;default:47===u&&42===n.charCodeAt(S+1)?(0===(l=n.indexOf("*/",S+2)+1)&&(c?l=n.length:_("comment")),p=n.slice(S,l+1),f=p.split("\n"),(d=f.length-1)>0?(b=k+d,m=l-f[d].length):(b=k,m=x),w=["comment",p,k,S-x,b,l-m],x=m,k=b,S=l):(o.lastIndex=S+1,o.test(n),l=0===o.lastIndex?n.length-1:o.lastIndex-2,w=["word",n.slice(S,l+1),k,S-x,k,l-x],E.push(w),S=l)}return S++,w}}function A(e){C.push(e)}return{back:A,nextToken:T,endOfFile:P}};var r=/[ \n\t\r\f\{\}\(\)'"\\;/\[\]#]/g,o=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,i=/.[\\\/\("'\n]/,a=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(l(this,e),null===t||"object"===(void 0===t?"undefined":r(t))&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");this.css=t.toString(),"\ufeff"!==this.css[0]&&"￾"!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=c.default.resolve(n.from));var o=new a.default(this.css,n);if(o.text){this.map=o;var i=o.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}this.file||(s+=1,this.id=""),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,a=this.origin(t,n);return(o=a?new i.default(e,a.line,a.column,a.source,a.file,r.plugin):new i.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:c.default.resolve(this.map.consumer().sourceRoot||".",e)},o(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t.default=f,e.exports=t.default},function(e,t,n){"use strict";(function(e){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var r=n(203),o=n(204),i=n(205);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var s=-1;for(i=n;ic&&(n=c-u),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(s=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(s=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(s=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(s=u)}null===s?(s=65533,f=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),l=this.slice(r,o),s=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(175))},function(e,t,n){t.SourceMapGenerator=n(148).SourceMapGenerator,t.SourceMapConsumer=n(208).SourceMapConsumer,t.SourceNode=n(211).SourceNode},function(e,t,n){var r=n(149),o=n(72),i=n(150).ArraySet,a=n(207).MappingList;function c(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}c.prototype._version=3,c.fromSourceMap=function(e){var t=e.sourceRoot,n=new c({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(r);null!=a&&n.setSourceContent(r,a)})),n},c.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},c.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},c.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var c=new i,u=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=a&&(t.source=o.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var l=t.source;null==l||c.has(l)||c.add(l);var s=t.name;null==s||u.has(s)||u.add(s)}),this),this._sources=c,this._names=u,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=a&&(t=o.relative(a,t)),this.setSourceContent(t,r))}),this)},c.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},c.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,c=1,u=0,l=0,s=0,f=0,d="",p=this._mappings.toArray(),h=0,b=p.length;h0){if(!o.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-f),f=i,e+=r.encode(t.originalLine-1-l),l=t.originalLine-1,e+=r.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-s),s=n)),d+=e}return d},c.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},c.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=c},function(e,t,n){var r=n(206);t.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},t.decode=function(e,t,n){var o,i,a,c,u=e.length,l=0,s=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&i),l+=(i&=31)<>1,1==(1&a)?-c:c),n.rest=t}},function(e,t,n){var r=n(72),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,o=e.length;r=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},e.prototype.beforeAfter=function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:[];c(this,e),this.version="6.0.23",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.default(this,e,t)},e.prototype.normalize=function(e){var t=[],n=e,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if((i=n.next()).done)break;a=i.value}var c=a;if(c.postcss&&(c=c.postcss),"object"===(void 0===c?"undefined":o(c))&&Array.isArray(c.plugins))t=t.concat(c.plugins);else{if("function"!=typeof c)throw"object"===(void 0===c?"undefined":o(c))&&(c.parse||c.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(c+" is not a PostCSS plugin");t.push(c)}}return t},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;nparseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+r+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,f(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var o=r;if(f(this.run(o)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=a.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new i.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},r(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();t.default=d,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r={split:function(e,t,n){for(var r=[],o="",i=!1,a=0,c=!1,u=!1,l=0;l0&&(a-=1):0===a&&-1!==t.indexOf(s)&&(i=!0),i?(""!==o&&r.push(o.trim()),o="",i=!1):o+=s}return(n||""!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[" ","\n","\t"])},comma:function(e){return r.split(e,[","],!0)}};t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r,o={},i=n(220);function a(e,t){o[e]=function(e,t){return e in r?r[e]:t}(e,t)}e.exports.configure=function(e,t,n){if(r=e||{},n=n||{},a("autoRename",!1),a("autoRenameStrict",!1),a("blacklist",{}),a("clean",!0),a("greedy",!1),a("processUrls",!1),a("stringMap",[]),a("useCalc",!1),Array.isArray(o.stringMap)){for(var c,u,l=0;l1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),o=2;o1?t-1:0),r=1;r0};do{if(0===f.length)return void(p=!1);var r=f.shift();d.get(r)(),d.delete(r)}while(n());i(e)},{add:function(e,t){d.has(e)||f.push(e),d.set(e,t),p||(p=!0,i(h))},flush:function(e){if(!d.has(e))return!1;var t=f.indexOf(e);f.splice(t,1);var n=d.get(e);return d.delete(e),n(),!0},reset:function(){f=[],d=new WeakMap,p=!1}});function m(e,t){var n="function"!=typeof e;n&&(t=[]);var i,f=Object(a.useCallback)(e,t),d=Object(l.a)(),p=Object(a.useContext)(s.a),h=Object(o.a)((function(){return{queue:!0}}),[d]),m=Object(a.useReducer)((function(e){return e+1}),0),g=Object(r.a)(m,2)[1],v=Object(a.useRef)(),y=Object(a.useRef)(p),O=Object(a.useRef)(),w=Object(a.useRef)(),j=Object(a.useRef)(),x=Object(a.useRef)([]),k=Object(a.useCallback)((function(e){return d.__experimentalMarkListeningStores(e,x)}),[d]),S=Object(a.useMemo)((function(){return{}}),t||[]);if(!n)try{i=v.current!==f||w.current?k((function(){return f(d.select,d)})):O.current}catch(e){var E="An error occurred while running 'mapSelect': ".concat(e.message);if(w.current)throw E+="\nThe error may be correlated with this previous error:\n",E+="".concat(w.current.stack,"\n\n"),E+="Original stack trace:",new Error(E);console.error(E)}return u((function(){n||(v.current=f,O.current=i,w.current=void 0,j.current=!0,y.current!==p&&(y.current=p,b.flush(h)))})),u((function(){if(!n){var e=function(){if(j.current){try{var e=k((function(){return v.current(d.select,d)}));if(Object(c.a)(O.current,e))return;O.current=e}catch(e){w.current=e}g()}};y.current?b.add(h,e):e();var t=function(){y.current?b.add(h,e):e()},r=x.current.map((function(e){return d.__experimentalSubscribeStore(e,t)}));return function(){j.current=!1,r.forEach((function(e){return null==e?void 0:e()})),b.flush(h)}}}),[d,k,S,n]),n?d.select(e):i}},function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,a,c=n,u=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a2&&void 0!==arguments[2]?arguments[2]:"";return Object(r.useMemo)((function(){if(n)return n;var r=i(e);return t?"".concat(t,"-").concat(r):r}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(80),o=n(231),i=n(2),a=n(0),c=n.n(a),u=n(52);function l(e,t,n){void 0===n&&(n={});var l=n.memo,s=void 0===l||l,f=Object(a.forwardRef)(e);s&&(f=c.a.memo(f));var d=Array.isArray(t)?t[0]:t||f.name;var p=f[u.b]||[d];return Array.isArray(t)&&(p=[].concat(p,t)),"string"==typeof t&&(p=[].concat(p,[t])),f.displayName=d,f[u.b]=Object(i.uniq)(p),f[r.a]=Object(o.a)(d),f}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,c],s=0;(u=new Error(t.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict"; -/** @license React v16.14.0 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(138),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nT.length&&T.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,o){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var u=!1;if(null===t)u=!0;else switch(c){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+D(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l