diff --git a/.github/actions/run-wp-tests/action.yml b/.github/actions/run-wp-tests/action.yml index b42789bb7f..a77dd9f06c 100644 --- a/.github/actions/run-wp-tests/action.yml +++ b/.github/actions/run-wp-tests/action.yml @@ -61,7 +61,7 @@ runs: fi - name: Set up PHP - uses: shivammathur/setup-php@2.31.0 + uses: shivammathur/setup-php@2.31.1 with: coverage: ${{ steps.coverage.outputs.coverage }} ini-values: ${{ steps.coverage.outputs.ini }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7790910048..fd8300702c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,10 +32,10 @@ jobs: uses: actions/checkout@v4.1.7 - name: Initialize CodeQL - uses: github/codeql-action/init@v3.25.11 + uses: github/codeql-action/init@v3.25.12 with: languages: ${{ matrix.language }} config-file: ./.github/codeql-config.yml - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3.25.11 + uses: github/codeql-action/analyze@v3.25.12 diff --git a/.github/workflows/core-tests.yml b/.github/workflows/core-tests.yml index 5cb54c29b0..394866be04 100644 --- a/.github/workflows/core-tests.yml +++ b/.github/workflows/core-tests.yml @@ -60,7 +60,7 @@ jobs: echo "GITHUB_EVENT_NAME=pull_request" >> "wordpress/.env" - name: Set up Node.js - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version-file: 'wordpress/.nvmrc' cache: npm diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 19b2168914..f82faf6c34 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -25,4 +25,4 @@ jobs: uses: actions/checkout@v4.1.7 - name: Review dependencies - uses: actions/dependency-review-action@v4.3.3 + uses: actions/dependency-review-action@v4.3.4 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b4fd2bbd1f..ceb971bee6 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -76,7 +76,7 @@ jobs: uses: ./.github/actions/prepare-source - name: Setup Node - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version: 'lts/*' cache: npm @@ -134,7 +134,7 @@ jobs: uses: actions/checkout@v4.1.7 - name: Setup Node - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bf340005dd..fcfd9883df 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,7 +35,7 @@ jobs: fail-fast: 'true' - name: Setup Node - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version: 'lts/*' cache: npm @@ -54,7 +54,7 @@ jobs: uses: actions/checkout@v4.1.7 - name: Setup Node - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/search-dev-tools.yml b/.github/workflows/search-dev-tools.yml index 2b6b75d1b2..304a2d7f3a 100644 --- a/.github/workflows/search-dev-tools.yml +++ b/.github/workflows/search-dev-tools.yml @@ -27,7 +27,7 @@ jobs: token: ${{ secrets.WPCOM_VIP_BOT_TOKEN }} - name: Setup Node - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version: 'lts/*' cache: npm diff --git a/.github/workflows/search-e2e.yml b/.github/workflows/search-e2e.yml index cbff2cdf4f..ca528ae6f7 100644 --- a/.github/workflows/search-e2e.yml +++ b/.github/workflows/search-e2e.yml @@ -1,6 +1,6 @@ name: Enterprise Search e2e tests env: - NODE_VERSION: "16" + NODE_VERSION: "20" on: pull_request: @@ -38,7 +38,7 @@ jobs: uses: ./.github/actions/prepare-source - name: "Install node v${{ env.NODE_VERSION }}" - uses: actions/setup-node@v4.0.2 + uses: actions/setup-node@v4.0.3 with: node-version: ${{ env.NODE_VERSION }} cache: npm @@ -72,4 +72,5 @@ jobs: - name: Stop Elasticsearch if: always() - run: cd bin/search/es-docker/ && docker-compose down + run: docker compose down + working-directory: bin/search/es-docker diff --git a/__tests__/e2e/package-lock.json b/__tests__/e2e/package-lock.json index 71133d5a6c..da4d49764b 100644 --- a/__tests__/e2e/package-lock.json +++ b/__tests__/e2e/package-lock.json @@ -694,46 +694,16 @@ } }, "node_modules/@playwright/test": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.45.0.tgz", - "integrity": "sha512-TVYsfMlGAaxeUllNkywbwek67Ncf8FRGn8ZlRdO291OL3NjG9oMbfVhyP82HQF0CZLMrYsvesqoUekxdWuF9Qw==", - "dev": true, - "dependencies": { - "playwright": "1.45.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@playwright/test/node_modules/playwright": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.45.0.tgz", - "integrity": "sha512-4z3ac3plDfYzGB6r0Q3LF8POPR20Z8D0aXcxbJvmfMgSSq1hkcgvFRXJk9rUq5H/MJ0Ktal869hhOdI/zUTeLA==", + "version": "1.45.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.45.1.tgz", + "integrity": "sha512-Wo1bWTzQvGA7LyKGIZc8nFSTFf2TkthGIFBR+QVNilvwouGzFd4PYukZe3rvf5PSqjHi1+1NyKSDZKcQWETzaA==", "dev": true, "dependencies": { - "playwright-core": "1.45.0" + "playwright": "1.45.1" }, "bin": { "playwright": "cli.js" }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/@playwright/test/node_modules/playwright-core": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.45.0.tgz", - "integrity": "sha512-lZmHlFQ0VYSpAs43dRq1/nJ9G/6SiTI7VPqidld9TDefL9tX87bTKExWZZUF5PeRyqtXqd8fQi2qmfIedkwsNQ==", - "dev": true, - "bin": { - "playwright-core": "cli.js" - }, "engines": { "node": ">=18" } diff --git a/admin-notice/admin-notice.php b/admin-notice/admin-notice.php index 157d3201db..3b84c5ade6 100644 --- a/admin-notice/admin-notice.php +++ b/admin-notice/admin-notice.php @@ -26,24 +26,3 @@ function () use ( $admin_notice_controller ) { do_action( 'vip_admin_notice_init', $admin_notice_controller ); } ); - -// Old WP version w/o pinned Jetpack version -add_action( - 'vip_admin_notice_init', - function ( $admin_notice_controller ) { - global $wp_version; - $message = "We've noticed that you are running WordPress {$wp_version}, which is an outdated version. This prevents you from running the latest version of Jetpack, as the current version of Jetpack only supports 5.9 and up. Please upgrade to the most recent WordPress version to use the latest features of Jetpack."; - - $admin_notice_controller->add( - new Admin_Notice( - $message, - [ - new Expression_Condition( version_compare( $wp_version, '5.9', '<' ) ), - new Expression_Condition( ! defined( 'VIP_JETPACK_PINNED_VERSION' ) ), - ], - 'old-wp-versions', - 'error' - ) - ); - } -); diff --git a/bin/search/install-wp-cli.sh b/bin/search/install-wp-cli.sh index 65edd9eef1..a21a88b25d 100755 --- a/bin/search/install-wp-cli.sh +++ b/bin/search/install-wp-cli.sh @@ -1,7 +1,7 @@ -#!/usr/bin/env bash +#!/bin/sh echo "Installing WP-CLI in $1" ./bin/search/wp-env-cli $1 curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar ./bin/search/wp-env-cli $1 chmod +x wp-cli.phar -./bin/search/wp-env-cli $1 mv wp-cli.phar /usr/local/bin/wp +./bin/search/wp-env-cli $1 mv -f wp-cli.phar /usr/local/bin/wp diff --git a/bin/search/wp-env-cli b/bin/search/wp-env-cli index 1ef285bd99..c5d9bb1940 100755 --- a/bin/search/wp-env-cli +++ b/bin/search/wp-env-cli @@ -8,6 +8,7 @@ const { loadConfig } = require('@wordpress/env/lib/config'); */ function spawnCommandDirectly({ container, command, dockerComposeConfigPath }) { const composeCommand = [ + 'compose', '-f', dockerComposeConfigPath, 'exec -T', @@ -16,7 +17,7 @@ function spawnCommandDirectly({ container, command, dockerComposeConfigPath }) { ]; return new Promise((resolve, reject) => { - const childProc = spawn('docker-compose', composeCommand, { + const childProc = spawn('docker', composeCommand, { stdio: 'inherit', shell: true, }); diff --git a/package-lock.json b/package-lock.json index bf03357af5..198157c5db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ }, "devDependencies": { "@babel/plugin-syntax-decorators": "^7.19.0", - "@wordpress/env": "^9.0.0", + "@wordpress/env": "^10.2.0", "10up-toolkit": "^6.0.0", "classnames": "^2.3.1", "cypress": "^9.5.0", @@ -5662,13 +5662,13 @@ } }, "node_modules/@wordpress/api-fetch": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.2.0.tgz", - "integrity": "sha512-dFpmoztMk/9YtPYaHh4mZcDaH+RjmleR58FmtkXthwjQxWrp/oQSCajDoEYhldJakUcDMUUMk8fmL4ARpO1umQ==", + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.3.0.tgz", + "integrity": "sha512-VpHG+9cLRZG13V2t1+xXpwuHJCeqiOl0ent9qXzbe6am9DtKSJ3oxiNdZaHjs6tdgGNuN/mTowRi5ceYJZb83Q==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^5.2.0", - "@wordpress/url": "^4.2.0" + "@wordpress/i18n": "^5.3.0", + "@wordpress/url": "^4.3.0" }, "engines": { "node": ">=18.12.0", @@ -5735,9 +5735,9 @@ } }, "node_modules/@wordpress/env": { - "version": "9.10.0", - "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-9.10.0.tgz", - "integrity": "sha512-GqUg1XdrUXI3l5NhHhEZisrccW+VPqJSU5xO1IXybI6KOvmSecidxWEqlMj26vzu2P5aLCWZcx28QkrrY3jvdg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.3.0.tgz", + "integrity": "sha512-tfEYfXp+4c09btYwNovfBRDDCD25L6Dasg6ODkYw0g+gg5DXsYvaq7tQDeAAzqwtTpzeKi4DOidNsVoA4FR6Rg==", "dev": true, "dependencies": { "chalk": "^4.0.0", @@ -5755,6 +5755,10 @@ }, "bin": { "wp-env": "bin/wp-env" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" } }, "node_modules/@wordpress/env/node_modules/ansi-styles": { @@ -6006,9 +6010,9 @@ } }, "node_modules/@wordpress/hooks": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.2.0.tgz", - "integrity": "sha512-N2dRMIb3F6y2dXlcT6m2CH/jDi9/Fe0gaM6ev7DrvwJ8+kX1CRzwAydemmPw34EnhQKvYKQYgGqttrfzvzgKJw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.3.0.tgz", + "integrity": "sha512-bpqwSXGyxPfhuxESKoAtL4ofB3CazzvcwcucTZ0g9Pat3KNuBaloSrPBliqqNOiSLWNH3nmpkaRmv4u89EdKAw==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -6018,12 +6022,12 @@ } }, "node_modules/@wordpress/i18n": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-5.2.0.tgz", - "integrity": "sha512-G8z3/o1gm158XHANzthMBLsInQ/iWBFFIUoThiOP8C+VtpVozVpmWpgdayldPoTYolhCdaW6dicNUfdX8fOBTQ==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-5.3.0.tgz", + "integrity": "sha512-edHKkdZb6jNpbn+LUPu2wo1mKyhT819WJ7kI8hmMcHq82rNwwbMfcGoB3oSaphTphWfhlgxIxLczKOAbWDKudw==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^4.2.0", + "@wordpress/hooks": "^4.3.0", "gettext-parser": "^1.3.1", "memize": "^2.1.0", "sprintf-js": "^1.1.1", @@ -6066,9 +6070,9 @@ } }, "node_modules/@wordpress/url": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.2.0.tgz", - "integrity": "sha512-Z9PdDnw7s0IrIuSAIL7Z58/HvsDqnUmu0Q4lUhE4Dxo9Z9uLAcjgaYeCwnslYglyuxAZEKYlUG35ZL+TZSkSLA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.3.0.tgz", + "integrity": "sha512-2rbpF2OD3rc/Jhmd4Mn9PxXTYGw63hIVMEJWzHs0x/mHmuDZEAn1vZcpDhJkksqtnHMS3BOlTv+Kbk1klxOpCg==", "dependencies": { "@babel/runtime": "^7.16.0", "remove-accents": "^0.5.0" diff --git a/package.json b/package.json index d5e6feb868..a46fe5e06d 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "author": "Automattic", "devDependencies": { "@babel/plugin-syntax-decorators": "^7.19.0", - "@wordpress/env": "^9.0.0", + "@wordpress/env": "^10.2.0", "10up-toolkit": "^6.0.0", "classnames": "^2.3.1", "cypress": "^9.5.0", diff --git a/plugin-fixes.php b/plugin-fixes.php index 4cf6cb7e09..72ab9838bd 100644 --- a/plugin-fixes.php +++ b/plugin-fixes.php @@ -115,3 +115,43 @@ function vip_disable_gform_cleanup_target_dir() { } } add_action( 'plugins_loaded', 'vip_disable_gform_cleanup_target_dir' ); + + +/** + * Disable Divi caching since VIP already supports page and object caching. + * + * Divi caching can cause bloated media directory, let's just turn it off. + * + * @see https://docs.wpvip.com/plugins/incompatibilities/#divi + */ +function vip_divi_setup() { + if ( ! defined( 'ET_CORE_VERSION' ) ) { + return; // Divi is not active + } + + // Disable Divi's custom file cache layer and its asset and module caching features + if ( ! defined( 'ET_DISABLE_FILE_BASED_CACHE' ) ) { + define( 'ET_DISABLE_FILE_BASED_CACHE', true ); + } + if ( ! defined( 'ET_BUILDER_CACHE_ASSETS' ) ) { + define( 'ET_BUILDER_CACHE_ASSETS', false ); + } + if ( ! defined( 'ET_BUILDER_CACHE_MODULES' ) ) { + define( 'ET_BUILDER_CACHE_MODULES', false ); + } + + // Define the custom CACHE DIR for Divi theme on VIP + $get_wp_vip_upload_dir = wp_get_upload_dir(); + if ( ! defined( 'ET_CORE_CACHE_DIR' ) ) { + define( 'ET_CORE_CACHE_DIR', $get_wp_vip_upload_dir['basedir'] . '/et-cache' ); + } + if ( ! defined( 'ET_CORE_CACHE_DIR_URL' ) ) { + define( 'ET_CORE_CACHE_DIR_URL', $get_wp_vip_upload_dir['baseurl'] . '/et-cache' ); + } + + // Add filter to apply WP_Filesystem credentials + add_filter( 'et_cache_wpfs_credentials', function () { + return request_filesystem_credentials( site_url() ); + }); +} +add_action( 'after_setup_theme', 'vip_divi_setup' ); diff --git a/search/search-dev-tools/build/bundle.js b/search/search-dev-tools/build/bundle.js index c5636e6298..053994520a 100644 --- a/search/search-dev-tools/build/bundle.js +++ b/search/search-dev-tools/build/bundle.js @@ -1 +1 @@ -(()=>{function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}var t={624:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},576:function(e){var t;t=function(){return function(){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t={686:function(e,t,n){"use strict";function r(e){try{return document.execCommand(e)}catch(e){return!1}}function o(e){return o="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(e)}function i(e){return i="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},i(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=g(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=g(e.value,t):(n=y()(e),r("copy")),n},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==o(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?b(a,{container:r}):i?"cut"===n?m(i):b(i,{container:r}):void 0},S=function(e){function t(e,t){var n;return(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e);var n,r,o,s=u(t);return n=t,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===i(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=w({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return b(e,t)}},{key:"cut",value:function(e){return m(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],r&&a(n.prototype,r),o&&a(n,o),t}(d()),k=S},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){function r(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=n(828);e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,j.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function l(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=D,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function u(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return u(e,t,n)}))),e}function s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return s(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function f(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){o=e})),o)throw o;if(!r)throw n;return(0,j.n)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function d(){this.u=null,this.o=null}function p(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,j.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,j.XX)((0,j.n)(p,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,j.n)(h,{__v:e,i:t});return n.containerInfo=t,n}function y(e,t,n){return null==t.__k&&(t.textContent=""),(0,j.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function m(e,t,n){return(0,j.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function b(){return this.cancelBubble}function w(){return this.defaultPrevented}function S(e){return j.n.bind(null,e)}function k(e){return!!e&&e.$$typeof===W}function x(e){return k(e)&&e.type===j.FK}function C(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function E(e){return k(e)?j.Ob.apply(null,arguments):e}function N(e){return!!e.__k&&((0,j.XX)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function A(e){return e}function $(){return[!1,P]}function L(e,t){var n=t(),r=(0,M.J0)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,M.Nf)((function(){o.__=n,o.v=t,T(o)&&i({h:o})}),[e,n,t]),(0,M.vJ)((function(){return T(o)&&i({h:o}),e((function(){T(o)&&i({h:o})}))}),[e]),n}function T(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}n.r(t),n.d(t,{Children:()=>q,Component:()=>j.uA,Fragment:()=>j.FK,PureComponent:()=>i,StrictMode:()=>ie,Suspense:()=>c,SuspenseList:()=>d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>te,cloneElement:()=>E,createContext:()=>j.q6,createElement:()=>j.n,createFactory:()=>S,createPortal:()=>v,createRef:()=>j._3,default:()=>ue,findDOMNode:()=>O,flushSync:()=>oe,forwardRef:()=>l,hydrate:()=>m,isElement:()=>le,isFragment:()=>x,isMemo:()=>C,isValidElement:()=>k,lazy:()=>_,memo:()=>a,render:()=>y,startTransition:()=>P,unmountComponentAtNode:()=>N,unstable_batchedUpdates:()=>re,useCallback:()=>M.hb,useContext:()=>M.NT,useDebugValue:()=>M.MN,useDeferredValue:()=>A,useEffect:()=>M.vJ,useErrorBoundary:()=>M.Md,useId:()=>M.Bi,useImperativeHandle:()=>M.Yn,useInsertionEffect:()=>ae,useLayoutEffect:()=>M.Nf,useMemo:()=>M.Kr,useReducer:()=>M.WO,useRef:()=>M.li,useState:()=>M.J0,useSyncExternalStore:()=>L,useTransition:()=>$,version:()=>ne});var j=n(172),M=n(994);(i.prototype=new j.uA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var I=j.fF.__b;j.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),I&&I(e)};var D="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,R=function(e,t){return null==e?null:(0,j.v2)((0,j.v2)(e).map(t))},q={map:R,forEach:R,count:function(e){return e?(0,j.v2)(e).length:0},only:function(e){var t=(0,j.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:j.v2},F=j.fF.__e;j.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);F(e,t,n,r)};var H=j.fF.unmount;j.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),H&&H(e)},(c.prototype=new j.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=f(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=s(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=u(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,j.n)(j.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,j.n)(j.FK,null,t.__a?null:e.children),o]};var U=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?L.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return a(e,l,r,o,null)}function a(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++j:o,__i:-1,__u:0};return null==o&&null!=T.vnode&&T.vnode(i),i}function l(){return{current:null}}function u(e){return e.children}function s(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__i+1):null;for(var n;tt&&M.sort(R));d.__r=0}function p(e,t,n,r,o,i,a,l,u,s,f){var _,d,p,y,m,g=r&&r.__k||z,b=t.length;for(n.__d=u,h(n,t,g),u=n.__d,_=0;_0?a(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=m(o,n,l,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s==l-1?p=s-l:s==l+1?p++:s>l?d>f-l?p+=s-l:p--:s(null==u||131072&u.__u?0:1))for(;a>=0||l=0){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?L.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function $(e,t){var n={__c:t="__cC"+U++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{FK:()=>u,Ob:()=>A,Qv:()=>P,XX:()=>O,_3:()=>l,fF:()=>T,h:()=>i,n:()=>i,q6:()=>$,uA:()=>s,v2:()=>y});var L,T,j,M,I,D,R,q,F,H,U,W={},z=[],K=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;L=z.slice,T={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},j=0,s.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},s.prototype.render=u,M=[],D="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R=function(e,t){return e.__v.__b-t.__v.__b},d.__r=0,q=0,F=w(!1),H=w(!0),U=0},994:(e,t,n)=>{"use strict";function r(e,t){P.__h&&P.__h(k,e,N||t),N=0;var n=k.__H||(k.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function o(e){return N=1,i(w,e)}function i(e,t,n){var o=r(S++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):w(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=k,!k.u)){var i=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};k.u=!0;var a=k.shouldComponentUpdate,l=k.componentWillUpdate;k.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}l&&l.call(this,e,t,n)},k.shouldComponentUpdate=i}return o.__N||o.__}function a(e,t){var n=r(S++,3);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,k.__H.__h.push(n))}function l(e,t){var n=r(S++,4);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,k.__h.push(n))}function u(e){return N=5,c((function(){return{current:e}}),[])}function s(e,t,n){N=6,l((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function c(e,t){var n=r(S++,7);return b(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function f(e,t){return N=8,c((function(){return e}),t)}function _(e){var t=k.context[e.__c],n=r(S++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(k)),t.props.value):e.__}function d(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function p(e){var t=r(S++,10),n=o();return t.__=e,k.componentDidCatch||(k.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function h(){var e=r(S++,11);if(!e.__){for(var t=k.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function v(){for(var e;e=O.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(m),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}function y(e){var t,n=function(){clearTimeout(r),I&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);I&&(t=requestAnimationFrame(n))}function m(e){var t=k,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),k=t}function g(e){var t=k;e.__c=e.__(),k=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}n.d(t,{Bi:()=>h,J0:()=>o,Kr:()=>c,MN:()=>d,Md:()=>p,NT:()=>_,Nf:()=>l,WO:()=>i,Yn:()=>s,hb:()=>f,li:()=>u,vJ:()=>a});var S,k,x,C,E=n(172),N=0,O=[],P=E.fF,A=P.__b,$=P.__r,L=P.diffed,T=P.__c,j=P.unmount,M=P.__;P.__b=function(e){k=null,A&&A(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),M&&M(e,t)},P.__r=function(e){$&&$(e),S=0;var t=(k=e.__c).__H;t&&(x===k?(t.__h=[],k.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(m),t.__h.forEach(g),t.__h=[],S=0)),x=k},P.diffed=function(e){L&&L(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==O.push(t)&&C===P.requestAnimationFrame||((C=P.requestAnimationFrame)||y)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),x=k=null},P.__c=function(e,t){t.some((function(e){try{e.__h.forEach(m),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],P.__e(n,e.__v)}})),T&&T(e,t)},P.unmount=function(e){j&&j(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{m(e)}catch(e){t=e}})),n.__H=void 0,t&&P.__e(t,n.__v))};var I="function"==typeof requestAnimationFrame},983:(e,t,n)=>{var r=function(e){function t(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function n(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function r(e,o,l,u,s,c){for(var _ in l)if(l.hasOwnProperty(_)&&l[_]){var d=l[_];d=Array.isArray(d)?d:[d];for(var p=0;p=c.reach);k+=S.value.length,S=S.next){var x=S.value;if(o.length>e.length)return;if(!(x instanceof t)){var C,E=1;if(m){if(!(C=n(w,k,e,y))||C.index>=e.length)break;var N=C.index,O=C.index+C[0].length,P=k;for(P+=S.value.length;N>=P;)P+=(S=S.next).value.length;if(k=P-=S.value.length,S.value instanceof t)continue;for(var A=S;A!==o.tail&&(Pc.reach&&(c.reach=j);var M=S.prev;if(L&&(M=i(o,M,L),k+=L.length),a(o,M,E),S=i(o,M,new t(_,v?f.tokenize($,v):$,g,$)),T&&i(o,S,T),E>1){var I={cause:_+","+p,reach:j};r(e,o,l,S.prev,k,I),c&&I.reach>c.reach&&(c.reach=I.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function i(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function a(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(f.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.immediateClose;e.postMessage(f.highlight(n.code,f.languages[r],r)),o&&e.close()}),!1),f):f;var _=f.util.currentScript();if(_&&(f.filename=_.src,_.hasAttribute("data-manual")&&(f.manual=!0)),!f.manual){var d=document.readyState;"loading"===d||"interactive"===d&&_&&_.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return f}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},837:()=>{!function(){function e(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var t=e.map((function(e){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(t&&r){var o=e.querySelector(".line-numbers-sizer"),i=t.textContent.split(n);o||((o=document.createElement("span")).className="line-numbers-sizer",t.appendChild(o)),o.innerHTML="0",o.style.display="block";var a=o.getBoundingClientRect().height;return o.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:o}}})).filter(Boolean);t.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,o=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=o}))})),t.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,o=0;oi&&(n=i),r.children[n-o]}}},resize:function(t){e([t])},assumeViewportIndependence:!0},o=void 0;window.addEventListener("resize",(function(){r.assumeViewportIndependence&&o===window.innerWidth||(o=window.innerWidth,e(Array.prototype.slice.call(document.querySelectorAll("pre."+t))))})),Prism.hooks.add("complete",(function(r){if(r.code){var o=r.element,i=o.parentNode;if(i&&/pre/i.test(i.nodeName)&&!o.querySelector(".line-numbers-rows")&&Prism.util.isActive(o,t)){o.classList.remove(t),i.classList.add(t);var a,l=r.code.match(n),u=new Array((l?l.length+1:1)+1).join("");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),r.element.appendChild(a),e([i]),Prism.hooks.run("line-numbers",r)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}}()},69:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){t._history.stack=u.slice(0,s+1);var c=t._history.stack.length;if(c>100){var f=c-100;t._history.stack=u.slice(f,c),t._history.offset=Math.max(t._history.offset-f,0)}}var _=Date.now();if(n){var d=t._history.stack[t._history.offset];if(d&&_-d.timestamp<3e3){var p=/[^a-z0-9]([a-z0-9]+)$/i,h=null===(r=t._getLines(d.value,d.selectionStart).pop())||void 0===r?void 0:r.match(p),v=null===(o=t._getLines(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(p);if((null==h?void 0:h[1])&&(null===(a=null==v?void 0:v[1])||void 0===a?void 0:a.startsWith(h[1])))return void(t._history.stack[t._history.offset]=i(i({},e),{timestamp:_}))}}t._history.stack.push(i(i({},e),{timestamp:_})),t._history.offset++},t._updateInput=function(e){var n=t._input;n&&(n.value=e.value,n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd,t.props.onValueChange(e.value))},t._applyEdits=function(e){var n=t._input,r=t._history.stack[t._history.offset];r&&n&&(t._history.stack[t._history.offset]=i(i({},r),{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),t._recordChange(e),t._updateInput(e)},t._undoEdit=function(){var e=t._history,n=e.offset,r=e.stack[n-1];r&&(t._updateInput(r),t._history.offset=Math.max(n-1,0))},t._redoEdit=function(){var e=t._history,n=e.stack,r=e.offset,o=n[r+1];o&&(t._updateInput(o),t._history.offset=Math.min(r+1,n.length-1))},t._handleKeyDown=function(e){var n=t.props,r=n.tabSize,o=n.insertSpaces,i=n.ignoreTabKey,a=n.onKeyDown;if(!a||(a(e),!e.defaultPrevented)){27===e.keyCode&&e.currentTarget.blur();var l=e.currentTarget,u=l.value,s=l.selectionStart,c=l.selectionEnd,d=(o?" ":"\t").repeat(r);if(9===e.keyCode&&!i&&t.state.capture)if(e.preventDefault(),e.shiftKey){var p=(y=t._getLines(u,s)).length-1,h=t._getLines(u,c).length-1,v=u.split("\n").map((function(e,t){return t>=p&&t<=h&&e.startsWith(d)?e.substring(d.length):e})).join("\n");if(u!==v)t._applyEdits({value:v,selectionStart:(null==(b=y[p])?void 0:b.startsWith(d))?s-d.length:s,selectionEnd:c-(u.length-v.length)})}else if(s!==c){var y,m=(y=t._getLines(u,s)).length-1,g=t._getLines(u,c).length-1,b=y[m];t._applyEdits({value:u.split("\n").map((function(e,t){return t>=m&&t<=g?d+e:e})).join("\n"),selectionStart:b&&/\S/.test(b)?s+d.length:s,selectionEnd:c+d.length*(g-m+1)})}else{var w=s+d.length;t._applyEdits({value:u.substring(0,s)+d+u.substring(c),selectionStart:w,selectionEnd:w})}else if(8===e.keyCode){var S=s!==c;if(u.substring(0,s).endsWith(d)&&!S){e.preventDefault();w=s-d.length;t._applyEdits({value:u.substring(0,s-d.length)+u.substring(c),selectionStart:w,selectionEnd:w})}}else if(13===e.keyCode){if(s===c){var k=t._getLines(u,s).pop(),x=null==k?void 0:k.match(/^\s+/);if(null==x?void 0:x[0]){e.preventDefault();var C="\n"+x[0];w=s+C.length;t._applyEdits({value:u.substring(0,s)+C+u.substring(c),selectionStart:w,selectionEnd:w})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var E=void 0;57===e.keyCode&&e.shiftKey?E=["(",")"]:219===e.keyCode?E=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?E=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(E=["`","`"]),s!==c&&E&&(e.preventDefault(),t._applyEdits({value:u.substring(0,s)+E[0]+u.substring(s,c)+E[1]+u.substring(c),selectionStart:s,selectionEnd:c+2}))}else!(_?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(_?e.metaKey&&90===e.keyCode&&e.shiftKey:f?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),t._redoEdit()):77!==e.keyCode||!e.ctrlKey||_&&!e.shiftKey||(e.preventDefault(),t.setState((function(e){return{capture:!e.capture}}))):(e.preventDefault(),t._undoEdit())}},t._handleChange=function(e){var n=e.currentTarget,r=n.value;t._recordChange({value:r,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd},!0),t.props.onValueChange(r)},t._history={stack:[],offset:-1},t._input=null,t}return o(t,e),t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(e){this._history=e.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.style,o=t.padding,a=t.highlight,l=t.textareaId,u=t.textareaClassName,f=t.autoFocus,_=t.disabled,h=t.form,y=t.maxLength,m=t.minLength,g=t.name,b=t.placeholder,w=t.readOnly,S=t.required,k=t.onClick,x=t.onFocus,C=t.onBlur,E=t.onKeyUp,N=t.preClassName,O=s(t,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),P={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},A=a(n);return c.createElement("div",i({},O,{style:i(i({},v.container),r)}),c.createElement("textarea",{ref:function(t){return e._input=t},style:i(i(i({},v.editor),v.textarea),P),className:d+(u?" ".concat(u):""),id:l,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:k,onKeyUp:E,onFocus:x,onBlur:C,disabled:_,form:h,maxLength:y,minLength:m,name:g,placeholder:b,readOnly:w,required:S,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),c.createElement("pre",i({className:N,"aria-hidden":"true",style:i(i(i({},v.editor),v.highlight),P)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"
"}}:{children:A})),c.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:p}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(c.Component);t.default=h;var v={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}},942:(e,t)=>{var n;!function(){"use strict";function r(){for(var e="",t=0;t{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="/",(()=>{"use strict";function t(e){return t="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},t(e)}function n(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(yield fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t)})).json()},l=function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){a(u,r,o,i,l,"next",e)}function l(e){a(u,r,o,i,l,"throw",e)}var u=e.apply(t,n);i(void 0)}))},l.apply(this,arguments)}function u(e){return u="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},u(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nE,BM:()=>N,MT:()=>O,P4:()=>P,KQ:()=>A,C:()=>$,Hp:()=>L,j0:()=>T});e(624);var g=e(172),b=e(127),w=e.n(b),S=e(402),k=e(994),x=e(942),C=e.n(x),E="info_block__MmcRf",N="info_block_collapsed__nKHMe",O="info_block_inner__HUWuS",P="info_block_item__VRzq4",A="info_block_teaser__WU82D",$="info_label__zb5kV",L="info_wrapper__hfoFu",T="query_count__yBMaQ",j=(0,g.q6)(null),M=e(172).FK,I=function(){var e=(0,k.NT)(j),t=e.queries,n=e.information;return(0,g.h)("div",null,(0,g.h)("h2",{className:"vip-h2 ".concat(T)},w()("query",t.length,!0)," ",w()("was",t.length)," run on this page"),(0,g.h)("div",{className:L},n.map((function(e,t){return(0,g.h)(D,i({key:t},e))}))))},D=function(e){var t=e.label,o=e.value,i=e.options,a=void 0===i?{collapsible:!1}:i,l=r((0,k.J0)(!0),2),u=l[0],s=l[1],c=function(){a.collapsible&&s(!u)},f=Array.isArray(o),_=o.length,d=f&&_>2?"+ ".concat(w()("other",_-2,!0)):"";return(0,g.h)("div",{className:C()(n(n(n({},E,!0),m.info_block_collapsible,a.collapsible||!1),N,u))},(0,g.h)("h5",{className:$,onClick:c},t),a.collapsible?(0,g.h)(M,null,(0,g.h)("div",{className:C()(n({},O,!0))},f?o.map((function(e){return(0,g.h)("span",{key:e,className:P},e)})):(0,g.h)("span",null,o)),(0,g.h)("span",{className:A,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,g.h)("span",null,f?o.join(", "):o))};const R=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,k.Kr)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,k.vJ)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,g.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,g.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,g.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var q=e(576),F=e.n(q),H=e(983),U=(e(837),e(514),e(69)),W=e.n(U),z="query_actions__ImK9_",K=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,k.J0)(!1),2),a=i[0],l=i[1],u=o.toLowerCase();return(0,g.h)("div",{className:C()(s(s({},"collapsible_list__PJS0Z",!0),"visible__M2eJW",a))},(0,g.h)("strong",{className:"".concat(u," vip-h4"),onClick:n.length?function(){l(!a)}:null},o," (","".concat(n.length),")"),(0,g.h)("ol",{className:"".concat("collapsible_list_details__u5Pq3"," ").concat(u," vip-collapse-ol")},n.map((function(e,t){return(0,g.h)("li",{key:t},e)}))))},V=e(172).FK,B=function(e){var t,n,r=e.request,o=e.url,i=e.query_args,a=e.backtrace,u=void 0===a?[]:a,s=JSON.stringify(e.args.body,null,2),c=JSON.stringify(r.body,null,2),f={editing:!1,query:s,result:c,collapsed:!0},h=p((0,k.J0)(f),2),v=h[0],y=h[1],m="#query-response-copy-handle",b=(0,k.hb)(function(){var e,t=(e=function*(e){try{var t=yield function(){return l.apply(this,arguments)}(window.VIPSearchDevTools.ajaxurl,{action:window.VIPSearchDevTools.action,url:o,query:e},window.VIPSearchDevTools.nonce);y((function(e){var n;return _({},e,{result:JSON.stringify(null==t||null===(n=t.result)||void 0===n?void 0:n.body,null,2)})}))}catch(e){console.log(e)}},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){d(l,r,o,i,a,"next",e)}function a(e){d(l,r,o,i,a,"throw",e)}var l=e.apply(t,n);i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[o]);(0,k.vJ)((function(){var e=new(F())(m);return e.on("success",(function(e){document.querySelector(m).innerHTML="COPIED!",setTimeout((function(){document.querySelector(m).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,k.vJ)((function(){v.query!==f.query&&(v.editing||b(v.query))}),[v.query,v.editing,f.query,b]);var S;return(0,g.h)("div",{className:C()("query_wrap__uIeve",v.collapsed?"query_collapsed__PGXWS":null)},(0,g.h)("div",{className:"query_handle__e0c8G",onClick:function(){return y(_({},v,{collapsed:!v.collapsed}))}},(0,g.h)("h3",{className:"vip-h3"},w()("result",(null==r||null===(t=r.body)||void 0===t||null===(t=t.hits)||void 0===t||null===(t=t.hits)||void 0===t?void 0:t.length)||0,!0),(0,g.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,g.h)("span",{style:{color:"var(--vip-".concat((S=r.body.took)<200?"green-60":S<500?"red-30":"red-60",")"),fontWeight:"bold"}},S,"ms"),(0,g.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,g.h)("div",{className:"grid_container__esEnb"},(0,g.h)("div",{className:"query_src_header__wWAup"},(0,g.h)("span",{style:"margin-right: auto;"},"Request"),(0,g.h)("div",{className:"query_src_extra__aZwxj"},(0,g.h)(K,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=p(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,g.h)(K,{title:"Trace",list:u}))),(0,g.h)("div",{className:"query_res_header__DMOpO"},"Response"),(0,g.h)("div",{className:"".concat("query_src__MoJsW"," query-src-box")},(0,g.h)("div",{className:z},v.editing||v.result!==c?(0,g.h)(V,null,(0,g.h)("button",{onClick:function(){return y(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,g.h)("button",{onClick:function(){return y(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,g.h)(W(),{value:v.query,onValueChange:function(e){return y(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,H.highlight)(e,H.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:"container_editor___Y1qC",style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,g.h)("div",{className:"".concat("query_res__FZmqB"," query-result-box")},(0,g.h)("div",{className:"query_result__k_RWY"},(0,g.h)("div",{className:z},(0,g.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,g.h)("pre",{className:"line-numbers"},(0,g.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},J=function(){var e=(0,k.NT)(j).queries;return(0,g.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,g.h)(B,_({key:t},e))})))},G=function(e){var t=(0,k.NT)(j).queries;return(0,g.h)("button",e,"Search: ",w()("query",t.length,!0))};const X=function(){var e,t=v((0,k.J0)(!1),2),n=t[0],r=t[1],o=(0,k.hb)((function(){return r(!1)}),[]),i=(0,k.hb)((function(){return r(!n)}),[n]);return(0,g.h)(j.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,g.h)("div",{className:"search-dev-tools__wrapper"},(0,g.h)(G,{class:"ab_btn__Grxiu",onClick:i}),(0,S.createPortal)((0,g.h)(R,{isVisible:n,closeOverlay:o,opacity:"100"},(0,g.h)("div",{className:"vip_search_dev_tools__WdCFa"},(0,g.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,g.h)(I,null),(0,g.h)(J,null))),document.getElementById("search-dev-tools-portal"))))};var Z=function(){return(0,g.XX)((0,g.h)(X,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Z):Z()})()})(); \ No newline at end of file +(()=>{function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}var t={624:(e,t,n)=>{n.p=window.VIPSearchDevTools.__webpack_public_path__},576:function(e){var t;t=function(){return function(){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t={686:function(e,t,n){"use strict";function r(e){try{return document.execCommand(e)}catch(e){return!1}}function o(e){return o="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(e)}function i(e){return i="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},i(e)}function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=g(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=g(e.value,t):(n=m()(e),r("copy")),n},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==o(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?b(a,{container:r}):i?"cut"===n?y(i):b(i,{container:r}):void 0},k=function(e){function t(e,t){var n;return(n=s.call(this)).resolveOptions(t),n.listenClick(e),n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e);var n,r,o,s=u(t);return n=t,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===i(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=h()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=w({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return b(e,t)}},{key:"cut",value:function(e){return y(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],r&&a(n.prototype,r),o&&a(n,o),t}(d()),S=k},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){function r(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}var i=n(828);e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){o.off(e,r),t.apply(n,arguments)}var o=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function i(e,t){this.props=e,this.context=t}function a(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,L.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function l(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function u(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return u(e,t,n)}))),e}function s(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return s(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function f(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _(e){function t(t){if(n||(n=e()).then((function(e){r=e.default||e}),(function(e){o=e})),o)throw o;if(!r)throw n;return(0,L.n)(r,t)}var n,r,o;return t.displayName="Lazy",t.__f=!0,t}function d(){this.u=null,this.o=null}function p(e){return this.getChildContext=function(){return e.context},e.children}function h(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,L.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,L.XX)((0,L.n)(p,{context:t.context},e.__v),t.l)}function v(e,t){var n=(0,L.n)(h,{__v:e,i:t});return n.containerInfo=t,n}function m(e,t,n){return null==t.__k&&(t.textContent=""),(0,L.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function y(e,t,n){return(0,L.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}function g(){}function b(){return this.cancelBubble}function w(){return this.defaultPrevented}function k(e){return L.n.bind(null,e)}function S(e){return!!e&&e.$$typeof===W}function x(e){return S(e)&&e.type===L.FK}function C(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function E(e){return S(e)?L.Ob.apply(null,arguments):e}function N(e){return!!e.__k&&((0,L.XX)(null,e),!0)}function O(e){return e&&(e.base||1===e.nodeType&&e)||null}function P(e){e()}function A(e){return e}function $(){return[!1,P]}function T(e,t){var n=t(),r=(0,M.J0)({h:{__:n,v:t}}),o=r[0].h,i=r[1];return(0,M.Nf)((function(){o.__=n,o.v=t,j(o)&&i({h:o})}),[e,n,t]),(0,M.vJ)((function(){return j(o)&&i({h:o}),e((function(){j(o)&&i({h:o})}))}),[e]),n}function j(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}n.r(t),n.d(t,{Children:()=>D,Component:()=>L.uA,Fragment:()=>L.FK,PureComponent:()=>i,StrictMode:()=>ie,Suspense:()=>c,SuspenseList:()=>d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>te,cloneElement:()=>E,createContext:()=>L.q6,createElement:()=>L.n,createFactory:()=>k,createPortal:()=>v,createRef:()=>L._3,default:()=>ue,findDOMNode:()=>O,flushSync:()=>oe,forwardRef:()=>l,hydrate:()=>y,isElement:()=>le,isFragment:()=>x,isMemo:()=>C,isValidElement:()=>S,lazy:()=>_,memo:()=>a,render:()=>m,startTransition:()=>P,unmountComponentAtNode:()=>N,unstable_batchedUpdates:()=>re,useCallback:()=>M.hb,useContext:()=>M.NT,useDebugValue:()=>M.MN,useDeferredValue:()=>A,useEffect:()=>M.vJ,useErrorBoundary:()=>M.Md,useId:()=>M.Bi,useImperativeHandle:()=>M.Yn,useInsertionEffect:()=>ae,useLayoutEffect:()=>M.Nf,useMemo:()=>M.Kr,useReducer:()=>M.WO,useRef:()=>M.li,useState:()=>M.J0,useSyncExternalStore:()=>T,useTransition:()=>$,version:()=>ne});var L=n(172),M=n(994);(i.prototype=new L.uA).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var I=L.fF.__b;L.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),I&&I(e)};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,q=function(e,t){return null==e?null:(0,L.v2)((0,L.v2)(e).map(t))},D={map:q,forEach:q,count:function(e){return e?(0,L.v2)(e).length:0},only:function(e){var t=(0,L.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L.v2},F=L.fF.__e;L.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);F(e,t,n,r)};var H=L.fF.unmount;L.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),H&&H(e)},(c.prototype=new L.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=f(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=s(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=u(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,L.n)(L.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,L.n)(L.FK,null,t.__a?null:e.children),o]};var U=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,l={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?T.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===l[i]&&(l[i]=e.defaultProps[i]);return a(e,l,r,o,null)}function a(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++L:o,__i:-1,__u:0};return null==o&&null!=j.vnode&&j.vnode(i),i}function l(){return{current:null}}function u(e){return e.children}function s(e,t){this.props=e,this.context=t}function c(e,t){if(null==t)return e.__?c(e.__,e.__i+1):null;for(var n;tt&&M.sort(q));d.__r=0}function p(e,t,n,r,o,i,a,l,u,s,f){var _,d,p,m,y,g=r&&r.__k||z,b=t.length;for(n.__d=u,h(n,t,g),u=n.__d,_=0;_0?a(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=y(o,n,l,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=65536)):s!==l&&(s==l-1?p=s-l:s==l+1?p++:s>l?d>f-l?p+=s-l:p--:s(null==u||131072&u.__u?0:1))for(;a>=0||l=0){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a--}if(l2&&(s.children=arguments.length>3?T.call(arguments,2):n),a(e.type,s,o||e.key,i||e.ref,null)}function $(e,t){var n={__c:t="__cC"+U++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.d(t,{FK:()=>u,Ob:()=>A,Qv:()=>P,XX:()=>O,_3:()=>l,fF:()=>j,h:()=>i,n:()=>i,q6:()=>$,uA:()=>s,v2:()=>m});var T,j,L,M,I,R,q,D,F,H,U,W={},z=[],K=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;T=z.slice,j={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},L=0,s.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},s.prototype.render=u,M=[],R="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,q=function(e,t){return e.__v.__b-t.__v.__b},d.__r=0,D=0,F=w(!1),H=w(!0),U=0},994:(e,t,n)=>{"use strict";function r(e,t){P.__h&&P.__h(S,e,N||t),N=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function o(e){return N=1,i(w,e)}function i(e,t,n){var o=r(k++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):w(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=S,!S.u)){var i=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};S.u=!0;var a=S.shouldComponentUpdate,l=S.componentWillUpdate;S.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}l&&l.call(this,e,t,n)},S.shouldComponentUpdate=i}return o.__N||o.__}function a(e,t){var n=r(k++,3);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}function l(e,t){var n=r(k++,4);!P.__s&&b(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}function u(e){return N=5,c((function(){return{current:e}}),[])}function s(e,t,n){N=6,l((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function c(e,t){var n=r(k++,7);return b(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function f(e,t){return N=8,c((function(){return e}),t)}function _(e){var t=S.context[e.__c],n=r(k++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(S)),t.props.value):e.__}function d(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function p(e){var t=r(k++,10),n=o();return t.__=e,S.componentDidCatch||(S.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function h(){var e=r(k++,11);if(!e.__){for(var t=S.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function v(){for(var e;e=O.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(y),e.__H.__h.forEach(g),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}function m(e){var t,n=function(){clearTimeout(r),I&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);I&&(t=requestAnimationFrame(n))}function y(e){var t=S,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),S=t}function g(e){var t=S;e.__c=e.__(),S=t}function b(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}n.d(t,{Bi:()=>h,J0:()=>o,Kr:()=>c,MN:()=>d,Md:()=>p,NT:()=>_,Nf:()=>l,WO:()=>i,Yn:()=>s,hb:()=>f,li:()=>u,vJ:()=>a});var k,S,x,C,E=n(172),N=0,O=[],P=E.fF,A=P.__b,$=P.__r,T=P.diffed,j=P.__c,L=P.unmount,M=P.__;P.__b=function(e){S=null,A&&A(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),M&&M(e,t)},P.__r=function(e){$&&$(e),k=0;var t=(S=e.__c).__H;t&&(x===S?(t.__h=[],S.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(y),t.__h.forEach(g),t.__h=[],k=0)),x=S},P.diffed=function(e){T&&T(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==O.push(t)&&C===P.requestAnimationFrame||((C=P.requestAnimationFrame)||m)(v)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),x=S=null},P.__c=function(e,t){t.some((function(e){try{e.__h.forEach(y),e.__h=e.__h.filter((function(e){return!e.__||g(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],P.__e(n,e.__v)}})),j&&j(e,t)},P.unmount=function(e){L&&L(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{y(e)}catch(e){t=e}})),n.__H=void 0,t&&P.__e(t,n.__v))};var I="function"==typeof requestAnimationFrame},983:(e,t,n)=>{var r=function(e){function t(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function n(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function r(e,o,l,u,s,c){for(var _ in l)if(l.hasOwnProperty(_)&&l[_]){var d=l[_];d=Array.isArray(d)?d:[d];for(var p=0;p=c.reach);S+=k.value.length,k=k.next){var x=k.value;if(o.length>e.length)return;if(!(x instanceof t)){var C,E=1;if(y){if(!(C=n(w,S,e,m))||C.index>=e.length)break;var N=C.index,O=C.index+C[0].length,P=S;for(P+=k.value.length;N>=P;)P+=(k=k.next).value.length;if(S=P-=k.value.length,k.value instanceof t)continue;for(var A=k;A!==o.tail&&(Pc.reach&&(c.reach=L);var M=k.prev;if(T&&(M=i(o,M,T),S+=T.length),a(o,M,E),k=i(o,M,new t(_,v?f.tokenize($,v):$,g,$)),j&&i(o,k,j),E>1){var I={cause:_+","+p,reach:L};r(e,o,l,k.prev,S,I),c&&I.reach>c.reach&&(c.reach=I.reach)}}}}}}function o(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function i(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function a(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(f.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.immediateClose;e.postMessage(f.highlight(n.code,f.languages[r],r)),o&&e.close()}),!1),f):f;var _=f.util.currentScript();if(_&&(f.filename=_.src,_.hasAttribute("data-manual")&&(f.manual=!0)),!f.manual){var d=document.readyState;"loading"===d||"interactive"===d&&_&&_.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return f}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},837:()=>{!function(){function e(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var t=e.map((function(e){var t=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(t&&r){var o=e.querySelector(".line-numbers-sizer"),i=t.textContent.split(n);o||((o=document.createElement("span")).className="line-numbers-sizer",t.appendChild(o)),o.innerHTML="0",o.style.display="block";var a=o.getBoundingClientRect().height;return o.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:a,sizer:o}}})).filter(Boolean);t.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,o=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=o}))})),t.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,o=0;oi&&(n=i),r.children[n-o]}}},resize:function(t){e([t])},assumeViewportIndependence:!0},o=void 0;window.addEventListener("resize",(function(){r.assumeViewportIndependence&&o===window.innerWidth||(o=window.innerWidth,e(Array.prototype.slice.call(document.querySelectorAll("pre."+t))))})),Prism.hooks.add("complete",(function(r){if(r.code){var o=r.element,i=o.parentNode;if(i&&/pre/i.test(i.nodeName)&&!o.querySelector(".line-numbers-rows")&&Prism.util.isActive(o,t)){o.classList.remove(t),i.classList.add(t);var a,l=r.code.match(n),u=new Array((l?l.length+1:1)+1).join("");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),r.element.appendChild(a),e([i]),Prism.hooks.run("line-numbers",r)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}}()},69:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1){F.current.stack=l.slice(0,u+1);var s=F.current.stack.length;if(s>100){var c=s-100;F.current.stack=l.slice(c,s),F.current.offset=Math.max(F.current.offset-c,0)}}var f=Date.now();if(t){var _=F.current.stack[F.current.offset];if(_&&f-_.timestamp<3e3){var d=/[^a-z0-9]([a-z0-9]+)$/i,p=null===(n=B(_.value,_.selectionStart).pop())||void 0===n?void 0:n.match(d),h=null===(o=B(e.value,e.selectionStart).pop())||void 0===o?void 0:o.match(d);if((null==p?void 0:p[1])&&(null===(i=null==h?void 0:h[1])||void 0===i?void 0:i.startsWith(p[1])))return void(F.current.stack[F.current.offset]=r(r({},e),{timestamp:f}))}}F.current.stack.push(r(r({},e),{timestamp:f})),F.current.offset++}),[]),G=u.useCallback((function(){var e=H.current;e&&J({value:e.value,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd})}),[J]),X=function(e){var t=H.current;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,null==E||E(e.value))},Z=function(e){var t=H.current,n=F.current.stack[F.current.offset];n&&t&&(F.current.stack[F.current.offset]=r(r({},n),{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),J(e),X(e)};return u.useEffect((function(){G()}),[G]),u.useImperativeHandle(t,(function(){return{get session(){return{history:F.current}},set session(e){F.current=e.history}}}),[]),u.createElement("div",r({},D,{style:r(r({},p.container),j)}),u.createElement("pre",r({className:A,"aria-hidden":"true",style:r(r(r({},p.editor),p.highlight),K)},"string"==typeof V?{dangerouslySetInnerHTML:{__html:V+"
"}}:{children:V})),u.createElement("textarea",{ref:function(e){return H.current=e},style:r(r(r({},p.editor),p.textarea),K),className:f+(I?" ".concat(I):""),id:R,value:q,onChange:function(e){var t=e.currentTarget,n=t.value;J({value:n,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd},!0),E(n)},onKeyDown:function(e){if(!x||(x(e),!e.defaultPrevented)){"Escape"===e.key&&e.currentTarget.blur();var t=e.currentTarget,n=t.value,r=t.selectionStart,o=t.selectionEnd,i=(m?" ":"\t").repeat(M);if("Tab"===e.key&&!h&&W)if(e.preventDefault(),e.shiftKey){var a=(f=B(n,r)).length-1,l=B(n,o).length-1,u=n.split("\n").map((function(e,t){return t>=a&&t<=l&&e.startsWith(i)?e.substring(i.length):e})).join("\n");if(n!==u)Z({value:u,selectionStart:(null==(p=f[a])?void 0:p.startsWith(i))?r-i.length:r,selectionEnd:o-(n.length-u.length)})}else if(r!==o){var f,_=(f=B(n,r)).length-1,d=B(n,o).length-1,p=f[_];Z({value:n.split("\n").map((function(e,t){return t>=_&&t<=d?i+e:e})).join("\n"),selectionStart:p&&/\S/.test(p)?r+i.length:r,selectionEnd:o+i.length*(d-_+1)})}else{var v=r+i.length;Z({value:n.substring(0,r)+i+n.substring(o),selectionStart:v,selectionEnd:v})}else if("Backspace"===e.key){var y=r!==o;if(n.substring(0,r).endsWith(i)&&!y){e.preventDefault();v=r-i.length;Z({value:n.substring(0,r-i.length)+n.substring(o),selectionStart:v,selectionEnd:v})}}else if("Enter"===e.key){if(r===o){var g=B(n,r).pop(),b=null==g?void 0:g.match(/^\s+/);if(null==b?void 0:b[0]){e.preventDefault();var w="\n"+b[0];v=r+w.length;Z({value:n.substring(0,r)+w+n.substring(o),selectionStart:v,selectionEnd:v})}}}else if(57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode){var k=void 0;57===e.keyCode&&e.shiftKey?k=["(",")"]:219===e.keyCode?k=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?k=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(k=["`","`"]),r!==o&&k&&(e.preventDefault(),Z({value:n.substring(0,r)+k[0]+n.substring(r,o)+k[1]+n.substring(o),selectionStart:r,selectionEnd:o+2}))}else!(c?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)||e.shiftKey||e.altKey?(c?e.metaKey&&90===e.keyCode&&e.shiftKey:s?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),function(){var e=F.current,t=e.stack,n=e.offset,r=t[n+1];r&&(X(r),F.current.offset=Math.min(n+1,t.length-1))}()):77!==e.keyCode||!e.ctrlKey||c&&!e.shiftKey||(e.preventDefault(),z((function(e){return!e}))):(e.preventDefault(),function(){var e=F.current,t=e.offset,n=e.stack[t-1];n&&(X(n),F.current.offset=Math.max(t-1,0))}())}},onClick:k,onKeyUp:C,onFocus:S,onBlur:w,disabled:o,form:i,maxLength:y,minLength:g,name:b,placeholder:P,readOnly:$,required:T,autoFocus:n,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),u.createElement("style",{dangerouslySetInnerHTML:{__html:_}}))})),p={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};t.default=d},942:(e,t)=>{var n;!function(){"use strict";function r(){for(var e="",t=0;t{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.p="/",(()=>{"use strict";function t(e){return t="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},t(e)}function n(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(yield fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":n},body:JSON.stringify(t)})).json()},l=function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){a(u,r,o,i,l,"next",e)}function l(e){a(u,r,o,i,l,"throw",e)}var u=e.apply(t,n);i(void 0)}))},l.apply(this,arguments)}function u(e){return u="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},u(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nE,BM:()=>N,MT:()=>O,P4:()=>P,KQ:()=>A,C:()=>$,Hp:()=>T,j0:()=>j});e(624);var g=e(172),b=e(127),w=e.n(b),k=e(402),S=e(994),x=e(942),C=e.n(x),E="info_block__MmcRf",N="info_block_collapsed__nKHMe",O="info_block_inner__HUWuS",P="info_block_item__VRzq4",A="info_block_teaser__WU82D",$="info_label__zb5kV",T="info_wrapper__hfoFu",j="query_count__yBMaQ",L=(0,g.q6)(null),M=e(172).FK,I=function(){var e=(0,S.NT)(L),t=e.queries,n=e.information;return(0,g.h)("div",null,(0,g.h)("h2",{className:"vip-h2 ".concat(j)},w()("query",t.length,!0)," ",w()("was",t.length)," run on this page"),(0,g.h)("div",{className:T},n.map((function(e,t){return(0,g.h)(R,i({key:t},e))}))))},R=function(e){var t=e.label,o=e.value,i=e.options,a=void 0===i?{collapsible:!1}:i,l=r((0,S.J0)(!0),2),u=l[0],s=l[1],c=function(){a.collapsible&&s(!u)},f=Array.isArray(o),_=o.length,d=f&&_>2?"+ ".concat(w()("other",_-2,!0)):"";return(0,g.h)("div",{className:C()(n(n(n({},E,!0),y.info_block_collapsible,a.collapsible||!1),N,u))},(0,g.h)("h5",{className:$,onClick:c},t),a.collapsible?(0,g.h)(M,null,(0,g.h)("div",{className:C()(n({},O,!0))},f?o.map((function(e){return(0,g.h)("span",{key:e,className:P},e)})):(0,g.h)("span",null,o)),(0,g.h)("span",{className:A,onClick:c},f?" ".concat(o.slice(0,2).join(", ")," ").concat(d):"Click to show")):(0,g.h)("span",null,f?o.join(", "):o))};const q=function(e){var t=e.children,n=e.closeOverlay,r=e.colorTheme,o=void 0===r?"light":r,i=e.isVisible,a=(0,S.Kr)((function(){return function(e){return"Escape"===e.key&&n()}}),[n]);return(0,S.vJ)((function(){return window.addEventListener("keydown",a),function(){window.removeEventListener("keydown",a)}}),[a]),i?(0,g.h)("div",{className:"search-dev-tools__overlay search-dev-tools__overlay--".concat(o),role:"dialog"},(0,g.h)("button",{"aria-label":"Close VIP Search Dev Tools",className:"search-dev-tools__overlay__close",onClick:n},(0,g.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc5MyA5LjUuNjQ2IDE3LjY0NmwuNzA4LjcwN0w5LjUgMTAuMjA3bDguMTQ2IDguMTQ2LjcwOC0uNzA3TDEwLjIwNyA5LjVsOC4xNDctOC4xNDYtLjcwNy0uNzA4TDkuNSA4Ljc5MyAxLjM1NC42NDZsLS43MDguNzA4TDguNzkzIDkuNVoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=",alt:"Close"})),t):null};var D=e(576),F=e.n(D),H=e(983),U=(e(837),e(514),e(69)),W=e.n(U),z="query_actions__ImK9_",K=function(e){var t=e.list,n=void 0===t?[]:t,r=e.title,o=void 0===r?"View":r,i=c((0,S.J0)(!1),2),a=i[0],l=i[1],u=o.toLowerCase();return(0,g.h)("div",{className:C()(s(s({},"collapsible_list__PJS0Z",!0),"visible__M2eJW",a))},(0,g.h)("strong",{className:"".concat(u," vip-h4"),onClick:n.length?function(){l(!a)}:null},o," (","".concat(n.length),")"),(0,g.h)("ol",{className:"".concat("collapsible_list_details__u5Pq3"," ").concat(u," vip-collapse-ol")},n.map((function(e,t){return(0,g.h)("li",{key:t},e)}))))},V=e(172).FK,B=function(e){var t,n,r=e.request,o=e.url,i=e.query_args,a=e.backtrace,u=void 0===a?[]:a,s=JSON.stringify(e.args.body,null,2),c=JSON.stringify(r.body,null,2),f={editing:!1,query:s,result:c,collapsed:!0},h=p((0,S.J0)(f),2),v=h[0],m=h[1],y="#query-response-copy-handle",b=(0,S.hb)(function(){var e,t=(e=function*(e){try{var t=yield function(){return l.apply(this,arguments)}(window.VIPSearchDevTools.ajaxurl,{action:window.VIPSearchDevTools.action,url:o,query:e},window.VIPSearchDevTools.nonce);m((function(e){var n;return _({},e,{result:JSON.stringify(null==t||null===(n=t.result)||void 0===n?void 0:n.body,null,2)})}))}catch(e){console.log(e)}},function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){d(l,r,o,i,a,"next",e)}function a(e){d(l,r,o,i,a,"throw",e)}var l=e.apply(t,n);i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[o]);(0,S.vJ)((function(){var e=new(F())(y);return e.on("success",(function(e){document.querySelector(y).innerHTML="COPIED!",setTimeout((function(){document.querySelector(y).innerHTML="COPY"}),2e3),e.clearSelection()})),function(){return e.destroy()}}),[]),(0,S.vJ)((function(){v.query!==f.query&&(v.editing||b(v.query))}),[v.query,v.editing,f.query,b]);var k;return(0,g.h)("div",{className:C()("query_wrap__uIeve",v.collapsed?"query_collapsed__PGXWS":null)},(0,g.h)("div",{className:"query_handle__e0c8G",onClick:function(){return m(_({},v,{collapsed:!v.collapsed}))}},(0,g.h)("h3",{className:"vip-h3"},w()("result",(null==r||null===(t=r.body)||void 0===t||null===(t=t.hits)||void 0===t||null===(t=t.hits)||void 0===t?void 0:t.length)||0,!0),(0,g.h)("span",{style:"color: var(--vip-grey-60);"}," that took")," ",(0,g.h)("span",{style:{color:"var(--vip-".concat((k=r.body.took)<200?"green-60":k<500?"red-30":"red-60",")"),fontWeight:"bold"}},k,"ms"),(0,g.h)("small",null," (",(null==r||null===(n=r.response)||void 0===n?void 0:n.code)||"unknown",")"))),(0,g.h)("div",{className:"grid_container__esEnb"},(0,g.h)("div",{className:"query_src_header__wWAup"},(0,g.h)("span",{style:"margin-right: auto;"},"Request"),(0,g.h)("div",{className:"query_src_extra__aZwxj"},(0,g.h)(K,{title:"WP_Query",list:Object.entries(i).map((function(e){var t=p(e,2),n=t[1];return"".concat(t[0],": ").concat(JSON.stringify(n))}))}),(0,g.h)(K,{title:"Trace",list:u}))),(0,g.h)("div",{className:"query_res_header__DMOpO"},"Response"),(0,g.h)("div",{className:"".concat("query_src__MoJsW"," query-src-box")},(0,g.h)("div",{className:z},v.editing||v.result!==c?(0,g.h)(V,null,(0,g.h)("button",{onClick:function(){return m(_({},v,{editing:!1}))},style:"background-color: var(--vip-green-40) !important"},"RUN"),(0,g.h)("button",{onClick:function(){return m(_({},f,{collapsed:!1}))},style:"background-color: var(--vip-blue-10) !important"},"RESET")):"Edit me!"),(0,g.h)(W(),{value:v.query,onValueChange:function(e){return m(_({},v,{query:e,editing:!0}))},highlight:function(e){return(0,H.highlight)(e,H.languages.json,"json").split("\n").map((function(e){return'').concat(e,"")})).join("\n")},padding:0,className:"container_editor___Y1qC",style:{fontSize:"var(--vip-sdt-editor-font-size)",lineHeight:"1.2em"}})),(0,g.h)("div",{className:"".concat("query_res__FZmqB"," query-result-box")},(0,g.h)("div",{className:"query_result__k_RWY"},(0,g.h)("div",{className:z},(0,g.h)("button",{id:"query-response-copy-handle","data-clipboard-target":"#query-response-text"},"COPY")),(0,g.h)("pre",{className:"line-numbers"},(0,g.h)("code",{className:"language-json",id:"query-response-text"},v.result))))))},J=function(){var e=(0,S.NT)(L).queries;return(0,g.h)("div",null,e.length<1?"No queries to show":e.map((function(e,t){return(0,g.h)(B,_({key:t},e))})))},G=function(e){var t=(0,S.NT)(L).queries;return(0,g.h)("button",e,"Search: ",w()("query",t.length,!0))};const X=function(){var e,t=v((0,S.J0)(!1),2),n=t[0],r=t[1],o=(0,S.hb)((function(){return r(!1)}),[]),i=(0,S.hb)((function(){return r(!n)}),[n]);return(0,g.h)(L.Provider,{value:(null===(e=window)||void 0===e?void 0:e.VIPSearchDevTools)||{status:"disabled",queries:[],information:[]}},(0,g.h)("div",{className:"search-dev-tools__wrapper"},(0,g.h)(G,{class:"ab_btn__Grxiu",onClick:i}),(0,k.createPortal)((0,g.h)(q,{isVisible:n,closeOverlay:o,opacity:"100"},(0,g.h)("div",{className:"vip_search_dev_tools__WdCFa"},(0,g.h)("h4",{className:"vip-h4 main_caption"},"Enterprise Search Dev Tools"),(0,g.h)(I,null),(0,g.h)(J,null))),document.getElementById("search-dev-tools-portal"))))};var Z=function(){return(0,g.XX)((0,g.h)(X,null),document.querySelector('[data-widget-host="vip-search-dev-tools"]'))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Z):Z()})()})(); \ No newline at end of file diff --git a/search/search-dev-tools/package-lock.json b/search/search-dev-tools/package-lock.json index ab7123ad84..4070120aff 100644 --- a/search/search-dev-tools/package-lock.json +++ b/search/search-dev-tools/package-lock.json @@ -14,10 +14,10 @@ "pluralize": "^8.0.0", "preact": "^10.18.1", "prismjs": "^1.29.0", - "react-simple-code-editor": "^0.11.3" + "react-simple-code-editor": "^0.14.1" }, "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.12.0", + "@automattic/eslint-plugin-wpvip": "^0.13.0", "@babel/core": "^7.23.2", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", @@ -61,15 +61,15 @@ } }, "node_modules/@automattic/eslint-plugin-wpvip": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.12.0.tgz", - "integrity": "sha512-ARF+Nj0HBHeaTPoWDA+BynaEergBrtHKDoYqIHtLWJEe7xMNRedB3Q4+lo1OuTZGA3ggBwMmOy5OU0izQwPpog==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@automattic/eslint-plugin-wpvip/-/eslint-plugin-wpvip-0.13.0.tgz", + "integrity": "sha512-WsV96El7tkiuZHbNYT/ZyRHO8IgQGFdyP8CB0K86BfTF2E49EQsY9xceF5TqyLcJl4DDnmdoRfiqeo3dRj1pQw==", "dev": true, "dependencies": { - "@babel/eslint-parser": "7.24.5", - "@rushstack/eslint-patch": "1.10.2", - "@typescript-eslint/eslint-plugin": "7.8.0", - "@typescript-eslint/parser": "7.8.0", + "@babel/eslint-parser": "7.24.7", + "@rushstack/eslint-patch": "1.10.3", + "@typescript-eslint/eslint-plugin": "7.15.0", + "@typescript-eslint/parser": "7.15.0", "eslint-config-prettier": "8.7.0", "eslint-import-resolver-typescript": "3.6.1", "eslint-plugin-import": "2.29.1", @@ -105,32 +105,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", - "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==", + "version": "7.24.9", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.9.tgz", + "integrity": "sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.7.tgz", - "integrity": "sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==", + "version": "7.24.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.9.tgz", + "integrity": "sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.7", - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helpers": "^7.24.7", - "@babel/parser": "^7.24.7", + "@babel/generator": "^7.24.9", + "@babel/helper-compilation-targets": "^7.24.8", + "@babel/helper-module-transforms": "^7.24.9", + "@babel/helpers": "^7.24.8", + "@babel/parser": "^7.24.8", "@babel/template": "^7.24.7", - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7", + "@babel/traverse": "^7.24.8", + "@babel/types": "^7.24.9", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -146,11 +144,10 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.24.5.tgz", - "integrity": "sha512-gsUcqS/fPlgAw1kOtpss7uhY6E9SFFANQ6EFX5GTvzUwaV0+sGaZWk6xq22MOdeT9wfxyokW3ceCUvOiRtZciQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.24.7.tgz", + "integrity": "sha512-SO5E3bVxDuxyNxM5agFv480YA2HO6ohZbGxbazZdIk3KQOPOGVNw6q78I9/lbviIf95eq6tPozeYnJLbjnC8IA==", "dev": true, - "license": "MIT", "dependencies": { "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", "eslint-visitor-keys": "^2.1.0", @@ -165,13 +162,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", - "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", + "version": "7.24.9", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.9.tgz", + "integrity": "sha512-G8v3jRg+z8IwY1jHFxvCNhOPYPterE4XljNgdGTYfSTtzzwjIswIzIaSPSLs3R7yFuqnqNeay5rjICfqVr+/6A==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.24.7", + "@babel/types": "^7.24.9", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" @@ -208,15 +204,14 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", - "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz", + "integrity": "sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.24.7", - "@babel/helper-validator-option": "^7.24.7", - "browserslist": "^4.22.2", + "@babel/compat-data": "^7.24.8", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -352,11 +347,10 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", - "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", + "version": "7.24.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz", + "integrity": "sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.24.7", "@babel/helper-module-imports": "^7.24.7", @@ -385,11 +379,10 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz", - "integrity": "sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -472,11 +465,10 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", - "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -492,11 +484,10 @@ } }, "node_modules/@babel/helper-validator-option": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", - "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -518,14 +509,13 @@ } }, "node_modules/@babel/helpers": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", - "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.8.tgz", + "integrity": "sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/template": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/types": "^7.24.8" }, "engines": { "node": ">=6.9.0" @@ -548,11 +538,10 @@ } }, "node_modules/@babel/parser": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", - "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.8.tgz", + "integrity": "sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==", "dev": true, - "license": "MIT", "bin": { "parser": "bin/babel-parser.js" }, @@ -1031,17 +1020,16 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.7.tgz", - "integrity": "sha512-CFbbBigp8ln4FU6Bpy6g7sE8B/WmCmzvivzUC6xDAdWVsjYTXijpuuGJmYkAaoWAzcItGKT3IOAbxRItZ5HTjw==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.8.tgz", + "integrity": "sha512-VXy91c47uujj758ud9wx+OMgheXm4qJfyhj1P18YvlrQkNOSrwsteHk+EFS3OMGfhMhpZa0A+81eE7G4QC+3CA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-compilation-targets": "^7.24.7", + "@babel/helper-compilation-targets": "^7.24.8", "@babel/helper-environment-visitor": "^7.24.7", "@babel/helper-function-name": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.8", "@babel/helper-replace-supers": "^7.24.7", "@babel/helper-split-export-declaration": "^7.24.7", "globals": "^11.1.0" @@ -1058,7 +1046,6 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -1081,13 +1068,12 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.7.tgz", - "integrity": "sha512-19eJO/8kdCQ9zISOf+SEUJM/bAUIsvY3YDnXZTupUCQ8LgrWnsG/gFB9dvXqdXnRXMAM8fvt7b0CBKQHNGy1mw==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz", + "integrity": "sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.24.8" }, "engines": { "node": ">=6.9.0" @@ -1299,14 +1285,13 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.7.tgz", - "integrity": "sha512-iFI8GDxtevHJ/Z22J5xQpVqFLlMNstcLXh994xifFwxxGslr2ZXXLWgtBeLctOD63UFDArdvN6Tg8RFw+aEmjQ==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz", + "integrity": "sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-module-transforms": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", "@babel/helper-simple-access": "^7.24.7" }, "engines": { @@ -1489,13 +1474,12 @@ } }, "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.7.tgz", - "integrity": "sha512-tK+0N9yd4j+x/4hxF3F0e0fu/VdcxU18y5SevtyM/PCFlQvXbR0Zmlo2eBrKtVipGNFzpq56o8WsIIKcJFUCRQ==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz", + "integrity": "sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.8", "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, @@ -1693,13 +1677,12 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.7.tgz", - "integrity": "sha512-VtR8hDy7YLB7+Pet9IarXjg/zgCMSF+1mNS/EQEiEaUPoFXCVsHG64SIxcaaI2zJgRiv+YmgaQESUfWAdbjzgg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz", + "integrity": "sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.24.8" }, "engines": { "node": ">=6.9.0" @@ -1776,16 +1759,15 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.7.tgz", - "integrity": "sha512-1YZNsc+y6cTvWlDHidMBsQZrZfEFjRIo/BZCT906PMdzOyXtSLTgqGdrpcuTDCXyd11Am5uQULtDIcCfnTc8fQ==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.8.tgz", + "integrity": "sha512-vObvMZB6hNWuDxhSaEPTKCwcqkAIuDtE+bQGn4XMXne1DSLzFVY8Vmj1bm+mUQXYNN8NmaQEO+r8MMbzPr1jBQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.24.7", - "@babel/helper-compilation-targets": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-validator-option": "^7.24.7", + "@babel/compat-data": "^7.24.8", + "@babel/helper-compilation-targets": "^7.24.8", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-validator-option": "^7.24.8", "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.24.7", "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.24.7", "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.7", @@ -1816,9 +1798,9 @@ "@babel/plugin-transform-block-scoping": "^7.24.7", "@babel/plugin-transform-class-properties": "^7.24.7", "@babel/plugin-transform-class-static-block": "^7.24.7", - "@babel/plugin-transform-classes": "^7.24.7", + "@babel/plugin-transform-classes": "^7.24.8", "@babel/plugin-transform-computed-properties": "^7.24.7", - "@babel/plugin-transform-destructuring": "^7.24.7", + "@babel/plugin-transform-destructuring": "^7.24.8", "@babel/plugin-transform-dotall-regex": "^7.24.7", "@babel/plugin-transform-duplicate-keys": "^7.24.7", "@babel/plugin-transform-dynamic-import": "^7.24.7", @@ -1831,7 +1813,7 @@ "@babel/plugin-transform-logical-assignment-operators": "^7.24.7", "@babel/plugin-transform-member-expression-literals": "^7.24.7", "@babel/plugin-transform-modules-amd": "^7.24.7", - "@babel/plugin-transform-modules-commonjs": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", "@babel/plugin-transform-modules-systemjs": "^7.24.7", "@babel/plugin-transform-modules-umd": "^7.24.7", "@babel/plugin-transform-named-capturing-groups-regex": "^7.24.7", @@ -1841,7 +1823,7 @@ "@babel/plugin-transform-object-rest-spread": "^7.24.7", "@babel/plugin-transform-object-super": "^7.24.7", "@babel/plugin-transform-optional-catch-binding": "^7.24.7", - "@babel/plugin-transform-optional-chaining": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.8", "@babel/plugin-transform-parameters": "^7.24.7", "@babel/plugin-transform-private-methods": "^7.24.7", "@babel/plugin-transform-private-property-in-object": "^7.24.7", @@ -1852,7 +1834,7 @@ "@babel/plugin-transform-spread": "^7.24.7", "@babel/plugin-transform-sticky-regex": "^7.24.7", "@babel/plugin-transform-template-literals": "^7.24.7", - "@babel/plugin-transform-typeof-symbol": "^7.24.7", + "@babel/plugin-transform-typeof-symbol": "^7.24.8", "@babel/plugin-transform-unicode-escapes": "^7.24.7", "@babel/plugin-transform-unicode-property-regex": "^7.24.7", "@babel/plugin-transform-unicode-regex": "^7.24.7", @@ -1861,7 +1843,7 @@ "babel-plugin-polyfill-corejs2": "^0.4.10", "babel-plugin-polyfill-corejs3": "^0.10.4", "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.31.0", + "core-js-compat": "^3.37.1", "semver": "^6.3.1" }, "engines": { @@ -1922,20 +1904,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", - "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.8.tgz", + "integrity": "sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.7", + "@babel/generator": "^7.24.8", "@babel/helper-environment-visitor": "^7.24.7", "@babel/helper-function-name": "^7.24.7", "@babel/helper-hoist-variables": "^7.24.7", "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/types": "^7.24.7", + "@babel/parser": "^7.24.8", + "@babel/types": "^7.24.8", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -1954,13 +1935,12 @@ } }, "node_modules/@babel/types": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", - "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", + "version": "7.24.9", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.9.tgz", + "integrity": "sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-string-parser": "^7.24.8", "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" }, @@ -2501,11 +2481,10 @@ } }, "node_modules/@rushstack/eslint-patch": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.2.tgz", - "integrity": "sha512-hw437iINopmQuxWPSUEvqE56NCPsiU8N4AYtfHmJFckclktzK9YQJieD3XkDCDH4OjL+C7zgPUh73R/nrcHrqw==", - "dev": true, - "license": "MIT" + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz", + "integrity": "sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg==", + "dev": true }, "node_modules/@sinclair/typebox": { "version": "0.27.8", @@ -2830,22 +2809,19 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.8.0.tgz", - "integrity": "sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.15.0.tgz", + "integrity": "sha512-uiNHpyjZtFrLwLDpHnzaDlP3Tt6sGMqTCiqmxaN4n4RP0EfYZDODJyddiFDF44Hjwxr5xAcaYxVKm9QKQFJFLA==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/type-utils": "7.8.0", - "@typescript-eslint/utils": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", - "debug": "^4.3.4", + "@typescript-eslint/scope-manager": "7.15.0", + "@typescript-eslint/type-utils": "7.15.0", + "@typescript-eslint/utils": "7.15.0", + "@typescript-eslint/visitor-keys": "7.15.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", - "semver": "^7.6.0", "ts-api-utils": "^1.3.0" }, "engines": { @@ -2865,19 +2841,6 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/experimental-utils": { "version": "5.62.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz", @@ -3030,16 +2993,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.8.0.tgz", - "integrity": "sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.15.0.tgz", + "integrity": "sha512-k9fYuQNnypLFcqORNClRykkGOMOj+pV6V91R4GO/l1FDGwpqmSwoOQrOHo3cGaH63e+D3ZiCAOsuS/D2c99j/A==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/typescript-estree": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", + "@typescript-eslint/scope-manager": "7.15.0", + "@typescript-eslint/types": "7.15.0", + "@typescript-eslint/typescript-estree": "7.15.0", + "@typescript-eslint/visitor-keys": "7.15.0", "debug": "^4.3.4" }, "engines": { @@ -3059,14 +3021,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz", - "integrity": "sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.15.0.tgz", + "integrity": "sha512-Q/1yrF/XbxOTvttNVPihxh1b9fxamjEoz2Os/Pe38OHwxC24CyCqXxGTOdpb4lt6HYtqw9HetA/Rf6gDGaMPlw==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0" + "@typescript-eslint/types": "7.15.0", + "@typescript-eslint/visitor-keys": "7.15.0" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -3077,14 +3038,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.8.0.tgz", - "integrity": "sha512-H70R3AefQDQpz9mGv13Uhi121FNMh+WEaRqcXTX09YEDky21km4dV1ZXJIp8QjXc4ZaVkXVdohvWDzbnbHDS+A==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.15.0.tgz", + "integrity": "sha512-SkgriaeV6PDvpA6253PDVep0qCqgbO1IOBiycjnXsszNTVQe5flN5wR5jiczoEoDEnAqYFSFFc9al9BSGVltkg==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "7.8.0", - "@typescript-eslint/utils": "7.8.0", + "@typescript-eslint/typescript-estree": "7.15.0", + "@typescript-eslint/utils": "7.15.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -3105,11 +3065,10 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.8.0.tgz", - "integrity": "sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz", + "integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==", "dev": true, - "license": "MIT", "engines": { "node": "^18.18.0 || >=20.0.0" }, @@ -3119,14 +3078,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz", - "integrity": "sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.15.0.tgz", + "integrity": "sha512-gjyB/rHAopL/XxfmYThQbXbzRMGhZzGw6KpcMbfe8Q3nNQKStpxnUKeXb0KiN/fFDR42Z43szs6rY7eHk0zdGQ==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/visitor-keys": "7.8.0", + "@typescript-eslint/types": "7.15.0", + "@typescript-eslint/visitor-keys": "7.15.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -3152,7 +3110,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3161,19 +3118,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.8.0.tgz", - "integrity": "sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.15.0.tgz", + "integrity": "sha512-hfDMDqaqOqsUVGiEPSMLR/AjTSCsmJwjpKkYQRo1FNbmW4tBwBspYDwO9eh7sKSTwMQgBw9/T4DHudPaqshRWA==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@types/json-schema": "^7.0.15", - "@types/semver": "^7.5.8", - "@typescript-eslint/scope-manager": "7.8.0", - "@typescript-eslint/types": "7.8.0", - "@typescript-eslint/typescript-estree": "7.8.0", - "semver": "^7.6.0" + "@typescript-eslint/scope-manager": "7.15.0", + "@typescript-eslint/types": "7.15.0", + "@typescript-eslint/typescript-estree": "7.15.0" }, "engines": { "node": "^18.18.0 || >=20.0.0" @@ -3186,27 +3139,13 @@ "eslint": "^8.56.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz", - "integrity": "sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA==", + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.15.0.tgz", + "integrity": "sha512-Hqgy/ETgpt2L5xueA/zHHIl4fJI2O4XUE9l4+OIfbJIRSnTJb/QscncdqqZzofQegIJugRIF57OJea1khw2SDw==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/types": "7.8.0", + "@typescript-eslint/types": "7.15.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -3222,7 +3161,6 @@ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -10899,13 +10837,12 @@ "license": "MIT" }, "node_modules/react-simple-code-editor": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.11.3.tgz", - "integrity": "sha512-7bVI4Yd1aNCeuldErXUt8ksaAG5Fi+GZ6vp3mtFBnckKdzsQtrgkDvdwMFXIhwTGG+mUYmk5ZpMo0axSW9JBzA==", - "license": "MIT", + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/react-simple-code-editor/-/react-simple-code-editor-0.14.1.tgz", + "integrity": "sha512-BR5DtNRy+AswWJECyA17qhUDvrrCZ6zXOCfkQY5zSmb96BVUbpVAv03WpcjcwtCwiLbIANx3gebHOcXYn1EHow==", "peerDependencies": { - "react": "*", - "react-dom": "*" + "react": ">=16.8.0", + "react-dom": ">=16.8.0" } }, "node_modules/readable-stream": { @@ -11327,11 +11264,10 @@ "license": "MIT" }, "node_modules/sass": { - "version": "1.77.6", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.6.tgz", - "integrity": "sha512-ByXE1oLD79GVq9Ht1PeHWCPMPB8XHpBuz1r85oByKHjZY6qV6rWnQovQzXJXuQ/XyE1Oj3iPk3lo28uzaRA2/Q==", + "version": "1.77.8", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.8.tgz", + "integrity": "sha512-4UHg6prsrycW20fqLGPShtEvo/WyHRVRHwOP4DzkUrObWoWI05QBSfzU71TVB7PFaL104TwNaHpjlWXAZbQiNQ==", "dev": true, - "license": "MIT", "dependencies": { "chokidar": ">=3.0.0 <4.0.0", "immutable": "^4.0.0", @@ -12971,11 +12907,10 @@ } }, "node_modules/webpack": { - "version": "5.92.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.92.1.tgz", - "integrity": "sha512-JECQ7IwJb+7fgUFBlrJzbyu3GEuNBcdqr1LD7IbSzwkSmIevTm8PF+wej3Oxuz/JFBUZ6O1o43zsPkwm1C4TmA==", + "version": "5.93.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.93.0.tgz", + "integrity": "sha512-Y0m5oEY1LRuwly578VqluorkXbvXKh7U3rLoQCEO04M97ScRr44afGVkI0FQFsXzysk5OgFAxjZAb9rsGQVihA==", "dev": true, - "license": "MIT", "dependencies": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.5", diff --git a/search/search-dev-tools/package.json b/search/search-dev-tools/package.json index ae08d2bce8..71b6158e1b 100644 --- a/search/search-dev-tools/package.json +++ b/search/search-dev-tools/package.json @@ -14,7 +14,7 @@ "build/*" ], "devDependencies": { - "@automattic/eslint-plugin-wpvip": "^0.12.0", + "@automattic/eslint-plugin-wpvip": "^0.13.0", "@babel/core": "^7.23.2", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-object-assign": "^7.22.5", @@ -48,6 +48,6 @@ "pluralize": "^8.0.0", "preact": "^10.18.1", "prismjs": "^1.29.0", - "react-simple-code-editor": "^0.11.3" + "react-simple-code-editor": "^0.14.1" } } diff --git a/tests/test-divi-compatibility.php b/tests/test-divi-compatibility.php new file mode 100644 index 0000000000..f67efab53a --- /dev/null +++ b/tests/test-divi-compatibility.php @@ -0,0 +1,30 @@ +assertTrue( defined( 'ET_DISABLE_FILE_BASED_CACHE' ) ); + $this->assertTrue( constant( 'ET_DISABLE_FILE_BASED_CACHE' ) === true ); + + $this->assertTrue( defined( 'ET_BUILDER_CACHE_ASSETS' ) ); + $this->assertTrue( constant( 'ET_BUILDER_CACHE_ASSETS' ) === false ); + + $this->assertTrue( defined( 'ET_BUILDER_CACHE_MODULES' ) ); + $this->assertTrue( constant( 'ET_BUILDER_CACHE_MODULES' ) === false ); + + $this->assertTrue( defined( 'ET_CORE_CACHE_DIR' ) ); + $this->assertTrue( defined( 'ET_CORE_CACHE_DIR_URL' ) ); + + // Check if the filter is added + $this->assertTrue( has_filter( 'et_cache_wpfs_credentials' ) !== false ); + } +}