iThemes Security (formerly Better WP Security) - Version 8.1.3

Version Description

  • Important: iThemes Security now requires PHP 7.3 and WordPress 5.9 or later.
  • Security: Add support for encrypting Two-Factor Mobile App secrets. Enable via Tools -> Set Encryption Key.
  • Security: Deprecate Automatic Proxy Detection. Instead, manually configure Proxy Detection or use Security Check. Fix IP spoofing attacks.
  • Enhancement: Add "Ban Lockout" button to the Active Lockouts card.
  • Bug Fix: File Logs not rotating.
  • Bug Fix: PHP warning when loading Icon Fonts in certain configurations.
  • Bug Fix: Don't attempt to Hide Backend when a Cron request is being processed.
  • Bug Fix: Prevent entering invalid date values when selecting a custom date range in the Security Dashboard.
  • Bug Fix: Preliminary PHP 8.1 compatibility.
  • Bug Fix: File Change "notify_admin" settings validation error.
  • Thanks to Calvin Alkan for reporting the security issues fixed in this release.
Download this release

Release Info

Developer TimothyBlynJacobs
Plugin Icon 128x128 iThemes Security (formerly Better WP Security)
Version 8.1.3
Comparing to
See all releases

Code changes from version 8.1.2 to 8.1.3

Files changed (126) hide show
  1. better-wp-security.php +7 -7
  2. composer.json +58 -13
  3. core/admin-pages/entries/settings.js +3 -1
  4. core/admin-pages/entries/settings/pages/modules/index.js +27 -6
  5. core/admin-pages/entries/settings/pages/secure-site/style.scss +10 -0
  6. core/admin-pages/entries/settings/stores/onboard/actions.js +12 -5
  7. core/admin-pages/entries/settings/utils.js +52 -5
  8. core/admin-pages/logs-list-table.php +1 -1
  9. core/admin-pages/page-settings.php +11 -4
  10. core/composer.json +0 -32
  11. core/container.php +1 -1
  12. core/core.php +19 -2
  13. core/lib.php +109 -3
  14. core/lib/Legacy_Password_Requirement.php +5 -4
  15. core/lib/Module_Config.php +4 -0
  16. core/lib/Result.php +8 -3
  17. core/lib/admin-notices/actions/class-itsec-admin-notice-action-callback.php +4 -0
  18. core/lib/admin-notices/actions/class-itsec-admin-notice-action-link.php +32 -0
  19. core/lib/admin-notices/actions/interface-itsec-admin-notice-action.php +7 -0
  20. core/lib/class-itsec-ip-detector.php +22 -6
  21. core/lib/class-itsec-lib-distributed-storage.php +6 -19
  22. core/lib/class-itsec-lib-encryption.php +360 -0
  23. core/lib/class-itsec-lib-ip-detector.php +1 -1
  24. core/lib/class-itsec-lib-login-interstitial.php +122 -81
  25. core/lib/class-itsec-lib-login.php +20 -0
  26. core/lib/class-itsec-lib-static-map-api.php +1 -1
  27. core/lib/encryption/User_Encryption.php +39 -0
  28. core/lib/encryption/User_Encryption_Sodium.php +166 -0
  29. core/lib/encryption/User_Key_Rotator.php +41 -0
  30. core/{packages/components/src/toggle-control → lib/encryption}/index.php +0 -0
  31. core/lib/fingerprinting/class-itsec-fingerprint.php +1 -1
  32. core/lib/lockout/execute-lock/abstract-context.php +5 -4
  33. core/lib/login-interstitial/abstract-itsec-login-interstitial.php +9 -0
  34. core/lib/login-interstitial/util.js +15 -1
  35. core/lib/schema.php +83 -41
  36. core/lib/site-types/Question.php +1 -0
  37. core/lib/site-types/Question/Global_Question_Pack.php +49 -0
  38. core/lib/site-types/Type/Blog.php +2 -0
  39. core/lib/site-types/Type/Brochure.php +2 -0
  40. core/lib/site-types/Type/Ecommerce.php +2 -0
  41. core/lib/site-types/Type/Network.php +2 -0
  42. core/lib/site-types/Type/Non_Profit.php +2 -0
  43. core/lib/site-types/Type/Portfolio.php +2 -0
  44. core/lockout.php +104 -8
  45. core/module-schema.json +66 -0
  46. core/modules.php +15 -3
  47. core/modules/backup/container.php +1 -1
  48. core/modules/ban-users/container.php +1 -1
  49. core/modules/content-directory/module.json +1 -1
  50. core/modules/core/class-itsec-core-active.php +218 -13
  51. core/modules/core/class-rest-core-admin-notices-controller.php +3 -1
  52. core/modules/core/entries/admin-notices/components/notice/index.js +43 -3
  53. core/modules/core/entries/admin-notices/components/notice/style.scss +4 -0
  54. core/modules/core/entries/admin-notices/components/panel/style.scss +0 -2
  55. core/modules/core/module.json +42 -0
  56. core/modules/core/notices.php +276 -61
  57. core/modules/dashboard/cards/class-itsec-dashboard-card-active-lockouts.php +41 -2
  58. core/modules/dashboard/container.php +1 -1
  59. core/modules/dashboard/entries/dashboard/cards/active-lockouts/Detail.js +78 -123
  60. core/modules/dashboard/entries/dashboard/cards/active-lockouts/index.js +159 -34
  61. core/modules/dashboard/entries/dashboard/cards/active-lockouts/lockout-controller.js +0 -86
  62. core/modules/dashboard/entries/dashboard/components/card/header/date.js +86 -40
  63. core/modules/dashboard/entries/dashboard/components/card/header/style.scss +9 -0
  64. core/modules/dashboard/entries/dashboard/store/cards/actions.js +13 -2
  65. core/modules/file-change/module.json +4 -1
  66. core/modules/file-change/setup.php +1 -1
  67. core/modules/global/module.json +6 -2
  68. core/modules/global/notices.php +56 -0
  69. core/modules/hibp/container.php +3 -3
  70. core/modules/hide-backend/class-itsec-hide-backend.php +2 -2
  71. core/modules/promos/entries/settings/app.js +16 -12
  72. core/modules/security-check-pro/class-itsec-security-check-pro.php +8 -0
  73. core/modules/security-check-pro/module.json +17 -1
  74. core/modules/security-check-pro/setup.php +15 -0
  75. core/modules/security-check-pro/utility.php +67 -83
  76. core/modules/site-scanner/Model/Entry.php +1 -1
  77. core/modules/site-scanner/Model/Scan.php +1 -1
  78. core/modules/site-scanner/container.php +1 -1
  79. core/modules/strong-passwords/container.php +3 -3
  80. core/modules/two-factor/class-itsec-two-factor.php +7 -3
  81. core/modules/two-factor/includes/interface-itsec-two-factor-provider-cli-configurable.php +10 -0
  82. core/modules/two-factor/module.json +7 -2
  83. core/modules/two-factor/providers/class.two-factor-backup-codes.php +55 -27
  84. core/modules/two-factor/providers/class.two-factor-totp.php +211 -58
  85. core/modules/user-groups/User_Group.php +1 -1
  86. core/modules/user-groups/container.php +1 -1
  87. core/package.json +42 -41
  88. core/packages/components/src/error-list/index.js +4 -2
  89. core/packages/components/src/index.js +1 -1
  90. core/packages/components/src/message-list/index.js +87 -16
  91. core/packages/components/src/message-list/style.scss +0 -79
  92. core/packages/components/src/recommended-icon/index.js +27 -0
  93. {dist/vendors/backup → core/packages/components/src/recommended-icon}/index.php +0 -0
  94. core/packages/components/src/toggle-control/index.js +0 -68
  95. core/packages/components/src/toggle-control/style.scss +0 -3
  96. core/packages/data/src/actions.js +28 -1
  97. core/packages/data/src/bans/actions.js +5 -0
  98. core/packages/data/src/bans/reducers.js +5 -0
  99. core/packages/data/src/bans/selectors.js +11 -0
  100. core/packages/data/src/reducers.js +32 -0
  101. core/packages/data/src/resolvers.js +10 -1
  102. core/packages/data/src/selectors.js +52 -4
  103. core/packages/style-guide/src/animations.scss +0 -9
  104. core/packages/style-guide/src/config.scss +0 -1
  105. core/packages/utils/src/wp-error.js +19 -3
  106. core/packages/webpack/src/config/index.js +45 -33
  107. core/packages/webpack/src/custom-templated-path-webpack-plugin/index.js +1 -1
  108. core/packages/webpack/src/dynamic-public-path/index.js +3 -2
  109. core/packages/webpack/src/manifest/index.js +13 -9
  110. core/packages/webpack/src/wp-externals/index.js +1 -1
  111. core/rest.php +25 -2
  112. core/setup.php +9 -0
  113. dist/144.js +1 -0
  114. dist/15.js +2 -0
  115. dist/15.js.LICENSE.txt +14 -0
  116. dist/155.css +20 -0
  117. dist/155.js +1 -0
  118. dist/34.js +0 -1
  119. dist/379.js +1 -0
  120. dist/434.js +1 -0
  121. dist/469.js +1 -0
  122. dist/639.js +1 -0
  123. dist/680.js +1 -0
  124. dist/783.js +1 -0
  125. dist/904.js +2 -0
  126. dist/904.js.LICENSE.txt +43 -0
better-wp-security.php CHANGED
@@ -6,17 +6,17 @@
6
  * Description: Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.
7
  * Author: iThemes
8
  * Author URI: https://ithemes.com
9
- * Version: 8.1.2
10
  * Text Domain: better-wp-security
11
  * Network: True
12
  * License: GPLv2
13
- * Requires PHP: 7.0
14
- * Requires at least: 5.8
15
  */
16
 
17
- if ( version_compare( phpversion(), '7.0.0', '<' ) ) {
18
  function itsec_free_minimum_php_version_notice() {
19
- echo '<div class="notice notice-error"><p>' . esc_html__( 'iThemes Security requires PHP 7.0 or higher.', 'better-wp-security' ) . '</p></div>';
20
  }
21
 
22
  add_action( 'admin_notices', 'itsec_free_minimum_php_version_notice' );
@@ -24,9 +24,9 @@ if ( version_compare( phpversion(), '7.0.0', '<' ) ) {
24
  return;
25
  }
26
 
27
- if ( version_compare( $GLOBALS['wp_version'], '5.8', '<' ) ) {
28
  function itsec_minimum_wp_version_notice() {
29
- echo '<div class="notice notice-error"><p>' . esc_html__( 'iThemes Security requires WordPress 5.8 or later.', 'better-wp-security' ) . '</p></div>';
30
  }
31
 
32
  add_action( 'admin_notices', 'itsec_minimum_wp_version_notice' );
6
  * Description: Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.
7
  * Author: iThemes
8
  * Author URI: https://ithemes.com
9
+ * Version: 8.1.3
10
  * Text Domain: better-wp-security
11
  * Network: True
12
  * License: GPLv2
13
+ * Requires PHP: 7.3
14
+ * Requires at least: 5.9
15
  */
16
 
17
+ if ( version_compare( phpversion(), '7.3.0', '<' ) ) {
18
  function itsec_free_minimum_php_version_notice() {
19
+ echo '<div class="notice notice-error"><p>' . esc_html__( 'iThemes Security requires PHP 7.3 or higher.', 'better-wp-security' ) . '</p></div>';
20
  }
21
 
22
  add_action( 'admin_notices', 'itsec_free_minimum_php_version_notice' );
24
  return;
25
  }
26
 
27
+ if ( version_compare( $GLOBALS['wp_version'], '5.9', '<' ) ) {
28
  function itsec_minimum_wp_version_notice() {
29
+ echo '<div class="notice notice-error"><p>' . esc_html__( 'iThemes Security requires WordPress 5.9 or later.', 'better-wp-security' ) . '</p></div>';
30
  }
31
 
32
  add_action( 'admin_notices', 'itsec_minimum_wp_version_notice' );
composer.json CHANGED
@@ -1,34 +1,79 @@
1
  {
2
- "name": "ithemes/ithemes-security",
3
  "description": "Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.",
4
  "type": "wordpress-plugin",
 
 
 
 
 
5
  "license": "GPL-2.0-or-later",
6
  "authors": [
7
  {
8
  "name": "Timothy Jacobs",
9
  "email": "timothy@ithemes.com"
10
- },
11
- {
12
- "name": "Chris Jean",
13
- "email": "chris@ithemes.com"
14
  }
15
  ],
16
  "minimum-stability": "stable",
17
  "require": {
18
- "php": "^5.4 | ^7.0",
19
- "wikimedia/composer-merge-plugin": "^1.4"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  },
21
  "config": {
22
  "platform": {
23
- "php": "5.6.0"
 
 
 
24
  }
25
  },
 
 
 
 
 
 
 
 
 
 
 
26
  "extra": {
27
- "merge-plugin": {
28
- "require": [
29
- "core/composer.json"
30
- ],
31
- "merge-dev": false
 
 
 
 
 
 
 
 
 
 
 
32
  }
33
  }
34
  }
1
  {
2
+ "name": "ithemes/ithemes-security-pro",
3
  "description": "Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.",
4
  "type": "wordpress-plugin",
5
+ "require-dev": {
6
+ "ext-curl": "*",
7
+ "ext-json": "*",
8
+ "brianhenryie/strauss": "dev-master#1dcf3fb"
9
+ },
10
  "license": "GPL-2.0-or-later",
11
  "authors": [
12
  {
13
  "name": "Timothy Jacobs",
14
  "email": "timothy@ithemes.com"
 
 
 
 
15
  }
16
  ],
17
  "minimum-stability": "stable",
18
  "require": {
19
+ "php": "^7.3 | ^8.0",
20
+ "pimple/pimple": "^3.5"
21
+ },
22
+ "repositories": [
23
+ {
24
+ "type": "vcs",
25
+ "url": "https://github.com/TimothyBJacobs/strauss",
26
+ "no-api": true
27
+ }
28
+ ],
29
+ "autoload": {
30
+ "classmap": [
31
+ "core/Exception/",
32
+ "core/Contracts/",
33
+ "core/modules/",
34
+ "core/lib",
35
+ "vendor-prod"
36
+ ],
37
+ "exclude-from-classmap": [
38
+ "lib/itsec-zxcvbn-php"
39
+ ]
40
  },
41
  "config": {
42
  "platform": {
43
+ "php": "7.3.0"
44
+ },
45
+ "allow-plugins": {
46
+ "dealerdirect/phpcodesniffer-composer-installer": true
47
  }
48
  },
49
+ "scripts": {
50
+ "strauss": [
51
+ "vendor/bin/strauss"
52
+ ],
53
+ "post-install-cmd": [
54
+ "@strauss"
55
+ ],
56
+ "post-update-cmd": [
57
+ "@strauss"
58
+ ]
59
+ },
60
  "extra": {
61
+ "strauss": {
62
+ "target_directory": "vendor-prod",
63
+ "namespace_prefix": "iThemesSecurity\\Strauss",
64
+ "packages": [],
65
+ "exclude_from_copy": {
66
+ "packages": [
67
+ ]
68
+ },
69
+ "exclude_from_prefix": {
70
+ "packages": [
71
+ "symfony/polyfill-uuid"
72
+ ],
73
+ "file_patterns": []
74
+ },
75
+ "include_modified_date": false,
76
+ "include_author": false
77
  }
78
  }
79
  }
core/admin-pages/entries/settings.js CHANGED
@@ -14,8 +14,9 @@ setLocaleData( { '': {} }, 'better-wp-security' );
14
  import { createHistory } from './settings/history';
15
  import App from './settings/app.js';
16
 
 
 
17
  domReady( () => {
18
- const history = createHistory( document.location, { page: 'itsec' } );
19
  const containerEl = document.getElementById( 'itsec-settings-root' );
20
  const serverType = containerEl.dataset.serverType;
21
  const installType = containerEl.dataset.installType;
@@ -47,3 +48,4 @@ export {
47
  } from './settings/utils';
48
  export { STORE_NAME as ONBOARD_STORE_NAME } from './settings/stores/onboard';
49
  export { STORE_NAME as TOOLS_STORE_NAME } from './settings/stores/tools';
 
14
  import { createHistory } from './settings/history';
15
  import App from './settings/app.js';
16
 
17
+ const history = createHistory( document.location, { page: 'itsec' } );
18
+
19
  domReady( () => {
 
20
  const containerEl = document.getElementById( 'itsec-settings-root' );
21
  const serverType = containerEl.dataset.serverType;
22
  const installType = containerEl.dataset.installType;
48
  } from './settings/utils';
49
  export { STORE_NAME as ONBOARD_STORE_NAME } from './settings/stores/onboard';
50
  export { STORE_NAME as TOOLS_STORE_NAME } from './settings/stores/tools';
51
+ export { history };
core/admin-pages/entries/settings/pages/modules/index.js CHANGED
@@ -79,11 +79,7 @@ export default function Modules() {
79
  ( root === 'settings' ||
80
  module.onboard ||
81
  ( root === 'import' && dirty.includes( slug ) ) ) &&
82
- ( module.status.selected === 'active' ||
83
- ! validateModuleRequirements(
84
- module,
85
- 'activate'
86
- ).hasErrors() )
87
  ),
88
  'order'
89
  ),
@@ -130,6 +126,29 @@ export default function Modules() {
130
  );
131
  }
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  function ModuleTabPanel( { base, tabs } ) {
134
  const { child } = useParams();
135
  const navigateTo = useNavigateTo();
@@ -254,7 +273,9 @@ function Module( { module, statusToggle: StatusToggle } ) {
254
  tagName="p"
255
  id={ `itsec-module-description--${ module.id }` }
256
  />
257
- <StatusToggle module={ module } />
 
 
258
  <ErrorList
259
  apiError={ apiError }
260
  errors={ validRequirements.getAllErrorMessages() }
79
  ( root === 'settings' ||
80
  module.onboard ||
81
  ( root === 'import' && dirty.includes( slug ) ) ) &&
82
+ shouldShowModuleRequirementsCheck( validateModuleRequirements, module )
 
 
 
 
83
  ),
84
  'order'
85
  ),
126
  );
127
  }
128
 
129
+ /**
130
+ * Checks if a module should be shown because it passes any requirements check.
131
+ *
132
+ * Active modules are always shown.
133
+ *
134
+ * @param {Function} validator The module requirement validator.
135
+ * @param {Object} module The module definition.
136
+ * @return {boolean} True if the module should be hidden.
137
+ */
138
+ function shouldShowModuleRequirementsCheck( validator, module ) {
139
+ if ( module.status.selected === 'active' ) {
140
+ return true;
141
+ }
142
+
143
+ const result = validator( module, 'activate' );
144
+
145
+ if ( ! result.hasErrors() ) {
146
+ return true;
147
+ }
148
+
149
+ return result.getErrorCodes().some( ( code ) => result.getErrorData( code )[ 0 ].showMessageIfUnmet );
150
+ }
151
+
152
  function ModuleTabPanel( { base, tabs } ) {
153
  const { child } = useParams();
154
  const navigateTo = useNavigateTo();
273
  tagName="p"
274
  id={ `itsec-module-description--${ module.id }` }
275
  />
276
+ { ( module.status.selected === 'active' || ! validRequirements.hasErrors() ) && (
277
+ <StatusToggle module={ module } />
278
+ ) }
279
  <ErrorList
280
  apiError={ apiError }
281
  errors={ validRequirements.getAllErrorMessages() }
core/admin-pages/entries/settings/pages/secure-site/style.scss CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  .itsec-secure-site-steps {
2
  .itsec-accordion__header-icon {
3
  color: $main-blue;
1
+ @keyframes itsec-animation-fade-in-constant {
2
+ from {
3
+ opacity: 0;
4
+ }
5
+
6
+ to {
7
+ opacity: 1;
8
+ }
9
+ }
10
+
11
  .itsec-secure-site-steps {
12
  .itsec-accordion__header-icon {
13
  color: $main-blue;
core/admin-pages/entries/settings/stores/onboard/actions.js CHANGED
@@ -89,14 +89,21 @@ export function* repeatQuestion() {
89
 
90
  export function* applyAnswerResponse() {
91
  const answers = yield controls.select( STORE_NAME, 'getAnswers' );
 
92
 
93
  for ( const answer of answers ) {
94
  for ( const module of answer.modules ) {
95
- yield controls.dispatch( MODULES_STORE_NAME, 'editModule', module, {
96
- status: {
97
- selected: 'active',
98
- },
99
- } );
 
 
 
 
 
 
100
  }
101
 
102
  for ( const module in answer.settings ) {
89
 
90
  export function* applyAnswerResponse() {
91
  const answers = yield controls.select( STORE_NAME, 'getAnswers' );
92
+ const modules = yield controls.resolveSelect( MODULES_STORE_NAME, 'getModules' );
93
 
94
  for ( const answer of answers ) {
95
  for ( const module of answer.modules ) {
96
+ const config = modules.find( ( { id } ) => id === module );
97
+
98
+ if ( config?.side_effects ) {
99
+ yield controls.dispatch( MODULES_STORE_NAME, 'activateModule', module );
100
+ } else {
101
+ yield controls.dispatch( MODULES_STORE_NAME, 'editModule', module, {
102
+ status: {
103
+ selected: 'active',
104
+ },
105
+ } );
106
+ }
107
  }
108
 
109
  for ( const module in answer.settings ) {
core/admin-pages/entries/settings/utils.js CHANGED
@@ -19,7 +19,7 @@ import {
19
  } from '@wordpress/element';
20
  import { useDispatch, useSelect, useRegistry } from '@wordpress/data';
21
  import { applyFilters } from '@wordpress/hooks';
22
- import { __, sprintf } from '@wordpress/i18n';
23
 
24
  /**
25
  * Internal dependencies
@@ -385,13 +385,19 @@ export function getModuleTypes() {
385
  }
386
 
387
  export function useModuleRequirementsValidator() {
388
- const { featureFlags } = useSelect(
389
  ( select ) => ( {
390
  featureFlags: select( CORE_STORE_NAME ).getFeatureFlags(),
 
 
391
  } ),
392
  []
393
  );
394
 
 
 
 
 
395
  return useCallback(
396
  ( module, mode ) => {
397
  const error = new WPError();
@@ -408,7 +414,7 @@ export function useModuleRequirementsValidator() {
408
  isForMode( module.requirements.ssl ) &&
409
  document.location.protocol !== 'https:'
410
  ) {
411
- error.add( 'ssl', __( 'Your site must support SSL.', 'better-wp-security' ) );
412
  }
413
 
414
  if (
@@ -427,15 +433,56 @@ export function useModuleRequirementsValidator() {
427
  'better-wp-security'
428
  ),
429
  flag
430
- )
 
431
  );
432
  }
433
  }
434
  }
435
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  return error;
437
  },
438
- [ featureFlags ]
439
  );
440
  }
441
 
19
  } from '@wordpress/element';
20
  import { useDispatch, useSelect, useRegistry } from '@wordpress/data';
21
  import { applyFilters } from '@wordpress/hooks';
22
+ import { __, _n, sprintf } from '@wordpress/i18n';
23
 
24
  /**
25
  * Internal dependencies
385
  }
386
 
387
  export function useModuleRequirementsValidator() {
388
+ const { featureFlags, siteInfo, requirementsInfo } = useSelect(
389
  ( select ) => ( {
390
  featureFlags: select( CORE_STORE_NAME ).getFeatureFlags(),
391
+ siteInfo: select( CORE_STORE_NAME ).getSiteInfo(),
392
+ requirementsInfo: select( CORE_STORE_NAME ).getRequirementsInfo(),
393
  } ),
394
  []
395
  );
396
 
397
+ const isVersionAtLeast = ( version, atLeast ) => {
398
+ return version.localeCompare( atLeast, undefined, { numeric: true, sensitivity: 'base' } ) >= 0;
399
+ };
400
+
401
  return useCallback(
402
  ( module, mode ) => {
403
  const error = new WPError();
414
  isForMode( module.requirements.ssl ) &&
415
  document.location.protocol !== 'https:'
416
  ) {
417
+ error.add( 'ssl', __( 'Your site must support SSL.', 'better-wp-security' ), module.requirements.ssl );
418
  }
419
 
420
  if (
433
  'better-wp-security'
434
  ),
435
  flag
436
+ ),
437
+ module.requirements[ 'feature-flags' ]
438
  );
439
  }
440
  }
441
  }
442
 
443
+ if ( module.requirements.multisite && isForMode( module.requirements.multisite ) ) {
444
+ if ( module.requirements.multisite.status === 'enabled' && siteInfo?.multisite === false ) {
445
+ error.add( 'multisite', __( 'Multisite must be enabled.', 'better-wp-security' ), module.requirements.multisite );
446
+ } else if ( module.requirements.multisite.status === 'disabled' && siteInfo?.multisite === true ) {
447
+ error.add( 'multisite', __( 'Multisite is not supported.', 'better-wp-security' ), module.requirements.multisite );
448
+ }
449
+ }
450
+
451
+ if ( module.requirements.server && isForMode( module.requirements.server ) && requirementsInfo ) {
452
+ if ( module.requirements.server.php && ! isVersionAtLeast( requirementsInfo.server.php, module.requirements.server.php ) ) {
453
+ error.add( 'server', sprintf(
454
+ /* translators: The PHP version. */
455
+ __( 'You must be running PHP version %s or later.', 'better-wp-security' ),
456
+ module.requirements.server.php
457
+ ), module.requirements.server );
458
+ }
459
+
460
+ const missingExtensions = ( module.requirements.server.extensions || [] )
461
+ .filter( ( extension ) => ! requirementsInfo.server.extensions[ extension ] );
462
+
463
+ if ( missingExtensions.length === 1 ) {
464
+ error.add( 'server', sprintf(
465
+ /* translators: PHP Extension name. */
466
+ __( 'The %s PHP extension is required.', 'better-wp-security' ),
467
+ missingExtensions[ 0 ]
468
+ ), module.requirements.server );
469
+ } else if ( missingExtensions.length > 0 ) {
470
+ error.add( 'server', sprintf(
471
+ /* translators: List of PHP extensions */
472
+ _n(
473
+ 'The following PHP extension is required: %l.',
474
+ 'The following PHP extensions are required: %l.',
475
+ missingExtensions.length,
476
+ 'better-wp-security'
477
+ ).replace( '%l', '%s' ),
478
+ missingExtensions.join( ', ' )
479
+ ), module.requirements.server );
480
+ }
481
+ }
482
+
483
  return error;
484
  },
485
+ [ featureFlags, siteInfo, requirementsInfo ]
486
  );
487
  }
488
 
core/admin-pages/logs-list-table.php CHANGED
@@ -143,7 +143,7 @@ final class ITSEC_Logs_List_Table extends ITSEC_WP_List_Table {
143
  $vars = array_merge( array( 'page' => $_GET['page'] ), $vars );
144
  }
145
 
146
- return network_admin_url( 'admin.php?' . http_build_query( $vars, null, '&' ) );
147
  }
148
 
149
  /**
143
  $vars = array_merge( array( 'page' => $_GET['page'] ), $vars );
144
  }
145
 
146
+ return network_admin_url( 'admin.php?' . http_build_query( $vars, '', '&' ) );
147
  }
148
 
149
  /**
core/admin-pages/page-settings.php CHANGED
@@ -4,10 +4,6 @@ add_action( 'admin_enqueue_scripts', function () {
4
  '/ithemes-security/v1/site-types' => [
5
  'route' => '/ithemes-security/v1/site-types',
6
  ],
7
- '/ithemes-security/v1?context=help' => [
8
- 'route' => '/ithemes-security/v1',
9
- 'query' => [ 'context' => 'help' ],
10
- ],
11
  '/ithemes-security/v1/user-matchables?_embed=1' => [
12
  'route' => '/ithemes-security/v1/user-matchables',
13
  'embed' => true,
@@ -40,6 +36,17 @@ add_action( 'admin_enqueue_scripts', function () {
40
  }
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
43
  remove_action( 'admin_head', 'wp_admin_canonical_url' );
44
  } );
45
 
4
  '/ithemes-security/v1/site-types' => [
5
  'route' => '/ithemes-security/v1/site-types',
6
  ],
 
 
 
 
7
  '/ithemes-security/v1/user-matchables?_embed=1' => [
8
  'route' => '/ithemes-security/v1/user-matchables',
9
  'embed' => true,
36
  }
37
  }
38
 
39
+ $request = new WP_REST_Request( 'GET', '/ithemes-security/v1' );
40
+ $request->set_query_params( [ 'context' => 'help' ] );
41
+ $site_info = rest_do_request( $request );
42
+
43
+ if ( ! $site_info->is_error() ) {
44
+ wp_add_inline_script( 'itsec-packages-data', sprintf(
45
+ "wp.data.dispatch( 'ithemes-security/core' ).receiveIndex( %s );",
46
+ wp_json_encode( $site_info->get_data() )
47
+ ) );
48
+ }
49
+
50
  remove_action( 'admin_head', 'wp_admin_canonical_url' );
51
  } );
52
 
core/composer.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "name": "ithemes/ithemes-security-core",
3
- "description": "iThemes Security Core",
4
- "type": "project",
5
- "require": {
6
- "pimple/pimple": "^3.2"
7
- },
8
- "license": "GPL-2.0-or-later",
9
- "authors": [
10
- {
11
- "name": "Timothy Jacobs",
12
- "email": "timothy@ithemes.com"
13
- },
14
- {
15
- "name": "Chris Jean",
16
- "email": "chris@ithemes.com"
17
- }
18
- ],
19
- "minimum-stability": "stable",
20
- "autoload": {
21
- "classmap": [
22
- "Exception/",
23
- "Contracts/",
24
- "modules/",
25
- "lib"
26
- ],
27
- "exclude-from-classmap": [
28
- "lib/itsec-zxcvbn-php",
29
- "modules/pro"
30
- ]
31
- }
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/container.php CHANGED
@@ -5,7 +5,7 @@ namespace iThemesSecurity;
5
  use iThemesSecurity\Lib\REST;
6
  use iThemesSecurity\Lib\Site_Types;
7
  use ITSEC_Lib_Upgrader;
8
- use Pimple\Container;
9
  use wpdb;
10
 
11
  return static function ( Container $c ) {
5
  use iThemesSecurity\Lib\REST;
6
  use iThemesSecurity\Lib\Site_Types;
7
  use ITSEC_Lib_Upgrader;
8
+ use iThemesSecurity\Strauss\Pimple\Container;
9
  use wpdb;
10
 
11
  return static function ( Container $c ) {
core/core.php CHANGED
@@ -27,7 +27,7 @@ if ( ! class_exists( 'ITSEC_Core' ) ) {
27
  *
28
  * @access private
29
  */
30
- private $plugin_build = 4124;
31
 
32
  /**
33
  * Used to distinguish between a user modifying settings and the API modifying settings (such as from Sync
@@ -284,7 +284,7 @@ if ( ! class_exists( 'ITSEC_Core' ) ) {
284
  private function setup_tables() {
285
  global $wpdb;
286
 
287
- $wpdb->global_tables = array_merge( $wpdb->global_tables, ITSEC_Schema::TABLES );
288
  }
289
 
290
  private function setup_scheduler() {
@@ -877,6 +877,14 @@ if ( ! class_exists( 'ITSEC_Core' ) ) {
877
  return sprintf( '<a href="%s" data-itsec-path="%s">', esc_attr( $url ), esc_attr( $path ) );
878
  }
879
 
 
 
 
 
 
 
 
 
880
  /**
881
  * Gets the URL for the Security Check page.
882
  *
@@ -1188,6 +1196,15 @@ if ( ! class_exists( 'ITSEC_Core' ) ) {
1188
  return $self->version;
1189
  }
1190
 
 
 
 
 
 
 
 
 
 
1191
  /**
1192
  * Gets the UTM campaign based on the Install Type.
1193
  *
27
  *
28
  * @access private
29
  */
30
+ private $plugin_build = 4126;
31
 
32
  /**
33
  * Used to distinguish between a user modifying settings and the API modifying settings (such as from Sync
284
  private function setup_tables() {
285
  global $wpdb;
286
 
287
+ $wpdb->global_tables = array_merge( $wpdb->global_tables, ITSEC_Schema::get_table_names() );
288
  }
289
 
290
  private function setup_scheduler() {
877
  return sprintf( '<a href="%s" data-itsec-path="%s">', esc_attr( $url ), esc_attr( $path ) );
878
  }
879
 
880
+ public static function get_tools_route( string $tool ): string {
881
+ return '/settings/tools#' . $tool;
882
+ }
883
+
884
+ public static function get_url_for_tools_route( string $tool ): string {
885
+ return self::get_url_for_settings_route( '/settings/tools' ) . '#' . $tool;
886
+ }
887
+
888
  /**
889
  * Gets the URL for the Security Check page.
890
  *
1196
  return $self->version;
1197
  }
1198
 
1199
+ /**
1200
+ * Gets the PHP version that is going to be required soon.
1201
+ *
1202
+ * @return string
1203
+ */
1204
+ public static function get_next_php_requirement(): string {
1205
+ return '7.3.0';
1206
+ }
1207
+
1208
  /**
1209
  * Gets the UTM campaign based on the Install Type.
1210
  *
core/lib.php CHANGED
@@ -1172,6 +1172,20 @@ final class ITSEC_Lib {
1172
  return $array;
1173
  }
1174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1175
  /**
1176
  * Merges two arrays recursively such that only arrays are deeply merged.
1177
  *
@@ -2331,6 +2345,23 @@ final class ITSEC_Lib {
2331
  return $wp_error;
2332
  }
2333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2334
  /**
2335
  * Evaluate whether this site passes the given requirements.
2336
  *
@@ -2366,6 +2397,25 @@ final class ITSEC_Lib {
2366
  'type' => 'string',
2367
  ],
2368
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2369
  ],
2370
  ];
2371
 
@@ -2414,6 +2464,48 @@ final class ITSEC_Lib {
2414
  }
2415
  }
2416
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2417
  }
2418
  }
2419
 
@@ -2572,18 +2664,18 @@ final class ITSEC_Lib {
2572
  /**
2573
  * Extends a service definition, ignoring if the service has been frozen.
2574
  *
2575
- * @param \Pimple\Container $c
2576
  * @param string $id
2577
  * @param callable $extend
2578
  *
2579
  * @return bool
2580
  */
2581
- public static function extend_if_able( \Pimple\Container $c, string $id, callable $extend ): bool {
2582
  try {
2583
  $c->extend( $id, $extend );
2584
 
2585
  return true;
2586
- } catch ( \Pimple\Exception\FrozenServiceException $e ) {
2587
  return false;
2588
  }
2589
  }
@@ -2648,4 +2740,18 @@ final class ITSEC_Lib {
2648
  wp_rand( 0, 0xffff )
2649
  );
2650
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2651
  }
1172
  return $array;
1173
  }
1174
 
1175
+ /**
1176
+ * Removes any number of items from a list.
1177
+ *
1178
+ * Values are loosely compared.
1179
+ *
1180
+ * @param array $array
1181
+ * @param ...$values
1182
+ *
1183
+ * @return array
1184
+ */
1185
+ public static function array_pull( array $array, ...$values ): array {
1186
+ return array_values( array_diff( $array, $values ) );
1187
+ }
1188
+
1189
  /**
1190
  * Merges two arrays recursively such that only arrays are deeply merged.
1191
  *
2345
  return $wp_error;
2346
  }
2347
 
2348
+ /**
2349
+ * Get info used to help evaluate requirements according to
2350
+ * {@see ITSEC_Lib::evaluate_requirements()}.
2351
+ *
2352
+ * @return array[]
2353
+ */
2354
+ public static function get_requirements_info(): array {
2355
+ return [
2356
+ 'server' => [
2357
+ 'php' => explode( '-', PHP_VERSION )[0],
2358
+ 'extensions' => [
2359
+ 'OpenSSL' => self::is_func_allowed( 'openssl_verify' ),
2360
+ ],
2361
+ ]
2362
+ ];
2363
+ }
2364
+
2365
  /**
2366
  * Evaluate whether this site passes the given requirements.
2367
  *
2397
  'type' => 'string',
2398
  ],
2399
  ],
2400
+ 'multisite' => [
2401
+ 'type' => 'string',
2402
+ 'enum' => [ 'enabled', 'disabled' ],
2403
+ ],
2404
+ 'server' => [
2405
+ 'type' => 'object',
2406
+ 'properties' => [
2407
+ 'php' => [
2408
+ 'type' => 'string',
2409
+ ],
2410
+ 'extensions' => [
2411
+ 'type' => 'array',
2412
+ 'items' => [
2413
+ 'type' => 'string',
2414
+ 'enum' => [ 'OpenSSL' ],
2415
+ ],
2416
+ ],
2417
+ ],
2418
+ ],
2419
  ],
2420
  ];
2421
 
2464
  }
2465
  }
2466
  break;
2467
+ case 'multisite':
2468
+ if ( $requirement === 'enabled' && ! is_multisite() ) {
2469
+ $error->add(
2470
+ 'multisite',
2471
+ __( 'Multisite must be enabled.', 'better-wp-security' )
2472
+ );
2473
+ } elseif ( $requirement === 'disabled' && is_multisite() ) {
2474
+ $error->add(
2475
+ 'multisite',
2476
+ __( 'Multisite is not supported.', 'better-wp-security' )
2477
+ );
2478
+ }
2479
+ break;
2480
+ case 'server':
2481
+ $info = self::get_requirements_info();
2482
+
2483
+ if ( isset( $requirement['php'] ) && version_compare( $info['server']['php'], $requirement['php'], '<' ) ) {
2484
+ $error->add( 'server', sprintf( __( 'You must be running PHP version %s or later.', 'better-wp-security' ), $requirement['php'] ) );
2485
+ }
2486
+
2487
+ $missing = array_filter( $requirement['extensions'] ?? [], function ( $extension ) use ( $info ) {
2488
+ return empty( $info['server']['extensions'][ $extension ] );
2489
+ } );
2490
+
2491
+ if ( $missing ) {
2492
+ if ( count( $missing ) === 1 ) {
2493
+ $message = sprintf( __( 'The %s PHP extension is required.', 'better-wp-security' ), ITSEC_Lib::first( $missing ) );
2494
+ } else {
2495
+ $message = wp_sprintf(
2496
+ _n(
2497
+ 'The following PHP extension is required: %l.',
2498
+ 'The following PHP extensions are required: %l.',
2499
+ count( $missing ),
2500
+ 'better-wp-security'
2501
+ ),
2502
+ $missing
2503
+ );
2504
+ }
2505
+
2506
+ $error->add( 'server', $message );
2507
+ }
2508
+ break;
2509
  }
2510
  }
2511
 
2664
  /**
2665
  * Extends a service definition, ignoring if the service has been frozen.
2666
  *
2667
+ * @param \iThemesSecurity\Strauss\Pimple\Container $c
2668
  * @param string $id
2669
  * @param callable $extend
2670
  *
2671
  * @return bool
2672
  */
2673
+ public static function extend_if_able( \iThemesSecurity\Strauss\Pimple\Container $c, string $id, callable $extend ): bool {
2674
  try {
2675
  $c->extend( $id, $extend );
2676
 
2677
  return true;
2678
+ } catch ( \iThemesSecurity\Strauss\Pimple\Exception\FrozenServiceException $e ) {
2679
  return false;
2680
  }
2681
  }
2740
  wp_rand( 0, 0xffff )
2741
  );
2742
  }
2743
+
2744
+ public static function recursively_json_serialize( $value ) {
2745
+ if ( $value instanceof JsonSerializable ) {
2746
+ return $value->jsonSerialize();
2747
+ }
2748
+
2749
+ if ( is_array( $value ) ) {
2750
+ foreach ( $value as $k => $v ) {
2751
+ $value[ $k ] = self::recursively_json_serialize( $v );
2752
+ }
2753
+ }
2754
+
2755
+ return $value;
2756
+ }
2757
  }
core/lib/Legacy_Password_Requirement.php CHANGED
@@ -109,23 +109,24 @@ final class Legacy_Password_Requirement implements Password_Requirement, \ArrayA
109
  return false;
110
  }
111
 
112
- public function getIterator() {
113
  return new \ArrayIterator( $this->config );
114
  }
115
 
116
- public function offsetExists( $offset ) {
117
  return isset( $this->config[ $offset ] );
118
  }
119
 
 
120
  public function offsetGet( $offset ) {
121
  return $this->config[ $offset ] ?? null;
122
  }
123
 
124
- public function offsetSet( $offset, $value ) {
125
 
126
  }
127
 
128
- public function offsetUnset( $offset ) {
129
 
130
  }
131
  }
109
  return false;
110
  }
111
 
112
+ public function getIterator(): \Traversable {
113
  return new \ArrayIterator( $this->config );
114
  }
115
 
116
+ public function offsetExists( $offset ): bool {
117
  return isset( $this->config[ $offset ] );
118
  }
119
 
120
+ #[\ReturnTypeWillChange]
121
  public function offsetGet( $offset ) {
122
  return $this->config[ $offset ] ?? null;
123
  }
124
 
125
+ public function offsetSet( $offset, $value ): void {
126
 
127
  }
128
 
129
+ public function offsetUnset( $offset ): void {
130
 
131
  }
132
  }
core/lib/Module_Config.php CHANGED
@@ -159,6 +159,10 @@ final class Module_Config {
159
  return $this->get_config()['import-export']['exclude-settings'] ?? [];
160
  }
161
 
 
 
 
 
162
  /**
163
  * Translates user-facing strings and returns a new
164
  * config instance with those translations applied.
159
  return $this->get_config()['import-export']['exclude-settings'] ?? [];
160
  }
161
 
162
+ public function get_encrypted_user_meta_keys(): array {
163
+ return $this->get_config()['encryption']['user-meta'] ?? [];
164
+ }
165
+
166
  /**
167
  * Translates user-facing strings and returns a new
168
  * config instance with those translations applied.
core/lib/Result.php CHANGED
@@ -49,8 +49,8 @@ final class Result {
49
  return $self;
50
  }
51
 
52
- public static function combine( Result ...$results ): self {
53
- return self::combine_with_success_data( null, ...$results );
54
  }
55
 
56
  /**
@@ -149,7 +149,12 @@ final class Result {
149
 
150
  public function as_rest_response(): \WP_REST_Response {
151
  if ( $this->is_success() ) {
152
- $data = $this->get_data();
 
 
 
 
 
153
  $response = new \WP_REST_Response( $data, $data ? 200 : 204 );
154
  } else {
155
  $response = \ITSEC_Lib_REST::error_to_response( $this->get_error() );
49
  return $self;
50
  }
51
 
52
+ public static function combine( ?Result ...$results ): self {
53
+ return self::combine_with_success_data( null, ...array_filter( $results ) );
54
  }
55
 
56
  /**
149
 
150
  public function as_rest_response(): \WP_REST_Response {
151
  if ( $this->is_success() ) {
152
+ $data = $this->get_data();
153
+
154
+ if ( $data instanceof \JsonSerializable ) {
155
+ $data = $data->jsonSerialize();
156
+ }
157
+
158
  $response = new \WP_REST_Response( $data, $data ? 200 : 204 );
159
  } else {
160
  $response = \ITSEC_Lib_REST::error_to_response( $this->get_error() );
core/lib/admin-notices/actions/class-itsec-admin-notice-action-callback.php CHANGED
@@ -34,4 +34,8 @@ class ITSEC_Admin_Notice_Action_Callback implements ITSEC_Admin_Notice_Action {
34
  public function get_uri() {
35
  return '';
36
  }
 
 
 
 
37
  }
34
  public function get_uri() {
35
  return '';
36
  }
37
+
38
+ public function get_route(): string {
39
+ return '';
40
+ }
41
  }
core/lib/admin-notices/actions/class-itsec-admin-notice-action-link.php CHANGED
@@ -5,6 +5,9 @@ final class ITSEC_Admin_Notice_Action_Link implements ITSEC_Admin_Notice_Action
5
  /** @var string */
6
  private $uri;
7
 
 
 
 
8
  /** @var string */
9
  private $title;
10
 
@@ -24,11 +27,36 @@ final class ITSEC_Admin_Notice_Action_Link implements ITSEC_Admin_Notice_Action
24
  */
25
  public function __construct( $uri, $title, $style = self::S_LINK, $callback = null ) {
26
  $this->uri = $uri;
 
27
  $this->title = $title;
28
  $this->style = $style;
29
  $this->callback = $callback;
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  public function handle( WP_User $user, array $data ) {
33
  return $this->callback ? call_user_func( $this->callback, $user, $data ) : null;
34
  }
@@ -44,4 +72,8 @@ final class ITSEC_Admin_Notice_Action_Link implements ITSEC_Admin_Notice_Action
44
  public function get_uri() {
45
  return $this->uri;
46
  }
 
 
 
 
47
  }
5
  /** @var string */
6
  private $uri;
7
 
8
+ /** @var string */
9
+ private $route;
10
+
11
  /** @var string */
12
  private $title;
13
 
27
  */
28
  public function __construct( $uri, $title, $style = self::S_LINK, $callback = null ) {
29
  $this->uri = $uri;
30
+ $this->route = '';
31
  $this->title = $title;
32
  $this->style = $style;
33
  $this->callback = $callback;
34
  }
35
 
36
+ /**
37
+ * Builds a Link action for a settings page route.
38
+ *
39
+ * @param string $route
40
+ * @param string $title
41
+ * @param string $style
42
+ * @param callable|null $callback
43
+ *
44
+ * @return ITSEC_Admin_Notice_Action_Link
45
+ */
46
+ public static function for_route( string $route, string $title, string $style = self::S_LINK, callable $callback = null ): self {
47
+ $bits = explode( '#', $route );
48
+ $uri = ITSEC_Core::get_url_for_settings_route( $bits[0] );
49
+
50
+ if ( isset( $bits[1] ) ) {
51
+ $uri .= '#' . $bits[1];
52
+ }
53
+
54
+ $action = new self( $uri, $title, $style, $callback );
55
+ $action->route = $route;
56
+
57
+ return $action;
58
+ }
59
+
60
  public function handle( WP_User $user, array $data ) {
61
  return $this->callback ? call_user_func( $this->callback, $user, $data ) : null;
62
  }
72
  public function get_uri() {
73
  return $this->uri;
74
  }
75
+
76
+ public function get_route(): string {
77
+ return $this->route;
78
+ }
79
  }
core/lib/admin-notices/actions/interface-itsec-admin-notice-action.php CHANGED
@@ -37,5 +37,12 @@ interface ITSEC_Admin_Notice_Action {
37
  * @return string URI or empty string
38
  */
39
  public function get_uri();
 
 
 
 
 
 
 
40
  }
41
 
37
  * @return string URI or empty string
38
  */
39
  public function get_uri();
40
+
41
+ /**
42
+ * Gets the JS route that should be navigated to when triggering this action.
43
+ *
44
+ * @return string
45
+ */
46
+ public function get_route(): string;
47
  }
48
 
core/lib/class-itsec-ip-detector.php CHANGED
@@ -7,6 +7,9 @@
7
  */
8
  class ITSEC_IP_Detector {
9
 
 
 
 
10
  /** @var array */
11
  private $server;
12
 
@@ -31,11 +34,15 @@ class ITSEC_IP_Detector {
31
  * @param string $header The header name.
32
  * @param int $position If multiple IPs are included in this header,
33
  * the 0-based position of the IP to return.
 
 
 
 
34
  *
35
  * @return $this
36
  */
37
- public function add_header( $header, $position = - 1 ) {
38
- $this->headers[] = [ $header, $position ];
39
 
40
  return $this;
41
  }
@@ -61,8 +68,8 @@ class ITSEC_IP_Detector {
61
  * @return string
62
  */
63
  private function get_ip() {
64
- foreach ( $this->headers as list( $header, $position ) ) {
65
- $ip = $this->get_for_header( $header, $position );
66
 
67
  if ( ! $ip ) {
68
  continue;
@@ -87,10 +94,11 @@ class ITSEC_IP_Detector {
87
  *
88
  * @param string $header
89
  * @param int $position
 
90
  *
91
  * @return string
92
  */
93
- private function get_for_header( $header, $position ) {
94
  if ( empty( $this->server[ $header ] ) ) {
95
  return '';
96
  }
@@ -98,11 +106,15 @@ class ITSEC_IP_Detector {
98
  $value = trim( $this->server[ $header ] );
99
 
100
  if ( - 1 === $position ) {
101
- return explode( ',', $value )[0];
102
  }
103
 
104
  // Handle Forwarded: header syntax https://tools.ietf.org/html/rfc7239#section-4
105
  if ( preg_match_all( '{(?:for)=(?:"?\[?)([a-z0-9\.:_\-/]*)}i', $value, $matches, PREG_SET_ORDER ) ) {
 
 
 
 
106
  if ( ! empty( $matches[ $position ][1] ) ) {
107
  return $matches[ $position ][1];
108
  }
@@ -110,6 +122,10 @@ class ITSEC_IP_Detector {
110
 
111
  $parts = preg_split( '/[, ]/', $value );
112
 
 
 
 
 
113
  if ( ! empty( $parts[ $position ] ) ) {
114
  return $parts[ $position ];
115
  }
7
  */
8
  class ITSEC_IP_Detector {
9
 
10
+ public const FROM_LEFT = 'left';
11
+ public const FROM_RIGHT = 'right';
12
+
13
  /** @var array */
14
  private $server;
15
 
34
  * @param string $header The header name.
35
  * @param int $position If multiple IPs are included in this header,
36
  * the 0-based position of the IP to return.
37
+ * @param string $from Where the position is based from. Note, only use
38
+ * right-based indexes. Left-based indexes are not
39
+ * secure and only maintained for legacy compatibility.
40
+ * It will generate a warning in a future releases.
41
  *
42
  * @return $this
43
  */
44
+ public function add_header( $header, $position = - 1, $from = self::FROM_LEFT ) {
45
+ $this->headers[] = [ $header, $position, $from ];
46
 
47
  return $this;
48
  }
68
  * @return string
69
  */
70
  private function get_ip() {
71
+ foreach ( $this->headers as list( $header, $position, $from ) ) {
72
+ $ip = $this->get_for_header( $header, $position, $from );
73
 
74
  if ( ! $ip ) {
75
  continue;
94
  *
95
  * @param string $header
96
  * @param int $position
97
+ * @param string $from
98
  *
99
  * @return string
100
  */
101
+ private function get_for_header( $header, $position, $from ) {
102
  if ( empty( $this->server[ $header ] ) ) {
103
  return '';
104
  }
106
  $value = trim( $this->server[ $header ] );
107
 
108
  if ( - 1 === $position ) {
109
+ return ITSEC_Lib::last( explode( ',', $value ) );
110
  }
111
 
112
  // Handle Forwarded: header syntax https://tools.ietf.org/html/rfc7239#section-4
113
  if ( preg_match_all( '{(?:for)=(?:"?\[?)([a-z0-9\.:_\-/]*)}i', $value, $matches, PREG_SET_ORDER ) ) {
114
+ if ( $from === self::FROM_RIGHT ) {
115
+ $matches = array_reverse( $matches );
116
+ }
117
+
118
  if ( ! empty( $matches[ $position ][1] ) ) {
119
  return $matches[ $position ][1];
120
  }
122
 
123
  $parts = preg_split( '/[, ]/', $value );
124
 
125
+ if ( $from === self::FROM_RIGHT ) {
126
+ $parts = array_reverse( $parts );
127
+ }
128
+
129
  if ( ! empty( $parts[ $position ] ) ) {
130
  return $parts[ $position ];
131
  }
core/lib/class-itsec-lib-distributed-storage.php CHANGED
@@ -572,17 +572,12 @@ class ITSEC_Lib_Distributed_Storage_Cursor implements Iterator {
572
  $this->data = $data;
573
  }
574
 
575
- /**
576
- * @inheritDoc
577
- */
578
  public function current() {
579
  return current( $this->data );
580
  }
581
 
582
- /**
583
- * @inheritDoc
584
- */
585
- public function next() {
586
 
587
  if ( $this->iterated_count === count( $this->data ) - 1 ) {
588
  $data = $this->storage->_load_chunk( $this->key, $this->chunk + 1 );
@@ -600,24 +595,16 @@ class ITSEC_Lib_Distributed_Storage_Cursor implements Iterator {
600
  next( $this->data );
601
  }
602
 
603
- /**
604
- * @inheritDoc
605
- */
606
  public function key() {
607
  return key( $this->data );
608
  }
609
 
610
- /**
611
- * @inheritDoc
612
- */
613
- public function valid() {
614
  return $this->iterated_count < count( $this->data );
615
  }
616
 
617
- /**
618
- * @inheritDoc
619
- */
620
- public function rewind() {
621
 
622
  $this->iterated_count = 0;
623
 
@@ -629,4 +616,4 @@ class ITSEC_Lib_Distributed_Storage_Cursor implements Iterator {
629
  $this->chunk = 0;
630
  }
631
  }
632
- }
572
  $this->data = $data;
573
  }
574
 
575
+ #[ReturnTypeWillChange]
 
 
576
  public function current() {
577
  return current( $this->data );
578
  }
579
 
580
+ public function next(): void {
 
 
 
581
 
582
  if ( $this->iterated_count === count( $this->data ) - 1 ) {
583
  $data = $this->storage->_load_chunk( $this->key, $this->chunk + 1 );
595
  next( $this->data );
596
  }
597
 
598
+ #[ReturnTypeWillChange]
 
 
599
  public function key() {
600
  return key( $this->data );
601
  }
602
 
603
+ public function valid(): bool {
 
 
 
604
  return $this->iterated_count < count( $this->data );
605
  }
606
 
607
+ public function rewind(): void {
 
 
 
608
 
609
  $this->iterated_count = 0;
610
 
616
  $this->chunk = 0;
617
  }
618
  }
619
+ }
core/lib/class-itsec-lib-encryption.php ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ use iThemesSecurity\Encryption\User_Encryption;
4
+ use iThemesSecurity\Encryption\User_Encryption_Sodium;
5
+ use iThemesSecurity\Encryption\User_Key_Rotator;
6
+ use iThemesSecurity\Lib\Result;
7
+
8
+ class ITSEC_Lib_Encryption {
9
+
10
+ /**
11
+ * PHP Constant that the secret used to derive the key is stored in.
12
+ * For instance, define( 'ITSEC_ENCRYPTION_KEY', 'randombyteshere' );
13
+ */
14
+ public const SECRET_NAME = 'ITSEC_ENCRYPTION_KEY';
15
+
16
+ private const TEST_STRING = 'test-string';
17
+ private const TEST_STRING_OPTION = 'itsec_user_encryption_test';
18
+
19
+ /** @var User_Encryption */
20
+ private static $user_encryption;
21
+
22
+ /**
23
+ * Checks if Encryption is available.
24
+ *
25
+ * @return bool
26
+ */
27
+ public static function is_available(): bool {
28
+ return defined( self::SECRET_NAME ) && strlen( constant( self::SECRET_NAME ) ) > 16;
29
+ }
30
+
31
+ /**
32
+ * Generates a secret key to use for encryption.
33
+ *
34
+ * @return string
35
+ *
36
+ * @throws RuntimeException If a random secret cannot be generated.
37
+ */
38
+ public static function generate_secret(): string {
39
+ $secret = wp_generate_password( 64, true, true );
40
+
41
+ if ( ! is_string( $secret ) || strlen( $secret ) !== 64 ) {
42
+ throw new RuntimeException( 'Could not generate secret key.' );
43
+ }
44
+
45
+ return base64_encode( $secret );
46
+ }
47
+
48
+ /**
49
+ * Saves a secret key to `wp-config.php`.
50
+ *
51
+ * @param string $secret The secret key to save.
52
+ *
53
+ * @return Result
54
+ */
55
+ public static function save_secret_key( string $secret ): Result {
56
+ if ( ! ITSEC_Files::can_write_to_files() ) {
57
+ return Result::error( new WP_Error(
58
+ 'itsec.encryption.cannot-write-to-files',
59
+ __( 'iThemes Security does not have permission to write to your wp-config.php file.', 'better-wp-security' )
60
+ ) );
61
+ }
62
+
63
+ if ( ! defined( self::SECRET_NAME ) ) {
64
+ $php = sprintf(
65
+ "define( '%s', '%s' );%s",
66
+ ITSEC_Lib_Encryption::SECRET_NAME,
67
+ $secret,
68
+ PHP_EOL
69
+ );
70
+
71
+ $written = ITSEC_Lib_Config_File::append_wp_config( $php, true );
72
+
73
+ if ( is_wp_error( $written ) ) {
74
+ return Result::error( $written );
75
+ }
76
+
77
+ self::set_test_string( $secret );
78
+
79
+ return Result::success()
80
+ ->add_success_message( __( 'Added new encryption key to the wp-config.php file.', 'better-wp-security' ) );
81
+ }
82
+
83
+ $file = ITSEC_Lib_Config_File::get_wp_config_file_path();
84
+ $contents = ITSEC_Lib_File::read( $file );
85
+
86
+ if ( is_wp_error( $contents ) ) {
87
+ return Result::error( $contents );
88
+ }
89
+
90
+ if ( ! $contents ) {
91
+ return Result::error( new WP_Error(
92
+ 'itsec.encryption.empty-wp-config-file',
93
+ __( 'Encountered an empty wp-config.php file.', 'better-wp-security' )
94
+ ) );
95
+ }
96
+
97
+ $current_secret = constant( self::SECRET_NAME );
98
+ $matches_found = $current_secret ? substr_count( $contents, $current_secret ) : 0;
99
+
100
+ if ( ! $current_secret || ! $matches_found ) {
101
+ return Result::error( new WP_Error(
102
+ 'itsec.encryption.secret-not-found',
103
+ __( 'Cannot find existing encryption secret in wp-config.php. Instead, manually update your site encryption key.', 'better-wp-security' )
104
+ ) );
105
+ }
106
+
107
+ if ( $matches_found > 1 ) {
108
+ return Result::error( new WP_Error(
109
+ 'itsec.encryption.multiple-secrets-found',
110
+ __( 'The previous encryption key was defined multiple times in wp-config.php. Instead, manually update your site encryption key.', 'better-wp-security' )
111
+ ) );
112
+ }
113
+
114
+ $replaced = str_replace( $current_secret, $secret, $contents );
115
+
116
+ if ( ! $replaced ) {
117
+ return Result::error( new WP_Error(
118
+ 'itsec.encryption.replace-failed',
119
+ __( 'Could not replace the existing encryption key with a new key.', 'better-wp-security' )
120
+ ) );
121
+ }
122
+
123
+ $written = ITSEC_Lib_File::write( $file, $replaced );
124
+
125
+ if ( is_wp_error( $written ) ) {
126
+ return Result::error( $written );
127
+ }
128
+
129
+ if ( ! self::get_test_string() ) {
130
+ self::set_test_string( $secret );
131
+ }
132
+
133
+ return Result::success()
134
+ ->add_success_message( __( 'Updated the encryption key in the wp-config.php file.', 'better-wp-security' ) );
135
+ }
136
+
137
+ /**
138
+ * Checks if the string is an encrypted secret.
139
+ *
140
+ * @param string $message Message to check.
141
+ *
142
+ * @return bool
143
+ */
144
+ public static function is_encrypted( string $message ): bool {
145
+ return User_Encryption_Sodium::is_encrypted( $message );
146
+ }
147
+
148
+ /**
149
+ * Encrypts a secret for a particular user.
150
+ *
151
+ * @param string $message The message to encrypt..
152
+ * @param int $user_id User ID.
153
+ *
154
+ * @return string The encrypted text.
155
+ * @throws RuntimeException Encryption failed.
156
+ */
157
+ public static function encrypt_for_user( string $message, int $user_id ): string {
158
+ return self::user_encryption()->encrypt( $message, $user_id );
159
+ }
160
+
161
+ /**
162
+ * Decrypts a secret.
163
+ *
164
+ * Version information is encoded with the ciphertext and thus omitted from this function.
165
+ *
166
+ * @param string $encrypted Encrypted secret.
167
+ * @param int $user_id User ID.
168
+ *
169
+ * @return string The clear text.
170
+ * @throws RuntimeException Decryption failed.
171
+ */
172
+ public static function decrypt_for_user( string $encrypted, int $user_id ): string {
173
+ return self::user_encryption()->decrypt( $encrypted, $user_id );
174
+ }
175
+
176
+ /**
177
+ * Runs the key rotation process when you have access to the previous secret key.
178
+ *
179
+ * @param string $old_key The previous key.
180
+ *
181
+ * @return Result<User_Key_Rotator>
182
+ */
183
+ public static function rotate_with_old_key( string $old_key ): Result {
184
+ if ( ! self::validate_old_key( $old_key ) ) {
185
+ return Result::error( new WP_Error(
186
+ 'itsec.encryption.rotate-old-key-invalid',
187
+ __( 'The provided key is not valid.', 'better-wp-security' )
188
+ ) );
189
+ }
190
+
191
+ $old = new User_Encryption_Sodium( $old_key );
192
+ $new = self::user_encryption();
193
+
194
+ $rotator = new User_Key_Rotator( $old, $new );
195
+
196
+ self::set_test_string();
197
+
198
+ return self::do_rotation( $rotator );
199
+ }
200
+
201
+ /**
202
+ * Runs the key rotation process when you have access to the new secret key.
203
+ *
204
+ * @param string $new_key The new key.
205
+ *
206
+ * @return Result<User_Key_Rotator>
207
+ */
208
+ public static function rotate_with_new_key( string $new_key ): Result {
209
+ $old = self::user_encryption();
210
+ $new = new User_Encryption_Sodium( $new_key );
211
+
212
+ $rotator = new User_Key_Rotator( $old, $new );
213
+
214
+ self::set_test_string( $new_key );
215
+
216
+ return self::do_rotation( $rotator );
217
+ }
218
+
219
+ /**
220
+ * Runs the actual key rotation process.
221
+ *
222
+ * @param User_Key_Rotator $rotator
223
+ *
224
+ * @return Result<User_Key_Rotator>
225
+ */
226
+ private static function do_rotation( User_Key_Rotator $rotator ): Result {
227
+ $result = Result::success( $rotator );
228
+
229
+ /**
230
+ * Fires when an encryption key is being rotated.
231
+ *
232
+ * @param User_Key_Rotator $rotator
233
+ * @param Result $result
234
+ */
235
+ do_action( 'itsec_encryption_rotate_user_keys', $rotator, $result );
236
+
237
+ $result->add_success_message( __( 'Completed key rotation.', 'better-wp-security' ) );
238
+
239
+ $result->add_info_message(
240
+ sprintf(
241
+ _n(
242
+ 'Rotated %d encrypted secret.',
243
+ 'Rotated %d encrypted secrets.',
244
+ $rotator->count(),
245
+ 'better-wp-security'
246
+ ),
247
+ $rotator->count()
248
+ )
249
+ );
250
+
251
+ return $result;
252
+ }
253
+
254
+ /**
255
+ * Checks if the Encryption Key constant has changed.
256
+ *
257
+ * @return bool
258
+ */
259
+ public static function has_encryption_key_changed(): bool {
260
+ if ( ! self::is_available() ) {
261
+ if ( self::get_test_string() ) {
262
+ return true;
263
+ }
264
+
265
+ return false;
266
+ }
267
+
268
+ $stored = self::get_test_string();
269
+
270
+ if ( ! $stored ) {
271
+ self::set_test_string();
272
+
273
+ return false;
274
+ }
275
+
276
+ try {
277
+ $decrypted = self::decrypt_for_user( $stored, 0 );
278
+
279
+ return $decrypted !== self::TEST_STRING;
280
+ } catch ( RuntimeException $e ) {
281
+ return true;
282
+ }
283
+ }
284
+
285
+ /**
286
+ * Resets the encryption key has changed warning.
287
+ *
288
+ * @return void
289
+ */
290
+ public static function reset_encryption_key_changed_warning(): void {
291
+ if ( self::is_available() ) {
292
+ self::set_test_string();
293
+ } else {
294
+ delete_site_option( self::TEST_STRING_OPTION );
295
+ }
296
+ }
297
+
298
+ /**
299
+ * Validates that the given key can be used to decrypt previous secrets.
300
+ *
301
+ * @param string $secret_key Previous secret key.
302
+ *
303
+ * @return bool
304
+ */
305
+ private static function validate_old_key( string $secret_key ): bool {
306
+ $test_string = self::get_test_string();
307
+
308
+ if ( ! $test_string ) {
309
+ return true;
310
+ }
311
+
312
+ try {
313
+ $encryption = new User_Encryption_Sodium( $secret_key );
314
+
315
+ return $encryption->decrypt( $test_string, 0 ) === self::TEST_STRING;
316
+ } catch ( RuntimeException $e ) {
317
+ return false;
318
+ }
319
+ }
320
+
321
+ /**
322
+ * Gets the test string used to detect if the encryption
323
+ * key has been manually changed by the user.
324
+ *
325
+ * @return string
326
+ */
327
+ private static function get_test_string(): string {
328
+ return get_site_option( self::TEST_STRING_OPTION );
329
+ }
330
+
331
+ /**
332
+ * Sets the test string used to detect if the encryption
333
+ * key has been manually changed by the user.
334
+ *
335
+ * @param string $secret The secret to use to encrypt the test string.
336
+ *
337
+ * @return void
338
+ */
339
+ private static function set_test_string( string $secret = '' ): void {
340
+ if ( $secret ) {
341
+ $encryption = new User_Encryption_Sodium( $secret );
342
+ } else {
343
+ $encryption = self::user_encryption();
344
+ }
345
+
346
+ update_site_option( self::TEST_STRING_OPTION, $encryption->encrypt( self::TEST_STRING, 0 ) );
347
+ }
348
+
349
+ private static function user_encryption(): User_Encryption {
350
+ if ( self::$user_encryption === null ) {
351
+ if ( ! defined( self::SECRET_NAME ) ) {
352
+ throw new RuntimeException( 'No secret key configured.' );
353
+ }
354
+
355
+ self::$user_encryption = new User_Encryption_Sodium( constant( self::SECRET_NAME ) );
356
+ }
357
+
358
+ return self::$user_encryption;
359
+ }
360
+ }
core/lib/class-itsec-lib-ip-detector.php CHANGED
@@ -11,7 +11,7 @@ class ITSEC_Lib_IP_Detector {
11
 
12
  public static function get_proxy_types() {
13
  $types = array(
14
- 'automatic' => esc_html__( 'Automatic', 'better-wp-security' ),
15
  'manual' => esc_html__( 'Manual', 'better-wp-security' ),
16
  'disabled' => esc_html__( 'Disabled', 'better-wp-security' ),
17
  );
11
 
12
  public static function get_proxy_types() {
13
  $types = array(
14
+ 'automatic' => esc_html__( 'Automatic (Insecure)', 'better-wp-security' ),
15
  'manual' => esc_html__( 'Manual', 'better-wp-security' ),
16
  'disabled' => esc_html__( 'Disabled', 'better-wp-security' ),
17
  );
core/lib/class-itsec-lib-login-interstitial.php CHANGED
@@ -122,30 +122,46 @@ class ITSEC_Lib_Login_Interstitial {
122
  }
123
 
124
  /**
125
- * Show the interstitial.
 
126
  *
127
  * @api
128
  *
129
  * @param ITSEC_Login_Interstitial_Session $session
 
130
  *
131
  * @return void
132
  */
133
- public function show_interstitial( ITSEC_Login_Interstitial_Session $session ) {
 
 
 
 
 
 
134
 
135
- if ( ! isset( $this->registered[ $session->get_current_interstitial() ] ) ) {
136
- return;
137
  }
 
138
 
139
- $this->current_session = $session;
140
-
141
- $interstitial = $this->registered[ $session->get_current_interstitial() ];
142
-
143
- if ( $interstitial->is_completion_forced( $session ) ) {
144
- $this->destroy_session_token( $session->get_user() );
145
- }
 
 
 
 
 
 
 
 
146
 
147
- $this->login_html( $session );
148
- die;
149
  }
150
 
151
  /**
@@ -159,8 +175,9 @@ class ITSEC_Lib_Login_Interstitial {
159
  */
160
  public function proceed_to_next( ITSEC_Login_Interstitial_Session $session ) {
161
 
162
- $current = $session->get_current_interstitial();
163
- $session->add_completed_interstitial( $current );
 
164
 
165
  $session->set_current_interstitial( $this->get_next_interstitial( $session ) );
166
 
@@ -228,8 +245,11 @@ class ITSEC_Lib_Login_Interstitial {
228
  * @internal
229
  */
230
  public function enqueue() {
231
- wp_register_script( 'itsec-login-interstitial-util', plugin_dir_url( __FILE__ ) . '/login-interstitial/util.js', array( 'jquery', 'wp-util' ), 1 );
232
- wp_add_inline_script( 'itsec-login-interstitial-util', '(function() { window.itsecLoginInterstitial = new ITSECLoginInterstitial(); window.itsecLoginInterstitial.init() })()' );
 
 
 
233
  }
234
 
235
  /**
@@ -329,6 +349,9 @@ class ITSEC_Lib_Login_Interstitial {
329
  }
330
 
331
  $session = ITSEC_Login_Interstitial_Session::create( $user, $slug );
 
 
 
332
  $this->show_interstitial( $session );
333
  }
334
 
@@ -362,6 +385,36 @@ class ITSEC_Lib_Login_Interstitial {
362
  return $cookie;
363
  }
364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  /**
366
  * Handle submitting the interstitial form.
367
  *
@@ -374,13 +427,6 @@ class ITSEC_Lib_Login_Interstitial {
374
  // If we think we have all finished all the interstitials.
375
  // We need to check because another process may have moved the interstitial forward.
376
  if ( ! $slug ) {
377
- // Double check to ensure we are actually finished.
378
- if ( $next = $this->get_next_interstitial( $session ) ) {
379
- // If not, display the next interstitial.
380
- $session->set_current_interstitial( $next );
381
- $session->save();
382
- }
383
-
384
  $this->do_next_step( $session );
385
  }
386
 
@@ -420,7 +466,6 @@ class ITSEC_Lib_Login_Interstitial {
420
 
421
  $interstitial->after_submit( $session, $_POST );
422
 
423
- $this->proceed_to_next( $session );
424
  $this->do_next_step( $session );
425
  }
426
 
@@ -491,8 +536,8 @@ class ITSEC_Lib_Login_Interstitial {
491
  $result = array();
492
  }
493
 
494
- if ( $args['same_browser'] && empty( $result['allow_same_browser'] ) ) {
495
- $this->do_next_step( $session, array(
496
  'delete' => false,
497
  'allow_interim' => false,
498
  ) );
@@ -668,7 +713,7 @@ class ITSEC_Lib_Login_Interstitial {
668
 
669
  <?php if ( $customize_login ) : ?>
670
  <script type="text/javascript">
671
- setTimeout( function() {
672
  new wp.customize.Messenger( {
673
  url : '<?php echo wp_customize_url(); ?>',
674
  channel: 'login',
@@ -761,17 +806,21 @@ class ITSEC_Lib_Login_Interstitial {
761
  width: 100%;
762
  text-align: center;
763
  }
 
764
  .itsec-login-interstitial-confirm-async-action:last-child {
765
  margin-bottom: 0;
766
  }
 
767
  .itsec-login-interstitial-confirm-async-action:hover,
768
  .itsec-login-interstitial-confirm-async-action:focus {
769
  background: #006799;
770
  color: #fff;
771
  }
 
772
  .itsec-login-interstitial-confirm-async-action.itsec-login-interstitial-confirm-async-action--deny {
773
  background: #d54e21;
774
  }
 
775
  .itsec-login-interstitial-confirm-async-action.itsec-login-interstitial-confirm-async-action--deny:hover,
776
  .itsec-login-interstitial-confirm-async-action.itsec-login-interstitial-confirm-async-action--deny:focus {
777
  background: #983818;
@@ -807,60 +856,15 @@ class ITSEC_Lib_Login_Interstitial {
807
  }
808
 
809
  /**
810
- * Do the next step for a session.
811
- *
812
- * If there are more steps, show the next step, otherwise log the user in.
813
- *
814
- * @param ITSEC_Login_Interstitial_Session $session
815
- * @param array $args
816
- */
817
- private function do_next_step( ITSEC_Login_Interstitial_Session $session, array $args = array() ) {
818
- $args = wp_parse_args( $args, array(
819
- 'delete' => true,
820
- 'allow_interim' => true,
821
- ) );
822
-
823
- if ( $session->get_current_interstitial() ) {
824
- $this->show_interstitial( $session );
825
- } else {
826
- if ( true === $args['delete'] ) {
827
- $session->delete();
828
- }
829
-
830
- $this->handle_interstitials_completed( $session, $args );
831
- }
832
- }
833
-
834
- /**
835
- * Handle when all of the interstitials have been processed.
836
  *
837
  * @param ITSEC_Login_Interstitial_Session $session
838
  * @param array $args
839
  */
840
  private function handle_interstitials_completed( ITSEC_Login_Interstitial_Session $session, array $args ) {
841
 
842
- $user = $session->get_user();
843
- $secure = '';
844
-
845
- // If the user wants SSL but the session is not SSL, force a secure cookie.
846
- if ( ! force_ssl_admin() && get_user_option( 'use_ssl', $user->ID ) ) {
847
- $secure = true;
848
- force_ssl_admin( true );
849
- }
850
-
851
- if ( ! is_user_logged_in() ) {
852
- wp_set_auth_cookie( $user->ID, $session->is_remember_me(), $secure );
853
-
854
- remove_action( 'wp_login', array( $this, 'wp_login' ), - 1000 );
855
- do_action( 'wp_login', $user->user_login, $user );
856
-
857
- /**
858
- * Fires when a user is re-logged back in after submitting an interstitial.
859
- *
860
- * @param WP_User $user
861
- */
862
- do_action( 'itsec_login_interstitial_logged_in', $user );
863
- }
864
 
865
  if ( $args['allow_interim'] && $session->is_interim_login() ) {
866
  $this->interim_login();
@@ -869,7 +873,7 @@ class ITSEC_Lib_Login_Interstitial {
869
  if ( $session->get_redirect_to() ) {
870
  $redirect_to = $requested = $session->get_redirect_to();
871
 
872
- if ( $secure && false !== strpos( $redirect_to, 'wp-admin' ) ) {
873
  $redirect_to = preg_replace( '|^http://|', 'https://', $redirect_to );
874
  }
875
  } else {
@@ -894,6 +898,40 @@ class ITSEC_Lib_Login_Interstitial {
894
  die;
895
  }
896
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
897
  /**
898
  * Get the next interstitial to be displayed.
899
  *
@@ -906,7 +944,6 @@ class ITSEC_Lib_Login_Interstitial {
906
  foreach ( $this->get_applicable_interstitials( $session->get_user() ) as $action => $interstitial ) {
907
  if ( ! $session->is_interstitial_completed( $action ) ) {
908
  return $action;
909
-
910
  }
911
  }
912
 
@@ -924,7 +961,7 @@ class ITSEC_Lib_Login_Interstitial {
924
  *
925
  * @param WP_User $user
926
  *
927
- * @return array
928
  */
929
  private function get_applicable_interstitials( $user ) {
930
 
@@ -1053,7 +1090,7 @@ class ITSEC_Lib_Login_Interstitial {
1053
  * @param WP_User $user
1054
  */
1055
  private function destroy_session_token( $user ) {
1056
- WP_Session_Tokens::get_instance( $user->ID )->destroy( $this->session_token ? $this->session_token : wp_get_session_token() );
1057
  wp_clear_auth_cookie();
1058
  }
1059
 
@@ -1065,7 +1102,11 @@ class ITSEC_Lib_Login_Interstitial {
1065
  *
1066
  * @return int
1067
  */
1068
- private function _sort_interstitials( $a, $b ) {
 
 
 
 
1069
  return $a->get_priority() - $b->get_priority();
1070
  }
1071
  }
122
  }
123
 
124
  /**
125
+ * Renders the current interstitial, or if no more interstitials
126
+ * are available, log the user in.
127
  *
128
  * @api
129
  *
130
  * @param ITSEC_Login_Interstitial_Session $session
131
+ * @param array $args
132
  *
133
  * @return void
134
  */
135
+ public function render_current_interstitial_or_login( ITSEC_Login_Interstitial_Session $session, array $args = array() ) {
136
+ if ( $session->get_current_interstitial() ) {
137
+ $this->show_interstitial( $session );
138
+ } else {
139
+ if ( true === $args['delete'] ) {
140
+ $session->delete();
141
+ }
142
 
143
+ $this->handle_interstitials_completed( $session, $args );
 
144
  }
145
+ }
146
 
147
+ /**
148
+ * Do the next step for a session.
149
+ *
150
+ * If there are more steps, show the next step, otherwise log the user in.
151
+ *
152
+ * @api
153
+ *
154
+ * @param ITSEC_Login_Interstitial_Session $session
155
+ * @param array $args
156
+ */
157
+ public function do_next_step( ITSEC_Login_Interstitial_Session $session, array $args = array() ) {
158
+ $args = wp_parse_args( $args, array(
159
+ 'delete' => true,
160
+ 'allow_interim' => true,
161
+ ) );
162
 
163
+ $this->proceed_to_next( $session );
164
+ $this->render_current_interstitial_or_login( $session, $args );
165
  }
166
 
167
  /**
175
  */
176
  public function proceed_to_next( ITSEC_Login_Interstitial_Session $session ) {
177
 
178
+ if ( $current = $session->get_current_interstitial() ) {
179
+ $session->add_completed_interstitial( $current );
180
+ }
181
 
182
  $session->set_current_interstitial( $this->get_next_interstitial( $session ) );
183
 
245
  * @internal
246
  */
247
  public function enqueue() {
248
+ wp_register_script( 'itsec-login-interstitial-util', plugin_dir_url( __FILE__ ) . 'login-interstitial/util.js', array( 'jquery', 'wp-util' ), 2 );
249
+ wp_add_inline_script(
250
+ 'itsec-login-interstitial-util',
251
+ '(function() { window.itsecLoginInterstitial = new ITSECLoginInterstitial(); window.itsecLoginInterstitial.init() })();'
252
+ );
253
  }
254
 
255
  /**
349
  }
350
 
351
  $session = ITSEC_Login_Interstitial_Session::create( $user, $slug );
352
+ $session->initialize_from_global_state();
353
+ $session->add_show_after( $slug );
354
+ $session->save();
355
  $this->show_interstitial( $session );
356
  }
357
 
385
  return $cookie;
386
  }
387
 
388
+ /**
389
+ * Show the interstitial.
390
+ *
391
+ * @internal
392
+ *
393
+ * @param ITSEC_Login_Interstitial_Session $session
394
+ *
395
+ * @return void
396
+ */
397
+ public function show_interstitial( ITSEC_Login_Interstitial_Session $session ) {
398
+
399
+ if ( ! isset( $this->registered[ $session->get_current_interstitial() ] ) ) {
400
+ return;
401
+ }
402
+
403
+ $this->current_session = $session;
404
+
405
+ $interstitial = $this->registered[ $session->get_current_interstitial() ];
406
+
407
+ if ( $interstitial->is_completion_forced( $session ) ) {
408
+ $this->destroy_session_token( $session->get_user() );
409
+ } elseif ( $interstitial->show_after_authentication() ) {
410
+ $this->set_auth_cookie( $session );
411
+ wp_set_current_user( $session->get_user()->ID );
412
+ }
413
+
414
+ $this->login_html( $session );
415
+ die;
416
+ }
417
+
418
  /**
419
  * Handle submitting the interstitial form.
420
  *
427
  // If we think we have all finished all the interstitials.
428
  // We need to check because another process may have moved the interstitial forward.
429
  if ( ! $slug ) {
 
 
 
 
 
 
 
430
  $this->do_next_step( $session );
431
  }
432
 
466
 
467
  $interstitial->after_submit( $session, $_POST );
468
 
 
469
  $this->do_next_step( $session );
470
  }
471
 
536
  $result = array();
537
  }
538
 
539
+ if ( $args['same_browser'] ) {
540
+ $this->render_current_interstitial_or_login( $session, array(
541
  'delete' => false,
542
  'allow_interim' => false,
543
  ) );
713
 
714
  <?php if ( $customize_login ) : ?>
715
  <script type="text/javascript">
716
+ setTimeout( function () {
717
  new wp.customize.Messenger( {
718
  url : '<?php echo wp_customize_url(); ?>',
719
  channel: 'login',
806
  width: 100%;
807
  text-align: center;
808
  }
809
+
810
  .itsec-login-interstitial-confirm-async-action:last-child {
811
  margin-bottom: 0;
812
  }
813
+
814
  .itsec-login-interstitial-confirm-async-action:hover,
815
  .itsec-login-interstitial-confirm-async-action:focus {
816
  background: #006799;
817
  color: #fff;
818
  }
819
+
820
  .itsec-login-interstitial-confirm-async-action.itsec-login-interstitial-confirm-async-action--deny {
821
  background: #d54e21;
822
  }
823
+
824
  .itsec-login-interstitial-confirm-async-action.itsec-login-interstitial-confirm-async-action--deny:hover,
825
  .itsec-login-interstitial-confirm-async-action.itsec-login-interstitial-confirm-async-action--deny:focus {
826
  background: #983818;
856
  }
857
 
858
  /**
859
+ * Handle when all interstitials have been processed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
860
  *
861
  * @param ITSEC_Login_Interstitial_Session $session
862
  * @param array $args
863
  */
864
  private function handle_interstitials_completed( ITSEC_Login_Interstitial_Session $session, array $args ) {
865
 
866
+ $user = $session->get_user();
867
+ $this->set_auth_cookie( $session );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
868
 
869
  if ( $args['allow_interim'] && $session->is_interim_login() ) {
870
  $this->interim_login();
873
  if ( $session->get_redirect_to() ) {
874
  $redirect_to = $requested = $session->get_redirect_to();
875
 
876
+ if ( force_ssl_admin() && false !== strpos( $redirect_to, 'wp-admin' ) ) {
877
  $redirect_to = preg_replace( '|^http://|', 'https://', $redirect_to );
878
  }
879
  } else {
898
  die;
899
  }
900
 
901
+ /**
902
+ * Sets the authentication cookie for the requested session.
903
+ *
904
+ * @param ITSEC_Login_Interstitial_Session $session
905
+ *
906
+ * @return void
907
+ */
908
+ private function set_auth_cookie( ITSEC_Login_Interstitial_Session $session ) {
909
+ if ( is_user_logged_in() ) {
910
+ return;
911
+ }
912
+
913
+ $user = $session->get_user();
914
+ $secure = '';
915
+
916
+ // If the user wants SSL but the session is not SSL, force a secure cookie.
917
+ if ( ! force_ssl_admin() && get_user_option( 'use_ssl', $user->ID ) ) {
918
+ $secure = true;
919
+ force_ssl_admin( true );
920
+ }
921
+
922
+ wp_set_auth_cookie( $user->ID, $session->is_remember_me(), $secure );
923
+
924
+ remove_action( 'wp_login', array( $this, 'wp_login' ), - 1000 );
925
+ do_action( 'wp_login', $user->user_login, $user );
926
+
927
+ /**
928
+ * Fires when a user is re-logged back in after submitting an interstitial.
929
+ *
930
+ * @param WP_User $user
931
+ */
932
+ do_action( 'itsec_login_interstitial_logged_in', $user );
933
+ }
934
+
935
  /**
936
  * Get the next interstitial to be displayed.
937
  *
944
  foreach ( $this->get_applicable_interstitials( $session->get_user() ) as $action => $interstitial ) {
945
  if ( ! $session->is_interstitial_completed( $action ) ) {
946
  return $action;
 
947
  }
948
  }
949
 
961
  *
962
  * @param WP_User $user
963
  *
964
+ * @return ITSEC_Login_Interstitial[]
965
  */
966
  private function get_applicable_interstitials( $user ) {
967
 
1090
  * @param WP_User $user
1091
  */
1092
  private function destroy_session_token( $user ) {
1093
+ WP_Session_Tokens::get_instance( $user->ID )->destroy( $this->session_token ?: wp_get_session_token() );
1094
  wp_clear_auth_cookie();
1095
  }
1096
 
1102
  *
1103
  * @return int
1104
  */
1105
+ private function _sort_interstitials( ITSEC_Login_Interstitial $a, ITSEC_Login_Interstitial $b ): int {
1106
+ if ( $a->show_after_authentication() !== $b->show_after_authentication() ) {
1107
+ return $a->show_after_authentication() ? 1 : - 1;
1108
+ }
1109
+
1110
  return $a->get_priority() - $b->get_priority();
1111
  }
1112
  }
core/lib/class-itsec-lib-login.php CHANGED
@@ -55,4 +55,24 @@ class ITSEC_Lib_Login {
55
 
56
  return esc_html__( 'Username', 'better-wp-security' );
57
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
55
 
56
  return esc_html__( 'Username', 'better-wp-security' );
57
  }
58
+
59
+ /**
60
+ * Gets an error message indicating that the requested
61
+ * user could not be found.
62
+ *
63
+ * @return string
64
+ */
65
+ public static function get_not_found_error_message(): string {
66
+ $fields = self::get_user_lookup_fields();
67
+
68
+ if ( count( $fields ) === 2 ) {
69
+ return __( 'Could not find a user with that username or email address', 'better-wp-security' );
70
+ }
71
+
72
+ if ( 'email' === $fields[0] ) {
73
+ return __( 'Could not find a user with that email address', 'better-wp-security' );
74
+ }
75
+
76
+ return __( 'Could not find a user with that username', 'better-wp-security' );
77
+ }
78
  }
core/lib/class-itsec-lib-static-map-api.php CHANGED
@@ -168,4 +168,4 @@ class ITSEC_Lib_Static_Map_API {
168
  */
169
  return apply_filters( 'itsec_static_map_apis', array() );
170
  }
171
- }
168
  */
169
  return apply_filters( 'itsec_static_map_apis', array() );
170
  }
171
+ }
core/lib/encryption/User_Encryption.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace iThemesSecurity\Encryption;
4
+
5
+ use RuntimeException;
6
+
7
+ interface User_Encryption {
8
+
9
+ /**
10
+ * Checks if the given text is likely encrypted.
11
+ *
12
+ * @param string $message Text to check.
13
+ *
14
+ * @return bool
15
+ */
16
+ public static function is_encrypted( string $message ): bool;
17
+
18
+ /**
19
+ * Encrypts a secret.
20
+ *
21
+ * @param string $message Data to encrypt.
22
+ * @param int $user_id User ID.
23
+ *
24
+ * @return string The encrypted text.
25
+ * @throws RuntimeException Encryption failed.
26
+ */
27
+ public function encrypt( string $message, int $user_id ): string;
28
+
29
+ /**
30
+ * Decrypts a secret.
31
+ *
32
+ * @param string $encrypted Encrypted secret.
33
+ * @param int $user_id User ID.
34
+ *
35
+ * @return string The clear text.
36
+ * @throws RuntimeException Decryption failed.
37
+ */
38
+ public function decrypt( string $encrypted, int $user_id ): string;
39
+ }
core/lib/encryption/User_Encryption_Sodium.php ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace iThemesSecurity\Encryption;
4
+
5
+ use Exception;
6
+ use RuntimeException;
7
+ use SodiumException;
8
+
9
+ final class User_Encryption_Sodium implements User_Encryption {
10
+ /**
11
+ * Prefix for encrypted secrets. Contains a version identifier.
12
+ *
13
+ * $t1$ -> v1 (RFC 6238, encrypted with XChaCha20-Poly1305, with a key derived from HMAC-SHA256
14
+ * of SECURE_AUTH_SAL.)
15
+ *
16
+ * @var string
17
+ */
18
+ private const ENCRYPTED_PREFIX = '$t1$';
19
+
20
+ /**
21
+ * Current "version" of the encryption protocol.
22
+ *
23
+ * 1 -> $t1$nonce|ciphertext|tag
24
+ */
25
+ private const ENCRYPTED_VERSION = 1;
26
+
27
+ /** @var string */
28
+ private $secret;
29
+
30
+ /**
31
+ * Instantiates a new User Encryption implementation.
32
+ *
33
+ * @param string $secret Random bytes.
34
+ */
35
+ public function __construct( string $secret ) { $this->secret = $secret; }
36
+
37
+ public static function is_encrypted( string $message ): bool {
38
+ if ( strlen( $message ) < 40 ) {
39
+ return false;
40
+ }
41
+
42
+ if ( strpos( $message, self::ENCRYPTED_PREFIX ) !== 0 ) {
43
+ return false;
44
+ }
45
+
46
+ return true;
47
+ }
48
+
49
+ public function encrypt( string $message, int $user_id ): string {
50
+ $prefix = $this->get_version_header();
51
+
52
+ try {
53
+ $nonce = random_bytes( 24 );
54
+ $ciphertext = sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(
55
+ $message,
56
+ $this->serialize_aad( $prefix, $nonce, $user_id ),
57
+ $nonce,
58
+ $this->get_encryption_key()
59
+ );
60
+ } catch ( SodiumException $e ) {
61
+ throw new RuntimeException( 'Encryption failed', 0, $e );
62
+ } catch ( Exception $e ) {
63
+ throw new RuntimeException( 'Nonce generation failed.', 0, $e );
64
+ }
65
+
66
+ return self::ENCRYPTED_PREFIX . base64_encode( $nonce . $ciphertext );
67
+ }
68
+
69
+ public function decrypt( string $encrypted, int $user_id ): string {
70
+ if ( strlen( $encrypted ) < 4 ) {
71
+ throw new RuntimeException( 'Message is too short to be encrypted' );
72
+ }
73
+
74
+ $prefix = substr( $encrypted, 0, 4 );
75
+ $version = self::get_version_id( $prefix );
76
+
77
+ if ( $version !== 1 ) {
78
+ throw new RuntimeException( 'Unknown version: ' . $version );
79
+ }
80
+
81
+ $decoded = base64_decode( substr( $encrypted, 4 ) );
82
+ $nonce = substr( $decoded, 0, 24 );
83
+ $ciphertext = substr( $decoded, 24 );
84
+ try {
85
+ $decrypted = sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(
86
+ $ciphertext,
87
+ self::serialize_aad( $prefix, $nonce, $user_id ),
88
+ $nonce,
89
+ $this->get_encryption_key( $version )
90
+ );
91
+ } catch ( SodiumException $ex ) {
92
+ throw new RuntimeException( 'Decryption failed', 0, $ex );
93
+ }
94
+
95
+ // If we don't have a string, throw an exception because decryption failed.
96
+ if ( ! is_string( $decrypted ) ) {
97
+ throw new RuntimeException( 'Could not decrypt secret' );
98
+ }
99
+
100
+ return $decrypted;
101
+ }
102
+
103
+ /**
104
+ * Serializes the Additional Authenticated Data for secret encryption.
105
+ *
106
+ * @param string $prefix Version prefix.
107
+ * @param string $nonce Encryption nonce.
108
+ * @param int $user_id User ID.
109
+ *
110
+ * @return string
111
+ */
112
+ private function serialize_aad( string $prefix, string $nonce, int $user_id ): string {
113
+ return $prefix . $nonce . pack( 'N', $user_id );
114
+ }
115
+
116
+ /**
117
+ * Gets the version prefix from a given version number.
118
+ *
119
+ * @param int $number Version number.
120
+ *
121
+ * @return string
122
+ * @throws RuntimeException For incorrect versions.
123
+ */
124
+ private function get_version_header( int $number = self::ENCRYPTED_VERSION ): string {
125
+ switch ( $number ) {
126
+ case 1:
127
+ return '$t1$';
128
+ default:
129
+ throw new RuntimeException( 'Incorrect version number: ' . $number );
130
+ }
131
+ }
132
+
133
+ /**
134
+ * Gets the version prefix from a given version number.
135
+ *
136
+ * @param string $prefix Version prefix.
137
+ *
138
+ * @return int
139
+ * @throws RuntimeException For incorrect versions.
140
+ */
141
+ private function get_version_id( string $prefix = self::ENCRYPTED_PREFIX ): int {
142
+ switch ( $prefix ) {
143
+ case '$t1$':
144
+ return 1;
145
+ default:
146
+ throw new RuntimeException( 'Incorrect version identifier: ' . $prefix );
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Gets the encryption key for encrypting secrets.
152
+ *
153
+ * @param int $version Key derivation strategy.
154
+ *
155
+ * @return string
156
+ * @throws RuntimeException For incorrect versions.
157
+ */
158
+ private function get_encryption_key( int $version = self::ENCRYPTED_VERSION ): string {
159
+ switch ( $version ) {
160
+ case 1:
161
+ return hash_hmac( 'sha256', $this->secret, 'itsec-user-encryption', true );
162
+ default:
163
+ throw new RuntimeException( 'Incorrect version number: ' . $version );
164
+ }
165
+ }
166
+ }
core/lib/encryption/User_Key_Rotator.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace iThemesSecurity\Encryption;
4
+
5
+ final class User_Key_Rotator implements \Countable {
6
+
7
+ /** @var User_Encryption */
8
+ private $old_encryption;
9
+
10
+ /** @var User_Encryption */
11
+ private $new_encryption;
12
+
13
+ /** @var int */
14
+ private $count = 0;
15
+
16
+ public function __construct( User_Encryption $old_encryption, User_Encryption $new_encryption ) {
17
+ $this->old_encryption = $old_encryption;
18
+ $this->new_encryption = $new_encryption;
19
+ }
20
+
21
+ /**
22
+ * Decrypts and re-encrypts a value.
23
+ *
24
+ * @param string $original The original encrypted value.
25
+ * @param int $user_id The user id.
26
+ *
27
+ * @return string The newly encrypted value.
28
+ */
29
+ public function __invoke( string $original, int $user_id ): string {
30
+ $decrypted = $this->old_encryption->decrypt( $original, $user_id );
31
+ $encrypted = $this->new_encryption->encrypt( $decrypted, $user_id );
32
+
33
+ $this->count ++;
34
+
35
+ return $encrypted;
36
+ }
37
+
38
+ public function count(): int {
39
+ return $this->count;
40
+ }
41
+ }
core/{packages/components/src/toggle-control → lib/encryption}/index.php RENAMED
File without changes
core/lib/fingerprinting/class-itsec-fingerprint.php CHANGED
@@ -705,7 +705,7 @@ class ITSEC_Fingerprint implements JsonSerializable {
705
  *
706
  * @return array
707
  */
708
- public function jsonSerialize() {
709
  if ( $this->_id ) {
710
  return null;
711
  }
705
  *
706
  * @return array
707
  */
708
+ public function jsonSerialize(): ?array {
709
  if ( $this->_id ) {
710
  return null;
711
  }
core/lib/lockout/execute-lock/abstract-context.php CHANGED
@@ -53,27 +53,28 @@ abstract class Context implements ArrayAccess, IteratorAggregate {
53
  );
54
  }
55
 
56
- public function getIterator() {
57
  return new ArrayIterator( $this->to_legacy() );
58
  }
59
 
60
- public function offsetExists( $offset ) {
61
  $legacy = $this->to_legacy();
62
 
63
  return isset( $legacy[ $offset ] );
64
  }
65
 
 
66
  public function offsetGet( $offset ) {
67
  $legacy = $this->to_legacy();
68
 
69
  return $legacy[ $offset ];
70
  }
71
 
72
- public function offsetSet( $offset, $value ) {
73
  // no-op
74
  }
75
 
76
- public function offsetUnset( $offset ) {
77
  // no-op
78
  }
79
  }
53
  );
54
  }
55
 
56
+ public function getIterator(): \Traversable {
57
  return new ArrayIterator( $this->to_legacy() );
58
  }
59
 
60
+ public function offsetExists( $offset ): bool {
61
  $legacy = $this->to_legacy();
62
 
63
  return isset( $legacy[ $offset ] );
64
  }
65
 
66
+ #[\ReturnTypeWillChange]
67
  public function offsetGet( $offset ) {
68
  $legacy = $this->to_legacy();
69
 
70
  return $legacy[ $offset ];
71
  }
72
 
73
+ public function offsetSet( $offset, $value ): void {
74
  // no-op
75
  }
76
 
77
+ public function offsetUnset( $offset ): void {
78
  // no-op
79
  }
80
  }
core/lib/login-interstitial/abstract-itsec-login-interstitial.php CHANGED
@@ -28,6 +28,15 @@ abstract class ITSEC_Login_Interstitial {
28
  return false;
29
  }
30
 
 
 
 
 
 
 
 
 
 
31
  /**
32
  * Render the interstitial.
33
  *
28
  return false;
29
  }
30
 
31
+ /**
32
+ * Only show this interstitial after the user has been authenticated.
33
+ *
34
+ * @return bool
35
+ */
36
+ public function show_after_authentication(): bool {
37
+ return false;
38
+ }
39
+
40
  /**
41
  * Render the interstitial.
42
  *
core/lib/login-interstitial/util.js CHANGED
@@ -1,3 +1,4 @@
 
1
  ( function( $ ) {
2
 
3
  var VARS = [
@@ -92,7 +93,7 @@
92
  } ).bind( this ) );
93
  };
94
 
95
- ITSECLoginInterstitial.prototype.submitToProceed = function() {
96
 
97
  var $form = $( '<form />' )
98
  .prop( 'method', 'post' )
@@ -115,6 +116,19 @@
115
  );
116
  }
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  $form.appendTo( document.body );
119
  $form.submit();
120
  };
1
+ /* exported ITSECLoginInterstitial */
2
  ( function( $ ) {
3
 
4
  var VARS = [
93
  } ).bind( this ) );
94
  };
95
 
96
+ ITSECLoginInterstitial.prototype.submitToProceed = function( additionalFields = {} ) {
97
 
98
  var $form = $( '<form />' )
99
  .prop( 'method', 'post' )
116
  );
117
  }
118
 
119
+ for ( var field in additionalFields ) {
120
+ if ( ! additionalFields.hasOwnProperty( field ) ) {
121
+ continue;
122
+ }
123
+
124
+ $form.append(
125
+ $( '<input />' )
126
+ .prop( 'type', 'hidden' )
127
+ .prop( 'name', field )
128
+ .prop( 'value', additionalFields[ field ] )
129
+ );
130
+ }
131
+
132
  $form.appendTo( document.body );
133
  $form.submit();
134
  };
core/lib/schema.php CHANGED
@@ -15,6 +15,19 @@ final class ITSEC_Schema {
15
  'itsec_dashboard_events',
16
  ];
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  /**
19
  * Creates appropriate database tables.
20
  *
@@ -29,7 +42,7 @@ final class ITSEC_Schema {
29
 
30
  $charset_collate = $wpdb->get_charset_collate();
31
 
32
- $tables = "
33
  CREATE TABLE {$wpdb->base_prefix}itsec_logs (
34
  id bigint(20) unsigned NOT NULL auto_increment,
35
  parent_id bigint(20) unsigned NOT NULL default '0',
@@ -132,62 +145,91 @@ CREATE TABLE {$wpdb->base_prefix}itsec_fingerprints (
132
  ) $charset_collate;
133
 
134
  CREATE TABLE {$wpdb->base_prefix}itsec_opaque_tokens (
135
- token_id char(64) NOT NULL,
136
- token_hashed char(64) NOT NULL,
137
- token_type VARCHAR(32) NOT NULL,
138
- token_data TEXT NOT NULL,
139
- token_created_at DATETIME NOT NULL,
140
- PRIMARY KEY (token_id),
141
- UNIQUE KEY token_hashed (token_hashed)
142
  ) $charset_collate;
143
 
144
  CREATE TABLE {$wpdb->base_prefix}itsec_user_groups (
145
- group_id char(36) NOT NULL,
146
- group_label varchar(255) NOT NULL default '',
147
- group_roles TEXT,
148
- group_canonical TEXT,
149
- group_users TEXT,
150
- group_min_role varchar(255),
151
- group_created_at DATETIME,
152
- PRIMARY KEY (group_id)
153
  ) $charset_collate;
154
 
155
  CREATE TABLE {$wpdb->base_prefix}itsec_mutexes (
156
- mutex_id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
157
- mutex_name varchar(100) NOT NULL,
158
- mutex_expires int(11) UNSIGNED NOT NULL,
159
- PRIMARY KEY (mutex_id),
160
- UNIQUE KEY mutex_name (mutex_name)
161
  ) $charset_collate;
162
 
163
  CREATE TABLE {$wpdb->base_prefix}itsec_bans (
164
- id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
165
- host varchar(64) NOT NULL,
166
- type varchar(20) NOT NULL default 'ip',
167
- created_at datetime NOT NULL,
168
- actor_type varchar(20),
169
- actor_id varchar(128),
170
- comment varchar(255) NOT NULL default '',
171
- PRIMARY KEY (id),
172
- UNIQUE KEY host (host),
173
- KEY actor (actor_type,actor_id)
174
  ) $charset_collate;
175
 
176
  CREATE TABLE {$wpdb->base_prefix}itsec_dashboard_events (
177
- event_id int(11) unsigned NOT NULL AUTO_INCREMENT,
178
- event_slug varchar(128) NOT NULL DEFAULT '',
179
- event_time datetime NOT NULL,
180
- event_count int(11) unsigned NOT NULL DEFAULT '1',
181
- event_consolidated tinyint(1) NOT NULL DEFAULT '0',
182
- PRIMARY KEY (`event_id`),
183
- UNIQUE KEY `event_slug__time__consolidated` (event_slug,event_time,event_consolidated)
184
  ) $charset_collate;
185
  ";
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  $wp_error = new WP_Error();
188
- ITSEC_Lib::add_to_wp_error( $wp_error, ITSEC_Lib::db_delta_with_error_handling( $tables ) );
189
 
190
- foreach ( self::TABLES as $table ) {
191
  if ( ! count( $wpdb->get_results( "SHOW TABLES LIKE '{$wpdb->base_prefix}{$table}'" ) ) ) {
192
  $wp_error->add(
193
  'missing_table',
@@ -213,7 +255,7 @@ CREATE TABLE {$wpdb->base_prefix}itsec_dashboard_events (
213
  public static function remove_database_tables() {
214
  global $wpdb;
215
 
216
- foreach ( self::TABLES as $table ) {
217
  $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->base_prefix}{$table};" );
218
  }
219
 
15
  'itsec_dashboard_events',
16
  ];
17
 
18
+ const PRO_TABLES = [
19
+ 'itsec_webauthn_users',
20
+ 'itsec_webauthn_credentials',
21
+ ];
22
+
23
+ public static function get_table_names(): array {
24
+ if ( ITSEC_Core::is_pro() ) {
25
+ return array_merge( self::TABLES, self::PRO_TABLES );
26
+ } else {
27
+ return self::TABLES;
28
+ }
29
+ }
30
+
31
  /**
32
  * Creates appropriate database tables.
33
  *
42
 
43
  $charset_collate = $wpdb->get_charset_collate();
44
 
45
+ $sql = "
46
  CREATE TABLE {$wpdb->base_prefix}itsec_logs (
47
  id bigint(20) unsigned NOT NULL auto_increment,
48
  parent_id bigint(20) unsigned NOT NULL default '0',
145
  ) $charset_collate;
146
 
147
  CREATE TABLE {$wpdb->base_prefix}itsec_opaque_tokens (
148
+ token_id char(64) NOT NULL,
149
+ token_hashed char(64) NOT NULL,
150
+ token_type VARCHAR(32) NOT NULL,
151
+ token_data TEXT NOT NULL,
152
+ token_created_at DATETIME NOT NULL,
153
+ PRIMARY KEY (token_id),
154
+ UNIQUE KEY token_hashed (token_hashed)
155
  ) $charset_collate;
156
 
157
  CREATE TABLE {$wpdb->base_prefix}itsec_user_groups (
158
+ group_id char(36) NOT NULL,
159
+ group_label varchar(255) NOT NULL default '',
160
+ group_roles TEXT,
161
+ group_canonical TEXT,
162
+ group_users TEXT,
163
+ group_min_role varchar(255),
164
+ group_created_at DATETIME,
165
+ PRIMARY KEY (group_id)
166
  ) $charset_collate;
167
 
168
  CREATE TABLE {$wpdb->base_prefix}itsec_mutexes (
169
+ mutex_id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
170
+ mutex_name varchar(100) NOT NULL,
171
+ mutex_expires int(11) UNSIGNED NOT NULL,
172
+ PRIMARY KEY (mutex_id),
173
+ UNIQUE KEY mutex_name (mutex_name)
174
  ) $charset_collate;
175
 
176
  CREATE TABLE {$wpdb->base_prefix}itsec_bans (
177
+ id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
178
+ host varchar(64) NOT NULL,
179
+ type varchar(20) NOT NULL default 'ip',
180
+ created_at datetime NOT NULL,
181
+ actor_type varchar(20),
182
+ actor_id varchar(128),
183
+ comment varchar(255) NOT NULL default '',
184
+ PRIMARY KEY (id),
185
+ UNIQUE KEY host (host),
186
+ KEY actor (actor_type,actor_id)
187
  ) $charset_collate;
188
 
189
  CREATE TABLE {$wpdb->base_prefix}itsec_dashboard_events (
190
+ event_id int(11) unsigned NOT NULL AUTO_INCREMENT,
191
+ event_slug varchar(128) NOT NULL DEFAULT '',
192
+ event_time datetime NOT NULL,
193
+ event_count int(11) unsigned NOT NULL DEFAULT '1',
194
+ event_consolidated tinyint(1) NOT NULL DEFAULT '0',
195
+ PRIMARY KEY (`event_id`),
196
+ UNIQUE KEY `event_slug__time__consolidated` (event_slug,event_time,event_consolidated)
197
  ) $charset_collate;
198
  ";
199
 
200
+ if ( ITSEC_Core::is_pro() ) {
201
+ $sql .= "
202
+ CREATE TABLE {$wpdb->base_prefix}itsec_webauthn_users (
203
+ user_id bigint(20) unsigned NOT NULL,
204
+ webauthn_id CHAR(44) NOT NULL,
205
+ PRIMARY KEY (`user_id`)
206
+ ) $charset_collate;
207
+
208
+ CREATE TABLE {$wpdb->base_prefix}itsec_webauthn_credentials (
209
+ ref char(64) CHARACTER SET latin1 COLLATE latin1_bin,
210
+ id varchar(1024) NOT NULL,
211
+ type varchar(40) NOT NULL,
212
+ transports text NOT NULL,
213
+ public_key text NOT NULL,
214
+ sign_count bigint unsigned NOT NULL,
215
+ backup_eligible tinyint(1) unsigned NOT NULL,
216
+ backed_up tinyint(1) unsigned NOT NULL,
217
+ webauthn_user char(44) NOT NULL,
218
+ created_at datetime NOT NULL,
219
+ last_used datetime default NULL,
220
+ trashed_at datetime default NULL,
221
+ label varchar(255) NOT NULL,
222
+ status varchar(20) NOT NULL,
223
+ PRIMARY KEY (`ref`),
224
+ KEY `webauthn_user__status` (`webauthn_user`, `status`)
225
+ ) $charset_collate;
226
+ ";
227
+ }
228
+
229
  $wp_error = new WP_Error();
230
+ ITSEC_Lib::add_to_wp_error( $wp_error, ITSEC_Lib::db_delta_with_error_handling( $sql ) );
231
 
232
+ foreach ( self::get_table_names() as $table ) {
233
  if ( ! count( $wpdb->get_results( "SHOW TABLES LIKE '{$wpdb->base_prefix}{$table}'" ) ) ) {
234
  $wp_error->add(
235
  'missing_table',
255
  public static function remove_database_tables() {
256
  global $wpdb;
257
 
258
+ foreach ( self::get_table_names() as $table ) {
259
  $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->base_prefix}{$table};" );
260
  }
261
 
core/lib/site-types/Question.php CHANGED
@@ -11,6 +11,7 @@ interface Question {
11
  const SELECT_END_USERS = 'select-end-users';
12
  const END_USERS_TWO_FACTOR = 'end-users-two-factor';
13
  const END_USERS_PASSWORD_POLICY = 'end-users-password-policy';
 
14
 
15
  /**
16
  * Gets a unique id identifying this question.
11
  const SELECT_END_USERS = 'select-end-users';
12
  const END_USERS_TWO_FACTOR = 'end-users-two-factor';
13
  const END_USERS_PASSWORD_POLICY = 'end-users-password-policy';
14
+ const SECURITY_CHECK_PRO = 'security-check-pro';
15
 
16
  /**
17
  * Gets a unique id identifying this question.
core/lib/site-types/Question/Global_Question_Pack.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace iThemesSecurity\Lib\Site_Types\Question;
4
+
5
+ use iThemesSecurity\Lib\Site_Types\Answer_Handler;
6
+ use iThemesSecurity\Lib\Site_Types\Question;
7
+ use iThemesSecurity\Lib\Site_Types\Questions_Provider;
8
+ use iThemesSecurity\Lib\Site_Types\Responds;
9
+
10
+ final class Global_Question_Pack implements Questions_Provider {
11
+ public function get_questions(): array {
12
+ $questions = [];
13
+
14
+ if ( ! \ITSEC_Modules::is_active( 'security-check-pro' ) ) {
15
+ $questions[] = new class implements Question, Responds {
16
+ public function get_id(): string {
17
+ return self::SECURITY_CHECK_PRO;
18
+ }
19
+
20
+ public function get_prompt(): string {
21
+ return __( 'Enable Security Check Pro?', 'better-wp-security' );
22
+ }
23
+
24
+ public function get_description(): string {
25
+ return __( 'Detects the correct way to identify user IP addresses based on your server configuration by making an API request to iThemes.com servers. No user information is sent to iThemes.', 'better-wp-security' );
26
+ }
27
+
28
+ public function get_answer_schema(): array {
29
+ return [
30
+ 'type' => 'boolean',
31
+ 'title' => __( 'Enable Security Check Pro', 'better-wp-security' ),
32
+ 'description' => '<a href="https://ithemes.com/privacy-policy/">' . __( 'Read our Privacy Policy', 'better-wp-security' ) . '</a>',
33
+ 'default' => false,
34
+ 'uiSchema' => [
35
+ 'ui:widget' => 'ToggleWidget',
36
+ ],
37
+ ];
38
+ }
39
+
40
+ public function respond( Answer_Handler $handler ) {
41
+ $handler->enable_module( 'security-check-pro' );
42
+ $handler->set_setting( 'global', 'proxy', 'security-check' );
43
+ }
44
+ };
45
+ }
46
+
47
+ return $questions;
48
+ }
49
+ }
core/lib/site-types/Type/Blog.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace iThemesSecurity\Lib\Site_Types\Type;
4
 
5
  use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
 
6
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Site_Type;
8
 
@@ -25,6 +26,7 @@ final class Blog implements Site_Type {
25
 
26
  public function get_questions(): array {
27
  return array_merge(
 
28
  ( new Client_Question_Pack() )->get_questions(),
29
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
30
  );
3
  namespace iThemesSecurity\Lib\Site_Types\Type;
4
 
5
  use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
6
+ use iThemesSecurity\Lib\Site_Types\Question\Global_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Site_Type;
9
 
26
 
27
  public function get_questions(): array {
28
  return array_merge(
29
+ ( new Global_Question_Pack() )->get_questions(),
30
  ( new Client_Question_Pack() )->get_questions(),
31
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
32
  );
core/lib/site-types/Type/Brochure.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace iThemesSecurity\Lib\Site_Types\Type;
4
 
5
  use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
 
6
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Site_Type;
8
 
@@ -25,6 +26,7 @@ final class Brochure implements Site_Type {
25
 
26
  public function get_questions(): array {
27
  return array_merge(
 
28
  ( new Client_Question_Pack() )->get_questions(),
29
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
30
  );
3
  namespace iThemesSecurity\Lib\Site_Types\Type;
4
 
5
  use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
6
+ use iThemesSecurity\Lib\Site_Types\Question\Global_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Site_Type;
9
 
26
 
27
  public function get_questions(): array {
28
  return array_merge(
29
+ ( new Global_Question_Pack() )->get_questions(),
30
  ( new Client_Question_Pack() )->get_questions(),
31
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
32
  );
core/lib/site-types/Type/Ecommerce.php CHANGED
@@ -7,6 +7,7 @@ use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Question\End_Users_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Has_End_Users;
9
  use iThemesSecurity\Lib\Site_Types\Question;
 
10
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
11
  use iThemesSecurity\Lib\Site_Types\Templating_Site_Type;
12
 
@@ -35,6 +36,7 @@ final class Ecommerce implements Templating_Site_Type, Has_End_Users {
35
 
36
  public function get_questions(): array {
37
  return array_merge(
 
38
  ( new Client_Question_Pack() )->get_questions(),
39
  ( new End_Users_Question_Pack( $this ) )->get_questions(),
40
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
7
  use iThemesSecurity\Lib\Site_Types\Question\End_Users_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Has_End_Users;
9
  use iThemesSecurity\Lib\Site_Types\Question;
10
+ use iThemesSecurity\Lib\Site_Types\Question\Global_Question_Pack;
11
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
12
  use iThemesSecurity\Lib\Site_Types\Templating_Site_Type;
13
 
36
 
37
  public function get_questions(): array {
38
  return array_merge(
39
+ ( new Global_Question_Pack() )->get_questions(),
40
  ( new Client_Question_Pack() )->get_questions(),
41
  ( new End_Users_Question_Pack( $this ) )->get_questions(),
42
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
core/lib/site-types/Type/Network.php CHANGED
@@ -7,6 +7,7 @@ use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Question\End_Users_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Has_End_Users;
9
  use iThemesSecurity\Lib\Site_Types\Question;
 
10
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
11
  use iThemesSecurity\Lib\Site_Types\Templating_Site_Type;
12
 
@@ -35,6 +36,7 @@ final class Network implements Templating_Site_Type, Has_End_Users {
35
 
36
  public function get_questions(): array {
37
  return array_merge(
 
38
  ( new Client_Question_Pack() )->get_questions(),
39
  ( new End_Users_Question_Pack( $this ) )->get_questions(),
40
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
7
  use iThemesSecurity\Lib\Site_Types\Question\End_Users_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Has_End_Users;
9
  use iThemesSecurity\Lib\Site_Types\Question;
10
+ use iThemesSecurity\Lib\Site_Types\Question\Global_Question_Pack;
11
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
12
  use iThemesSecurity\Lib\Site_Types\Templating_Site_Type;
13
 
36
 
37
  public function get_questions(): array {
38
  return array_merge(
39
+ ( new Global_Question_Pack() )->get_questions(),
40
  ( new Client_Question_Pack() )->get_questions(),
41
  ( new End_Users_Question_Pack( $this ) )->get_questions(),
42
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
core/lib/site-types/Type/Non_Profit.php CHANGED
@@ -7,6 +7,7 @@ use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Question\End_Users_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Has_End_Users;
9
  use iThemesSecurity\Lib\Site_Types\Question;
 
10
  use iThemesSecurity\Lib\Site_Types\Templating_Site_Type;
11
 
12
  final class Non_Profit implements Templating_Site_Type, Has_End_Users {
@@ -34,6 +35,7 @@ final class Non_Profit implements Templating_Site_Type, Has_End_Users {
34
 
35
  public function get_questions(): array {
36
  return array_merge(
 
37
  ( new Client_Question_Pack() )->get_questions(),
38
  ( new End_Users_Question_Pack( $this ) )->get_questions(),
39
  ( new Question\Login_Security_Question_Pack( $this ) )->get_questions()
7
  use iThemesSecurity\Lib\Site_Types\Question\End_Users_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Has_End_Users;
9
  use iThemesSecurity\Lib\Site_Types\Question;
10
+ use iThemesSecurity\Lib\Site_Types\Question\Global_Question_Pack;
11
  use iThemesSecurity\Lib\Site_Types\Templating_Site_Type;
12
 
13
  final class Non_Profit implements Templating_Site_Type, Has_End_Users {
35
 
36
  public function get_questions(): array {
37
  return array_merge(
38
+ ( new Global_Question_Pack() )->get_questions(),
39
  ( new Client_Question_Pack() )->get_questions(),
40
  ( new End_Users_Question_Pack( $this ) )->get_questions(),
41
  ( new Question\Login_Security_Question_Pack( $this ) )->get_questions()
core/lib/site-types/Type/Portfolio.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace iThemesSecurity\Lib\Site_Types\Type;
4
 
5
  use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
 
6
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Site_Type;
8
 
@@ -25,6 +26,7 @@ final class Portfolio implements Site_Type {
25
 
26
  public function get_questions(): array {
27
  return array_merge(
 
28
  ( new Client_Question_Pack() )->get_questions(),
29
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
30
  );
3
  namespace iThemesSecurity\Lib\Site_Types\Type;
4
 
5
  use iThemesSecurity\Lib\Site_Types\Question\Client_Question_Pack;
6
+ use iThemesSecurity\Lib\Site_Types\Question\Global_Question_Pack;
7
  use iThemesSecurity\Lib\Site_Types\Question\Login_Security_Question_Pack;
8
  use iThemesSecurity\Lib\Site_Types\Site_Type;
9
 
26
 
27
  public function get_questions(): array {
28
  return array_merge(
29
+ ( new Global_Question_Pack() )->get_questions(),
30
  ( new Client_Question_Pack() )->get_questions(),
31
  ( new Login_Security_Question_Pack( $this ) )->get_questions()
32
  );
core/lockout.php CHANGED
@@ -6,10 +6,15 @@
6
  * @package iThemes-Security
7
  */
8
 
 
 
 
 
9
  use iThemesSecurity\Lib\Lockout;
10
  use iThemesSecurity\Lib\Lockout\Execute_Lock;
11
  use iThemesSecurity\Lib\Lockout\Execute_Lock\Source\Configurable;
12
  use iThemesSecurity\Lib\Lockout\Execute_Lock\Source\Lockout_Module;
 
13
 
14
  require_once( __DIR__ . '/lib/lockout/execute-lock/source/interface-source.php' );
15
  require_once( __DIR__ . '/lib/lockout/execute-lock/abstract-context.php' );
@@ -76,6 +81,8 @@ final class ITSEC_Lockout {
76
  }
77
 
78
  public function run() {
 
 
79
  add_action( 'itsec_scheduled_purge-lockouts', array( $this, 'purge_lockouts' ) );
80
 
81
  //Check for host lockouts
@@ -694,6 +701,86 @@ final class ITSEC_Lockout {
694
  );
695
  }
696
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  /**
698
  * Executes lockout (locks user out)
699
  *
@@ -942,6 +1029,10 @@ final class ITSEC_Lockout {
942
  return $results[0]['COUNT'];
943
  }
944
 
 
 
 
 
945
  return $results;
946
  }
947
 
@@ -1190,16 +1281,21 @@ final class ITSEC_Lockout {
1190
  public function get_lockout( $id, $return = ARRAY_A ) {
1191
  global $wpdb;
1192
 
1193
- $results = $wpdb->get_results( $wpdb->prepare(
1194
- "SELECT * FROM `{$wpdb->base_prefix}itsec_lockouts` WHERE `lockout_id` = %d",
1195
- $id
1196
- ), ARRAY_A );
1197
 
1198
- if ( ! is_array( $results ) || ! isset( $results[0] ) ) {
1199
- return false;
1200
- }
 
 
1201
 
1202
- $data = $results[0];
 
 
 
 
 
 
1203
 
1204
  if ( $return === OBJECT ) {
1205
  return $this->hydrate_lockout_entity( $id, $data );
6
  * @package iThemes-Security
7
  */
8
 
9
+ use iThemesSecurity\Actor\Actor;
10
+ use iThemesSecurity\Ban_Hosts\Repository_Ban;
11
+ use iThemesSecurity\Ban_Users;
12
+ use iThemesSecurity\Ban_Users\Ban;
13
  use iThemesSecurity\Lib\Lockout;
14
  use iThemesSecurity\Lib\Lockout\Execute_Lock;
15
  use iThemesSecurity\Lib\Lockout\Execute_Lock\Source\Configurable;
16
  use iThemesSecurity\Lib\Lockout\Execute_Lock\Source\Lockout_Module;
17
+ use iThemesSecurity\Lib\Result;
18
 
19
  require_once( __DIR__ . '/lib/lockout/execute-lock/source/interface-source.php' );
20
  require_once( __DIR__ . '/lib/lockout/execute-lock/abstract-context.php' );
81
  }
82
 
83
  public function run() {
84
+ wp_cache_add_non_persistent_groups( 'itsec-lockouts' );
85
+
86
  add_action( 'itsec_scheduled_purge-lockouts', array( $this, 'purge_lockouts' ) );
87
 
88
  //Check for host lockouts
701
  );
702
  }
703
 
704
+ /**
705
+ * Checks if ITSEC supports ban creation from a lockout.
706
+ *
707
+ * @return bool True if ban users module is active.
708
+ */
709
+ public function is_lockout_banning_available(): bool {
710
+ return ITSEC_Modules::is_active( 'ban-users' );
711
+ }
712
+
713
+ /**
714
+ * Checks is specific lockout can be banned.
715
+ *
716
+ * @param int $lockout_id The lockout id.
717
+ *
718
+ * @return Result<Lockout\Lockout> Successful if lockout can be banned.
719
+ */
720
+ public function can_create_ban_from_lockout( int $lockout_id ): Result {
721
+ if ( ! $this->is_lockout_banning_available() ) {
722
+ return Result::error( new WP_Error(
723
+ 'itsec.lockout.persist-ban.not-supported',
724
+ __( 'Not supported.', 'better-wp-security' )
725
+ ) );
726
+ }
727
+
728
+ try {
729
+ $lockout = $this->get_lockout( $lockout_id, OBJECT );
730
+ } catch ( Exception $e ) {
731
+ return Result::error( new WP_Error(
732
+ 'itsec.lockout.persist-ban.invalid-lockout',
733
+ __( 'Invalid lockout.', 'better-wp-security' )
734
+ ) );
735
+ }
736
+
737
+ if ( ! $lockout instanceof Lockout\Lockout ) {
738
+ return Result::error( new WP_Error(
739
+ 'itsec.lockout.persist-ban.lockout-not-found',
740
+ __( 'Lockout not found.', 'better-wp-security' )
741
+ ) );
742
+ }
743
+
744
+ if ( ! $lockout->get_host() ) {
745
+ return Result::error( new WP_Error(
746
+ 'itsec.lockout.persist-ban.no-host',
747
+ __( 'No host.', 'better-wp-security' )
748
+ ) );
749
+ }
750
+
751
+ return Result::success( $lockout );
752
+ }
753
+
754
+ /**
755
+ * Creates a ban from a lockout
756
+ *
757
+ * @param int $lockout_id The lockout id.
758
+ * @param Actor|null $actor Optionally, the actor creating the ban.
759
+ *
760
+ * @return Result<Repository_Ban>
761
+ */
762
+ public function persist_ban_from_lockout( int $lockout_id, Actor $actor = null ): Result {
763
+
764
+ $can_convert = $this->can_create_ban_from_lockout( $lockout_id );
765
+ if ( ! $can_convert->is_success() ) {
766
+ return $can_convert;
767
+ }
768
+
769
+ $lockout = $can_convert->get_data();
770
+ $module = $lockout->get_module();
771
+ $comment = $this->lockout_modules[ $module ]['reason'] ?? '';
772
+ $ban = new Ban( $lockout->get_host(), $actor, $comment );
773
+ $repository = ITSEC_Modules::get_container()->get( Ban_Users\Database_Repository::class );
774
+
775
+ try {
776
+ $saved = $repository->persist( $ban );
777
+ } catch ( \iThemesSecurity\Exception\WP_Error $e ) {
778
+ return Result::error( $e->get_error() );
779
+ }
780
+
781
+ return Result::success( $saved );
782
+ }
783
+
784
  /**
785
  * Executes lockout (locks user out)
786
  *
1029
  return $results[0]['COUNT'];
1030
  }
1031
 
1032
+ foreach ( $results as $result ) {
1033
+ wp_cache_add( $result['lockout_id'], $result, 'itsec-lockouts' );
1034
+ }
1035
+
1036
  return $results;
1037
  }
1038
 
1281
  public function get_lockout( $id, $return = ARRAY_A ) {
1282
  global $wpdb;
1283
 
1284
+ $data = wp_cache_get( $id, 'itsec-lockouts' );
 
 
 
1285
 
1286
+ if ( ! $data ) {
1287
+ $results = $wpdb->get_results( $wpdb->prepare(
1288
+ "SELECT * FROM `{$wpdb->base_prefix}itsec_lockouts` WHERE `lockout_id` = %d",
1289
+ $id
1290
+ ), ARRAY_A );
1291
 
1292
+ if ( ! is_array( $results ) || ! isset( $results[0] ) ) {
1293
+ return false;
1294
+ }
1295
+
1296
+ $data = $results[0];
1297
+ wp_cache_add( $id, $data, 'itsec-lockouts' );
1298
+ }
1299
 
1300
  if ( $return === OBJECT ) {
1301
  return $this->hydrate_lockout_entity( $id, $data );
core/module-schema.json CHANGED
@@ -458,6 +458,21 @@
458
  }
459
  }
460
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  "requirements": {
462
  "type": "object",
463
  "properties": {
@@ -482,6 +497,54 @@
482
  }
483
  }
484
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
  }
486
  },
487
  "additionalProperties": false
@@ -551,6 +614,9 @@
551
  "activate",
552
  "run"
553
  ]
 
 
 
554
  }
555
  }
556
  }
458
  }
459
  }
460
  },
461
+ "encryption": {
462
+ "type": "object",
463
+ "additionalProperties": false,
464
+ "properties": {
465
+ "user-meta": {
466
+ "description": "List of user meta keys that store encrypted values.",
467
+ "type": "array",
468
+ "uniqueItems": true,
469
+ "items": {
470
+ "type": "string",
471
+ "minLength": 1
472
+ }
473
+ }
474
+ }
475
+ },
476
  "requirements": {
477
  "type": "object",
478
  "properties": {
497
  }
498
  }
499
  ]
500
+ },
501
+ "multisite": {
502
+ "type": "object",
503
+ "allOf": [
504
+ {
505
+ "$ref": "#/definitions/requirement"
506
+ },
507
+ {
508
+ "type": "object",
509
+ "required": [
510
+ "status"
511
+ ],
512
+ "properties": {
513
+ "status": {
514
+ "type": "string",
515
+ "enum": [
516
+ "enabled",
517
+ "disabled"
518
+ ]
519
+ }
520
+ }
521
+ }
522
+ ]
523
+ },
524
+ "server": {
525
+ "type": "object",
526
+ "allOf": [
527
+ {
528
+ "$ref": "#/definitions/requirement"
529
+ },
530
+ {
531
+ "type": "object",
532
+ "properties": {
533
+ "php": {
534
+ "type": "string"
535
+ },
536
+ "extensions": {
537
+ "type": "array",
538
+ "items": {
539
+ "type": "string",
540
+ "enum": [
541
+ "OpenSSL"
542
+ ]
543
+ }
544
+ }
545
+ }
546
+ }
547
+ ]
548
  }
549
  },
550
  "additionalProperties": false
614
  "activate",
615
  "run"
616
  ]
617
+ },
618
+ "showMessageIfUnmet": {
619
+ "type": "boolean"
620
  }
621
  }
622
  }
core/modules.php CHANGED
@@ -9,8 +9,9 @@ use iThemesSecurity\Import_Export\Export\Export;
9
  use iThemesSecurity\Import_Export\Import\Import_Context;
10
  use iThemesSecurity\Lib\Result;
11
  use iThemesSecurity\Module_Config;
12
- use Pimple\Container;
13
- use Psr\Container\ContainerInterface;
 
14
 
15
  final class ITSEC_Modules implements Import_Export_Source {
16
  const DEPRECATED = [
@@ -57,7 +58,7 @@ final class ITSEC_Modules implements Import_Export_Source {
57
  add_action( 'itsec-lib-clear-caches', array( $this, 'reload_settings' ), 0 );
58
 
59
  $this->pimple = new Container();
60
- $this->container = new Pimple\Psr11\Container( $this->pimple );
61
 
62
  $this->pimple[ ContainerInterface::class ] = $this->container;
63
  }
@@ -974,6 +975,17 @@ final class ITSEC_Modules implements Import_Export_Source {
974
  $check['feature-flags'] = $requirements['feature-flags']['flags'];
975
  }
976
 
 
 
 
 
 
 
 
 
 
 
 
977
  return ITSEC_Lib::evaluate_requirements( $check );
978
  }
979
 
9
  use iThemesSecurity\Import_Export\Import\Import_Context;
10
  use iThemesSecurity\Lib\Result;
11
  use iThemesSecurity\Module_Config;
12
+ use iThemesSecurity\Strauss\Pimple\Container;
13
+ use iThemesSecurity\Strauss\Pimple\Psr11\Container as Psr11Container;
14
+ use iThemesSecurity\Strauss\Psr\Container\ContainerInterface;
15
 
16
  final class ITSEC_Modules implements Import_Export_Source {
17
  const DEPRECATED = [
58
  add_action( 'itsec-lib-clear-caches', array( $this, 'reload_settings' ), 0 );
59
 
60
  $this->pimple = new Container();
61
+ $this->container = new Psr11Container( $this->pimple );
62
 
63
  $this->pimple[ ContainerInterface::class ] = $this->container;
64
  }
975
  $check['feature-flags'] = $requirements['feature-flags']['flags'];
976
  }
977
 
978
+ if ( isset( $requirements['multisite'] ) && ( $mode === 'activate' || $requirements['multisite']['validate'] === $mode ) ) {
979
+ $check['multisite'] = $requirements['multisite']['status'];
980
+ }
981
+
982
+ if ( isset( $requirements['server'] ) && ( $mode === 'activate' || $requirements['server']['validate'] === $mode ) ) {
983
+ $check['server'] = [
984
+ 'php' => $requirements['server']['php'] ?? null,
985
+ 'extensions' => $requirements['server']['extensions'] ?? [],
986
+ ];
987
+ }
988
+
989
  return ITSEC_Lib::evaluate_requirements( $check );
990
  }
991
 
core/modules/backup/container.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- use Pimple\Container;
4
 
5
  return static function ( Container $c ) {
6
  ITSEC_Lib::extend_if_able( $c, 'dashboard.cards', function ( $cards ) {
1
  <?php
2
 
3
+ use iThemesSecurity\Strauss\Pimple\Container;
4
 
5
  return static function ( Container $c ) {
6
  ITSEC_Lib::extend_if_able( $c, 'dashboard.cards', function ( $cards ) {
core/modules/ban-users/container.php CHANGED
@@ -4,7 +4,7 @@ namespace iThemesSecurity\Ban_Users;
4
 
5
  use iThemesSecurity\Actor\Multi_Actor_Factory;
6
  use iThemesSecurity\Ban_Hosts\Filters;
7
- use Pimple\Container;
8
 
9
  return static function ( Container $c ) {
10
  $c['module.ban-users.files'] = [
4
 
5
  use iThemesSecurity\Actor\Multi_Actor_Factory;
6
  use iThemesSecurity\Ban_Hosts\Filters;
7
+ use iThemesSecurity\Strauss\Pimple\Container;
8
 
9
  return static function ( Container $c ) {
10
  $c['module.ban-users.files'] = [
core/modules/content-directory/module.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "id": "admin-user",
3
  "type": "tool",
4
  "status": "default-inactive",
5
  "deprecated": "8.0.0",
1
  {
2
+ "id": "content-directory",
3
  "type": "tool",
4
  "status": "default-inactive",
5
  "deprecated": "8.0.0",
core/modules/core/class-itsec-core-active.php CHANGED
@@ -1,5 +1,11 @@
1
  <?php
2
 
 
 
 
 
 
 
3
  class ITSEC_Core_Active {
4
 
5
  /** @var string[] */
@@ -12,6 +18,8 @@ class ITSEC_Core_Active {
12
  add_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ), 0 );
13
  add_action( 'wp_footer', array( $this, 'add_live_reload' ), 1000 );
14
  add_action( 'admin_footer', array( $this, 'add_live_reload' ), 1000 );
 
 
15
  }
16
 
17
  public function rest_api_init() {
@@ -30,7 +38,15 @@ class ITSEC_Core_Active {
30
  $manifest = require $dir . 'manifest.php';
31
  }
32
 
 
 
33
  foreach ( $manifest as $name => $config ) {
 
 
 
 
 
 
34
  foreach ( $config['files'] as $file ) {
35
  $handle = $this->name_to_handle( $name );
36
  $this->handles[] = $handle;
@@ -45,13 +61,21 @@ class ITSEC_Core_Active {
45
  $path = 'dist/' . $file;
46
  $is_debug = true;
47
  } else {
48
- $path = 'dist/' . str_replace( '.', '.min.', $file );
 
 
 
 
49
  $is_debug = false;
50
  }
51
 
52
  $is_css = ITSEC_Lib::str_ends_with( $file, '.css' );
53
  $is_js = ! $is_css;
54
 
 
 
 
 
55
  if ( $is_debug ) {
56
  $version = filemtime( $dir . $file );
57
  } elseif ( $is_js && isset( $config['contentHash']['javascript'] ) ) {
@@ -62,24 +86,28 @@ class ITSEC_Core_Active {
62
  $version = $config['hash'];
63
  }
64
 
65
- $deps = $is_js ? $config['dependencies'] : array();
66
-
67
- if ( $is_js && 'runtime' !== $name ) {
68
- $deps[] = $this->name_to_handle( 'runtime' );
69
- }
70
-
71
- if ( $is_css && in_array( 'wp-components', $config['dependencies'], true ) ) {
72
- $deps[] = 'wp-components';
73
- }
74
 
75
  foreach ( $deps as $i => $dep ) {
76
  if ( ! ITSEC_Lib::str_starts_with( $dep, '@ithemes/security.' ) ) {
77
  continue;
78
  }
79
 
80
- $parts = explode( '.', $dep );
81
 
82
- $deps[ $i ] = $this->name_to_handle( "{$parts[1]}/{$parts[2]}" );
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
 
85
  foreach ( array_reverse( $config['vendors'] ) as $vendor ) {
@@ -111,7 +139,7 @@ class ITSEC_Core_Active {
111
  }
112
 
113
  if ( in_array( 'wp-i18n', $deps, true ) ) {
114
- wp_set_script_translations( $handle, 'better-wp-security' );
115
  }
116
 
117
  if ( $is_js && ! empty( $config['runtime'] ) ) {
@@ -119,6 +147,28 @@ class ITSEC_Core_Active {
119
  wp_add_inline_script( $handle, "window.itsecWebpackPublicPath = window.itsecWebpackPublicPath || '{$public_path}';", 'before' );
120
  }
121
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
 
124
  wp_add_inline_script( 'itsec-packages-data', sprintf(
@@ -172,4 +222,159 @@ class ITSEC_Core_Active {
172
 
173
  return 'itsec-' . str_replace( '/', '-', $name );
174
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  }
1
  <?php
2
 
3
+ use iThemesSecurity\Encryption\User_Key_Rotator;
4
+ use iThemesSecurity\Lib\Result;
5
+ use iThemesSecurity\Lib\Tools\Config_Tool;
6
+ use iThemesSecurity\Lib\Tools\Tools_Registry;
7
+ use iThemesSecurity\Module_Config;
8
+
9
  class ITSEC_Core_Active {
10
 
11
  /** @var string[] */
18
  add_action( 'admin_enqueue_scripts', array( $this, 'register_scripts' ), 0 );
19
  add_action( 'wp_footer', array( $this, 'add_live_reload' ), 1000 );
20
  add_action( 'admin_footer', array( $this, 'add_live_reload' ), 1000 );
21
+ add_action( 'itsec_register_tools', array( $this, 'register_tools' ) );
22
+ add_action( 'itsec_encryption_rotate_user_keys', array( $this, 'rotate_encrypted_user_keys' ), 10, 2 );
23
  }
24
 
25
  public function rest_api_init() {
38
  $manifest = require $dir . 'manifest.php';
39
  }
40
 
41
+ $handles_with_package_dependencies = [];
42
+
43
  foreach ( $manifest as $name => $config ) {
44
+ if ( ! $config['files'] ) {
45
+ continue;
46
+ }
47
+
48
+ $has_css = false;
49
+
50
  foreach ( $config['files'] as $file ) {
51
  $handle = $this->name_to_handle( $name );
52
  $this->handles[] = $handle;
61
  $path = 'dist/' . $file;
62
  $is_debug = true;
63
  } else {
64
+ if ( strpos( $file, '.min.' ) === false ) {
65
+ $file = str_replace( '.', '.min.', $file );
66
+ }
67
+
68
+ $path = 'dist/' . $file;
69
  $is_debug = false;
70
  }
71
 
72
  $is_css = ITSEC_Lib::str_ends_with( $file, '.css' );
73
  $is_js = ! $is_css;
74
 
75
+ if ( $is_css ) {
76
+ $has_css = true;
77
+ }
78
+
79
  if ( $is_debug ) {
80
  $version = filemtime( $dir . $file );
81
  } elseif ( $is_js && isset( $config['contentHash']['javascript'] ) ) {
86
  $version = $config['hash'];
87
  }
88
 
89
+ $deps = $is_js ? $config['dependencies'] : [];
 
 
 
 
 
 
 
 
90
 
91
  foreach ( $deps as $i => $dep ) {
92
  if ( ! ITSEC_Lib::str_starts_with( $dep, '@ithemes/security.' ) ) {
93
  continue;
94
  }
95
 
 
96
 
97
+ $parts = explode( '.', $dep );
98
+ $dep_handle = $this->name_to_handle( "{$parts[1]}/{$parts[2]}" );
99
+
100
+ $deps[ $i ] = $dep_handle;
101
+
102
+ $handles_with_package_dependencies[ $handle ][] = $dep_handle;
103
+ }
104
+
105
+ if ( $is_js && 'runtime' !== $name ) {
106
+ $deps[] = $this->name_to_handle( 'runtime' );
107
+ }
108
+
109
+ if ( $is_css && in_array( 'wp-components', $config['dependencies'], true ) ) {
110
+ $deps[] = 'wp-components';
111
  }
112
 
113
  foreach ( array_reverse( $config['vendors'] ) as $vendor ) {
139
  }
140
 
141
  if ( in_array( 'wp-i18n', $deps, true ) ) {
142
+ wp_set_script_translations( $handle, 'LION', '' );
143
  }
144
 
145
  if ( $is_js && ! empty( $config['runtime'] ) ) {
147
  wp_add_inline_script( $handle, "window.itsecWebpackPublicPath = window.itsecWebpackPublicPath || '{$public_path}';", 'before' );
148
  }
149
  }
150
+
151
+ if ( ! $has_css && in_array( 'wp-components', $config['dependencies'], true ) ) {
152
+ wp_register_style(
153
+ $this->name_to_handle( $name ),
154
+ '',
155
+ [ 'wp-components' ]
156
+ );
157
+ }
158
+ }
159
+
160
+ foreach ( $handles_with_package_dependencies as $handle => $dependencies ) {
161
+ if ( ! $asset = wp_styles()->registered[ $handle ] ?? null ) {
162
+ continue;
163
+ }
164
+
165
+ foreach ( $dependencies as $dependency ) {
166
+ if ( ! wp_style_is( $dependency, 'registered' ) ) {
167
+ continue;
168
+ }
169
+
170
+ $asset->deps[] = $dependency;
171
+ }
172
  }
173
 
174
  wp_add_inline_script( 'itsec-packages-data', sprintf(
222
 
223
  return 'itsec-' . str_replace( '/', '-', $name );
224
  }
225
+
226
+ public function register_tools( Tools_Registry $registry ) {
227
+ $registry->register( new class( 'set-encryption-key', ITSEC_Modules::get_config( 'core' ) ) extends Config_Tool {
228
+ public function run( array $form = [] ): Result {
229
+ if ( ITSEC_Lib_Encryption::is_available() && ! $form['confirm'] ) {
230
+ return Result::error( new WP_Error(
231
+ 'itsec.tool.set-encryption-key.unconfirmed',
232
+ __( 'You must check “Confirm Reset Key” to continue.', 'better-wp-security' )
233
+ ) );
234
+ }
235
+
236
+ try {
237
+ $key = ITSEC_Lib_Encryption::generate_secret();
238
+ } catch ( RuntimeException $e ) {
239
+ return Result::error( new WP_Error(
240
+ 'itsec.tool.set-encryption-key.cannot-generate-key',
241
+ __( 'Could not generate a random encryption key.', 'better-wp-security' )
242
+ ) );
243
+ }
244
+
245
+ $saved = ITSEC_Lib_Encryption::save_secret_key( $key );
246
+
247
+ if ( ! $saved->is_success() ) {
248
+ return $saved;
249
+ }
250
+
251
+ if ( ITSEC_Lib_Encryption::is_available() ) {
252
+ $rotated = ITSEC_Lib_Encryption::rotate_with_new_key( $key );
253
+
254
+ return Result::combine( $saved, $rotated );
255
+ }
256
+
257
+ return $saved;
258
+ }
259
+
260
+ public function get_help(): string {
261
+ $help = parent::get_help();
262
+
263
+ if ( ! ITSEC_Lib_Encryption::is_available() ) {
264
+ return $help;
265
+ }
266
+
267
+ $help .= ' ' . __( 'Your site already has a valid encryption key. Use this tool to automatically re-encrypt all secrets with a new encryption key.', 'better-wp-security' );
268
+ $help .= ' ' . __( 'This may take a while. If available, try running this tool with WP CLI for better performance.', 'better-wp-security' );
269
+
270
+ return $help;
271
+ }
272
+
273
+ public function get_form(): array {
274
+ if ( ITSEC_Lib_Encryption::is_available() ) {
275
+ return parent::get_form();
276
+ }
277
+
278
+ return [];
279
+ }
280
+
281
+ public function is_available(): bool {
282
+ return ITSEC_Files::can_write_to_files();
283
+ }
284
+ } );
285
+
286
+ $registry->register( new class( 'rotate-encryption-key', ITSEC_Modules::get_config( 'core' ) ) extends Config_Tool {
287
+ public function run( array $form = [] ): Result {
288
+ $old_key = $form['previous'];
289
+
290
+ return ITSEC_Lib_Encryption::rotate_with_old_key( $old_key );
291
+ }
292
+
293
+ public function is_available(): bool {
294
+ return ITSEC_Files::can_write_to_files() &&
295
+ ITSEC_Lib_Encryption::has_encryption_key_changed() &&
296
+ ITSEC_Lib_Encryption::is_available();
297
+ }
298
+ } );
299
+ }
300
+
301
+ public function rotate_encrypted_user_keys( User_Key_Rotator $rotator, Result $result ) {
302
+ global $wpdb;
303
+
304
+ $user_meta_keys = array_reduce( ITSEC_Modules::get_config_list( ':all' ), function ( $keys, Module_Config $config ) {
305
+ array_push( $keys, ...$config->get_encrypted_user_meta_keys() );
306
+
307
+ return $keys;
308
+ }, [] );
309
+
310
+ if ( ! $user_meta_keys ) {
311
+ return;
312
+ }
313
+
314
+ $in_sql = implode( ', ', array_fill( 0, count( $user_meta_keys ), '%s' ) );
315
+ $query = "SELECT * FROM {$wpdb->usermeta} WHERE meta_key IN (" . $in_sql . ")";
316
+ $rows = $wpdb->get_results( $wpdb->prepare( $query, $user_meta_keys ) );
317
+
318
+ if ( $wpdb->last_error ) {
319
+ $result->add_warning_message(
320
+ sprintf( __( 'Could not fetch user metadata to update: %s', 'better-wp-security' ), $wpdb->last_error )
321
+ );
322
+
323
+ return;
324
+ }
325
+
326
+ $users_to_clear = [];
327
+
328
+ foreach ( $rows as $row ) {
329
+ $meta_id = (int) $row->umeta_id;
330
+ $user_id = (int) $row->user_id;
331
+ $meta_key = (string) $row->meta_key;
332
+ $meta_value = (string) $row->meta_value;
333
+
334
+ if ( ! ITSEC_Lib_Encryption::is_encrypted( $meta_value ) ) {
335
+ continue;
336
+ }
337
+
338
+ try {
339
+ $rotated = $rotator( $meta_value, $user_id );
340
+
341
+ do_action( 'update_user_meta', $meta_id, $user_id, $meta_key, $rotated );
342
+
343
+ $updated = $wpdb->update(
344
+ $wpdb->usermeta,
345
+ [ 'meta_value' => $rotated ],
346
+ [ 'umeta_id' => $meta_id ],
347
+ '%s',
348
+ '%d'
349
+ );
350
+
351
+ if ( $updated ) {
352
+ do_action( 'updated_user_meta', $meta_id, $user_id, $meta_key, $rotated );
353
+ $users_to_clear[ $user_id ] = true;
354
+ } else {
355
+ $result->add_warning_message(
356
+ sprintf(
357
+ __( 'Could not rotate \'%1$s\' for \'%2$d\': %3$s', 'better-wp-security' ),
358
+ $meta_key,
359
+ $user_id,
360
+ $wpdb->last_error ?: __( 'User meta not updated.', 'better-wp-security' )
361
+ )
362
+ );
363
+ }
364
+ } catch ( RuntimeException $e ) {
365
+ $result->add_warning_message(
366
+ sprintf(
367
+ __( 'Could not rotate \'%1$s\' for \'%2$d\': %3$s', 'better-wp-security' ),
368
+ $meta_key,
369
+ $user_id,
370
+ $e->getMessage()
371
+ )
372
+ );
373
+ }
374
+ }
375
+
376
+ foreach ( array_flip( $users_to_clear ) as $user_id ) {
377
+ wp_cache_delete( $user_id, 'user_meta' );
378
+ }
379
+ }
380
  }
core/modules/core/class-rest-core-admin-notices-controller.php CHANGED
@@ -78,9 +78,11 @@ class ITSEC_REST_Core_Admin_Notices_Controller extends WP_REST_Controller {
78
  }
79
 
80
  $notice['actions'][ $slug ] = array(
 
81
  'title' => $action->get_title(),
82
  'style' => $action->get_style(),
83
- 'uri' => $uri,
 
84
  );
85
  }
86
 
78
  }
79
 
80
  $notice['actions'][ $slug ] = array(
81
+ 'id' => $slug,
82
  'title' => $action->get_title(),
83
  'style' => $action->get_style(),
84
+ 'uri' => $uri ?: null,
85
+ 'route' => $action->get_route() ?: null,
86
  );
87
  }
88
 
core/modules/core/entries/admin-notices/components/notice/index.js CHANGED
@@ -9,6 +9,7 @@ import { isEmpty, size, map } from 'lodash';
9
  import { Fragment } from '@wordpress/element';
10
  import { autop } from '@wordpress/autop';
11
  import { Button } from '@wordpress/components';
 
12
 
13
  /**
14
  * Internal dependencies
@@ -33,9 +34,7 @@ export default function Notice( { notice } ) {
33
  notice.actions,
34
  ( action, slug ) =>
35
  action.style === 'primary' && (
36
- <Button key={ slug } href={ action.uri }>
37
- { action.title }
38
- </Button>
39
  )
40
  ) }
41
  </div>
@@ -78,6 +77,47 @@ export default function Notice( { notice } ) {
78
  );
79
  }
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  function hasMeta( notice ) {
82
  if ( isEmpty( notice.meta ) ) {
83
  return false;
9
  import { Fragment } from '@wordpress/element';
10
  import { autop } from '@wordpress/autop';
11
  import { Button } from '@wordpress/components';
12
+ import { useSelect, useDispatch } from '@wordpress/data';
13
 
14
  /**
15
  * Internal dependencies
34
  notice.actions,
35
  ( action, slug ) =>
36
  action.style === 'primary' && (
37
+ <PrimaryAction key={ slug } notice={ notice } action={ action } />
 
 
38
  )
39
  ) }
40
  </div>
77
  );
78
  }
79
 
80
+ function PrimaryAction( { notice, action } ) {
81
+ const isInProgress = useSelect( ( select ) =>
82
+ select( 'ithemes-security/admin-notices' )
83
+ .getInProgressActions( notice.id )
84
+ .includes( action.id ),
85
+ [ notice.id, action.id ]
86
+ );
87
+ const { doNoticeAction } = useDispatch( 'ithemes-security/admin-notices' );
88
+ // Intentionally uses string-based API because we only want to refresh modules if they are in use.
89
+ const { fetchModules } = useDispatch( 'ithemes-security/modules' ) || {};
90
+
91
+ const onClick = async ( e ) => {
92
+ if ( ! action.uri ) {
93
+ e.preventDefault();
94
+ await doNoticeAction( notice.id, action.id );
95
+ fetchModules?.();
96
+ }
97
+ };
98
+
99
+ // We don't want to cause a dependency on the settings page entry.
100
+ if ( action.route && window.itsec?.pages?.settings?.history ) {
101
+ return <PrimaryRouteAction route={ action.route } title={ action.title } history={ window.itsec?.pages?.settings?.history } />;
102
+ }
103
+
104
+ return (
105
+ <Button href={ action.uri } onClick={ onClick } isBusy={ isInProgress }>
106
+ { action.title }
107
+ </Button>
108
+ );
109
+ }
110
+
111
+ function PrimaryRouteAction( { title, route, history } ) {
112
+ const onClick = () => history.push( route );
113
+
114
+ return (
115
+ <Button onClick={ onClick } href={ history.createHref( route ) }>
116
+ { title }
117
+ </Button>
118
+ );
119
+ }
120
+
121
  function hasMeta( notice ) {
122
  if ( isEmpty( notice.meta ) ) {
123
  return false;
core/modules/core/entries/admin-notices/components/notice/style.scss CHANGED
@@ -63,6 +63,10 @@ $side-padding: 20px;
63
  background: white;
64
  border-radius: 5px;
65
  padding: calc(#{$side-padding} / 2);
 
 
 
 
66
  }
67
 
68
  .itsec-admin-notice__header h4 {
63
  background: white;
64
  border-radius: 5px;
65
  padding: calc(#{$side-padding} / 2);
66
+
67
+ .components-button:not(:last-child) {
68
+ margin-right: .5rem;
69
+ }
70
  }
71
 
72
  .itsec-admin-notice__header h4 {
core/modules/core/entries/admin-notices/components/panel/style.scss CHANGED
@@ -1,5 +1,3 @@
1
- @import "animations.scss";
2
-
3
  .itsec-admin-bar-admin-notices__content.components-popover {
4
  .components-popover__content {
5
  border-color: 1px solid $border-color;
 
 
1
  .itsec-admin-bar-admin-notices__content.components-popover {
2
  .components-popover__content {
3
  border-color: 1px solid $border-color;
core/modules/core/module.json CHANGED
@@ -16,5 +16,47 @@
16
  "schedule": "daily",
17
  "type": "recurring"
18
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
  }
16
  "schedule": "daily",
17
  "type": "recurring"
18
  }
19
+ },
20
+ "tools": {
21
+ "set-encryption-key": {
22
+ "title": "Set Encryption Key",
23
+ "description": "Sets a secure key that iThemes Security uses to encrypt sensitive values like Two-Factor codes.",
24
+ "help": "iThemes Security will add a constant to your website’s <code>wp-config.php</code> file named <code>ITSEC_ENCRYPTION_KEY</code>.",
25
+ "keywords": [
26
+ "encryption"
27
+ ],
28
+ "form": {
29
+ "type": "object",
30
+ "properties": {
31
+ "confirm": {
32
+ "type": "boolean",
33
+ "title": "Confirm Reset Key",
34
+ "description": "Confirm you want to reset the encryption key to a new value."
35
+ }
36
+ }
37
+ }
38
+ },
39
+ "rotate-encryption-key": {
40
+ "title": "Rotate Encryption Key",
41
+ "description": "Updates all encrypted values to use the new encryption key.",
42
+ "help": "If you’ve manually updated the <code>ITSEC_ENCRYPTION_KEY</code> constant in your website’s <code>wp-config.php</code> file, use this tool to update any existing encrypted values.",
43
+ "keywords": [
44
+ "encryption"
45
+ ],
46
+ "form": {
47
+ "type": "object",
48
+ "required": [
49
+ "previous"
50
+ ],
51
+ "properties": {
52
+ "previous": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "title": "Previous Key",
56
+ "description": "Provide the previous value of <code>ITSEC_ENCRYPTION_KEY</code>."
57
+ }
58
+ }
59
+ }
60
+ }
61
  }
62
  }
core/modules/core/notices.php CHANGED
@@ -1,74 +1,289 @@
1
  <?php
2
 
3
- class ITSEC_Admin_Notice_New_Feature_Core implements ITSEC_Admin_Notice {
4
-
5
- public function get_id() {
6
- return ITSEC_Core::is_pro() ?
7
- 'release-import-export-launch' :
8
- 'release-site-scanner-free';
9
- }
10
-
11
- public function get_title() {
12
- return '';
13
- }
14
-
15
- public function get_message() {
16
- return ITSEC_Core::is_pro() ?
17
- esc_html__( 'iThemes Security Pro 7.1 is here!', 'better-wp-security' ) :
18
- esc_html__( 'iThemes Security Pro’s most popular and powerful feature is now free in iThemes Security 8.1!', 'better-wp-security' );
19
- }
20
-
21
- public function get_meta() {
22
- return array();
23
- }
24
-
25
- public function get_severity() {
26
- return self::S_INFO;
27
- }
28
-
29
- public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
30
- return true;
31
- }
32
-
33
- public function get_actions() {
34
- return array(
35
- 'blog' => new ITSEC_Admin_Notice_Action_Link(
36
- add_query_arg( 'itsec_view_release_post', $this->get_id(), admin_url( 'index.php' ) ),
37
- esc_html__( 'See What’s New', 'better-wp-security' ),
38
- ITSEC_Admin_Notice_Action::S_PRIMARY,
39
- function () {
40
- $this->handle_dismiss();
41
- $url = ITSEC_Core::is_pro() ? 'https://ithemes.com/?p=72545' : 'https://ithemes.com/?p=73198';
42
-
43
- wp_redirect( $url );
44
- die;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
  )
47
- );
48
- }
 
49
 
50
- private function handle_dismiss() {
51
- $dismissed = $this->get_storage();
52
- $dismissed[] = $this->get_id();
53
- $this->save_storage( $dismissed );
 
 
54
 
55
- return null;
56
- }
 
 
 
 
 
57
 
58
- private function get_storage() {
59
- $dismissed = get_site_option( 'itsec_dismissed_notices', array() );
 
60
 
61
- if ( ! is_array( $dismissed ) ) {
62
- $dismissed = array();
63
- }
 
 
 
 
64
 
65
- return $dismissed;
66
- }
 
67
 
68
- private function save_storage( $storage ) {
69
- update_site_option( 'itsec_dismissed_notices', $storage );
70
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
 
73
- ITSEC_Lib_Admin_Notices::register( new ITSEC_Admin_Notice_Globally_Dismissible( new ITSEC_Admin_Notice_Managers_Only( new ITSEC_Admin_Notice_New_Feature_Core() ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
+ ITSEC_Lib_Admin_Notices::register(
4
+ new ITSEC_Admin_Notice_Globally_Dismissible(
5
+ new ITSEC_Admin_Notice_Managers_Only(
6
+ new class implements ITSEC_Admin_Notice {
7
+ public function get_id() {
8
+ return 'release-passkeys';
9
+ }
10
+
11
+ public function get_title() {
12
+ return '';
13
+ }
14
+
15
+ public function get_message() {
16
+ return __( 'Passkeys are here! Learn how to login with biometrics like Face ID, Touch ID and Windows Hello.', 'better-wp-security' );
17
+ }
18
+
19
+ public function get_meta() {
20
+ return array();
21
+ }
22
+
23
+ public function get_severity() {
24
+ return self::S_INFO;
25
+ }
26
+
27
+ public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
28
+ return ITSEC_Core::is_pro();
29
+ }
30
+
31
+ public function get_actions() {
32
+ return array(
33
+ 'blog' => new ITSEC_Admin_Notice_Action_Link(
34
+ add_query_arg( 'itsec_view_release_post', $this->get_id(), admin_url( 'index.php' ) ),
35
+ esc_html__( 'See What’s New', 'better-wp-security' ),
36
+ ITSEC_Admin_Notice_Action::S_PRIMARY,
37
+ function () {
38
+ $this->handle_dismiss();
39
+ $url = 'https://ithemes.com/?p=80134';
40
+
41
+ wp_redirect( $url );
42
+ die;
43
+ }
44
+ )
45
+ );
46
+ }
47
+
48
+ private function handle_dismiss() {
49
+ $dismissed = $this->get_storage();
50
+ $dismissed[] = $this->get_id();
51
+ $this->save_storage( $dismissed );
52
+
53
+ return null;
54
+ }
55
+
56
+ private function get_storage() {
57
+ $dismissed = get_site_option( 'itsec_dismissed_notices', array() );
58
+
59
+ if ( ! is_array( $dismissed ) ) {
60
+ $dismissed = array();
61
+ }
62
+
63
+ return $dismissed;
64
+ }
65
+
66
+ private function save_storage( $storage ) {
67
+ update_site_option( 'itsec_dismissed_notices', $storage );
68
+ }
69
+ }
70
+ )
71
+ )
72
+ );
73
+
74
+ if ( ! ITSEC_Modules::is_active( 'malware-scheduling' ) ) {
75
+ ITSEC_Lib_Admin_Notices::register(
76
+ new ITSEC_Admin_Notice_Globally_Dismissible(
77
+ new ITSEC_Admin_Notice_Managers_Only(
78
+ new class implements ITSEC_Admin_Notice {
79
+ public function get_id() {
80
+ return 'enable-site-scan';
81
+ }
82
+
83
+ public function get_title() {
84
+ return __( 'New! Scheduled Site Scans' );
85
+ }
86
+
87
+ public function get_message() {
88
+ return __( 'Enable the Site Scanner to automatically scan your site twice a day for malware and known vulnerabilities.', 'better-wp-security' );
89
+ }
90
+
91
+ public function get_meta() {
92
+ return [];
93
+ }
94
+
95
+ public function get_severity() {
96
+ return self::S_INFO;
97
+ }
98
+
99
+ public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
100
+ return true;
101
+ }
102
+
103
+ public function get_actions() {
104
+ return [
105
+ 'enable' => new ITSEC_Admin_Notice_Action_Callback(
106
+ ITSEC_Admin_Notice_Action::S_PRIMARY,
107
+ __( 'Enable Scheduling', 'better-wp-security' ),
108
+ function () {
109
+ ITSEC_Modules::activate( 'malware-scheduling' );
110
+ }
111
+ )
112
+ ];
113
+ }
114
  }
115
  )
116
+ )
117
+ );
118
+ }
119
 
120
+ if ( version_compare( PHP_VERSION, ITSEC_Core::get_next_php_requirement(), '<' ) ) {
121
+ ITSEC_Lib_Admin_Notices::register(
122
+ new ITSEC_Admin_Notice_Remind_Me( new ITSEC_Admin_Notice_Managers_Only( new class implements ITSEC_Admin_Notice {
123
+ public function get_id() {
124
+ return 'php-outdated';
125
+ }
126
 
127
+ public function get_title() {
128
+ return sprintf(
129
+ __( 'Your site is running an outdated version of PHP (%1$s). Future versions of iThemes Security will require PHP %2$s or later.', 'better-wp-security' ),
130
+ explode( '-', PHP_VERSION )[0],
131
+ ITSEC_Core::get_next_php_requirement()
132
+ );
133
+ }
134
 
135
+ public function get_message() {
136
+ return '';
137
+ }
138
 
139
+ public function get_meta() {
140
+ return [];
141
+ }
142
+
143
+ public function get_severity() {
144
+ return self::S_WARN;
145
+ }
146
 
147
+ public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
148
+ return true;
149
+ }
150
 
151
+ public function get_actions() {
152
+ $actions = [
153
+ 'more' => new ITSEC_Admin_Notice_Action_Link(
154
+ 'https://ithemes.com/security/php-requirements/',
155
+ __( 'Learn More', 'better-wp-security' ),
156
+ ITSEC_Admin_Notice_Action::S_PRIMARY
157
+ )
158
+ ];
159
+
160
+ if ( $direct_update = wp_get_direct_php_update_url() ) {
161
+ $actions['direct_update'] = new ITSEC_Admin_Notice_Action_Link(
162
+ $direct_update,
163
+ __( 'Update PHP', 'better-wp-security' ),
164
+ ITSEC_Admin_Notice_Action::S_PRIMARY
165
+ );
166
+ }
167
+
168
+ return $actions;
169
+ }
170
+ } ), WEEK_IN_SECONDS )
171
+ );
172
  }
173
 
174
+ ITSEC_Lib_Admin_Notices::register(
175
+ new ITSEC_Admin_Notice_Managers_Only( new class implements ITSEC_Admin_Notice {
176
+ public function get_id() {
177
+ return 'encryption-key-changed';
178
+ }
179
+
180
+ public function get_title() {
181
+ if ( ITSEC_Lib_Encryption::is_available() ) {
182
+ return __( 'Encryption Key Changed', 'better-wp-security' );
183
+ }
184
+
185
+ return __( 'Encryption Key Missing', 'better-wp-security' );
186
+ }
187
+
188
+ public function get_message() {
189
+ if ( ITSEC_Lib_Encryption::is_available() ) {
190
+ return __( 'The encryption key for your website was changed. This is used to securely store sensitive values like Two-Factor codes.', 'better-wp-security' );
191
+ }
192
+
193
+ return
194
+ sprintf(
195
+ __( 'The encryption key for your website is missing from your %s file.', 'better-wp-security' ),
196
+ '<code>wp-config.php</code>'
197
+ ) . ' ' .
198
+ sprintf(
199
+ __( 'If you still have access to your encryption key, add it back to your %s file. Otherwise, set a new encryption key.', 'better-wp-security' ),
200
+ '<code>wp-config.php</code>'
201
+ );
202
+ }
203
+
204
+ public function get_meta() {
205
+ return [];
206
+ }
207
+
208
+ public function get_severity() {
209
+ return self::S_ERROR;
210
+ }
211
+
212
+ public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
213
+ return ITSEC_Lib_Encryption::has_encryption_key_changed();
214
+ }
215
+
216
+ public function get_actions() {
217
+ $actions = [
218
+ 'dismiss' => new ITSEC_Admin_Notice_Action_Callback(
219
+ ITSEC_Admin_Notice_Action::S_BUTTON,
220
+ __( 'Ignore Change', 'better-wp-security' ),
221
+ function () {
222
+ ITSEC_Lib_Encryption::reset_encryption_key_changed_warning();
223
+ }
224
+ ),
225
+ ];
226
 
227
+ if ( ITSEC_Lib_Encryption::is_available() ) {
228
+ $actions['rotate'] = ITSEC_Admin_Notice_Action_Link::for_route(
229
+ ITSEC_Core::get_tools_route( 'rotate-encryption-key' ),
230
+ __( 'Rotate Key', 'better-wp-security' ),
231
+ ITSEC_Admin_Notice_Action::S_PRIMARY
232
+ );
233
+ } else {
234
+ $actions['set'] = ITSEC_Admin_Notice_Action_Link::for_route(
235
+ ITSEC_Core::get_tools_route( 'set-encryption-key' ),
236
+ __( 'Set New Key', 'better-wp-security' ),
237
+ ITSEC_Admin_Notice_Action::S_PRIMARY
238
+ );
239
+ }
240
+
241
+ return $actions;
242
+ }
243
+ } )
244
+ );
245
+
246
+ ITSEC_Lib_Admin_Notices::register(
247
+ new ITSEC_Admin_Notice_Remind_Me(
248
+ new ITSEC_Admin_Notice_Managers_Only(
249
+ new class implements ITSEC_Admin_Notice {
250
+ public function get_id() {
251
+ return 'setup-encryption';
252
+ }
253
+
254
+ public function get_title() {
255
+ return __( 'iThemes Security can encrypt sensitive values like Two-Factor secrets.', 'better-wp-security' );
256
+ }
257
+
258
+ public function get_message() {
259
+ return '';
260
+ }
261
+
262
+ public function get_meta() {
263
+ return [];
264
+ }
265
+
266
+ public function get_severity() {
267
+ return self::S_INFO;
268
+ }
269
+
270
+ public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
271
+ return ! ITSEC_Lib_Encryption::is_available() &&
272
+ ! ITSEC_Lib_Encryption::has_encryption_key_changed() &&
273
+ ITSEC_Files::can_write_to_files();
274
+ }
275
+
276
+ public function get_actions() {
277
+ return [
278
+ 'setup' => ITSEC_Admin_Notice_Action_Link::for_route(
279
+ ITSEC_Core::get_tools_route( 'set-encryption-key' ),
280
+ __( 'Setup Encryption', 'better-wp-security' ),
281
+ ITSEC_Admin_Notice_Action::S_PRIMARY
282
+ ),
283
+ ];
284
+ }
285
+ }
286
+ ),
287
+ MONTH_IN_SECONDS
288
+ )
289
+ );
core/modules/dashboard/cards/class-itsec-dashboard-card-active-lockouts.php CHANGED
@@ -1,5 +1,9 @@
1
  <?php
2
 
 
 
 
 
3
  class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
4
  /**
5
  * @inheritDoc
@@ -74,7 +78,11 @@ class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
74
  }
75
 
76
  public function get_links() {
77
- return array(
 
 
 
 
78
  array(
79
  'rel' => 'item',
80
  'route' => 'lockout/(?P<lockout_id>[\d]+)',
@@ -91,6 +99,18 @@ class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
91
  'callback' => array( $this, 'release_lockout' ),
92
  ),
93
  );
 
 
 
 
 
 
 
 
 
 
 
 
94
  }
95
 
96
  /**
@@ -126,7 +146,7 @@ class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
126
 
127
  $lockout_id = (int) $request['lockout_id'];
128
 
129
- if ( ! $lockout_id || ! $lockout = $itsec_lockout->get_lockout( $lockout_id ) ) {
130
  return new WP_Error( 'not_found', __( 'Lockout Not Found', 'better-wp-security' ) );
131
  }
132
 
@@ -137,6 +157,23 @@ class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
137
  return null;
138
  }
139
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  private function prepare_lockout( $lockout, $detail = false ) {
141
  /** @var ITSEC_Lockout $itsec_lockout */
142
  global $itsec_lockout;
@@ -169,6 +206,8 @@ class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
169
  $data['label'] = __( 'Unknown', 'better-wp-security' );
170
  }
171
 
 
 
172
  $data['description'] = isset( $modules[ $data['type'] ] ) ? $modules[ $data['type'] ]['reason'] : __( 'unknown reason.', 'better-wp-security' );
173
 
174
  if ( $detail ) {
1
  <?php
2
 
3
+ use iThemesSecurity\Actor;
4
+ use iThemesSecurity\Lib\Result;
5
+ use iThemesSecurity\Ban_Hosts\Repository_Ban;
6
+
7
  class ITSEC_Dashboard_Card_Active_Lockouts extends ITSEC_Dashboard_Card {
8
  /**
9
  * @inheritDoc
78
  }
79
 
80
  public function get_links() {
81
+
82
+ /** @var ITSEC_Lockout $itsec_lockout */
83
+ global $itsec_lockout;
84
+
85
+ $links = array(
86
  array(
87
  'rel' => 'item',
88
  'route' => 'lockout/(?P<lockout_id>[\d]+)',
99
  'callback' => array( $this, 'release_lockout' ),
100
  ),
101
  );
102
+ if ( $itsec_lockout->is_lockout_banning_available() ) {
103
+ $links[] = array(
104
+ 'rel' => ITSEC_Lib_REST::LINK_REL . 'ban-lockout',
105
+ 'route' => 'lockout/(?P<lockout_id>[\d]+)/ban',
106
+ 'title' => __( 'Ban Lockout', 'better-wp-security' ),
107
+ 'methods' => WP_REST_Server::CREATABLE,
108
+ 'cap' => ITSEC_Core::get_required_cap(),
109
+ 'callback' => array( $this, 'ban_lockout' ),
110
+ );
111
+ }
112
+
113
+ return $links;
114
  }
115
 
116
  /**
146
 
147
  $lockout_id = (int) $request['lockout_id'];
148
 
149
+ if ( ! $lockout_id || ! $itsec_lockout->get_lockout( $lockout_id ) ) {
150
  return new WP_Error( 'not_found', __( 'Lockout Not Found', 'better-wp-security' ) );
151
  }
152
 
157
  return null;
158
  }
159
 
160
+ /**
161
+ * Converts lockout into ban.
162
+ *
163
+ * @param WP_REST_Request $request
164
+ *
165
+ * @return Result<Repository_Ban>
166
+ */
167
+ public function ban_lockout( WP_REST_Request $request ): Result {
168
+ /** @var ITSEC_Lockout $itsec_lockout */
169
+ global $itsec_lockout;
170
+
171
+ $lockout_id = (int) $request['lockout_id'];
172
+ $user = new Actor\User( wp_get_current_user() );
173
+
174
+ return $itsec_lockout->persist_ban_from_lockout( $lockout_id, $user );
175
+ }
176
+
177
  private function prepare_lockout( $lockout, $detail = false ) {
178
  /** @var ITSEC_Lockout $itsec_lockout */
179
  global $itsec_lockout;
206
  $data['label'] = __( 'Unknown', 'better-wp-security' );
207
  }
208
 
209
+ $data['bannable'] = $itsec_lockout->can_create_ban_from_lockout( $data['id'] )->is_success();
210
+
211
  $data['description'] = isset( $modules[ $data['type'] ] ) ? $modules[ $data['type'] ]['reason'] : __( 'unknown reason.', 'better-wp-security' );
212
 
213
  if ( $detail ) {
core/modules/dashboard/container.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  use iThemesSecurity\User_Groups\Matcher;
4
- use Pimple\Container;
5
 
6
  return static function ( Container $c ) {
7
  $c[ ITSEC_Dashboard::class ] = static function ( Container $c ) {
1
  <?php
2
 
3
  use iThemesSecurity\User_Groups\Matcher;
4
+ use iThemesSecurity\Strauss\Pimple\Container;
5
 
6
  return static function ( Container $c ) {
7
  $c[ ITSEC_Dashboard::class ] = static function ( Container $c ) {
core/modules/dashboard/entries/dashboard/cards/active-lockouts/Detail.js CHANGED
@@ -2,151 +2,106 @@
2
  * WordPress dependencies
3
  */
4
  import { __, sprintf } from '@wordpress/i18n';
5
- import { Component, Fragment } from '@wordpress/element';
6
  import { dateI18n } from '@wordpress/date';
 
7
 
8
  /**
9
  * Internal dependencies
10
  */
11
- import lockoutController from './lockout-controller';
12
 
13
- class Detail extends Component {
14
- static defaultProps = {
15
- master: {},
16
- isVisible: false,
17
- };
18
-
19
- state = {
20
- details: null,
21
- viewLog: 0,
22
- };
23
-
24
- componentDidMount() {
25
- if ( this.props.isVisible ) {
26
- this.fetchDetails( this.props.master.id );
27
- }
28
- }
29
-
30
- componentDidUpdate( prevProps ) {
31
- const fetch =
32
- ( this.props.isVisible && ! prevProps.isVisible ) ||
33
- this.props.master.id !== prevProps.master.id;
34
-
35
- if ( fetch ) {
36
- this.fetchDetails( this.props.master.id );
37
- }
38
- }
39
-
40
- shouldComponentUpdate( nextProps, nextState ) {
41
- if ( this.props.master.id !== nextProps.master.id ) {
42
- return true;
43
- }
44
-
45
- if ( this.props.isVisible !== nextProps.isVisible ) {
46
- return true;
47
  }
48
 
49
- if ( ! this.state.details && nextState.details ) {
50
- return true;
51
- }
52
-
53
- if ( this.state.viewLog !== nextState.viewLog ) {
54
- return true;
55
- }
56
-
57
- return false;
58
- }
59
-
60
- fetchDetails = ( id ) => {
61
- if ( ! this.props.master.links.item ) {
62
- return;
63
- }
64
-
65
- const url = this.props.master.links.item[ 0 ].href.replace(
66
  '{lockout_id}',
67
- id
68
  );
69
 
70
- lockoutController.getDetails( url ).then( ( details ) => {
71
- if ( this.unmounted || this.props.master.id !== id ) {
72
- return;
73
- }
74
-
75
- this.setState( { details } );
76
  } );
77
- };
78
 
79
- componentWillUnmount() {
80
- this.unmounted = true;
81
- }
82
 
83
- render() {
84
- const { master } = this.props;
85
- const { details } = this.state;
86
-
87
- return (
88
- <div className="itsec-card-active-lockouts__detail-container">
89
- <time
90
- className="itsec-card-active-lockouts__start-time"
91
- dateTime={ master.start_gmt }
92
- >
93
- { sprintf(
94
- /* translators: 1. Relative time from human_time_diff(). */
95
- __( '%s ago', 'better-wp-security' ),
96
- master.start_gmt_relative
97
- ) }
98
- </time>
99
- <h3 className="itsec-card-active-lockouts__label">
100
- { master.label }
101
- </h3>
102
- <p className="itsec-card-active-lockouts__description">
103
- { master.description }
104
- </p>
105
-
106
- { details && details.history.length > 0 && (
107
- <Fragment>
108
- <hr />
109
-
110
- <div className="itsec-card-active-lockouts__history">
111
- <h4 className="itsec-card-active-lockouts__history-title">
112
- { __( 'History', 'better-wp-security' ) }
113
- </h4>
114
- <ul>
115
- { details.history.map( this.renderHistory ) }
116
- </ul>
117
- </div>
118
- </Fragment>
119
- ) }
120
- </div>
121
- );
122
- }
123
-
124
- renderHistory = ( history ) => {
125
- if ( ! history.label ) {
126
- return;
127
- }
128
-
129
- const time = (
130
  <time
131
- dateTime={ history.time }
132
- title={ dateI18n( 'M d, Y g:s A', history.time ) }
133
  >
134
  { sprintf(
135
  /* translators: 1. Relative time from human_time_diff(). */
136
  __( '%s ago', 'better-wp-security' ),
137
- history.time_relative
138
  ) }
139
  </time>
140
- );
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
- return (
143
- <li key={ history.id }>
144
- <code>{ history.label }</code>
145
- { ' – ' }
146
- { time }
147
- </li>
148
- );
149
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  }
151
 
152
  export default Detail;
2
  * WordPress dependencies
3
  */
4
  import { __, sprintf } from '@wordpress/i18n';
5
+ import { useCallback } from '@wordpress/element';
6
  import { dateI18n } from '@wordpress/date';
7
+ import apiFetch from '@wordpress/api-fetch';
8
 
9
  /**
10
  * Internal dependencies
11
  */
12
+ import { useAsync } from '@ithemes/security-hocs';
13
 
14
+ function Detail( { master = {}, isVisible } ) {
15
+ const fetchDetails = useCallback( () => {
16
+ if ( ! master.links.item ) {
17
+ return Promise.reject( new Error( 'No data available.' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  }
19
 
20
+ const url = master.links.item[ 0 ].href.replace(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  '{lockout_id}',
22
+ master.id
23
  );
24
 
25
+ return apiFetch( { url } ).then( ( response ) => {
26
+ return response.detail;
 
 
 
 
27
  } );
28
+ }, [ master.id, master.links.item ] );
29
 
30
+ const { value: details } = useAsync( fetchDetails, isVisible );
 
 
31
 
32
+ return (
33
+ <div className="itsec-card-active-lockouts__detail-container">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  <time
35
+ className="itsec-card-active-lockouts__start-time"
36
+ dateTime={ master.start_gmt }
37
  >
38
  { sprintf(
39
  /* translators: 1. Relative time from human_time_diff(). */
40
  __( '%s ago', 'better-wp-security' ),
41
+ master.start_gmt_relative
42
  ) }
43
  </time>
44
+ <h3 className="itsec-card-active-lockouts__label">
45
+ { master.label }
46
+ </h3>
47
+ <p className="itsec-card-active-lockouts__description">
48
+ { master.description }
49
+ </p>
50
+
51
+ { details && details.history.length > 0 && (
52
+ <History history={ details.history } />
53
+ ) }
54
+ </div>
55
+ );
56
+ }
57
 
58
+ function History( { history } ) {
59
+ return (
60
+ <>
61
+ <hr />
62
+
63
+ <div className="itsec-card-active-lockouts__history">
64
+ <h4 className="itsec-card-active-lockouts__history-title">
65
+ { __( 'History', 'better-wp-security' ) }
66
+ </h4>
67
+ <ul>
68
+ { history.map( ( detail ) =>
69
+ <HistoryItem
70
+ key={ detail.id }
71
+ history={ detail }
72
+ />
73
+ ) }
74
+ </ul>
75
+ </div>
76
+ </>
77
+ );
78
+ }
79
+
80
+ function HistoryItem( { history } ) {
81
+ if ( ! history.label ) {
82
+ return;
83
+ }
84
+
85
+ const time = (
86
+ <time
87
+ dateTime={ history.time }
88
+ title={ dateI18n( 'M d, Y g:s A', history.time ) }
89
+ >
90
+ { sprintf(
91
+ /* translators: 1. Relative time from human_time_diff(). */
92
+ __( '%s ago', 'better-wp-security' ),
93
+ history.time_relative
94
+ ) }
95
+ </time>
96
+ );
97
+
98
+ return (
99
+ <li key={ history.id }>
100
+ <code>{ history.label }</code>
101
+ { ' – ' }
102
+ { time }
103
+ </li>
104
+ );
105
  }
106
 
107
  export default Detail;
core/modules/dashboard/entries/dashboard/cards/active-lockouts/index.js CHANGED
@@ -1,17 +1,18 @@
1
  /**
2
  * External dependencies
3
  */
4
- import { isEmpty } from 'lodash';
5
  import memize from 'memize';
6
  /**
7
  * WordPress dependencies
8
  */
9
  import { __, sprintf } from '@wordpress/i18n';
10
  import { compose, pure } from '@wordpress/compose';
11
- import { Fragment, useState } from '@wordpress/element';
12
  import { useSelect, useDispatch } from '@wordpress/data';
13
  import { dateI18n } from '@wordpress/date';
14
  import { Button } from '@wordpress/components';
 
15
 
16
  /**
17
  * iThemes dependencies
@@ -27,7 +28,6 @@ import Footer from '../../components/card/footer';
27
  import MasterDetail, { Back } from '../../components/master-detail';
28
  import { CardHappy } from '../../components/empty-states';
29
  import Detail from './Detail';
30
- import lockoutController from './lockout-controller';
31
  import './style.scss';
32
 
33
  function MasterRender( { master } ) {
@@ -61,12 +61,119 @@ const withLinks = memize( function( lockouts, links ) {
61
  } ) );
62
  } );
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  function ActiveLockouts( {
65
  card,
66
  config,
67
  } ) {
 
 
68
  const [ selectedId, setSelectedId ] = useState( 0 );
69
- const [ releasingIds, setReleasingIds ] = useState( [] );
70
  const [ searchTerm, setSearchTerm ] = useState( '' );
71
 
72
  const { isQuerying } = useSelect(
@@ -82,38 +189,40 @@ function ActiveLockouts( {
82
 
83
  const onRelease = async ( e ) => {
84
  e.preventDefault();
85
- setReleasingIds( [ ...releasingIds, selectedId ] );
 
86
 
87
- try {
88
- await lockoutController.release(
89
- card._links[
90
- 'ithemes-security:release-lockout'
91
- ][ 0 ].href.replace( '{lockout_id}', selectedId )
92
- );
93
- } catch ( error ) {
94
- // eslint-disable-next-line no-console
95
- console.warn( error );
96
  }
 
97
 
 
 
 
98
  await refreshDashboardCard( card.id );
99
 
100
- setSelectedId( 0 );
101
- setReleasingIds( releasingIds.filter( ( id ) => id !== selectedId ) );
 
102
  };
103
 
104
  const isSmall = true;
105
 
 
 
 
106
  return (
107
  <div className="itsec-card--type-active-lockouts">
108
  <Header>
109
  <Back
110
  isSmall={ isSmall }
111
  select={ select }
112
- selectedId={ selectedId }
113
  />
114
  <Title card={ card } config={ config } />
115
  </Header>
116
- { selectedId === 0 && (
117
  <div className="itsec-card-active-lockouts__search-container">
118
  <SearchControl
119
  value={ searchTerm }
@@ -141,27 +250,43 @@ function ActiveLockouts( {
141
  detailRender={ Detail }
142
  masterRender={ MasterRender }
143
  mode="list"
144
- selectedId={ selectedId }
145
  select={ select }
146
  isSmall={ isSmall }
147
  />
148
  ) }
149
- { selectedId > 0 &&
150
- card._links[ 'ithemes-security:release-lockout' ] && (
151
  <Footer>
152
- <span className="itsec-card-footer__action">
153
- <Button
154
- isPrimary
155
- isSmall
156
- aria-disabled={ releasingIds.includes(
157
- selectedId
158
- ) }
159
- isBusy={ releasingIds.includes( selectedId ) }
160
- onClick={ onRelease }
161
- >
162
- { __( 'Release Lockout', 'better-wp-security' ) }
163
- </Button>
164
- </span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  </Footer>
166
  ) }
167
  </div>
1
  /**
2
  * External dependencies
3
  */
4
+ import { isEmpty, find } from 'lodash';
5
  import memize from 'memize';
6
  /**
7
  * WordPress dependencies
8
  */
9
  import { __, sprintf } from '@wordpress/i18n';
10
  import { compose, pure } from '@wordpress/compose';
11
+ import { Fragment, useState, useCallback } from '@wordpress/element';
12
  import { useSelect, useDispatch } from '@wordpress/data';
13
  import { dateI18n } from '@wordpress/date';
14
  import { Button } from '@wordpress/components';
15
+ import apiFetch from '@wordpress/api-fetch';
16
 
17
  /**
18
  * iThemes dependencies
28
  import MasterDetail, { Back } from '../../components/master-detail';
29
  import { CardHappy } from '../../components/empty-states';
30
  import Detail from './Detail';
 
31
  import './style.scss';
32
 
33
  function MasterRender( { master } ) {
61
  } ) );
62
  } );
63
 
64
+ /**
65
+ * Hook that lets us manage releasing lockouts.
66
+ *
67
+ * @param {Object} card The Dashboard Card object.
68
+ * @return {(number[]|(function(number): Promise<boolean>)|boolean)[]} A tuple of releasing ids, a callback to release a lockout and whether the feature is available.
69
+ */
70
+ function useReleaseLockout( card ) {
71
+ const [ releasingIds, setReleasingIds ] = useState( [] );
72
+ const { createNotice, removeNotice } = useDispatch( 'core/notices' );
73
+
74
+ const href = card._links[
75
+ 'ithemes-security:release-lockout'
76
+ ]?.[ 0 ].href;
77
+ const isAvailable = !! href;
78
+ const callback = useCallback( async ( lockoutId ) => {
79
+ const url = href.replace( '{lockout_id}', lockoutId );
80
+ const noticeId = `release-lockout-${ url }`;
81
+
82
+ setReleasingIds( ( ids ) => [ ...ids, lockoutId ] );
83
+ removeNotice( noticeId, 'ithemes-security' );
84
+
85
+ try {
86
+ await apiFetch( {
87
+ url,
88
+ method: 'DELETE',
89
+ } );
90
+ setTimeout( () => removeNotice( noticeId, 'ithemes-security' ), 5000 );
91
+ createNotice(
92
+ 'success',
93
+ __( 'Lockout Released', 'better-wp-security' ),
94
+ { id: noticeId, context: 'ithemes-security' }
95
+ );
96
+
97
+ return true;
98
+ } catch ( e ) {
99
+ createNotice(
100
+ 'error',
101
+ sprintf(
102
+ /* translators: 1. Error message */
103
+ __( 'Error when releasing lockout: %s', 'better-wp-security' ),
104
+ e.message || __( 'An unexpected error occurred.', 'better-wp-security' )
105
+ ),
106
+ { id: noticeId, context: 'ithemes-security' }
107
+ );
108
+
109
+ return false;
110
+ } finally {
111
+ setReleasingIds( ( ids ) => ids.filter( ( id ) => id !== lockoutId ) );
112
+ }
113
+ }, [ href, createNotice, removeNotice ] );
114
+
115
+ return [ releasingIds, callback, isAvailable ];
116
+ }
117
+
118
+ /**
119
+ * Hook that lets us create a lockout from ban.
120
+ *
121
+ * @param {Object} card The Dashboard Card object.
122
+ * @return {(number[]|(function(number): Promise<boolean>)|boolean)[]} A tuple of banning ids, a callback to ban a lockout and whether the feature is available.
123
+ */
124
+ function useBanLockout( card ) {
125
+ const [ banningIds, setBanningIds ] = useState( [] );
126
+ const { createNotice, removeNotice } = useDispatch( 'core/notices' );
127
+
128
+ const href = card._links[ 'ithemes-security:ban-lockout' ]?.[ 0 ].href;
129
+ const isAvailable = !! href;
130
+ const callback = useCallback( async ( lockoutId ) => {
131
+ const url = href.replace( '{lockout_id}', lockoutId );
132
+ const noticeId = `ban-lockout-${ url }`;
133
+
134
+ setBanningIds( ( ids ) => [ ...ids, lockoutId ] );
135
+ removeNotice( noticeId, 'ithemes-security' );
136
+
137
+ try {
138
+ await apiFetch( {
139
+ url,
140
+ method: 'POST',
141
+ } );
142
+ setTimeout( () => removeNotice( noticeId, 'ithemes-security' ), 5000 );
143
+ createNotice(
144
+ 'success',
145
+ __( 'Ban Created', 'better-wp-security' ),
146
+ { id: noticeId, context: 'ithemes-security' }
147
+ );
148
+
149
+ return true;
150
+ } catch ( e ) {
151
+ createNotice(
152
+ 'error',
153
+ sprintf(
154
+ /* translators: 1. Error message */
155
+ __( 'Error when banning lockout: %s', 'better-wp-security' ),
156
+ e.message || __( 'An unexpected error occurred.', 'better-wp-security' )
157
+ ),
158
+ { id: noticeId, context: 'ithemes-security' }
159
+ );
160
+
161
+ return false;
162
+ } finally {
163
+ setBanningIds( ( ids ) => ids.filter( ( id ) => id !== lockoutId ) );
164
+ }
165
+ }, [ href, createNotice, removeNotice ] );
166
+
167
+ return [ banningIds, callback, isAvailable ];
168
+ }
169
+
170
  function ActiveLockouts( {
171
  card,
172
  config,
173
  } ) {
174
+ const [ banningIds, banLockout, isBanAvailable ] = useBanLockout( card );
175
+ const [ releasingIds, releaseLockout, isReleaseAvailable ] = useReleaseLockout( card );
176
  const [ selectedId, setSelectedId ] = useState( 0 );
 
177
  const [ searchTerm, setSearchTerm ] = useState( '' );
178
 
179
  const { isQuerying } = useSelect(
189
 
190
  const onRelease = async ( e ) => {
191
  e.preventDefault();
192
+ const released = await releaseLockout( selectedId );
193
+ await refreshDashboardCard( card.id );
194
 
195
+ if ( released ) {
196
+ setSelectedId( ( currentSelectedId ) => currentSelectedId === selectedId ? 0 : currentSelectedId );
 
 
 
 
 
 
 
197
  }
198
+ };
199
 
200
+ const onBan = async ( e ) => {
201
+ e.preventDefault();
202
+ const banned = await banLockout( selectedId );
203
  await refreshDashboardCard( card.id );
204
 
205
+ if ( banned ) {
206
+ setSelectedId( ( currentSelectedId ) => currentSelectedId === selectedId ? 0 : currentSelectedId );
207
+ }
208
  };
209
 
210
  const isSmall = true;
211
 
212
+ const selectedLockout = find( card.data.lockouts, [ 'id', selectedId ] );
213
+ const isBannable = selectedLockout?.bannable && isBanAvailable;
214
+
215
  return (
216
  <div className="itsec-card--type-active-lockouts">
217
  <Header>
218
  <Back
219
  isSmall={ isSmall }
220
  select={ select }
221
+ selectedId={ selectedLockout?.id || 0 }
222
  />
223
  <Title card={ card } config={ config } />
224
  </Header>
225
+ { ! selectedLockout?.id && (
226
  <div className="itsec-card-active-lockouts__search-container">
227
  <SearchControl
228
  value={ searchTerm }
250
  detailRender={ Detail }
251
  masterRender={ MasterRender }
252
  mode="list"
253
+ selectedId={ selectedLockout?.id || 0 }
254
  select={ select }
255
  isSmall={ isSmall }
256
  />
257
  ) }
258
+ { selectedLockout?.id > 0 && ( isReleaseAvailable || isBannable ) && (
 
259
  <Footer>
260
+ { isReleaseAvailable &&
261
+ <span className="itsec-card-footer__action">
262
+ <Button
263
+ isPrimary
264
+ isSmall
265
+ aria-disabled={ releasingIds.includes(
266
+ selectedId
267
+ ) }
268
+ isBusy={ releasingIds.includes( selectedId ) }
269
+ onClick={ onRelease }
270
+ >
271
+ { __( 'Release Lockout', 'better-wp-security' ) }
272
+ </Button>
273
+ </span>
274
+ }
275
+ { isBannable &&
276
+ <span className="itsec-card-footer__action">
277
+ <Button
278
+ isPrimary
279
+ isSmall
280
+ aria-disabled={ banningIds.includes(
281
+ selectedId
282
+ ) }
283
+ isBusy={ banningIds.includes( selectedId ) }
284
+ onClick={ onBan }
285
+ >
286
+ { __( 'Ban', 'better-wp-security' ) }
287
+ </Button>
288
+ </span>
289
+ }
290
  </Footer>
291
  ) }
292
  </div>
core/modules/dashboard/entries/dashboard/cards/active-lockouts/lockout-controller.js DELETED
@@ -1,86 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { dispatch } from '@wordpress/data';
5
- import { __, sprintf } from '@wordpress/i18n';
6
- import apiFetch from '@wordpress/api-fetch';
7
-
8
- class LockoutController {
9
- #details = {};
10
- #fetching = {};
11
- #releasing = {};
12
-
13
- getDetails( url ) {
14
- if ( this.#details[ url ] ) {
15
- return Promise.resolve( this.#details[ url ] );
16
- }
17
-
18
- if ( ! this.#fetching[ url ] ) {
19
- this.#fetching[ url ] = apiFetch( { url } ).then( ( response ) => {
20
- this.#details[ url ] = response.detail;
21
- delete this.#fetching[ url ];
22
-
23
- return response.detail;
24
- } );
25
- }
26
-
27
- return this.#fetching[ url ];
28
- }
29
-
30
- isFetching( url ) {
31
- return !! this.#fetching[ url ];
32
- }
33
-
34
- release( url ) {
35
- if ( ! this.#releasing[ url ] ) {
36
- this.#releasing[ url ] = apiFetch( {
37
- url,
38
- method: 'DELETE',
39
- } )
40
- .then( ( response ) => {
41
- delete this.#releasing[ url ];
42
-
43
- const id = `release-lockout-${ url }`;
44
-
45
- setTimeout(
46
- () =>
47
- dispatch( 'core/notices' ).removeNotice(
48
- id,
49
- 'ithemes-security'
50
- ),
51
- 5000
52
- );
53
- dispatch( 'core/notices' ).createNotice(
54
- 'success',
55
- __( 'Lockout Released', 'better-wp-security' ),
56
- { id, context: 'ithemes-security' }
57
- );
58
-
59
- return response;
60
- } )
61
- .catch( ( e ) => {
62
- delete this.#releasing[ url ];
63
-
64
- dispatch( 'core/notices' ).createNotice(
65
- 'error',
66
- sprintf(
67
- /* translators: 1. Error message */
68
- __( 'Error when releasing lockout: %s', 'better-wp-security' ),
69
- e.message
70
- ),
71
- { context: 'ithemes-security' }
72
- );
73
- } );
74
- }
75
-
76
- return this.#releasing[ url ];
77
- }
78
-
79
- isReleasing( url ) {
80
- return !! this.#releasing[ url ];
81
- }
82
- }
83
-
84
- const controller = new LockoutController();
85
-
86
- export default controller;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/modules/dashboard/entries/dashboard/components/card/header/date.js CHANGED
@@ -3,22 +3,24 @@
3
  */
4
  import { isString } from 'lodash';
5
  import memize from 'memize';
 
6
 
7
  /**
8
  * WordPress dependencies
9
  */
10
- import { Fragment, useState } from '@wordpress/element';
11
  import {
12
  Button,
13
  Dashicon,
 
 
14
  Modal,
15
  SelectControl,
16
- TextControl,
17
  } from '@wordpress/components';
18
  import { compose } from '@wordpress/compose';
19
  import { withDispatch, withSelect } from '@wordpress/data';
20
  import { __, sprintf } from '@wordpress/i18n';
21
- import { dateI18n, format } from '@wordpress/date';
22
 
23
  function getPeriod( queryArgs, config ) {
24
  if ( queryArgs.period ) {
@@ -72,10 +74,6 @@ const getDateOptions = memize( () => {
72
  ];
73
  } );
74
 
75
- const now = new window.Date();
76
- const MIN = format( 'Y-m-d', now.setDate( now.getDate() - 60 ) );
77
- const MAX = format( 'Y-m-d' );
78
-
79
  function Date( {
80
  queryArgs,
81
  config,
@@ -93,13 +91,18 @@ function Date( {
93
  e.preventDefault();
94
 
95
  let newPeriod;
96
-
97
  if ( 'custom' === periodOption ) {
98
- newPeriod = { start, end };
 
 
 
 
 
 
 
99
  } else {
100
  newPeriod = periodOption;
101
  }
102
-
103
  update( { ...queryArgs, period: newPeriod } );
104
  setIsOpen( false );
105
  };
@@ -112,7 +115,7 @@ function Date( {
112
  aria-expanded={ isOpen }
113
  aria-label={ sprintf(
114
  /* translators: 1. The current search period or interval Eg, 24 hours. */
115
- __( '%s (click to change)', 'better-wp-security' ),
116
  periodLabel
117
  ) }
118
  >
@@ -136,35 +139,78 @@ function Date( {
136
  setPeriodOption( newPeriod )
137
  }
138
  />
139
- { periodOption === 'custom' && (
140
- <Fragment>
141
- <TextControl
142
- type="date"
143
- min={ MIN }
144
- max={ MAX }
145
- value={ start }
146
- onChange={ ( newStart ) =>
147
- setStart( newStart )
148
- }
149
- label={ __( 'Start Date', 'better-wp-security' ) }
150
- placeholder="YYYY-MM-DD"
151
- />
152
- <TextControl
153
- type="date"
154
- min={ MIN }
155
- max={ MAX }
156
- value={ end }
157
- onChange={ ( newEnd ) =>
158
- setEnd( newEnd )
159
- }
160
- label={ __( 'End Date', 'better-wp-security' ) }
161
- placeholder="YYYY-MM-DD"
162
- />
163
- </Fragment>
164
- ) }
165
- <Button isPrimary onClick={ onApply }>
166
- { __( 'Apply', 'better-wp-security' ) }
167
- </Button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  </Modal>
169
  ) }
170
  </div>
3
  */
4
  import { isString } from 'lodash';
5
  import memize from 'memize';
6
+ import moment from 'moment';
7
 
8
  /**
9
  * WordPress dependencies
10
  */
11
+ import { useState } from '@wordpress/element';
12
  import {
13
  Button,
14
  Dashicon,
15
+ DatePicker,
16
+ Dropdown,
17
  Modal,
18
  SelectControl,
 
19
  } from '@wordpress/components';
20
  import { compose } from '@wordpress/compose';
21
  import { withDispatch, withSelect } from '@wordpress/data';
22
  import { __, sprintf } from '@wordpress/i18n';
23
+ import { dateI18n, format, getDate, isInTheFuture } from '@wordpress/date';
24
 
25
  function getPeriod( queryArgs, config ) {
26
  if ( queryArgs.period ) {
74
  ];
75
  } );
76
 
 
 
 
 
77
  function Date( {
78
  queryArgs,
79
  config,
91
  e.preventDefault();
92
 
93
  let newPeriod;
 
94
  if ( 'custom' === periodOption ) {
95
+ const momentStart = moment( start )
96
+ .set( { hour: 0, minute: 0, second: 0 } );
97
+ const momentEnd = moment( end )
98
+ .set( { hour: 23, minute: 59, second: 59 } );
99
+ newPeriod = {
100
+ start: format( 'Y-m-d\\TH:i:s', momentStart ),
101
+ end: format( 'Y-m-d\\TH:i:s', momentEnd ),
102
+ };
103
  } else {
104
  newPeriod = periodOption;
105
  }
 
106
  update( { ...queryArgs, period: newPeriod } );
107
  setIsOpen( false );
108
  };
115
  aria-expanded={ isOpen }
116
  aria-label={ sprintf(
117
  /* translators: 1. The current search period or interval Eg, 24 hours. */
118
+ __( '%s (click to edit)', 'better-wp-security' ),
119
  periodLabel
120
  ) }
121
  >
139
  setPeriodOption( newPeriod )
140
  }
141
  />
142
+ <div className="itsec-card-header-date__actions">
143
+ { periodOption === 'custom' && (
144
+ <>
145
+ <Dropdown
146
+ renderToggle={ ( { isOpen: isCalendarOpen, onToggle } ) => (
147
+ <Button
148
+ variant="secondary"
149
+ onClick={ onToggle }
150
+ aria-expanded={ isCalendarOpen }
151
+ aria-label={ sprintf(
152
+ /* translators: 1. The selected start date */
153
+ __( 'From: %s (click to edit)', 'better-wp-security' ),
154
+ dateI18n( 'M j', start )
155
+ ) }
156
+ text={ sprintf(
157
+ /* translators: 1. The selected start date */
158
+ __( 'From: %s', 'better-wp-security' ),
159
+ dateI18n( 'M j', start )
160
+ ) }
161
+ />
162
+ ) }
163
+ renderContent={ () => <DatePicker
164
+ currentDate={ start }
165
+ onChange={ setStart }
166
+ isInvalidDate={ ( dateToCheck ) => {
167
+ if ( isInTheFuture( dateToCheck ) ) {
168
+ return true;
169
+ }
170
+ const earliestDate = new window.Date();
171
+ earliestDate.setDate( earliestDate.getDate() - 60 );
172
+
173
+ return dateToCheck < earliestDate;
174
+ } }
175
+ /> }
176
+ />
177
+
178
+ <Dropdown
179
+ renderToggle={ ( { isOpen: isCalendarOpen, onToggle } ) => (
180
+ <Button
181
+ variant="secondary"
182
+ onClick={ onToggle }
183
+ aria-expanded={ isCalendarOpen }
184
+ aria-label={ sprintf(
185
+ /* translators: 1. The selected end date */
186
+ __( 'To: %s (click to edit)', 'better-wp-security' ),
187
+ dateI18n( 'M j', end )
188
+ ) }
189
+ text={ sprintf(
190
+ /* translators: 1. The selected end date */
191
+ __( 'To: %s', 'better-wp-security' ),
192
+ dateI18n( 'M j', end )
193
+ ) }
194
+ />
195
+ ) }
196
+ renderContent={ () => <DatePicker
197
+ currentDate={ end }
198
+ onChange={ setEnd }
199
+ isInvalidDate={ ( dateToCheck ) => {
200
+ if ( isInTheFuture( dateToCheck ) ) {
201
+ return true;
202
+ }
203
+ const startDate = getDate( start );
204
+ return startDate > dateToCheck;
205
+ } }
206
+ /> }
207
+ />
208
+ </>
209
+ ) }
210
+ <Button variant="primary" className="itsec-card-header-date__action--apply" onClick={ onApply }>
211
+ { __( 'Apply', 'better-wp-security' ) }
212
+ </Button>
213
+ </div>
214
  </Modal>
215
  ) }
216
  </div>
core/modules/dashboard/entries/dashboard/components/card/header/style.scss CHANGED
@@ -49,3 +49,12 @@
49
  .react-grid-item.static .itsec-card-header {
50
  cursor: default;
51
  }
 
 
 
 
 
 
 
 
 
49
  .react-grid-item.static .itsec-card-header {
50
  cursor: default;
51
  }
52
+
53
+ .itsec-card-header-date__actions {
54
+ display: flex;
55
+ gap: 0.5em;
56
+ }
57
+
58
+ .itsec-card-header-date__action--apply {
59
+ margin-left: auto;
60
+ }
core/modules/dashboard/entries/dashboard/store/cards/actions.js CHANGED
@@ -1,12 +1,12 @@
1
  /**
2
  * External dependencies
3
  */
4
- import { set } from 'lodash';
5
 
6
  /**
7
  * WordPress dependencies
8
  */
9
- import { select } from '@wordpress/data';
10
  import { addQueryArgs } from '@wordpress/url';
11
  import { __, sprintf } from '@wordpress/i18n';
12
 
@@ -342,6 +342,17 @@ export function* refreshDashboardCards( dashboardId ) {
342
  return updates;
343
  }
344
 
 
 
 
 
 
 
 
 
 
 
 
345
  export function* refreshDashboardCard( cardId ) {
346
  const card = select( 'ithemes-security/dashboard' ).getDashboardCard(
347
  cardId
1
  /**
2
  * External dependencies
3
  */
4
+ import { set, castArray } from 'lodash';
5
 
6
  /**
7
  * WordPress dependencies
8
  */
9
+ import { select, dispatch } from '@wordpress/data';
10
  import { addQueryArgs } from '@wordpress/url';
11
  import { __, sprintf } from '@wordpress/i18n';
12
 
342
  return updates;
343
  }
344
 
345
+ export function* refreshDashboardCardsOfType( dashboardId, types ) {
346
+ types = castArray( types );
347
+ const cards = select( 'ithemes-security/dashboard' ).getDashboardCards( dashboardId );
348
+
349
+ for ( const card of cards ) {
350
+ if ( types.includes( card.card ) ) {
351
+ dispatch( 'ithemes-security/dashboard' ).refreshDashboardCard( card.id );
352
+ }
353
+ }
354
+ }
355
+
356
  export function* refreshDashboardCard( cardId ) {
357
  const card = select( 'ithemes-security/dashboard' ).getDashboardCard(
358
  cardId
core/modules/file-change/module.json CHANGED
@@ -128,5 +128,8 @@
128
  "expected_hashes",
129
  "last_scan"
130
  ]
131
- }
 
 
 
132
  }
128
  "expected_hashes",
129
  "last_scan"
130
  ]
131
+ },
132
+ "removed-settings": [
133
+ "notify_admin"
134
+ ]
135
  }
core/modules/file-change/setup.php CHANGED
@@ -300,7 +300,7 @@ class ITSEC_File_Change_Setup {
300
  ITSEC_File_Change_Scanner::schedule_start( false );
301
  }
302
 
303
- if ( $itsec_old_version > 4114 ) {
304
  if ( ! ITSEC_Modules::get_setting( 'file-change', 'notify_admin' ) ) {
305
  ITSEC_Lib::load( 'highlighted-logs' );
306
  ITSEC_Lib_Highlighted_Logs::mute( 'file-change-report' );
300
  ITSEC_File_Change_Scanner::schedule_start( false );
301
  }
302
 
303
+ if ( $itsec_old_version < 4114 ) {
304
  if ( ! ITSEC_Modules::get_setting( 'file-change', 'notify_admin' ) ) {
305
  ITSEC_Lib::load( 'highlighted-logs' );
306
  ITSEC_Lib_Highlighted_Logs::mute( 'file-change-report' );
core/modules/global/module.json CHANGED
@@ -150,7 +150,7 @@
150
  "type": "string",
151
  "default": "automatic",
152
  "title": "Proxy Detection",
153
- "description": "Determine how iThemes Security determines your visitors IP addresses. Choose the Security Check Scan to increase iThemes Security’s ability to identify your server IP and IPs attacking your website accurately."
154
  },
155
  "proxy_header": {
156
  "type": "string",
@@ -280,6 +280,11 @@
280
  "additionalProperties": false,
281
  "default": {},
282
  "readonly": true
 
 
 
 
 
283
  }
284
  },
285
  "uiSchema": {
@@ -425,7 +430,6 @@
425
  },
426
  "removed-settings": [
427
  "did_upgrade",
428
- "log_info",
429
  "show_security_check",
430
  "digest_email",
431
  "email_notifications",
150
  "type": "string",
151
  "default": "automatic",
152
  "title": "Proxy Detection",
153
+ "description": "Determine how iThemes Security determines your visitors IP addresses. Choose the Security Check Scan to let iThemes Security identify malicious IPs attacking your website accurately."
154
  },
155
  "proxy_header": {
156
  "type": "string",
280
  "additionalProperties": false,
281
  "default": {},
282
  "readonly": true
283
+ },
284
+ "log_info": {
285
+ "type": "string",
286
+ "default": "",
287
+ "readonly": true
288
  }
289
  },
290
  "uiSchema": {
430
  },
431
  "removed-settings": [
432
  "did_upgrade",
 
433
  "show_security_check",
434
  "digest_email",
435
  "email_notifications",
core/modules/global/notices.php CHANGED
@@ -84,6 +84,62 @@ class ITSEC_Admin_Notice_Licensed_Hostname_Prompt implements ITSEC_Admin_Notice
84
  }
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  if ( ITSEC_Core::is_temp_disable_modules_set() ) {
88
  ITSEC_Lib_Admin_Notices::register(
89
  new ITSEC_Admin_Notice_Managers_Only(
84
  }
85
  }
86
 
87
+ ITSEC_Lib_Admin_Notices::register(
88
+ new ITSEC_Admin_Notice_Remind_Me(
89
+ new ITSEC_Admin_Notice_Managers_Only(
90
+ new class implements ITSEC_Admin_Notice {
91
+ public function get_id() {
92
+ return 'insecure-ip-detection';
93
+ }
94
+
95
+ public function get_title() {
96
+ return __( 'Enable Security Check Pro', 'better-wp-security' );
97
+ }
98
+
99
+ public function get_message() {
100
+ return __( 'Automatic IP detection is susceptible to IP spoofing attacks.', 'better-wp-security' ) . ' ' .
101
+ __( 'We recommend enabling Security Check Pro to securely configure IP detection.', 'better-wp-security' ) . ' ' .
102
+ __( 'Alternatively, manually configure <a href="{{ $configure }}">Proxy Detection</a> based on your server setup.', 'better-wp-security' );
103
+ }
104
+
105
+ public function get_meta() {
106
+ return [];
107
+ }
108
+
109
+ public function get_severity() {
110
+ return self::S_WARN;
111
+ }
112
+
113
+ public function show_for_context( ITSEC_Admin_Notice_Context $context ) {
114
+ return 'automatic' === ITSEC_Modules::get_setting( 'global', 'proxy' );
115
+ }
116
+
117
+ public function get_actions() {
118
+ return [
119
+ 'enable' => new ITSEC_Admin_Notice_Action_Callback(
120
+ ITSEC_Admin_Notice_Action::S_PRIMARY,
121
+ __( 'Enable', 'better-wp-security' ),
122
+ function () {
123
+ if ( ! ITSEC_Modules::is_active( 'security-check-pro' ) ) {
124
+ ITSEC_Modules::activate( 'security-check-pro' );
125
+ }
126
+
127
+ ITSEC_Modules::set_setting( 'global', 'proxy', 'security-check' );
128
+ }
129
+ ),
130
+ 'configure' => ITSEC_Admin_Notice_Action_Link::for_route(
131
+ ITSEC_Core::get_settings_module_route( 'global' ) . '#proxy',
132
+ __( 'Manually Configure', 'better-wp-security' )
133
+ ),
134
+ ];
135
+ }
136
+ }
137
+ ),
138
+ WEEK_IN_SECONDS
139
+ )
140
+ );
141
+
142
+
143
  if ( ITSEC_Core::is_temp_disable_modules_set() ) {
144
  ITSEC_Lib_Admin_Notices::register(
145
  new ITSEC_Admin_Notice_Managers_Only(
core/modules/hibp/container.php CHANGED
@@ -3,12 +3,12 @@
3
  use iThemesSecurity\Modules\HIBP\HIBP_Requirement;
4
  use iThemesSecurity\User_Groups\Matcher;
5
 
6
- return static function ( \Pimple\Container $c ) {
7
- $c[ HIBP_Requirement::class ] = static function ( \Pimple\Container $c ) {
8
  return new HIBP_Requirement( $c[ Matcher::class ], ITSEC_Modules::get_config( 'hibp' ), 'hibp' );
9
  };
10
 
11
- $c['ITSEC_HIBP'] = static function ( \Pimple\Container $c ) {
12
  return new ITSEC_HIBP( $c[ HIBP_Requirement::class ] );
13
  };
14
  };
3
  use iThemesSecurity\Modules\HIBP\HIBP_Requirement;
4
  use iThemesSecurity\User_Groups\Matcher;
5
 
6
+ return static function ( \iThemesSecurity\Strauss\Pimple\Container $c ) {
7
+ $c[ HIBP_Requirement::class ] = static function ( \iThemesSecurity\Strauss\Pimple\Container $c ) {
8
  return new HIBP_Requirement( $c[ Matcher::class ], ITSEC_Modules::get_config( 'hibp' ), 'hibp' );
9
  };
10
 
11
+ $c['ITSEC_HIBP'] = static function ( \iThemesSecurity\Strauss\Pimple\Container $c ) {
12
  return new ITSEC_HIBP( $c[ HIBP_Requirement::class ] );
13
  };
14
  };
core/modules/hide-backend/class-itsec-hide-backend.php CHANGED
@@ -75,7 +75,7 @@ class ITSEC_Hide_Backend {
75
  * @return void
76
  */
77
  public function handle_specific_page_requests() {
78
- if ( ITSEC_Core::is_api_request() ) {
79
  return;
80
  }
81
 
@@ -251,7 +251,7 @@ class ITSEC_Hide_Backend {
251
  // Preserve existing query vars and add access token query arg.
252
  $query_vars = $_GET;
253
  $query_vars[ $this->token_var ] = $this->get_access_token( $type );
254
- $query = http_build_query( $query_vars, null, '&' );
255
 
256
  // Disable the Hide Backend URL filters to prevent infinite loops when calling site_url().
257
  $this->disable_filters = true;
75
  * @return void
76
  */
77
  public function handle_specific_page_requests() {
78
+ if ( ITSEC_Core::is_api_request() || wp_doing_cron() ) {
79
  return;
80
  }
81
 
251
  // Preserve existing query vars and add access token query arg.
252
  $query_vars = $_GET;
253
  $query_vars[ $this->token_var ] = $this->get_access_token( $type );
254
+ $query = http_build_query( $query_vars, '', '&' );
255
 
256
  // Disable the Hide Backend URL filters to prevent infinite loops when calling site_url().
257
  $this->disable_filters = true;
core/modules/promos/entries/settings/app.js CHANGED
@@ -1,7 +1,7 @@
1
  /**
2
  * WordPress dependencies
3
  */
4
- import { useMemo } from '@wordpress/element';
5
  import { __, sprintf } from '@wordpress/i18n';
6
  import { Button, Card, CardBody } from '@wordpress/components';
7
  import { useSelect } from '@wordpress/data';
@@ -14,7 +14,7 @@ import {
14
  MarkPro,
15
  VulnerabilityReport as VulnerabilityReportGraphic,
16
  } from '@ithemes/security-style-guide';
17
- import { TabPanel } from '@ithemes/security-components';
18
  import { useAsync } from '@ithemes/security-hocs';
19
  import { CORE_STORE_NAME } from '@ithemes/security.packages.data';
20
  import './style.scss';
@@ -35,22 +35,26 @@ export default function App() {
35
  }
36
 
37
  function ProUpgrade() {
 
38
  const tabs = useMemo(
39
  () => [
40
  {
41
  name: 'one',
42
  title: __( '1 Site', 'better-wp-security' ),
43
- price: '80',
 
44
  },
45
  {
46
- name: 'ten',
47
- title: __( '10 Sites', 'better-wp-security' ),
48
- price: '127',
 
49
  },
50
  {
51
- name: 'unlimited',
52
- title: __( 'Unlimited', 'better-wp-security' ),
53
- price: '199',
 
54
  },
55
  ],
56
  []
@@ -69,7 +73,7 @@ function ProUpgrade() {
69
  'better-wp-security'
70
  ) }
71
  </p>
72
- <TabPanel isStyled tabs={ tabs }>
73
  { ( { price } ) => (
74
  <>
75
  <span className="itsec-promo-pro-upgrade__price">
@@ -83,11 +87,11 @@ function ProUpgrade() {
83
  </span>
84
  </>
85
  ) }
86
- </TabPanel>
87
  <Button
88
  isPrimary
89
  className="itsec-promo-pro-upgrade__button"
90
- href="https://ithem.es/go-security-pro-now"
91
  >
92
  { __( 'Go Pro Now', 'better-wp-security' ) }
93
  </Button>
1
  /**
2
  * WordPress dependencies
3
  */
4
+ import { useMemo, useState } from '@wordpress/element';
5
  import { __, sprintf } from '@wordpress/i18n';
6
  import { Button, Card, CardBody } from '@wordpress/components';
7
  import { useSelect } from '@wordpress/data';
14
  MarkPro,
15
  VulnerabilityReport as VulnerabilityReportGraphic,
16
  } from '@ithemes/security-style-guide';
17
+ import { ControlledTabPanel } from '@ithemes/security-components';
18
  import { useAsync } from '@ithemes/security-hocs';
19
  import { CORE_STORE_NAME } from '@ithemes/security.packages.data';
20
  import './style.scss';
35
  }
36
 
37
  function ProUpgrade() {
38
+ const [ currentTab, selectTab ] = useState( 'one' );
39
  const tabs = useMemo(
40
  () => [
41
  {
42
  name: 'one',
43
  title: __( '1 Site', 'better-wp-security' ),
44
+ price: '99',
45
+ link: 'https://ithem.es/security-1-site-plan',
46
  },
47
  {
48
+ name: 'five',
49
+ title: __( '5 Sites', 'better-wp-security' ),
50
+ price: '199',
51
+ link: 'https://ithem.es/security-5-site-plan',
52
  },
53
  {
54
+ name: 'ten',
55
+ title: __( '10 Sites', 'better-wp-security' ),
56
+ price: '299',
57
+ link: 'https://ithem.es/security-10-site-plan',
58
  },
59
  ],
60
  []
73
  'better-wp-security'
74
  ) }
75
  </p>
76
+ <ControlledTabPanel isStyled tabs={ tabs } selected={ currentTab } onSelect={ selectTab }>
77
  { ( { price } ) => (
78
  <>
79
  <span className="itsec-promo-pro-upgrade__price">
87
  </span>
88
  </>
89
  ) }
90
+ </ControlledTabPanel>
91
  <Button
92
  isPrimary
93
  className="itsec-promo-pro-upgrade__button"
94
+ href={ tabs.find( ( tab ) => tab.name === currentTab )?.link || 'https://ithem.es/go-security-pro-now' }
95
  >
96
  { __( 'Go Pro Now', 'better-wp-security' ) }
97
  </Button>
core/modules/security-check-pro/class-itsec-security-check-pro.php CHANGED
@@ -47,6 +47,14 @@ final class ITSEC_Security_Check_Pro {
47
  * @return bool
48
  */
49
  public function build_detector( $configured, ITSEC_IP_Detector $detector ) {
 
 
 
 
 
 
 
 
50
  $index = ITSEC_Modules::get_setting( 'security-check-pro', 'remote_ip_index' );
51
 
52
  if ( ! $index ) {
47
  * @return bool
48
  */
49
  public function build_detector( $configured, ITSEC_IP_Detector $detector ) {
50
+ $ip_header = ITSEC_Modules::get_setting( 'security-check-pro', 'ip_header' );
51
+
52
+ if ( $ip_header['name'] ) {
53
+ $detector->add_header( $ip_header['name'], $ip_header['position_from_end'], ITSEC_IP_Detector::FROM_RIGHT );
54
+
55
+ return true;
56
+ }
57
+
58
  $index = ITSEC_Modules::get_setting( 'security-check-pro', 'remote_ip_index' );
59
 
60
  if ( ! $index ) {
core/modules/security-check-pro/module.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "id": "security-check-pro",
3
- "status":{
4
  "free": "default-inactive",
5
  "pro": "always-active"
6
  },
@@ -33,6 +33,22 @@
33
  "default": null,
34
  "readonly": true
35
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  "remote_ip_index": {
37
  "type": [
38
  "null",
1
  {
2
  "id": "security-check-pro",
3
+ "status": {
4
  "free": "default-inactive",
5
  "pro": "always-active"
6
  },
33
  "default": null,
34
  "readonly": true
35
  },
36
+ "ip_header": {
37
+ "type": "object",
38
+ "properties": {
39
+ "name": {
40
+ "type": "string"
41
+ },
42
+ "position_from_end": {
43
+ "type": "integer"
44
+ }
45
+ },
46
+ "default": {
47
+ "name": "",
48
+ "position_from_end": -1
49
+ },
50
+ "readonly": true
51
+ },
52
  "remote_ip_index": {
53
  "type": [
54
  "null",
core/modules/security-check-pro/setup.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class ITSEC_Security_Check_Pro_Setup {
4
+ public function __construct() {
5
+ add_action( 'itsec_modules_do_plugin_upgrade', [ $this, 'execute_upgrade' ] );
6
+ }
7
+
8
+ public function execute_upgrade( $old_version ) {
9
+ if ( $old_version < 4126 && ITSEC_Modules::is_active( 'security-check-pro' ) ) {
10
+ ITSEC_Security_Check_Pro_Utility::get_server_response();
11
+ }
12
+ }
13
+ }
14
+
15
+ new ITSEC_Security_Check_Pro_Setup();
core/modules/security-check-pro/utility.php CHANGED
@@ -5,76 +5,14 @@ final class ITSEC_Security_Check_Pro_Utility {
5
  private static $config_url = 'https://itsec-ssl-proxy-detect.ithemes.com/config.json';
6
 
7
  /**
8
- * Run the security check pro scan.
9
  *
10
- * @param ITSEC_Security_Check_Feedback $feedback
 
 
11
  *
12
- * @return array|WP_Error
13
  */
14
- public static function run_scan( $feedback ) {
15
- _deprecated_function( __METHOD__, '7.0.0' );
16
-
17
- $response = self::get_server_response();
18
-
19
- if ( ! is_array( $response ) ) {
20
- $settings = ITSEC_Modules::get_settings( 'security-check-pro' );
21
-
22
- if ( ! is_int( $settings['last_scan_timestamp'] ) || time() > $settings['last_scan_timestamp'] + HOUR_IN_SECONDS ) {
23
- return $response;
24
- }
25
-
26
- $response = array(
27
- 'remote_ip' => ! empty( $settings['remote_ip_index'] ),
28
- 'ssl_supported' => $settings['ssl_supported'],
29
- );
30
- }
31
-
32
- if ( ! defined( 'ITSEC_DISABLE_AUTOMATIC_REMOTE_IP_DETECTION' ) || ! ITSEC_DISABLE_AUTOMATIC_REMOTE_IP_DETECTION ) {
33
- if ( isset( $response['remote_ip'] ) && $response['remote_ip'] ) {
34
- ITSEC_Modules::set_setting( 'global', 'proxy', 'security-check' );
35
- $feedback->add_section( 'security-check-pro-remote-ip', array( 'status' => 'action-taken' ) );
36
- $feedback->add_text( __( 'Identified remote IP entry to protect against IP spoofing.', 'better-wp-security' ) );
37
- }
38
- }
39
-
40
- if ( isset( $response['ssl_supported'] ) && $response['ssl_supported'] ) {
41
- ITSEC_Response::reload_module( 'ssl' );
42
-
43
- $ssl_settings = ITSEC_Modules::get_settings( 'ssl' );
44
-
45
- if ( 'enabled' === $ssl_settings['require_ssl'] || ( 'advanced' === $ssl_settings['require_ssl'] && $ssl_settings['admin'] ) ) {
46
- $feedback->add_section( 'security-check-pro-ssl' );
47
- $feedback->add_text( __( 'Requests for http pages are redirected to https as recommended.', 'better-wp-security' ) );
48
- } else {
49
- $feedback->add_section( 'security-check-pro-ssl', array( 'interactive' => true, 'status' => 'call-to-action' ) );
50
- $feedback->add_text( __( 'Your site supports SSL. Redirecting all http page requests to https is highly recommended as it protects login details from being stolen when using public WiFi or insecure networks.', 'better-wp-security' ) );
51
-
52
- if ( ! is_ssl() ) {
53
- $feedback->add_text( __( 'Please note that you will have to log back in after enabling this.', 'better-wp-security' ) );
54
- }
55
-
56
- $feedback->add_input( 'submit', 'enable_ssl', array(
57
- 'value' => __( 'Redirect HTTP Requests to HTTPS', 'better-wp-security' ),
58
- 'style_class' => 'button-primary',
59
- 'data' => array(
60
- 'clicked-value' => __( 'Updating Site Configuration...', 'better-wp-security' ),
61
- ),
62
- ) );
63
- $feedback->add_input( 'hidden', 'method', array(
64
- 'value' => 'enable-ssl',
65
- ) );
66
- }
67
- }
68
-
69
- return $response;
70
- }
71
-
72
- public static function handle_enable_ssl( $data ) {
73
- _deprecated_function( __METHOD__, '7.0.0' );
74
-
75
- ITSEC_Modules::activate( 'ssl' );
76
- }
77
-
78
  public static function handle_scan_request() {
79
  if ( ! isset( $_POST['itsec-security-check'] ) || 'scan' !== $_POST['itsec-security-check'] ) {
80
  return;
@@ -88,13 +26,21 @@ final class ITSEC_Security_Check_Pro_Utility {
88
  return;
89
  }
90
 
91
- if ( defined( 'ITSEC_DISABLE_AUTOMATIC_REMOTE_IP_DETECTION' ) && ITSEC_DISABLE_AUTOMATIC_REMOTE_IP_DETECTION ) {
92
- $remote_ip_index = '';
93
- } else {
94
- $remote_ip_index = self::get_remote_ip_index();
95
 
96
- if ( false === $remote_ip_index ) {
97
- $remote_ip_index = '';
 
 
 
 
 
 
 
 
98
  }
99
  }
100
 
@@ -104,19 +50,27 @@ final class ITSEC_Security_Check_Pro_Utility {
104
  $ssl_supported = false;
105
  }
106
 
107
- $settings = array(
108
- 'last_scan_timestamp' => time(),
109
- 'remote_ip_index' => $remote_ip_index,
110
- 'ssl_supported' => $ssl_supported,
111
- );
 
112
 
113
  ITSEC_Modules::set_settings( 'security-check-pro', $settings );
 
114
 
115
  header( 'Content-Type: text/plain' );
116
- echo "<response>{$_POST['expect']}:" . ( empty( $remote_ip_index ) ? 'false' : 'true' ) . ':' . ( $ssl_supported ? 'true' : 'false' ) . '</response>';
117
  exit();
118
  }
119
 
 
 
 
 
 
 
120
  public static function get_remote_ip_index() {
121
  $remote_ips = self::get_remote_ips();
122
 
@@ -127,9 +81,9 @@ final class ITSEC_Security_Check_Pro_Utility {
127
  $standard_indexes = array(
128
  'REMOTE_ADDR',
129
  'HTTP_X_REAL_IP',
130
- 'HTTP_X_FORWARDED_FOR',
131
  'HTTP_CF_CONNECTING_IP',
132
  'HTTP_CLIENT_IP',
 
133
  );
134
 
135
  foreach ( $remote_ips as $ip ) {
@@ -157,6 +111,15 @@ final class ITSEC_Security_Check_Pro_Utility {
157
  return false;
158
  }
159
 
 
 
 
 
 
 
 
 
 
160
  public static function get_index( $ip, $var ) {
161
  if ( ! isset( $_SERVER[ $var ] ) ) {
162
  return false;
@@ -172,14 +135,14 @@ final class ITSEC_Security_Check_Pro_Utility {
172
  if ( preg_match( $ip_regex_pattern, $value ) ) {
173
  $potential_ips = preg_split( '/[, ]+/', $value );
174
 
175
- foreach ( $potential_ips as $index => $potential_ip ) {
176
  if ( $ip === $potential_ip ) {
177
  return array( $var, $index );
178
  }
179
  }
180
 
181
  if ( preg_match_all( '{(?:for)=(?:"?\[?)([a-z0-9\.:_\-/]*)}i', $value, $matches, PREG_SET_ORDER ) ) {
182
- foreach ( $matches as $index => $match ) {
183
  if ( $ip === $match[1] ) {
184
  return array( $var, $index );
185
  }
@@ -190,6 +153,12 @@ final class ITSEC_Security_Check_Pro_Utility {
190
  return false;
191
  }
192
 
 
 
 
 
 
 
193
  public static function get_server_response() {
194
  $data = array(
195
  'site' => get_home_url(),
@@ -232,6 +201,14 @@ final class ITSEC_Security_Check_Pro_Utility {
232
  return $body;
233
  }
234
 
 
 
 
 
 
 
 
 
235
  public static function validate_key( $key, $expires = false ) {
236
  $salt = ITSEC_Modules::get_setting( 'security-check-pro', 'key_salt' );
237
  $key = trim( $key );
@@ -260,11 +237,18 @@ final class ITSEC_Security_Check_Pro_Utility {
260
  return hash_equals( $calculated_hash, $hash );
261
  }
262
 
 
 
 
 
 
 
 
263
  public static function get_key() {
264
  $salt = ITSEC_Modules::get_setting( 'security-check-pro', 'key_salt' );
265
 
266
  if ( empty( $salt ) ) {
267
- $salt = wp_generate_password( 60, true, true );
268
  ITSEC_Modules::set_setting( 'security-check-pro', 'key_salt', $salt );
269
  ITSEC_Storage::save();
270
  }
5
  private static $config_url = 'https://itsec-ssl-proxy-detect.ithemes.com/config.json';
6
 
7
  /**
8
+ * Function handler that responds to the SSL Proxy Detect server's Postback request.
9
  *
10
+ * It checks the request is properly authorized and then looks for one of the server's
11
+ * known IP addresses in $_SERVER. The identified header and SSL support are saved
12
+ * to the module's settings.
13
  *
14
+ * @return void
15
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  public static function handle_scan_request() {
17
  if ( ! isset( $_POST['itsec-security-check'] ) || 'scan' !== $_POST['itsec-security-check'] ) {
18
  return;
26
  return;
27
  }
28
 
29
+ $ip_header = [
30
+ 'name' => '',
31
+ 'position_from_end' => - 1,
32
+ ];
33
 
34
+ if ( ! defined( 'ITSEC_DISABLE_AUTOMATIC_REMOTE_IP_DETECTION' ) || ! ITSEC_DISABLE_AUTOMATIC_REMOTE_IP_DETECTION ) {
35
+ $detected = self::get_remote_ip_index();
36
+
37
+ if ( false !== $detected ) {
38
+ if ( is_string( $detected ) ) {
39
+ $ip_header['name'] = $detected;
40
+ } else {
41
+ $ip_header['name'] = $detected[0];
42
+ $ip_header['position_from_end'] = $detected[1];
43
+ }
44
  }
45
  }
46
 
50
  $ssl_supported = false;
51
  }
52
 
53
+ $settings = ITSEC_Modules::get_settings( 'security-check-pro' );
54
+
55
+ $settings['last_scan_timestamp'] = time();
56
+ $settings['ssl_supported'] = $ssl_supported;
57
+ $settings['ip_header'] = $ip_header;
58
+ $settings['remote_ip_index'] = '';
59
 
60
  ITSEC_Modules::set_settings( 'security-check-pro', $settings );
61
+ ITSEC_Storage::save();
62
 
63
  header( 'Content-Type: text/plain' );
64
+ echo "<response>{$_POST['expect']}:" . ( empty( $ip_header['name'] ) ? 'false' : 'true' ) . ':' . ( $ssl_supported ? 'true' : 'false' ) . '</response>';
65
  exit();
66
  }
67
 
68
+ /**
69
+ * Gets the header containing the remote IP.
70
+ *
71
+ * @return string|array Either the header name, if the IP isn't in an indexed position.
72
+ * Otherwise, a tuple of the header name and right-oriented 0-based index.
73
+ */
74
  public static function get_remote_ip_index() {
75
  $remote_ips = self::get_remote_ips();
76
 
81
  $standard_indexes = array(
82
  'REMOTE_ADDR',
83
  'HTTP_X_REAL_IP',
 
84
  'HTTP_CF_CONNECTING_IP',
85
  'HTTP_CLIENT_IP',
86
+ 'HTTP_X_FORWARDED_FOR',
87
  );
88
 
89
  foreach ( $remote_ips as $ip ) {
111
  return false;
112
  }
113
 
114
+ /**
115
+ * Gets the index that an IP is found at.
116
+ *
117
+ * @param string $ip The IP to locate.
118
+ * @param string $var The server variable to check.
119
+ *
120
+ * @return string|array Either the header name, if the IP isn't in an indexed position.
121
+ * Otherwise, a tuple of the header name and right-oriented 0-based index.
122
+ */
123
  public static function get_index( $ip, $var ) {
124
  if ( ! isset( $_SERVER[ $var ] ) ) {
125
  return false;
135
  if ( preg_match( $ip_regex_pattern, $value ) ) {
136
  $potential_ips = preg_split( '/[, ]+/', $value );
137
 
138
+ foreach ( array_reverse( $potential_ips ) as $index => $potential_ip ) {
139
  if ( $ip === $potential_ip ) {
140
  return array( $var, $index );
141
  }
142
  }
143
 
144
  if ( preg_match_all( '{(?:for)=(?:"?\[?)([a-z0-9\.:_\-/]*)}i', $value, $matches, PREG_SET_ORDER ) ) {
145
+ foreach ( array_reverse( $matches ) as $index => $match ) {
146
  if ( $ip === $match[1] ) {
147
  return array( $var, $index );
148
  }
153
  return false;
154
  }
155
 
156
+ /**
157
+ * Contacts the SSL Proxy Detect server and returns the detected valeus.
158
+ *
159
+ * @return array|WP_Error An array with a `remote_ip` entry if IP detection was successful,
160
+ * and a `ssl_supported` entry if SSL is supported.
161
+ */
162
  public static function get_server_response() {
163
  $data = array(
164
  'site' => get_home_url(),
201
  return $body;
202
  }
203
 
204
+ /**
205
+ * Validates that the given key matches the expected hash and is not expired.
206
+ *
207
+ * @param string $key The provided authorization key.
208
+ * @param int|false $expires The allowed expiration in seconds. Defaults to 2 minutes.
209
+ *
210
+ * @return bool
211
+ */
212
  public static function validate_key( $key, $expires = false ) {
213
  $salt = ITSEC_Modules::get_setting( 'security-check-pro', 'key_salt' );
214
  $key = trim( $key );
237
  return hash_equals( $calculated_hash, $hash );
238
  }
239
 
240
+ /**
241
+ * Gets the key passed to the SSL Proxy Detect server to authorize its callback request.
242
+ *
243
+ * If a salt has not yet been generated, one is stored and saved to settings.
244
+ *
245
+ * @return string
246
+ */
247
  public static function get_key() {
248
  $salt = ITSEC_Modules::get_setting( 'security-check-pro', 'key_salt' );
249
 
250
  if ( empty( $salt ) ) {
251
+ $salt = wp_generate_password( 60, true, true );
252
  ITSEC_Modules::set_setting( 'security-check-pro', 'key_salt', $salt );
253
  ITSEC_Storage::save();
254
  }
core/modules/site-scanner/Model/Entry.php CHANGED
@@ -66,7 +66,7 @@ final class Entry implements \Countable {
66
  *
67
  * @return int
68
  */
69
- public function count( $status = '' ) {
70
  $i = 0;
71
 
72
  foreach ( $this->get_issues() as $issue ) {
66
  *
67
  * @return int
68
  */
69
+ public function count( string $status = '' ): int {
70
  $i = 0;
71
 
72
  foreach ( $this->get_issues() as $issue ) {
core/modules/site-scanner/Model/Scan.php CHANGED
@@ -197,7 +197,7 @@ final class Scan implements \Countable {
197
  *
198
  * @return int
199
  */
200
- public function count( $status = '' ) {
201
  $i = 0;
202
 
203
  foreach ( $this->get_entries() as $entry ) {
197
  *
198
  * @return int
199
  */
200
+ public function count( string $status = '' ): int {
201
  $i = 0;
202
 
203
  foreach ( $this->get_entries() as $entry ) {
core/modules/site-scanner/container.php CHANGED
@@ -5,7 +5,7 @@ namespace iThemesSecurity\Site_Scanner;
5
  use iThemesSecurity\Site_Scanner\Repository\LatestScanRepository;
6
  use iThemesSecurity\Site_Scanner\Repository\LogRepository;
7
  use iThemesSecurity\Site_Scanner\Repository\Repository;
8
- use Pimple\Container;
9
 
10
  return static function ( Container $c ) {
11
  $c['module.site-scanner.files'] = [
5
  use iThemesSecurity\Site_Scanner\Repository\LatestScanRepository;
6
  use iThemesSecurity\Site_Scanner\Repository\LogRepository;
7
  use iThemesSecurity\Site_Scanner\Repository\Repository;
8
+ use iThemesSecurity\Strauss\Pimple\Container;
9
 
10
  return static function ( Container $c ) {
11
  $c['module.site-scanner.files'] = [
core/modules/strong-passwords/container.php CHANGED
@@ -3,12 +3,12 @@
3
  use iThemesSecurity\Modules\Strong_Passwords\Strength_Requirement;
4
  use iThemesSecurity\User_Groups\Matcher;
5
 
6
- return static function ( \Pimple\Container $c ) {
7
- $c[ Strength_Requirement::class ] = static function ( \Pimple\Container $c ) {
8
  return new Strength_Requirement( $c[ Matcher::class ], ITSEC_Modules::get_config( 'strong-passwords' ), 'strength' );
9
  };
10
 
11
- $c['ITSEC_Strong_Passwords'] = static function ( \Pimple\Container $c ) {
12
  return new ITSEC_Strong_Passwords( $c[ Matcher::class ], $c[ Strength_Requirement::class ] );
13
  };
14
  };
3
  use iThemesSecurity\Modules\Strong_Passwords\Strength_Requirement;
4
  use iThemesSecurity\User_Groups\Matcher;
5
 
6
+ return static function ( \iThemesSecurity\Strauss\Pimple\Container $c ) {
7
+ $c[ Strength_Requirement::class ] = static function ( \iThemesSecurity\Strauss\Pimple\Container $c ) {
8
  return new Strength_Requirement( $c[ Matcher::class ], ITSEC_Modules::get_config( 'strong-passwords' ), 'strength' );
9
  };
10
 
11
+ $c['ITSEC_Strong_Passwords'] = static function ( \iThemesSecurity\Strauss\Pimple\Container $c ) {
12
  return new ITSEC_Strong_Passwords( $c[ Matcher::class ], $c[ Strength_Requirement::class ] );
13
  };
14
  };
core/modules/two-factor/class-itsec-two-factor.php CHANGED
@@ -54,7 +54,7 @@ class ITSEC_Two_Factor {
54
 
55
  add_filter( 'authenticate', array( $this, 'block_xmlrpc' ), 100 );
56
  add_filter( 'itsec_is_user_using_two_factor', array( $this, 'mark_user_as_using_2fa' ), 10, 2 );
57
- add_action( 'itsec_passwordless_login_initialize_interstitial', array( $this, 'pwls_skip_2fa' ) );
58
  add_filter( 'itsec_user_security_profile_data', array( $this, 'add_2fa_security_profile_data' ), 10, 2 );
59
 
60
  add_action( 'ithemes_sync_register_verbs', array( $this, 'register_sync_verbs' ) );
@@ -285,9 +285,13 @@ class ITSEC_Two_Factor {
285
  * if the user's primary provider is Email.
286
  *
287
  * @param ITSEC_Login_Interstitial_Session $session
 
288
  */
289
- public function pwls_skip_2fa( ITSEC_Login_Interstitial_Session $session ) {
290
- if ( self::get_instance()->get_primary_provider_for_user( $session->get_user()->ID ) instanceof Two_Factor_Email ) {
 
 
 
291
  $session->add_completed_interstitial( '2fa' );
292
  }
293
  }
54
 
55
  add_filter( 'authenticate', array( $this, 'block_xmlrpc' ), 100 );
56
  add_filter( 'itsec_is_user_using_two_factor', array( $this, 'mark_user_as_using_2fa' ), 10, 2 );
57
+ add_action( 'itsec_passwordless_login_initialize_interstitial', array( $this, 'pwls_skip_2fa' ), 10, 2 );
58
  add_filter( 'itsec_user_security_profile_data', array( $this, 'add_2fa_security_profile_data' ), 10, 2 );
59
 
60
  add_action( 'ithemes_sync_register_verbs', array( $this, 'register_sync_verbs' ) );
285
  * if the user's primary provider is Email.
286
  *
287
  * @param ITSEC_Login_Interstitial_Session $session
288
+ * @param array $args
289
  */
290
+ public function pwls_skip_2fa( ITSEC_Login_Interstitial_Session $session, $args ) {
291
+ if (
292
+ $args['method'] === 'magic' &&
293
+ self::get_instance()->get_primary_provider_for_user( $session->get_user()->ID ) instanceof Two_Factor_Email
294
+ ) {
295
  $session->add_completed_interstitial( '2fa' );
296
  }
297
  }
core/modules/two-factor/includes/interface-itsec-two-factor-provider-cli-configurable.php CHANGED
@@ -16,4 +16,14 @@ interface ITSEC_Two_Factor_Provider_CLI_Configurable {
16
  * @return void
17
  */
18
  public function configure_via_cli( WP_User $user, array $args );
 
 
 
 
 
 
 
 
 
 
19
  }
16
  * @return void
17
  */
18
  public function configure_via_cli( WP_User $user, array $args );
19
+
20
+ /**
21
+ * Gets the current configuration for WP-CLI.
22
+ *
23
+ * @param WP_User $user
24
+ * @param array $args
25
+ *
26
+ * @return void
27
+ */
28
+ public function get_config_for_cli( WP_User $user, array $args );
29
  }
core/modules/two-factor/module.json CHANGED
@@ -122,5 +122,10 @@
122
  "application_passwords_roles",
123
  "exclude_type",
124
  "exclude_roles"
125
- ]
126
- }
 
 
 
 
 
122
  "application_passwords_roles",
123
  "exclude_type",
124
  "exclude_roles"
125
+ ],
126
+ "encryption": {
127
+ "user-meta": [
128
+ "_two_factor_totp_key"
129
+ ]
130
+ }
131
+ }
core/modules/two-factor/providers/class.two-factor-backup-codes.php CHANGED
@@ -1,8 +1,9 @@
1
  <?php
 
2
  /**
3
  * Class for creating a backup codes provider.
4
  *
5
- * @since 0.1-dev
6
  *
7
  * @package Two_Factor
8
  */
@@ -10,6 +11,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
10
 
11
  /**
12
  * The user meta backup codes key.
 
13
  * @type string
14
  */
15
  const BACKUP_CODES_META_KEY = '_two_factor_backup_codes';
@@ -17,6 +19,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
17
 
18
  /**
19
  * The number backup codes.
 
20
  * @type int
21
  */
22
  const NUMBER_OF_CODES = 10;
@@ -32,6 +35,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
32
  if ( ! is_a( $instance, $class ) ) {
33
  $instance = new $class;
34
  }
 
35
  return $instance;
36
  }
37
 
@@ -70,9 +74,9 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
70
  <div class="error">
71
  <p>
72
  <span><?php printf( // WPCS: XSS OK.
73
- __( 'Two-Factor: You are out of backup codes and need to <a href="%s">regenerate!</a>', 'better-wp-security' ),
74
- esc_url( get_edit_user_link( $user->ID ) . '#two-factor-backup-codes' )
75
- ); ?><span>
76
  </p>
77
  </div>
78
  <?php
@@ -93,6 +97,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
93
  * @since 0.1-dev
94
  *
95
  * @param WP_User $user WP_User object of the logged-in user.
 
96
  * @return boolean
97
  */
98
  public function is_available_for_user( $user ) {
@@ -100,6 +105,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
100
  if ( 0 < self::codes_remaining_for_user( $user ) ) {
101
  return true;
102
  }
 
103
  return false;
104
  }
105
 
@@ -112,7 +118,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
112
  */
113
  public function user_options( $user ) {
114
  $ajax_nonce = wp_create_nonce( 'two-factor-backup-codes-generate-json-' . $user->ID );
115
- $count = self::codes_remaining_for_user( $user );
116
  ?>
117
  <p></p>
118
  <p id="two-factor-backup-codes">
@@ -126,23 +132,23 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
126
  <p class="description"><?php esc_html_e( 'Write these down! Once you navigate away from this page, you will not be able to view these codes again.', 'better-wp-security' ); ?></p>
127
  </div>
128
  <script type="text/javascript">
129
- jQuery( document ).ready( function( $ ) {
130
- $( '.button-two-factor-backup-codes-generate' ).click( function() {
131
  $.ajax( {
132
- method: 'POST',
133
- url: ajaxurl,
134
- data: {
135
- action: 'two_factor_backup_codes_generate',
136
  user_id: '<?php echo esc_js( $user->ID ); ?>',
137
- nonce: '<?php echo esc_js( $ajax_nonce ); ?>'
138
  },
139
  dataType: 'JSON',
140
- success: function( response ) {
141
  $( '.two-factor-backup-codes-wrapper' ).show();
142
  $( '.two-factor-backup-codes-unused-codes' ).html( '' );
143
 
144
  // Append the codes.
145
- $.each( response.data.codes, function( key, val ) {
146
  $( '.two-factor-backup-codes-unused-codes' ).append( '<li>' + val + '</li>' );
147
  } );
148
 
@@ -167,7 +173,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
167
  * @return string[]
168
  */
169
  public function generate_codes( $user, $args = '' ) {
170
- $codes = array();
171
  $codes_hashed = array();
172
 
173
  // Check for arguments.
@@ -182,10 +188,10 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
182
  $codes_hashed = (array) get_user_meta( $user->ID, self::BACKUP_CODES_META_KEY, true );
183
  }
184
 
185
- for ( $i = 0; $i < $num_codes; $i++ ) {
186
- $code = $this->get_code();
187
  $codes_hashed[] = wp_hash_password( $code );
188
- $codes[] = $code;
189
  unset( $code );
190
  }
191
 
@@ -207,7 +213,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
207
  // Setup the return data.
208
  $codes = $this->generate_codes( $user );
209
  $count = self::codes_remaining_for_user( $user );
210
- $i18n = esc_html( sprintf( _n( '%s unused code remaining.', '%s unused codes remaining.', $count, 'better-wp-security' ), $count ) );
211
 
212
  // Send the response.
213
  wp_send_json_success( array( 'codes' => $codes, 'i18n' => $i18n ) );
@@ -217,6 +223,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
217
  * Returns the number of unused codes for the specified user
218
  *
219
  * @param WP_User $user WP_User object of the logged-in user.
 
220
  * @return int $int The number of unused codes remaining
221
  */
222
  public static function codes_remaining_for_user( $user ) {
@@ -224,6 +231,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
224
  if ( is_array( $backup_codes ) && ! empty( $backup_codes ) ) {
225
  return count( $backup_codes );
226
  }
 
227
  return 0;
228
  }
229
 
@@ -235,22 +243,23 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
235
  * @param WP_User $user WP_User object of the logged-in user.
236
  */
237
  public function authentication_page( $user ) {
238
- require_once( ABSPATH . '/wp-admin/includes/template.php' );
239
  ?>
240
  <p style="padding-bottom:1em;"><?php esc_html_e( 'Enter a backup Authentication Code.', 'better-wp-security' ); ?></p><br/>
241
  <p>
242
  <label for="authcode"><?php esc_html_e( 'Authentication Code:', 'better-wp-security' ); ?></label>
243
- <input type="tel" name="two-factor-backup-code" id="authcode" class="input" value="" size="20" pattern="[0-9]*" />
244
  </p>
245
  <script type="text/javascript">
246
- setTimeout( function(){
247
  var d;
248
- try{
249
- d = document.getElementById('authcode');
250
  d.value = '';
251
  d.focus();
252
- } catch(e){}
253
- }, 200);
 
254
  </script>
255
  <?php
256
  submit_button( __( 'Submit', 'better-wp-security' ) );
@@ -264,6 +273,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
264
  * @since 0.1-dev
265
  *
266
  * @param WP_User $user WP_User object of the logged-in user.
 
267
  * @return boolean
268
  */
269
  public function validate_authentication( $user ) {
@@ -279,6 +289,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
279
  *
280
  * @param WP_User $user WP_User object of the logged-in user.
281
  * @param int $code The backup code.
 
282
  * @return boolean
283
  */
284
  public function validate_code( $user, $code ) {
@@ -287,9 +298,11 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
287
  foreach ( $backup_codes as $code_index => $code_hashed ) {
288
  if ( wp_check_password( $code, $code_hashed, $user->ID ) ) {
289
  $this->delete_code( $user, $code_hashed );
 
290
  return true;
291
  }
292
  }
 
293
  return false;
294
  }
295
 
@@ -298,7 +311,7 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
298
  *
299
  * @since 0.1-dev
300
  *
301
- * @param WP_User $user WP_User object of the logged-in user.
302
  * @param string $code_hashed The hashed the backup code.
303
  */
304
  public function delete_code( $user, $code_hashed ) {
@@ -395,4 +408,19 @@ class Two_Factor_Backup_Codes extends Two_Factor_Provider implements ITSEC_Two_F
395
  WP_CLI::log( $as_string );
396
  }
397
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
398
  }
1
  <?php
2
+
3
  /**
4
  * Class for creating a backup codes provider.
5
  *
6
+ * @since 0.1-dev
7
  *
8
  * @package Two_Factor
9
  */
11
 
12
  /**
13
  * The user meta backup codes key.
14
+ *
15
  * @type string
16
  */
17
  const BACKUP_CODES_META_KEY = '_two_factor_backup_codes';
19
 
20
  /**
21
  * The number backup codes.
22
+ *
23
  * @type int
24
  */
25
  const NUMBER_OF_CODES = 10;
35
  if ( ! is_a( $instance, $class ) ) {
36
  $instance = new $class;
37
  }
38
+
39
  return $instance;
40
  }
41
 
74
  <div class="error">
75
  <p>
76
  <span><?php printf( // WPCS: XSS OK.
77
+ __( 'Two-Factor: You are out of backup codes and need to <a href="%s">regenerate!</a>', 'better-wp-security' ),
78
+ esc_url( get_edit_user_link( $user->ID ) . '#two-factor-backup-codes' )
79
+ ); ?><span>
80
  </p>
81
  </div>
82
  <?php
97
  * @since 0.1-dev
98
  *
99
  * @param WP_User $user WP_User object of the logged-in user.
100
+ *
101
  * @return boolean
102
  */
103
  public function is_available_for_user( $user ) {
105
  if ( 0 < self::codes_remaining_for_user( $user ) ) {
106
  return true;
107
  }
108
+
109
  return false;
110
  }
111
 
118
  */
119
  public function user_options( $user ) {
120
  $ajax_nonce = wp_create_nonce( 'two-factor-backup-codes-generate-json-' . $user->ID );
121
+ $count = self::codes_remaining_for_user( $user );
122
  ?>
123
  <p></p>
124
  <p id="two-factor-backup-codes">
132
  <p class="description"><?php esc_html_e( 'Write these down! Once you navigate away from this page, you will not be able to view these codes again.', 'better-wp-security' ); ?></p>
133
  </div>
134
  <script type="text/javascript">
135
+ jQuery( document ).ready( function ( $ ) {
136
+ $( '.button-two-factor-backup-codes-generate' ).click( function () {
137
  $.ajax( {
138
+ method : 'POST',
139
+ url : ajaxurl,
140
+ data : {
141
+ action : 'two_factor_backup_codes_generate',
142
  user_id: '<?php echo esc_js( $user->ID ); ?>',
143
+ nonce : '<?php echo esc_js( $ajax_nonce ); ?>'
144
  },
145
  dataType: 'JSON',
146
+ success : function ( response ) {
147
  $( '.two-factor-backup-codes-wrapper' ).show();
148
  $( '.two-factor-backup-codes-unused-codes' ).html( '' );
149
 
150
  // Append the codes.
151
+ $.each( response.data.codes, function ( key, val ) {
152
  $( '.two-factor-backup-codes-unused-codes' ).append( '<li>' + val + '</li>' );
153
  } );
154
 
173
  * @return string[]
174
  */
175
  public function generate_codes( $user, $args = '' ) {
176
+ $codes = array();
177
  $codes_hashed = array();
178
 
179
  // Check for arguments.
188
  $codes_hashed = (array) get_user_meta( $user->ID, self::BACKUP_CODES_META_KEY, true );
189
  }
190
 
191
+ for ( $i = 0; $i < $num_codes; $i ++ ) {
192
+ $code = $this->get_code();
193
  $codes_hashed[] = wp_hash_password( $code );
194
+ $codes[] = $code;
195
  unset( $code );
196
  }
197
 
213
  // Setup the return data.
214
  $codes = $this->generate_codes( $user );
215
  $count = self::codes_remaining_for_user( $user );
216
+ $i18n = esc_html( sprintf( _n( '%s unused code remaining.', '%s unused codes remaining.', $count, 'better-wp-security' ), $count ) );
217
 
218
  // Send the response.
219
  wp_send_json_success( array( 'codes' => $codes, 'i18n' => $i18n ) );
223
  * Returns the number of unused codes for the specified user
224
  *
225
  * @param WP_User $user WP_User object of the logged-in user.
226
+ *
227
  * @return int $int The number of unused codes remaining
228
  */
229
  public static function codes_remaining_for_user( $user ) {
231
  if ( is_array( $backup_codes ) && ! empty( $backup_codes ) ) {
232
  return count( $backup_codes );
233
  }
234
+
235
  return 0;
236
  }
237
 
243
  * @param WP_User $user WP_User object of the logged-in user.
244
  */
245
  public function authentication_page( $user ) {
246
+ require_once( ABSPATH . '/wp-admin/includes/template.php' );
247
  ?>
248
  <p style="padding-bottom:1em;"><?php esc_html_e( 'Enter a backup Authentication Code.', 'better-wp-security' ); ?></p><br/>
249
  <p>
250
  <label for="authcode"><?php esc_html_e( 'Authentication Code:', 'better-wp-security' ); ?></label>
251
+ <input type="tel" name="two-factor-backup-code" id="authcode" class="input" value="" size="20" pattern="[0-9]*"/>
252
  </p>
253
  <script type="text/javascript">
254
+ setTimeout( function () {
255
  var d;
256
+ try {
257
+ d = document.getElementById( 'authcode' );
258
  d.value = '';
259
  d.focus();
260
+ } catch ( e ) {
261
+ }
262
+ }, 200 );
263
  </script>
264
  <?php
265
  submit_button( __( 'Submit', 'better-wp-security' ) );
273
  * @since 0.1-dev
274
  *
275
  * @param WP_User $user WP_User object of the logged-in user.
276
+ *
277
  * @return boolean
278
  */
279
  public function validate_authentication( $user ) {
289
  *
290
  * @param WP_User $user WP_User object of the logged-in user.
291
  * @param int $code The backup code.
292
+ *
293
  * @return boolean
294
  */
295
  public function validate_code( $user, $code ) {
298
  foreach ( $backup_codes as $code_index => $code_hashed ) {
299
  if ( wp_check_password( $code, $code_hashed, $user->ID ) ) {
300
  $this->delete_code( $user, $code_hashed );
301
+
302
  return true;
303
  }
304
  }
305
+
306
  return false;
307
  }
308
 
311
  *
312
  * @since 0.1-dev
313
  *
314
+ * @param WP_User $user WP_User object of the logged-in user.
315
  * @param string $code_hashed The hashed the backup code.
316
  */
317
  public function delete_code( $user, $code_hashed ) {
408
  WP_CLI::log( $as_string );
409
  }
410
  }
411
+
412
+ public function get_config_for_cli( WP_User $user, array $args ) {
413
+ $codes = get_user_meta( $user->ID, self::BACKUP_CODES_META_KEY, true );
414
+ $count = is_array( $codes ) ? count( $codes ) : 0;
415
+
416
+ if ( empty( $args['porcelain'] ) ) {
417
+ WP_CLI::log(
418
+ $count === 1 ?
419
+ '1 code remaining' :
420
+ sprintf( '%d codes remaining', $count )
421
+ );
422
+ } else {
423
+ WP_CLI::log( $count );
424
+ }
425
+ }
426
  }
core/modules/two-factor/providers/class.two-factor-totp.php CHANGED
@@ -5,6 +5,8 @@
5
  * @package Two_Factor
6
  */
7
 
 
 
8
  /**
9
  * Class Two_Factor_Totp
10
  */
@@ -33,8 +35,6 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
33
  const DEFAULT_TIME_STEP_ALLOWANCE = 4;
34
  private $_base_32_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
35
 
36
- private $dashboard_config_notices = array();
37
-
38
  /**
39
  * Class constructor. Sets up hooks, etc.
40
  */
@@ -47,7 +47,7 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
47
  add_action( 'personal_options_update', array( $this, 'user_two_factor_options_update' ), 11 );
48
  add_action( 'edit_user_profile_update', array( $this, 'user_two_factor_options_update' ), 11 );
49
 
50
- return parent::__construct();
51
  }
52
 
53
  /**
@@ -133,20 +133,28 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
133
  /**
134
  * Display TOTP options on the user settings page.
135
  *
136
- * @param WP_User $user The current user being edited.
137
  *
138
  * @return object {
139
- * @type bool $already_active Whether a key already existed
140
- * @type string $key The TOTP key
141
  * }
142
  */
143
  public function get_key( $user = null ) {
144
- if ( ! isset( $user ) ) {
145
  $user = wp_get_current_user();
146
  }
147
- $return = new stdClass();
148
- $return->already_active = true;
149
- $return->key = get_user_meta( $user->ID, self::SECRET_META_KEY, true );
 
 
 
 
 
 
 
 
150
 
151
  if ( empty( $return->key ) ) {
152
  $return->key = $this->generate_key();
@@ -162,41 +170,59 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
162
  * @param integer $user_id The user ID whose options are being updated.
163
  */
164
  public function user_two_factor_options_update( $user_id ) {
165
- if ( isset( $_POST['_nonce_user_two_factor_totp_options'] ) ) {
166
- check_admin_referer( 'user_two_factor_totp_options', '_nonce_user_two_factor_totp_options' );
167
-
168
- // If there is no authcode provided
169
- if ( empty( $_POST['two-factor-totp-authcode'] ) ) {
170
- $two_factor_core = ITSEC_Two_Factor::get_instance();
171
- // Check to see if TOTP is enabled, and if not then go no further
172
- if ( ! in_array( 'Two_Factor_Totp', $two_factor_core->get_enabled_providers_for_user() ) ) {
173
- return;
174
- }
175
- }
176
 
177
- $current_key = get_user_meta( $user_id, self::SECRET_META_KEY, true );
178
- // If the key hasn't changed or is invalid, do nothing.
179
- if ( $current_key === $_POST['two-factor-totp-key'] || ! preg_match( '/^[' . $this->_base_32_chars . ']+$/', $_POST['two-factor-totp-key'] ) ) {
 
 
 
 
 
 
180
  return;
181
  }
 
182
 
183
- $notices = array();
 
 
184
 
185
- if ( empty( $_POST['two-factor-totp-authcode'] ) ) {
186
- $notices['error'][] = __( 'Two-Factor Authentication not activated, you must specify authcode to ensure it is properly set up. Please re-scan the QR code and enter the code provided by your application.', 'better-wp-security' );
187
- } else {
188
- if ( $this->_is_valid_authcode( $_POST['two-factor-totp-key'], $_POST['two-factor-totp-authcode'] ) ) {
189
- if ( ! update_user_meta( $user_id, self::SECRET_META_KEY, $_POST['two-factor-totp-key'] ) ) {
190
- $notices['error'][] = __( 'Unable to save Two-Factor Authentication code. Please re-scan the QR code and enter the code provided by your application.', 'better-wp-security' );
191
- }
192
- } else {
193
- $notices['error'][] = __( 'Two-Factor Authentication not activated, the authentication code you entered was not valid. Please re-scan the QR code and enter the code provided by your application.', 'better-wp-security' );
 
 
 
 
 
 
 
 
 
 
 
194
  }
 
 
195
  }
 
196
 
197
- if ( ! empty( $notices ) ) {
198
- update_user_meta( $user_id, self::NOTICES_META_KEY, $notices );
199
- }
200
  }
201
  }
202
 
@@ -213,13 +239,18 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
213
  check_ajax_referer( 'user_two_factor_totp_options', '_nonce_user_two_factor_totp_options' );
214
 
215
  $user_id = (int) $_POST['user_id'];
 
216
 
217
- if ( ! $user_id || ! current_user_can( 'edit_user', $user_id ) ) {
218
  wp_send_json_error( __( 'You do not have permission to edit this user.', 'better-wp-security' ) );
219
  }
220
 
221
  if ( $this->_is_valid_authcode( $_POST['key'], $_POST['authcode'] ) ) {
222
- if ( ! update_user_meta( $user_id, self::SECRET_META_KEY, $_POST['key'] ) ) {
 
 
 
 
223
  wp_send_json_error( __( 'Unable to save two-factor secret.', 'better-wp-security' ) );
224
  }
225
  wp_send_json_success( __( 'Success!', 'better-wp-security' ) );
@@ -272,9 +303,13 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
272
  * @return bool Whether the user gave a valid code
273
  */
274
  public function validate_authentication( $user ) {
275
- $key = get_user_meta( $user->ID, self::SECRET_META_KEY, true );
276
 
277
- return $this->_is_valid_authcode( $key, trim( $_REQUEST['authcode'] ) );
 
 
 
 
278
  }
279
 
280
  /**
@@ -304,7 +339,7 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
304
 
305
  foreach ( $ticks as $offset ) {
306
  $log_time = $time + $offset;
307
- if ( $this->calc_totp( $key, $log_time ) === $authcode ) {
308
  return true;
309
  }
310
  }
@@ -458,10 +493,11 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
458
  * @return boolean
459
  */
460
  public function is_available_for_user( $user ) {
461
- // Only available if the secret key has been saved for the user.
462
- $key = get_user_meta( $user->ID, self::SECRET_META_KEY, true );
463
 
464
- return ! empty( $key );
 
 
465
  }
466
 
467
  /**
@@ -470,6 +506,22 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
470
  * @param WP_User $user WP_User object of the logged-in user.
471
  */
472
  public function authentication_page( $user ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  require_once( ABSPATH . '/wp-admin/includes/template.php' );
474
  ?>
475
  <p>
@@ -477,7 +529,7 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
477
  <input type="tel" name="authcode" id="authcode" class="input" value="" size="20" pattern="[0-9]*"/>
478
  </p>
479
  <script type="text/javascript">
480
- setTimeout( function() {
481
  var d;
482
  try {
483
  d = document.getElementById( 'authcode' );
@@ -498,7 +550,6 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
498
  *
499
  * @return string Binary representation of decoded string
500
  * @throws Exception If string contains non-base32 characters.
501
- *
502
  */
503
  public function base32_decode( $base32_string ) {
504
 
@@ -608,27 +659,42 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
608
 
609
  $secret = $data['itsec_totp_secret'];
610
 
611
- if ( $this->_is_valid_authcode( $secret, $data['itsec_totp_code'] ) ) {
612
- if ( $secret !== get_user_meta( $user->ID, self::SECRET_META_KEY, true ) && ! update_user_meta( $user->ID, self::SECRET_META_KEY, $secret ) ) {
613
- wp_send_json_error( array(
614
- 'message' => esc_html__( 'Unable to save two-factor secret.', 'better-wp-security' ),
615
- ) );
616
- }
 
 
 
617
  wp_send_json_success( array(
618
  'message' => esc_html__( 'Success!', 'better-wp-security' ),
619
  ) );
620
- } else {
621
- wp_send_json_error( array(
622
- 'message' => esc_html__( 'The code you supplied is not valid.', 'better-wp-security' ),
 
 
 
 
623
  ) );
624
  }
 
 
 
 
 
 
625
  }
626
 
627
  public function configure_via_cli( WP_User $user, array $args ) {
628
  $key = $this->generate_key();
629
 
630
- if ( ! update_user_meta( $user->ID, self::SECRET_META_KEY, $key ) ) {
631
- WP_CLI::error( 'Could not save Totp secret.' );
 
 
632
  }
633
 
634
  if ( empty( $args['porcelain'] ) ) {
@@ -637,4 +703,91 @@ class Two_Factor_Totp extends Two_Factor_Provider implements ITSEC_Two_Factor_Pr
637
  WP_CLI::log( $key );
638
  }
639
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
640
  }
5
  * @package Two_Factor
6
  */
7
 
8
+ use iThemesSecurity\Lib\Result;
9
+
10
  /**
11
  * Class Two_Factor_Totp
12
  */
35
  const DEFAULT_TIME_STEP_ALLOWANCE = 4;
36
  private $_base_32_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
37
 
 
 
38
  /**
39
  * Class constructor. Sets up hooks, etc.
40
  */
47
  add_action( 'personal_options_update', array( $this, 'user_two_factor_options_update' ), 11 );
48
  add_action( 'edit_user_profile_update', array( $this, 'user_two_factor_options_update' ), 11 );
49
 
50
+ parent::__construct();
51
  }
52
 
53
  /**
133
  /**
134
  * Display TOTP options on the user settings page.
135
  *
136
+ * @param WP_User|null $user The current user being edited.
137
  *
138
  * @return object {
139
+ * @type bool $already_active Whether a key already existed
140
+ * @type string $key The TOTP key
141
  * }
142
  */
143
  public function get_key( $user = null ) {
144
+ if ( $user === null ) {
145
  $user = wp_get_current_user();
146
  }
147
+
148
+ $return = new stdClass();
149
+
150
+ if ( $user instanceof WP_User ) {
151
+ $key = $this->get_secret( $user );
152
+
153
+ if ( $key->is_success() ) {
154
+ $return->already_active = true;
155
+ $return->key = $key->get_data();
156
+ }
157
+ }
158
 
159
  if ( empty( $return->key ) ) {
160
  $return->key = $this->generate_key();
170
  * @param integer $user_id The user ID whose options are being updated.
171
  */
172
  public function user_two_factor_options_update( $user_id ) {
173
+ if ( ! isset( $_POST['_nonce_user_two_factor_totp_options'] ) ) {
174
+ return;
175
+ }
176
+
177
+ check_admin_referer( 'user_two_factor_totp_options', '_nonce_user_two_factor_totp_options' );
178
+
179
+ $user = get_userdata( $user_id );
 
 
 
 
180
 
181
+ if ( ! $user ) {
182
+ return;
183
+ }
184
+
185
+ // If there is no authcode provided
186
+ if ( empty( $_POST['two-factor-totp-authcode'] ) ) {
187
+ $two_factor_core = ITSEC_Two_Factor::get_instance();
188
+ // Check to see if TOTP is enabled, and if not then go no further
189
+ if ( ! in_array( 'Two_Factor_Totp', $two_factor_core->get_enabled_providers_for_user() ) ) {
190
  return;
191
  }
192
+ }
193
 
194
+ $test_code = $_POST['two-factor-totp-authcode'];
195
+ $new_key = $_POST['two-factor-totp-key'] ?? '';
196
+ $current_key = $this->get_secret( $user );
197
 
198
+ // If the key hasn't changed or is invalid, do nothing.
199
+ if ( $current_key->is_success() && $current_key->get_data() === $new_key ) {
200
+ return;
201
+ }
202
+
203
+ if ( ! preg_match( '/^[' . $this->_base_32_chars . ']+$/', $new_key ) ) {
204
+ return;
205
+ }
206
+
207
+ $notices = array();
208
+
209
+ if ( empty( $_POST['two-factor-totp-authcode'] ) ) {
210
+ $notices['error'][] = __( 'Two-Factor Authentication not activated, you must specify authcode to ensure it is properly set up. Please re-scan the QR code and enter the code provided by your application.', 'better-wp-security' );
211
+ } else {
212
+ if ( $this->_is_valid_authcode( $new_key, $test_code ) ) {
213
+ $saved = $this->set_secret( $user, $new_key );
214
+
215
+ if ( ! $saved->is_success() ) {
216
+ ITSEC_Log::add_error( 'two_factor', 'totp-not-saved', $saved->get_error() );
217
+ $notices['error'][] = __( 'Unable to save Two-Factor Authentication code. Please re-scan the QR code and enter the code provided by your application.', 'better-wp-security' );
218
  }
219
+ } else {
220
+ $notices['error'][] = __( 'Two-Factor Authentication not activated, the authentication code you entered was not valid. Please re-scan the QR code and enter the code provided by your application.', 'better-wp-security' );
221
  }
222
+ }
223
 
224
+ if ( $notices ) {
225
+ update_user_meta( $user_id, self::NOTICES_META_KEY, $notices );
 
226
  }
227
  }
228
 
239
  check_ajax_referer( 'user_two_factor_totp_options', '_nonce_user_two_factor_totp_options' );
240
 
241
  $user_id = (int) $_POST['user_id'];
242
+ $user = get_userdata( $user_id );
243
 
244
+ if ( ! $user_id || ! $user || ! current_user_can( 'edit_user', $user_id ) ) {
245
  wp_send_json_error( __( 'You do not have permission to edit this user.', 'better-wp-security' ) );
246
  }
247
 
248
  if ( $this->_is_valid_authcode( $_POST['key'], $_POST['authcode'] ) ) {
249
+ $saved = $this->set_secret( $user, $_POST['key'] );
250
+
251
+ if ( ! $saved->is_success() ) {
252
+ ITSEC_Log::add_error( 'two_factor', 'totp-not-saved', $saved->get_error() );
253
+
254
  wp_send_json_error( __( 'Unable to save two-factor secret.', 'better-wp-security' ) );
255
  }
256
  wp_send_json_success( __( 'Success!', 'better-wp-security' ) );
303
  * @return bool Whether the user gave a valid code
304
  */
305
  public function validate_authentication( $user ) {
306
+ $secret = $this->get_secret( $user );
307
 
308
+ if ( ! $secret->is_success() ) {
309
+ return false;
310
+ }
311
+
312
+ return $this->_is_valid_authcode( $secret->get_data(), trim( $_REQUEST['authcode'] ) );
313
  }
314
 
315
  /**
339
 
340
  foreach ( $ticks as $offset ) {
341
  $log_time = $time + $offset;
342
+ if ( hash_equals( $this->calc_totp( $key, $log_time ), $authcode ) ) {
343
  return true;
344
  }
345
  }
493
  * @return boolean
494
  */
495
  public function is_available_for_user( $user ) {
496
+ $secret = $this->get_secret( $user );
 
497
 
498
+ // We want this 2FA method to be configured if their secret cannot
499
+ // be decrypted, but the user shouldn't be able to log in with it.
500
+ return $secret->is_success() || $secret->get_error()->get_error_code() === 'itsec.two-factor.totp.decryption-failed';
501
  }
502
 
503
  /**
506
  * @param WP_User $user WP_User object of the logged-in user.
507
  */
508
  public function authentication_page( $user ) {
509
+ if ( ! $this->get_secret( $user )->is_success() ) {
510
+ echo '<div class="notice notice-error notice-alt"><p>';
511
+ esc_html_e( 'Mobile App Two-Factor is temporarily unavailable. Please try another Two-Factor method or contact the site administrator.', 'better-wp-security' );
512
+
513
+ if ( user_can( $user, ITSEC_Core::get_required_cap() ) ) {
514
+ echo '<br><br>';
515
+ esc_html_e( 'Locked out?', 'better-wp-security' );
516
+ echo ' <a href="https://help.ithemes.com/hc/en-us/articles/360021124173">';
517
+ esc_html_e( 'Learn how to temporarily disable Two-Factor.', 'better-wp-security' );
518
+ echo '</a>';
519
+ }
520
+ echo '</p></div>';
521
+
522
+ return;
523
+ }
524
+
525
  require_once( ABSPATH . '/wp-admin/includes/template.php' );
526
  ?>
527
  <p>
529
  <input type="tel" name="authcode" id="authcode" class="input" value="" size="20" pattern="[0-9]*"/>
530
  </p>
531
  <script type="text/javascript">
532
+ setTimeout( function () {
533
  var d;
534
  try {
535
  d = document.getElementById( 'authcode' );
550
  *
551
  * @return string Binary representation of decoded string
552
  * @throws Exception If string contains non-base32 characters.
 
553
  */
554
  public function base32_decode( $base32_string ) {
555
 
659
 
660
  $secret = $data['itsec_totp_secret'];
661
 
662
+ if ( ! $this->_is_valid_authcode( $secret, $data['itsec_totp_code'] ) ) {
663
+ wp_send_json_error( array(
664
+ 'message' => esc_html__( 'The code you supplied is not valid.', 'better-wp-security' ),
665
+ ) );
666
+ }
667
+
668
+ $stored = $this->get_secret( $user );
669
+
670
+ if ( $stored->is_success() && $stored->get_data() === $secret ) {
671
  wp_send_json_success( array(
672
  'message' => esc_html__( 'Success!', 'better-wp-security' ),
673
  ) );
674
+ }
675
+
676
+ $saved = $this->set_secret( $user, $secret );
677
+
678
+ if ( $saved->is_success() ) {
679
+ wp_send_json_success( array(
680
+ 'message' => esc_html__( 'Success!', 'better-wp-security' ),
681
  ) );
682
  }
683
+
684
+ ITSEC_Log::add_error( 'two_factor', 'totp-not-saved', $saved->get_error() );
685
+
686
+ wp_send_json_error( array(
687
+ 'message' => esc_html__( 'Unable to save two-factor secret.', 'better-wp-security' ),
688
+ ) );
689
  }
690
 
691
  public function configure_via_cli( WP_User $user, array $args ) {
692
  $key = $this->generate_key();
693
 
694
+ $saved = $this->set_secret( $user, $key );
695
+
696
+ if ( ! $saved->is_success() ) {
697
+ $saved->for_wp_cli();
698
  }
699
 
700
  if ( empty( $args['porcelain'] ) ) {
703
  WP_CLI::log( $key );
704
  }
705
  }
706
+
707
+ public function get_config_for_cli( WP_User $user, array $args ) {
708
+ $secret = $this->get_secret( $user );
709
+
710
+ if ( ! $secret->is_success() ) {
711
+ $secret->for_wp_cli();
712
+
713
+ return;
714
+ }
715
+
716
+ if ( empty( $args['porcelain'] ) ) {
717
+ WP_CLI::log( sprintf( 'Totp Secret: %s', $secret->get_data() ) );
718
+ } else {
719
+ WP_CLI::log( $secret->get_data() );
720
+ }
721
+ }
722
+
723
+ /**
724
+ * Gets the 2FA secret for a user.
725
+ *
726
+ * @param WP_User $user
727
+ *
728
+ * @return Result<string> A Result object containing the decrypted secret.
729
+ */
730
+ protected function get_secret( WP_User $user ): Result {
731
+ $saved = get_user_meta( $user->ID, self::SECRET_META_KEY, true );
732
+
733
+ if ( ! $saved ) {
734
+ return Result::error( new WP_Error(
735
+ 'itsec.two-factor.totp.no-secret',
736
+ __( 'Two-Factor secret has not been configured.', 'better-wp-security' )
737
+ ) );
738
+ }
739
+
740
+ if ( ! ITSEC_Lib_Encryption::is_encrypted( $saved ) ) {
741
+ if ( ITSEC_Lib_Encryption::is_available() ) {
742
+ $this->set_secret( $user, $saved );
743
+ }
744
+
745
+ return Result::success( $saved );
746
+ }
747
+
748
+ try {
749
+ $decrypted = ITSEC_Lib_Encryption::decrypt_for_user( $saved, $user->ID );
750
+
751
+ return Result::success( $decrypted );
752
+ } catch ( \RuntimeException $e ) {
753
+ return Result::error( new WP_Error(
754
+ 'itsec.two-factor.totp.decryption-failed',
755
+ __( 'Could not retrieve Two-Factor secret.', 'better-wp-security' )
756
+ ) );
757
+ }
758
+ }
759
+
760
+ /**
761
+ * Sets the 2FA secret for a user.
762
+ *
763
+ * Will try to encrypt it if available.
764
+ *
765
+ * @param WP_User $user The user to set the secret for.
766
+ * @param string $secret The raw unencrypted secret.
767
+ *
768
+ * @return Result
769
+ */
770
+ protected function set_secret( WP_User $user, string $secret ): Result {
771
+ if ( ITSEC_Lib_Encryption::is_available() ) {
772
+ try {
773
+ $secret = ITSEC_Lib_Encryption::encrypt_for_user( $secret, $user->ID );
774
+ } catch ( RuntimeException $e ) {
775
+ return Result::error( new WP_Error(
776
+ 'itsec.two-factor.totp.encryption-failed',
777
+ __( 'Could not encrypt Two-Factor secret.', 'better-wp-security' )
778
+ ) );
779
+ }
780
+ }
781
+
782
+ $saved = update_user_meta( $user->ID, self::SECRET_META_KEY, $secret );
783
+
784
+ if ( $saved ) {
785
+ return Result::success();
786
+ }
787
+
788
+ return Result::error( new WP_Error(
789
+ 'itsec-two-factor.totp.save-failed',
790
+ __( 'Could not save Two-Factor secret.', 'better-wp-security' )
791
+ ) );
792
+ }
793
  }
core/modules/user-groups/User_Group.php CHANGED
@@ -434,7 +434,7 @@ final class User_Group implements Matchable, \JsonSerializable {
434
  return $this->get_label();
435
  }
436
 
437
- public function jsonSerialize() {
438
  return [
439
  'id' => $this->get_id(),
440
  'label' => $this->get_label(),
434
  return $this->get_label();
435
  }
436
 
437
+ public function jsonSerialize(): array {
438
  return [
439
  'id' => $this->get_id(),
440
  'label' => $this->get_label(),
core/modules/user-groups/container.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  use iThemesSecurity\User_Groups;
4
  use iThemesSecurity\User_Groups\REST;
5
- use Pimple\Container;
6
 
7
  return static function ( Container $c ) {
8
  $c['module.user-groups.files'] = [
2
 
3
  use iThemesSecurity\User_Groups;
4
  use iThemesSecurity\User_Groups\REST;
5
+ use iThemesSecurity\Strauss\Pimple\Container;
6
 
7
  return static function ( Container $c ) {
8
  $c['module.user-groups.files'] = [
core/package.json CHANGED
@@ -14,30 +14,30 @@
14
  "dependencies": {
15
  "@emotion/css": "^11.7.1",
16
  "@emotion/react": "^11.5.0",
17
- "@ithemes/ui": "^0.4.1",
18
  "@react-hook/debounce": "^3.0.0",
19
  "@rjsf/core": "^2.5.1",
20
- "@wordpress/a11y": "^3.4.1",
21
- "@wordpress/api-fetch": "^6.1.1",
22
- "@wordpress/autop": "^3.4.1",
23
- "@wordpress/base-styles": "^4.2.1",
24
- "@wordpress/components": "^19.6.1",
25
- "@wordpress/compose": "^5.2.1",
26
- "@wordpress/data": "^6.4.1",
27
- "@wordpress/date": "^4.4.1",
28
- "@wordpress/dom-ready": "^3.4.1",
29
- "@wordpress/element": "^4.2.1",
30
- "@wordpress/hooks": "^3.4.1",
31
- "@wordpress/html-entities": "^3.4.1",
32
- "@wordpress/i18n": "^4.4.1",
33
- "@wordpress/is-shallow-equal": "^4.4.1",
34
- "@wordpress/keycodes": "^3.4.1",
35
- "@wordpress/notices": "^3.4.1",
36
- "@wordpress/plugins": "^4.2.1",
37
- "@wordpress/redux-routine": "^4.4.1",
38
- "@wordpress/rich-text": "^5.2.1",
39
- "@wordpress/url": "^3.5.1",
40
- "@wordpress/viewport": "^4.2.1",
41
  "ajv": "^6.12.6",
42
  "classnames": "^2.3.1",
43
  "contrast": "^1.0.1",
@@ -50,8 +50,9 @@
50
  "li": "^1.3.0",
51
  "lodash": "^4.17.21",
52
  "memize": "^1.1.0",
 
53
  "query-string": "^7.0.0",
54
- "react": "17.0.2",
55
  "react-error-boundary": "^3.1.3",
56
  "react-grid-layout": "^0.18.0",
57
  "react-hooks-global-state": "^1.0.1",
@@ -81,47 +82,47 @@
81
  "@emotion/core": "^10.1.1",
82
  "@emotion/styled": "^11.3.0",
83
  "@emotion/stylis": "^0.8.5",
84
- "@wordpress/babel-plugin-import-jsx-pragma": "^3.1.2",
85
- "@wordpress/babel-preset-default": "^6.6.1",
86
  "@wordpress/browserslist-config": "^4.1.2",
87
- "@wordpress/custom-templated-path-webpack-plugin": "^2.1.2",
88
- "@wordpress/icons": "^8.0.1",
89
- "@wordpress/jest-preset-default": "^8.1.1",
90
- "@wordpress/prettier-config": "^1.1.3",
91
- "@wordpress/scripts": "^22.2.1",
92
  "acorn": "^6.4.2",
93
  "autoprefixer": "^9.8.6",
94
  "babel-loader": "^8.2.2",
95
- "clean-webpack-plugin": "^2.0.2",
96
  "concurrently": "^6.0.2",
97
- "copy-webpack-plugin": "^6.4.1",
98
  "crypto": "^1.0.1",
99
- "css-loader": "^2.1.1",
100
  "escape-string-regexp": "^2.0.0",
101
  "eslint-import-resolver-webpack": "^0.13.0",
102
  "glob": "^7.1.6",
103
  "husky": "^1.3.1",
104
  "loader-utils": "^1.4.0",
105
- "mini-css-extract-plugin": "^0.5.0",
106
  "path": "^0.12.7",
107
  "postcss-loader": "^3.0.0",
108
- "raw-loader": "^1.0.0",
109
  "readdirp": "^2.2.1",
110
  "rimraf": "^2.7.1",
111
  "sass": "^1.49.9",
112
- "sass-loader": "^7.3.1",
113
- "style-loader": "^0.23.1",
114
  "svg-react-loader": "github:woutervanvliet/svg-react-loader",
115
  "tmp": "^0.2.1",
116
- "webpack": "^4.46.0",
117
  "webpack-cli": "^4.6.0",
118
- "webpack-filter-warnings-plugin": "^1.2.1",
119
- "webpack-livereload-plugin": "^2.3.0",
120
- "webpack-manifest-plugin": "^2.2.0",
121
  "webpack-sources": "latest",
122
  "webpack-webstorm-debugger-script": "^1.0.1",
123
  "wp-prettier": "^2.2.1-beta-1"
124
  },
 
 
 
 
125
  "directories": {},
126
  "homepage": "https://ithemes.com/security",
127
  "husky": {
14
  "dependencies": {
15
  "@emotion/css": "^11.7.1",
16
  "@emotion/react": "^11.5.0",
17
+ "@ithemes/ui": "^0.5.2",
18
  "@react-hook/debounce": "^3.0.0",
19
  "@rjsf/core": "^2.5.1",
20
+ "@wordpress/a11y": "^3.12.0",
21
+ "@wordpress/api-fetch": "^6.9.0",
22
+ "@wordpress/autop": "^3.12.0",
23
+ "@wordpress/base-styles": "^4.6.0",
24
+ "@wordpress/components": "^19.14.0",
25
+ "@wordpress/compose": "^5.10.0",
26
+ "@wordpress/data": "^6.12.0",
27
+ "@wordpress/date": "^4.12.0",
28
+ "@wordpress/dom-ready": "^3.12.0",
29
+ "@wordpress/element": "^4.10.0",
30
+ "@wordpress/hooks": "^3.12.0",
31
+ "@wordpress/html-entities": "^3.12.0",
32
+ "@wordpress/i18n": "^4.12.0",
33
+ "@wordpress/is-shallow-equal": "^4.12.0",
34
+ "@wordpress/keycodes": "^3.12.0",
35
+ "@wordpress/notices": "^3.12.0",
36
+ "@wordpress/plugins": "^4.10.0",
37
+ "@wordpress/redux-routine": "^4.12.0",
38
+ "@wordpress/rich-text": "^5.10.0",
39
+ "@wordpress/url": "^3.13.0",
40
+ "@wordpress/viewport": "^4.10.0",
41
  "ajv": "^6.12.6",
42
  "classnames": "^2.3.1",
43
  "contrast": "^1.0.1",
50
  "li": "^1.3.0",
51
  "lodash": "^4.17.21",
52
  "memize": "^1.1.0",
53
+ "moment": "^2.22.1",
54
  "query-string": "^7.0.0",
55
+ "react": "^17.0.2",
56
  "react-error-boundary": "^3.1.3",
57
  "react-grid-layout": "^0.18.0",
58
  "react-hooks-global-state": "^1.0.1",
82
  "@emotion/core": "^10.1.1",
83
  "@emotion/styled": "^11.3.0",
84
  "@emotion/stylis": "^0.8.5",
85
+ "@wordpress/babel-plugin-import-jsx-pragma": "^3.2.0",
86
+ "@wordpress/babel-preset-default": "^6.14.0",
87
  "@wordpress/browserslist-config": "^4.1.2",
88
+ "@wordpress/icons": "^9.3.0",
89
+ "@wordpress/jest-preset-default": "^8.4.0",
90
+ "@wordpress/prettier-config": "^1.4.0",
91
+ "@wordpress/scripts": "^23.4.0",
 
92
  "acorn": "^6.4.2",
93
  "autoprefixer": "^9.8.6",
94
  "babel-loader": "^8.2.2",
 
95
  "concurrently": "^6.0.2",
96
+ "copy-webpack-plugin": "^11.0.0",
97
  "crypto": "^1.0.1",
98
+ "css-loader": "^6.7.1",
99
  "escape-string-regexp": "^2.0.0",
100
  "eslint-import-resolver-webpack": "^0.13.0",
101
  "glob": "^7.1.6",
102
  "husky": "^1.3.1",
103
  "loader-utils": "^1.4.0",
104
+ "mini-css-extract-plugin": "^2.6.1",
105
  "path": "^0.12.7",
106
  "postcss-loader": "^3.0.0",
 
107
  "readdirp": "^2.2.1",
108
  "rimraf": "^2.7.1",
109
  "sass": "^1.49.9",
110
+ "sass-loader": "^13.0.2",
111
+ "style-loader": "^3.3.1",
112
  "svg-react-loader": "github:woutervanvliet/svg-react-loader",
113
  "tmp": "^0.2.1",
114
+ "webpack": "^5.73.0",
115
  "webpack-cli": "^4.6.0",
116
+ "webpack-livereload-plugin": "^3.0.2",
117
+ "webpack-manifest-plugin": "^5.0.0",
 
118
  "webpack-sources": "latest",
119
  "webpack-webstorm-debugger-script": "^1.0.1",
120
  "wp-prettier": "^2.2.1-beta-1"
121
  },
122
+ "overrides": {
123
+ "react": "$react",
124
+ "react-dom": "$react"
125
+ },
126
  "directories": {},
127
  "homepage": "https://ithemes.com/security",
128
  "husky": {
core/packages/components/src/error-list/index.js CHANGED
@@ -5,15 +5,16 @@ import { transformApiErrorToList } from '@ithemes/security-utils';
5
  import { MessageList } from '../';
6
 
7
  export default function ErrorList( {
8
- errors = [],
9
  apiError,
10
  schemaError,
11
  title,
12
  className,
13
  hasBorder,
 
14
  } ) {
15
  const all = [
16
- ...errors,
17
  ...transformApiErrorToList( apiError ),
18
  ...( schemaError || [] ).map( ( error ) => error.stack ),
19
  ];
@@ -28,6 +29,7 @@ export default function ErrorList( {
28
  title={ title }
29
  className={ className }
30
  hasBorder={ hasBorder }
 
31
  type="error"
32
  />
33
  );
5
  import { MessageList } from '../';
6
 
7
  export default function ErrorList( {
8
+ errors,
9
  apiError,
10
  schemaError,
11
  title,
12
  className,
13
  hasBorder,
14
+ noMargins,
15
  } ) {
16
  const all = [
17
+ ...( errors || [] ),
18
  ...transformApiErrorToList( apiError ),
19
  ...( schemaError || [] ).map( ( error ) => error.stack ),
20
  ];
29
  title={ title }
30
  className={ className }
31
  hasBorder={ hasBorder }
32
+ noMargins={ noMargins }
33
  type="error"
34
  />
35
  );
core/packages/components/src/index.js CHANGED
@@ -10,7 +10,6 @@ export { default as CheckboxGroupControl } from './checkbox-group-control';
10
  export { default as HierarchicalCheckboxControl } from './hierarchical-checkbox-control';
11
  export { default as NoticeList } from './notice-list';
12
  export { default as ModuleSettingsNoticeList } from './module-settings-notice-list';
13
- export { default as ToggleControl } from './toggle-control';
14
  export { default as CheckboxControl } from './checkbox-control';
15
  export { default as SelectControl } from './select-control';
16
  export { default as TextareaListControl } from './textarea-list-control';
@@ -33,3 +32,4 @@ export { default as HelpList } from './help-list';
33
  export { default as Markup } from './markup';
34
  export { default as SplitButton } from './split-button';
35
  export { default as EntitySelectControl } from './entity-select-control';
 
10
  export { default as HierarchicalCheckboxControl } from './hierarchical-checkbox-control';
11
  export { default as NoticeList } from './notice-list';
12
  export { default as ModuleSettingsNoticeList } from './module-settings-notice-list';
 
13
  export { default as CheckboxControl } from './checkbox-control';
14
  export { default as SelectControl } from './select-control';
15
  export { default as TextareaListControl } from './textarea-list-control';
32
  export { default as Markup } from './markup';
33
  export { default as SplitButton } from './split-button';
34
  export { default as EntitySelectControl } from './entity-select-control';
35
+ export { default as RecommendedIcon } from './recommended-icon';
core/packages/components/src/message-list/index.js CHANGED
@@ -3,16 +3,83 @@
3
  */
4
  import classnames from 'classnames';
5
  import { castArray } from 'lodash';
 
6
 
7
  /**
8
  * WordPress dependencies
9
  */
10
- import { Button } from '@wordpress/components';
11
 
12
  /**
13
  * Internal dependencies
14
  */
15
- import './style.scss';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  export default function MessageList( {
18
  type = 'info',
@@ -22,6 +89,7 @@ export default function MessageList( {
22
  onDismiss,
23
  hasBorder,
24
  recommended,
 
25
  } ) {
26
  messages = castArray( messages );
27
 
@@ -30,26 +98,29 @@ export default function MessageList( {
30
  }
31
 
32
  return (
33
- <div
 
 
 
 
34
  className={ classnames(
35
  'itsec-message-list',
36
- className,
37
  `itsec-message-list--type-${ type }`,
38
- {
39
- 'itsec-message-list--has-border': hasBorder,
40
- 'itsec-message-list--recommended': recommended,
41
- }
42
  ) }
43
  >
 
44
  <div>
45
- { title && <h3>{ title }</h3> }
46
- <ul>
47
- { messages.map( ( message, i ) => {
48
- return <li key={ i }>{ message }</li>;
49
- } ) }
50
- </ul>
 
 
51
  </div>
52
- { onDismiss && <Button icon="dismiss" onClick={ onDismiss } /> }
53
- </div>
54
  );
55
  }
3
  */
4
  import classnames from 'classnames';
5
  import { castArray } from 'lodash';
6
+ import styled from '@emotion/styled';
7
 
8
  /**
9
  * WordPress dependencies
10
  */
11
+ import { Button, Dashicon } from '@wordpress/components';
12
 
13
  /**
14
  * Internal dependencies
15
  */
16
+ import RecommendedIcon from '../recommended-icon';
17
+
18
+ const types = {
19
+ error: { primary: '#551515', secondary: '#F7ABAB', icon: 'warning' },
20
+ info: { primary: '#005169', secondary: '#ecfaff', icon: 'info' },
21
+ warning: { primary: '#a9582e', secondary: '#fdddcd', icon: 'flag' },
22
+ success: { primary: '#237739', secondary: '#ddf1e2', icon: 'yes-alt' },
23
+ };
24
+
25
+ const StyledMessageList = styled.div`
26
+ display: flex;
27
+ padding: .75rem .5rem;
28
+ border-radius: 4px;
29
+ margin-bottom: ${ ( { noMargins } ) => ! noMargins && '1rem' };
30
+ background: ${ ( { type } ) => types[ type ].secondary };
31
+ border: ${ ( { type, hasBorder } ) => hasBorder && `1px solid ${ types[ type ].primary }` };
32
+ `;
33
+
34
+ const StyledTitle = styled.h3`
35
+ font-size: 1.25rem;
36
+ margin: 0 0 0.5rem 0;
37
+ color: ${ ( { type } ) => types[ type ].primary };
38
+ `;
39
+
40
+ const StyledIcon = styled( Dashicon, { shouldForwardProp: ( prop ) => prop !== 'type' } )`
41
+ color: ${ ( { type } ) => types[ type ].primary };
42
+ margin-right: 0.5rem;
43
+ `;
44
+
45
+ const StyledRecommendedIcon = styled( RecommendedIcon )`
46
+ margin-right: 0.5rem;
47
+ `;
48
+
49
+ const StyledList = styled.ul`
50
+ margin: 0;
51
+ `;
52
+
53
+ const StyledListItem = styled.li`
54
+ margin: 0 0 0.25rem 0;
55
+ color: ${ ( { type } ) => types[ type ].primary };
56
+
57
+ &:last-child {
58
+ margin-bottom: 0;
59
+ }
60
+ `;
61
+
62
+ const StyledDismissButton = styled( Button, { shouldForwardProp: ( prop ) => prop !== 'type' } )`
63
+ margin-left: auto;
64
+ padding: 0 !important;
65
+ min-width: 0 !important;
66
+ min-height: 0 !important;
67
+ height: min-content !important;
68
+
69
+ &:hover {
70
+ color: ${ ( { theme } ) => theme.colors.primary.base };
71
+ }
72
+
73
+ .dashicon {
74
+ color: ${ ( { type } ) => types[ type ].primary };
75
+ margin-left: 0;
76
+ margin-right: 0;
77
+
78
+ &:hover {
79
+ color: ${ ( { theme } ) => theme.colors.primary.base };
80
+ }
81
+ }
82
+ `;
83
 
84
  export default function MessageList( {
85
  type = 'info',
89
  onDismiss,
90
  hasBorder,
91
  recommended,
92
+ noMargins,
93
  } ) {
94
  messages = castArray( messages );
95
 
98
  }
99
 
100
  return (
101
+ <StyledMessageList
102
+ type={ type }
103
+ hasBorder={ hasBorder }
104
+ recommended={ recommended }
105
+ noMargins={ noMargins }
106
  className={ classnames(
107
  'itsec-message-list',
 
108
  `itsec-message-list--type-${ type }`,
109
+ className,
 
 
 
110
  ) }
111
  >
112
+ { recommended ? <StyledRecommendedIcon /> : <StyledIcon icon={ types[ type ].icon } type={ type } /> }
113
  <div>
114
+ { title && <StyledTitle>{ title }</StyledTitle> }
115
+ <StyledList>
116
+ { messages.map( ( message, i ) => (
117
+ <StyledListItem key={ i } type={ type }>
118
+ { message }
119
+ </StyledListItem>
120
+ ) ) }
121
+ </StyledList>
122
  </div>
123
+ { onDismiss && <StyledDismissButton icon="dismiss" type={ type } onClick={ onDismiss } /> }
124
+ </StyledMessageList>
125
  );
126
  }
core/packages/components/src/message-list/style.scss DELETED
@@ -1,79 +0,0 @@
1
- $types: (
2
- error: (primary: #551515, secondary: #F7ABAB, icon: '\f534'),
3
- info: (primary: #005169, secondary: #ecfaff, icon: '\f348'),
4
- warning: (primary: #a9582e, secondary: #fdddcd, icon: '\f227'),
5
- success: (primary: #237739, secondary: #ddf1e2, icon: '\f12a'),
6
- );
7
-
8
- .itsec-message-list {
9
- display: flex;
10
- padding: .75rem .5rem;
11
- border-radius: 4px;
12
- margin-bottom: 1rem;
13
-
14
- &::before {
15
- @include dashicon('');
16
- margin-right: .5rem;
17
- }
18
-
19
- &.itsec-message-list h3 {
20
- font-size: 1.25rem;
21
- margin: 0 0 .5rem 0;
22
- }
23
-
24
- & ul {
25
- margin: 0;
26
- }
27
-
28
- & li {
29
- margin: 0 0 .25rem 0;
30
-
31
- &:last-child {
32
- margin-bottom: 0;
33
- }
34
- }
35
-
36
- .components-button {
37
- margin-left: auto;
38
- padding: 0;
39
- min-width: 0;
40
- min-height: 0;
41
- height: min-content;
42
- }
43
-
44
- @each $type, $config in $types {
45
- &.itsec-message-list--type-#{$type} {
46
- background: map-get($config, 'secondary');
47
-
48
- &.itsec-message-list--has-border {
49
- border: 1px solid map-get($config, 'primary');
50
- }
51
-
52
- &::before {
53
- content: map-get($config, 'icon');
54
- color: map-get($config, 'primary');
55
- }
56
-
57
- h3,
58
- li,
59
- .components-button,
60
- .dashicon {
61
- color: map-get($config, 'primary');
62
- }
63
-
64
- .components-button .dashicon {
65
- margin-left: 0;
66
- margin-right: 0;
67
- }
68
-
69
- .components-button:hover,
70
- .components-button:hover .dashicon {
71
- color: $main-blue;
72
- }
73
- }
74
- }
75
-
76
- &.itsec-message-list--recommended::before {
77
- @include recommended-icon();
78
- }
79
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/packages/components/src/recommended-icon/index.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import styled from '@emotion/styled';
5
+
6
+ /**
7
+ * WordPress dependencies
8
+ */
9
+ import { Dashicon } from '@wordpress/components';
10
+
11
+ const StyledRecommendedIcon = styled( Dashicon, { shouldForwardProp: ( ( prop ) => prop !== 'size' && prop !== 'padding' ) } )`
12
+ border-radius: 50%;
13
+ font-size: calc(${ ( { size } ) => size } - (${ ( { padding } ) => padding } * 2));
14
+ padding: ${ ( { padding } ) => padding };
15
+ padding-left: calc(${ ( { padding } ) => padding } + 0.5px);
16
+ background: ${ ( { theme } ) => theme.colors.primary.base };
17
+ color: #ffffff;
18
+ `;
19
+
20
+ export default function RecommendedIcon( { size = 20, className } ) {
21
+ const sizeVar = `var(--itsec-recommended-icon-size, ${ typeof size === 'number' ? `${ size }px` : size })`;
22
+ const padding = `calc(${ sizeVar } / 5)`;
23
+
24
+ return (
25
+ <StyledRecommendedIcon className={ className } icon="star-filled" size={ sizeVar } padding={ padding } />
26
+ );
27
+ }
{dist/vendors/backup → core/packages/components/src/recommended-icon}/index.php RENAMED
File without changes
core/packages/components/src/toggle-control/index.js DELETED
@@ -1,68 +0,0 @@
1
- /**
2
- * External dependencies
3
- */
4
- import { isFunction } from 'lodash';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
- import { Component } from '@wordpress/element';
10
- import { withInstanceId } from '@wordpress/compose';
11
- import { FormToggle, BaseControl } from '@wordpress/components';
12
-
13
- /**
14
- * Internal dependencies
15
- */
16
- import './style.scss';
17
-
18
- /**
19
- * This is a copy of core's toggle control but passes thru additional props to the FormToggle.
20
- */
21
- class ToggleControl extends Component {
22
- constructor() {
23
- super( ...arguments );
24
-
25
- this.onChange = this.onChange.bind( this );
26
- }
27
-
28
- onChange( event ) {
29
- if ( this.props.onChange ) {
30
- this.props.onChange( event.target.checked );
31
- }
32
- }
33
-
34
- render() {
35
- const { label, checked, help, instanceId, ...props } = this.props;
36
- const id = `inspector-toggle-control-${ instanceId }`;
37
-
38
- let describedBy, helpLabel;
39
- if ( help ) {
40
- describedBy = id + '__help';
41
- helpLabel = isFunction( help ) ? help( checked ) : help;
42
- }
43
-
44
- return (
45
- <BaseControl
46
- id={ id }
47
- help={ helpLabel }
48
- className="components-toggle-control"
49
- >
50
- <FormToggle
51
- { ...props }
52
- id={ id }
53
- checked={ checked }
54
- onChange={ this.onChange }
55
- aria-describedby={ describedBy }
56
- />
57
- <label
58
- htmlFor={ id }
59
- className="components-toggle-control__label"
60
- >
61
- { label }
62
- </label>
63
- </BaseControl>
64
- );
65
- }
66
- }
67
-
68
- export default withInstanceId( ToggleControl );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/packages/components/src/toggle-control/style.scss DELETED
@@ -1,3 +0,0 @@
1
- .components-form-toggle__input:disabled + .components-form-toggle__track {
2
- opacity: .5;
3
- }
 
 
 
core/packages/data/src/actions.js CHANGED
@@ -1,7 +1,7 @@
1
  /**
2
  * Internal dependencies
3
  */
4
- import { apiFetch } from './controls';
5
 
6
  /**
7
  * Fetch the index.
@@ -29,6 +29,33 @@ export function receiveIndex( index ) {
29
  };
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  export function receiveUser( user ) {
33
  return {
34
  type: RECEIVE_USER,
1
  /**
2
  * Internal dependencies
3
  */
4
+ import { apiFetch, select } from './controls';
5
 
6
  /**
7
  * Fetch the index.
29
  };
30
  }
31
 
32
+ export function *saveCurrentUser( data, optimistic = false ) {
33
+ yield * saveUser( 'me', data, optimistic );
34
+ }
35
+
36
+ export function *saveUser( id, data, optimistic = false ) {
37
+ const currentUserId = yield select( 'ithemes-security/core', 'getCurrentUserId' );
38
+
39
+ if ( id === 'me' ) {
40
+ id = currentUserId;
41
+ }
42
+
43
+ const path = `/wp/v2/users/${ id === currentUserId ? 'me' : id }`;
44
+
45
+ yield { type: 'START_SAVING_USER', id, data, optimistic };
46
+ try {
47
+ const response = yield apiFetch( {
48
+ method: 'PUT',
49
+ path,
50
+ data,
51
+ } );
52
+ yield receiveUser( response );
53
+ yield { type: 'FINISH_SAVING_USER', id, user: response };
54
+ } catch ( error ) {
55
+ yield { type: 'FAILED_SAVING_USER', id, error };
56
+ }
57
+ }
58
+
59
  export function receiveUser( user ) {
60
  return {
61
  type: RECEIVE_USER,
core/packages/data/src/bans/actions.js CHANGED
@@ -45,6 +45,11 @@ export function* query( queryId, queryParams = {} ) {
45
  return response;
46
  }
47
 
 
 
 
 
 
48
  export function* fetchQueryNextPage( queryId, mode = 'append' ) {
49
  const link = yield select(
50
  'ithemes-security/bans',
45
  return response;
46
  }
47
 
48
+ export function *refreshQuery( queryId ) {
49
+ const queryParams = yield select( 'ithemes-security/bans', 'getQueryParams', queryId );
50
+ yield* query( queryId, queryParams );
51
+ }
52
+
53
  export function* fetchQueryNextPage( queryId, mode = 'append' ) {
54
  const link = yield select(
55
  'ithemes-security/bans',
core/packages/data/src/bans/reducers.js CHANGED
@@ -28,6 +28,7 @@ import {
28
  const DEFAULT_STATE = {
29
  bySelf: {},
30
  queries: {},
 
31
  querying: [],
32
  creating: [],
33
  updating: [],
@@ -99,6 +100,10 @@ export default function bans( state = DEFAULT_STATE, action ) {
99
  return {
100
  ...state,
101
  querying: [ ...state.querying, action.queryId ],
 
 
 
 
102
  };
103
  case FINISH_QUERY:
104
  case FAILED_QUERY:
28
  const DEFAULT_STATE = {
29
  bySelf: {},
30
  queries: {},
31
+ queryParams: {},
32
  querying: [],
33
  creating: [],
34
  updating: [],
100
  return {
101
  ...state,
102
  querying: [ ...state.querying, action.queryId ],
103
+ queryParams: {
104
+ ...state.queryParams,
105
+ [ action.queryId ]: action.queryParams || state.queryParams[ action.queryId ],
106
+ },
107
  };
108
  case FINISH_QUERY:
109
  case FAILED_QUERY:
core/packages/data/src/bans/selectors.js CHANGED
@@ -88,6 +88,17 @@ export function getQueryHeader( state, queryId, header ) {
88
  return get( state, [ 'queries', queryId, 'headers', header ] );
89
  }
90
 
 
 
 
 
 
 
 
 
 
 
 
91
  /**
92
  * Gets a ban by its self link.
93
  *
88
  return get( state, [ 'queries', queryId, 'headers', header ] );
89
  }
90
 
91
+ /**
92
+ * Gets the query parameters for a query.
93
+ *
94
+ * @param {Object} state State object.
95
+ * @param {string} queryId Query id.
96
+ * @return {Object|undefined} The parameters, if any.
97
+ */
98
+ export function getQueryParams( state, queryId ) {
99
+ return get( state, [ 'queryParams', queryId ] );
100
+ }
101
+
102
  /**
103
  * Gets a ban by its self link.
104
  *
core/packages/data/src/reducers.js CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  /**
2
  * Internal dependencies
3
  */
@@ -16,6 +21,8 @@ const DEFAULT_STATE = {
16
  users: {
17
  currentId: 0,
18
  byId: {},
 
 
19
  },
20
  index: null,
21
  actors: {
@@ -34,6 +41,31 @@ export default function reducer( state = DEFAULT_STATE, action ) {
34
  ...state,
35
  index: action.index,
36
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  case RECEIVE_USER:
38
  return {
39
  ...state,
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { omit } from 'lodash';
5
+
6
  /**
7
  * Internal dependencies
8
  */
21
  users: {
22
  currentId: 0,
23
  byId: {},
24
+ saving: [],
25
+ optimisticEdits: {},
26
  },
27
  index: null,
28
  actors: {
41
  ...state,
42
  index: action.index,
43
  };
44
+ case 'START_SAVING_USER':
45
+ return {
46
+ ...state,
47
+ users: {
48
+ ...state.users,
49
+ saving: [
50
+ ...state.users.saving,
51
+ action.id,
52
+ ],
53
+ optimisticEdits: action.optimistic ? {
54
+ ...state.users.optimisticEdits,
55
+ [ action.id ]: action.data,
56
+ } : state.users.optimisticEdits,
57
+ },
58
+ };
59
+ case 'FINISH_SAVING_USER':
60
+ case 'FAILED_SAVING_USER':
61
+ return {
62
+ ...state,
63
+ users: {
64
+ ...state.users,
65
+ saving: state.users.saving.filter( ( id ) => id !== action.id ),
66
+ optimisticEdits: omit( state.users.optimisticEdits, action.id ),
67
+ },
68
+ };
69
  case RECEIVE_USER:
70
  return {
71
  ...state,
core/packages/data/src/resolvers.js CHANGED
@@ -47,6 +47,15 @@ export const getRoles = {
47
  },
48
  };
49
 
 
 
 
 
 
 
 
 
 
50
  export const getUser = {
51
  *fulfill( userId ) {
52
  const user = yield apiFetch( {
@@ -111,7 +120,7 @@ export const getActors = {
111
  export const getSiteInfo = {
112
  *fulfill() {
113
  const response = yield apiFetch( {
114
- path: '/?_fields=name,description,url,home',
115
  } );
116
  yield receiveSiteInfo( response );
117
  },
47
  },
48
  };
49
 
50
+ export const getRequirementsInfo = {
51
+ *fulfill() {
52
+ yield controls.resolveSelect( 'ithemes-security/core', 'getIndex' );
53
+ },
54
+ isFulfilled( state ) {
55
+ return !! state.index;
56
+ },
57
+ };
58
+
59
  export const getUser = {
60
  *fulfill( userId ) {
61
  const user = yield apiFetch( {
120
  export const getSiteInfo = {
121
  *fulfill() {
122
  const response = yield apiFetch( {
123
+ path: '/?_fields=name,description,url,home,multisite',
124
  } );
125
  yield receiveSiteInfo( response );
126
  },
core/packages/data/src/selectors.js CHANGED
@@ -1,7 +1,17 @@
 
 
 
 
 
 
1
  /**
2
  * WordPress dependencies
3
  */
4
  import { createRegistrySelector } from '@wordpress/data';
 
 
 
 
5
  import { MODULES_STORE_NAME } from './';
6
 
7
  /**
@@ -11,9 +21,12 @@ import { MODULES_STORE_NAME } from './';
11
  * @param {number} userId
12
  * @return {Object} User data.
13
  */
14
- export function getUser( state, userId ) {
15
- return state.users.byId[ userId ];
16
- }
 
 
 
17
 
18
  /**
19
  * Get the current user.
@@ -22,7 +35,38 @@ export function getUser( state, userId ) {
22
  * @return {Object} The current user object.
23
  */
24
  export function getCurrentUser( state ) {
25
- return state.users.byId[ state.users.currentId ];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  }
27
 
28
  export function getIndex( state ) {
@@ -62,6 +106,10 @@ export function getRoles( state ) {
62
  return state.index?.roles || null;
63
  }
64
 
 
 
 
 
65
  export function getActorTypes( state ) {
66
  return state.actors.types;
67
  }
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import createSelector from 'rememo';
5
+ import { merge, cloneDeep } from 'lodash';
6
+
7
  /**
8
  * WordPress dependencies
9
  */
10
  import { createRegistrySelector } from '@wordpress/data';
11
+
12
+ /**
13
+ * Internal dependencies
14
+ */
15
  import { MODULES_STORE_NAME } from './';
16
 
17
  /**
21
  * @param {number} userId
22
  * @return {Object} User data.
23
  */
24
+ export const getUser = createSelector(
25
+ ( state, userId ) => state.users.optimisticEdits[ userId ]
26
+ ? merge( cloneDeep( state.users.byId[ userId ] ), state.users.optimisticEdits[ userId ] )
27
+ : state.users.byId[ userId ],
28
+ ( state, userId ) => [ state.users.byId[ userId ], state.users.optimisticEdits[ userId ] ]
29
+ );
30
 
31
  /**
32
  * Get the current user.
35
  * @return {Object} The current user object.
36
  */
37
  export function getCurrentUser( state ) {
38
+ return getUser( state, getCurrentUserId( state ) );
39
+ }
40
+
41
+ /**
42
+ * Get the current user id.
43
+ *
44
+ * @param {Object} state The store state.
45
+ * @return {number} The current user id.
46
+ */
47
+ export function getCurrentUserId( state ) {
48
+ return state.users.currentId;
49
+ }
50
+
51
+ /**
52
+ * Is the given user being updated.
53
+ *
54
+ * @param {Object} state The store state.
55
+ * @param {number} userId The user id to query.
56
+ * @return {boolean} True if saving.
57
+ */
58
+ export function isSavingUser( state, userId ) {
59
+ return state.users.saving.includes( userId );
60
+ }
61
+
62
+ /**
63
+ * Is the current user being updated.
64
+ *
65
+ * @param {Object} state The store state.
66
+ * @return {boolean} True if saving.
67
+ */
68
+ export function isSavingCurrentUser( state ) {
69
+ return isSavingUser( state, state.users.currentId );
70
  }
71
 
72
  export function getIndex( state ) {
106
  return state.index?.roles || null;
107
  }
108
 
109
+ export function getRequirementsInfo( state ) {
110
+ return state.index?.requirements_info || null;
111
+ }
112
+
113
  export function getActorTypes( state ) {
114
  return state.actors.types;
115
  }
core/packages/style-guide/src/animations.scss DELETED
@@ -1,9 +0,0 @@
1
- @keyframes itsec-animation-fade-in-constant {
2
- from {
3
- opacity: 0;
4
- }
5
-
6
- to {
7
- opacity: 1;
8
- }
9
- }
 
 
 
 
 
 
 
 
 
core/packages/style-guide/src/config.scss CHANGED
@@ -1,4 +1,3 @@
1
  @import "colors";
2
  @import "breakpoints";
3
  @import "mixins";
4
- @import "animations";
1
  @import "colors";
2
  @import "breakpoints";
3
  @import "mixins";
 
core/packages/utils/src/wp-error.js CHANGED
@@ -49,12 +49,19 @@ export default class WPError {
49
  static fromApiError( object ) {
50
  const error = new WPError();
51
  error.#errors[ object.code ] = [ object.message ];
52
- error.#errorData[ object.code ] = object.data;
53
 
54
  if ( object.additional_errors ) {
55
  for ( const additional of object.additional_errors ) {
56
  error.#errors[ additional.code ] = [ additional.message ];
57
- error.#errorData[ additional.code ] = additional.data;
 
 
 
 
 
 
 
58
  }
59
  }
60
 
@@ -66,15 +73,24 @@ export default class WPError {
66
  *
67
  * @param {string} code
68
  * @param {string} message
 
69
  * @return {WPError} The modified error object.
70
  */
71
- add = ( code, message ) => {
72
  if ( ! this.#errors[ code ] ) {
73
  this.#errors[ code ] = [];
74
  }
75
 
76
  this.#errors[ code ].push( message );
77
 
 
 
 
 
 
 
 
 
78
  return this;
79
  };
80
 
49
  static fromApiError( object ) {
50
  const error = new WPError();
51
  error.#errors[ object.code ] = [ object.message ];
52
+ error.#errorData[ object.code ] = [ object.data ];
53
 
54
  if ( object.additional_errors ) {
55
  for ( const additional of object.additional_errors ) {
56
  error.#errors[ additional.code ] = [ additional.message ];
57
+
58
+ if ( additional.data ) {
59
+ if ( ! error.#errorData ) {
60
+ error.#errorData = [];
61
+ }
62
+
63
+ error.#errorData[ additional.code ].push( additional.data );
64
+ }
65
  }
66
  }
67
 
73
  *
74
  * @param {string} code
75
  * @param {string} message
76
+ * @param {*} [data]
77
  * @return {WPError} The modified error object.
78
  */
79
+ add = ( code, message, data ) => {
80
  if ( ! this.#errors[ code ] ) {
81
  this.#errors[ code ] = [];
82
  }
83
 
84
  this.#errors[ code ].push( message );
85
 
86
+ if ( data ) {
87
+ if ( ! this.#errorData[ code ] ) {
88
+ this.#errorData[ code ] = [];
89
+ }
90
+
91
+ this.#errorData[ code ].push( data );
92
+ }
93
+
94
  return this;
95
  };
96
 
core/packages/webpack/src/config/index.js CHANGED
@@ -1,22 +1,21 @@
1
  const LiveReloadPlugin = require( 'webpack-livereload-plugin' );
2
  const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );
3
- const ManifestPlugin = require( 'webpack-manifest-plugin' );
4
- const FilterWarningsPlugin = require( 'webpack-filter-warnings-plugin' );
5
  const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
6
  const CustomTemplatedPathPlugin = require( '../custom-templated-path-webpack-plugin' );
7
  const DynamicPublicPath = require( '../dynamic-public-path' );
8
  const StyleOnlyEntryPlugin = require( '../style-only-entry-plugin' );
9
- const SplitChunkName = require( '../split-chunk-name' );
10
  const {
11
  generate: generateManifest,
12
  serialize: serializeManifest,
13
  } = require( '../manifest' );
14
  const wpExternals = require( '../wp-externals' );
15
- const debug = process.env.NODE_ENV !== 'production';
16
  const glob = require( 'glob' );
17
  const path = require( 'path' );
 
18
  const autoprefixer = require( 'autoprefixer' );
19
- const webpack = require( 'webpack' );
 
20
 
21
  module.exports = function makeConfig( directory, pro ) {
22
  const useMinExt = pro && ! debug;
@@ -90,7 +89,7 @@ module.exports = function makeConfig( directory, pro ) {
90
  const dist = path.resolve( directory, 'dist' );
91
  const config = {
92
  context: directory,
93
- devtool: debug ? 'inline-sourcemap' : false,
94
  mode: debug ? 'development' : 'production',
95
  entry: {
96
  ...entries,
@@ -101,9 +100,11 @@ module.exports = function makeConfig( directory, pro ) {
101
  output: {
102
  path: dist,
103
  filename: ! useMinExt ? '[name].js' : '[name].min.js',
104
- jsonpFunction: 'itsecWebpackJsonP',
105
- library: [ 'itsec', '[module]', '[entry]' ],
106
- libraryTarget: 'this',
 
 
107
  },
108
  externals: [
109
  vendors.reduce(
@@ -114,7 +115,7 @@ module.exports = function makeConfig( directory, pro ) {
114
  {}
115
  ),
116
  ...wpExternals,
117
- function( context, request, callback ) {
118
  if ( /^@ithemes\/security\./.test( request ) ) {
119
  const parts = request.split( '.' );
120
  const external = {
@@ -129,7 +130,6 @@ module.exports = function makeConfig( directory, pro ) {
129
  ],
130
  module: {
131
  rules: [
132
- { parser: { amd: false } },
133
  {
134
  test: /\.js$/,
135
  exclude: /node_modules/,
@@ -165,15 +165,17 @@ module.exports = function makeConfig( directory, pro ) {
165
  {
166
  loader: 'sass-loader',
167
  options: {
168
- outputStyle: debug ? 'expanded' : 'compressed',
169
- sourceMap: debug ? 'inline' : false,
170
- data: '@import "config.scss";',
171
- includePaths: [
172
- path.resolve(
173
- directory,
174
- './core/packages/style-guide/src'
175
- ),
176
- ],
 
 
177
  },
178
  },
179
  ],
@@ -184,8 +186,10 @@ module.exports = function makeConfig( directory, pro ) {
184
  use: [
185
  {
186
  loader: 'svg-react-loader',
187
- query: {
188
- classIdPrefix: 'itsec-icon-[name]-[hash:5]__',
 
 
189
  },
190
  },
191
  ],
@@ -197,9 +201,6 @@ module.exports = function makeConfig( directory, pro ) {
197
  new MiniCssExtractPlugin( {
198
  filename: ! useMinExt ? '[name].css' : '[name].min.css',
199
  } ),
200
- new FilterWarningsPlugin( {
201
- exclude: /mini-css-extract-plugin[^]*Conflicting order between:/,
202
- } ),
203
  new StyleOnlyEntryPlugin(),
204
  new DynamicPublicPath( 'itsecWebpackPublicPath' ),
205
  new CustomTemplatedPathPlugin( {
@@ -214,11 +215,29 @@ module.exports = function makeConfig( directory, pro ) {
214
  return parts[ 0 ];
215
  },
216
  } ),
217
- new ManifestPlugin( {
218
  fileName: debug ? 'manifest-dev.php' : 'manifest.php',
219
  generate: generateManifest,
220
  serialize: serializeManifest,
221
  } ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  vendors.length > 0 &&
223
  new CopyWebpackPlugin( {
224
  patterns: vendors.flatMap( ( vendor ) => [
@@ -291,8 +310,6 @@ module.exports = function makeConfig( directory, pro ) {
291
  optimization: {},
292
  };
293
 
294
- const splitChunkName = new SplitChunkName();
295
-
296
  config.optimization.runtimeChunk = 'single';
297
  config.optimization.splitChunks = {
298
  chunks: 'all',
@@ -310,12 +327,7 @@ module.exports = function makeConfig( directory, pro ) {
310
  enforce: true,
311
  },
312
  },
313
- name: splitChunkName.name.bind( splitChunkName ),
314
  };
315
 
316
- if ( ! debug ) {
317
- config.plugins.push( new webpack.HashedModuleIdsPlugin() );
318
- }
319
-
320
  return config;
321
  };
1
  const LiveReloadPlugin = require( 'webpack-livereload-plugin' );
2
  const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );
3
+ const { WebpackManifestPlugin } = require( 'webpack-manifest-plugin' );
 
4
  const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
5
  const CustomTemplatedPathPlugin = require( '../custom-templated-path-webpack-plugin' );
6
  const DynamicPublicPath = require( '../dynamic-public-path' );
7
  const StyleOnlyEntryPlugin = require( '../style-only-entry-plugin' );
 
8
  const {
9
  generate: generateManifest,
10
  serialize: serializeManifest,
11
  } = require( '../manifest' );
12
  const wpExternals = require( '../wp-externals' );
 
13
  const glob = require( 'glob' );
14
  const path = require( 'path' );
15
+ const fs = require( 'fs' );
16
  const autoprefixer = require( 'autoprefixer' );
17
+
18
+ const debug = process.env.NODE_ENV !== 'production';
19
 
20
  module.exports = function makeConfig( directory, pro ) {
21
  const useMinExt = pro && ! debug;
89
  const dist = path.resolve( directory, 'dist' );
90
  const config = {
91
  context: directory,
92
+ devtool: debug ? 'inline-source-map' : false,
93
  mode: debug ? 'development' : 'production',
94
  entry: {
95
  ...entries,
100
  output: {
101
  path: dist,
102
  filename: ! useMinExt ? '[name].js' : '[name].min.js',
103
+ chunkLoadingGlobal: 'itsecWebpackJsonP',
104
+ library: {
105
+ name: [ 'itsec', '[module]', '[entry]' ],
106
+ type: 'window',
107
+ },
108
  },
109
  externals: [
110
  vendors.reduce(
115
  {}
116
  ),
117
  ...wpExternals,
118
+ function( { request }, callback ) {
119
  if ( /^@ithemes\/security\./.test( request ) ) {
120
  const parts = request.split( '.' );
121
  const external = {
130
  ],
131
  module: {
132
  rules: [
 
133
  {
134
  test: /\.js$/,
135
  exclude: /node_modules/,
165
  {
166
  loader: 'sass-loader',
167
  options: {
168
+ additionalData: '@import "config.scss";',
169
+ sourceMap: debug,
170
+ sassOptions: {
171
+ outputStyle: debug ? 'expanded' : 'compressed',
172
+ includePaths: [
173
+ path.resolve(
174
+ directory,
175
+ './core/packages/style-guide/src'
176
+ ),
177
+ ],
178
+ },
179
  },
180
  },
181
  ],
186
  use: [
187
  {
188
  loader: 'svg-react-loader',
189
+ options: {
190
+ query: {
191
+ classIdPrefix: 'itsec-icon-[name]-[hash:5]__',
192
+ },
193
  },
194
  },
195
  ],
201
  new MiniCssExtractPlugin( {
202
  filename: ! useMinExt ? '[name].css' : '[name].min.css',
203
  } ),
 
 
 
204
  new StyleOnlyEntryPlugin(),
205
  new DynamicPublicPath( 'itsecWebpackPublicPath' ),
206
  new CustomTemplatedPathPlugin( {
215
  return parts[ 0 ];
216
  },
217
  } ),
218
+ new WebpackManifestPlugin( {
219
  fileName: debug ? 'manifest-dev.php' : 'manifest.php',
220
  generate: generateManifest,
221
  serialize: serializeManifest,
222
  } ),
223
+ {
224
+ apply: ( compiler ) => {
225
+ compiler.hooks.afterEmit.tap( 'TouchManifest', () => {
226
+ if ( debug ) {
227
+ return;
228
+ }
229
+
230
+ const time = new Date();
231
+ const file = path.join( directory, 'dist', 'manifest.php' );
232
+
233
+ try {
234
+ fs.utimesSync( file, time, time );
235
+ } catch ( err ) {
236
+ fs.closeSync( fs.openSync( file, 'w' ) );
237
+ }
238
+ } );
239
+ },
240
+ },
241
  vendors.length > 0 &&
242
  new CopyWebpackPlugin( {
243
  patterns: vendors.flatMap( ( vendor ) => [
310
  optimization: {},
311
  };
312
 
 
 
313
  config.optimization.runtimeChunk = 'single';
314
  config.optimization.splitChunks = {
315
  chunks: 'all',
327
  enforce: true,
328
  },
329
  },
 
330
  };
331
 
 
 
 
 
332
  return config;
333
  };
core/packages/webpack/src/custom-templated-path-webpack-plugin/index.js CHANGED
@@ -40,7 +40,7 @@ class CustomTemplatedPathPlugin {
40
  compiler.hooks.compilation.tap(
41
  'CustomTemplatedPathPlugin',
42
  ( compilation ) => {
43
- compilation.mainTemplate.hooks.assetPath.tap(
44
  'CustomTemplatedPathPlugin',
45
  ( path, data ) => {
46
  for ( let i = 0; i < this.handlers.length; i++ ) {
40
  compiler.hooks.compilation.tap(
41
  'CustomTemplatedPathPlugin',
42
  ( compilation ) => {
43
+ compilation.hooks.assetPath.tap(
44
  'CustomTemplatedPathPlugin',
45
  ( path, data ) => {
46
  for ( let i = 0; i < this.handlers.length; i++ ) {
core/packages/webpack/src/dynamic-public-path/index.js CHANGED
@@ -1,4 +1,5 @@
1
  const path = require( 'path' );
 
2
 
3
  function DynamicPublicPathPlugin( propertyName ) {
4
  this.propertyName = propertyName;
@@ -8,7 +9,7 @@ DynamicPublicPathPlugin.prototype.apply = function( compiler ) {
8
  compiler.hooks.thisCompilation.tap(
9
  'dynamic-public-path',
10
  ( compilation ) => {
11
- compilation.hooks.normalModuleLoader.tap(
12
  'dynamic-public-path',
13
  ( loaderContext ) => {
14
  const entryFiles = [];
@@ -16,7 +17,7 @@ DynamicPublicPathPlugin.prototype.apply = function( compiler ) {
16
  entry
17
  ) {
18
  entryFiles.push(
19
- path.join( compiler.options.context, entry )
20
  );
21
  } );
22
 
1
  const path = require( 'path' );
2
+ const { NormalModule } = require( 'webpack' );
3
 
4
  function DynamicPublicPathPlugin( propertyName ) {
5
  this.propertyName = propertyName;
9
  compiler.hooks.thisCompilation.tap(
10
  'dynamic-public-path',
11
  ( compilation ) => {
12
+ NormalModule.getCompilationHooks( compilation ).loader.tap(
13
  'dynamic-public-path',
14
  ( loaderContext ) => {
15
  const entryFiles = [];
17
  entry
18
  ) {
19
  entryFiles.push(
20
+ path.join( compiler.options.context, entry.import[ 0 ] )
21
  );
22
  } );
23
 
core/packages/webpack/src/manifest/index.js CHANGED
@@ -7,28 +7,32 @@ function generate( seed, files ) {
7
  const splitChunks = [];
8
 
9
  for ( const file of files ) {
10
- if ( ! file.chunk || ! file.chunk.name ) {
11
  continue;
12
  }
13
 
14
- if ( ! manifest[ file.chunk.name ] ) {
15
- manifest[ file.chunk.name ] = generateChunk( file.chunk );
16
  }
17
 
18
- manifest[ file.chunk.name ].files.push( file.name );
19
 
20
- if ( ! file.chunk.hasRuntime() ) {
21
- splitChunks.push( file );
22
  }
 
 
23
  }
24
 
25
  for ( const file of splitChunks ) {
26
  file.chunk.groupsIterable.forEach( ( group ) => {
 
 
27
  if (
28
  manifest[ group.name ] &&
29
- ! manifest[ group.name ].vendors.includes( file.chunk.name )
30
  ) {
31
- manifest[ group.name ].vendors.push( file.chunk.name );
32
  }
33
  } );
34
  }
@@ -56,7 +60,7 @@ function generateChunk( chunk ) {
56
  };
57
 
58
  chunk.getModules().forEach( ( module ) => {
59
- if ( module.external && module.userRequest ) {
60
  if ( module.userRequest.includes( '@wordpress/' ) ) {
61
  chunkManifest.dependencies.push(
62
  `wp-${ module.userRequest.replace( '@wordpress/', '' ) }`
7
  const splitChunks = [];
8
 
9
  for ( const file of files ) {
10
+ if ( ! file.isChunk ) {
11
  continue;
12
  }
13
 
14
+ if ( ! file.chunk.hasRuntime() ) {
15
+ splitChunks.push( file );
16
  }
17
 
18
+ const name = file.chunk.name || file.chunk.id.toString();
19
 
20
+ if ( ! manifest[ name ] ) {
21
+ manifest[ name ] = generateChunk( file.chunk );
22
  }
23
+
24
+ manifest[ name ].files.push( file.name );
25
  }
26
 
27
  for ( const file of splitChunks ) {
28
  file.chunk.groupsIterable.forEach( ( group ) => {
29
+ const name = file.chunk.name || file.chunk.id.toString();
30
+
31
  if (
32
  manifest[ group.name ] &&
33
+ ! manifest[ group.name ].vendors.includes( name )
34
  ) {
35
+ manifest[ group.name ].vendors.push( name );
36
  }
37
  } );
38
  }
60
  };
61
 
62
  chunk.getModules().forEach( ( module ) => {
63
+ if ( module.userRequest && module.externalType ) {
64
  if ( module.userRequest.includes( '@wordpress/' ) ) {
65
  chunkManifest.dependencies.push(
66
  `wp-${ module.userRequest.replace( '@wordpress/', '' ) }`
core/packages/webpack/src/wp-externals/index.js CHANGED
@@ -14,7 +14,7 @@ const formatRequest = ( request ) => {
14
  };
15
  };
16
 
17
- const wpPackages = ( context, request, callback ) => {
18
  if ( /^@wordpress\//.test( request ) && request !== '@wordpress/icons' ) {
19
  callback( null, formatRequest( request ), 'this' );
20
  } else {
14
  };
15
  };
16
 
17
+ const wpPackages = ( { request }, callback ) => {
18
  if ( /^@wordpress\//.test( request ) && request !== '@wordpress/icons' ) {
19
  callback( null, formatRequest( request ), 'this' );
20
  } else {
core/rest.php CHANGED
@@ -10,7 +10,8 @@ class ITSEC_REST {
10
  public function run() {
11
  add_action( 'rest_api_init', array( $this, 'rest_api_init' ), 0 );
12
  add_filter( 'rest_response_link_curies', array( $this, 'register_curie' ) );
13
- add_filter( 'rest_namespace_index', array( $this, 'modify_index' ) );
 
14
  add_filter( 'rest_user_collection_params', [ $this, 'register_global_users_query' ] );
15
  add_filter( 'rest_user_query', [ $this, 'apply_global_users_query' ], 10, 2 );
16
  add_filter( 'rest_request_from_url', [ $this, 'retain_auth_header_from_embeds' ] );
@@ -71,14 +72,32 @@ class ITSEC_REST {
71
  return $curies;
72
  }
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  /**
75
  * Modify the ithemes-security/v1 index to include some additional global information we need.
76
  *
77
  * @param WP_REST_Response $response
 
78
  *
79
  * @return WP_REST_Response
80
  */
81
- public function modify_index( $response ) {
 
 
 
 
82
  if (
83
  ITSEC_Core::current_user_can_manage() ||
84
  current_user_can( 'create_users' ) ||
@@ -97,6 +116,10 @@ class ITSEC_REST {
97
  $response->data['roles'] = $roles;
98
  }
99
 
 
 
 
 
100
  $response->data['supports'] = apply_filters( 'itsec_rest_supports', [] );
101
 
102
  return $response;
10
  public function run() {
11
  add_action( 'rest_api_init', array( $this, 'rest_api_init' ), 0 );
12
  add_filter( 'rest_response_link_curies', array( $this, 'register_curie' ) );
13
+ add_filter( 'rest_index', array( $this, 'modify_global_index' ) );
14
+ add_filter( 'rest_namespace_index', array( $this, 'modify_index' ), 10, 2 );
15
  add_filter( 'rest_user_collection_params', [ $this, 'register_global_users_query' ] );
16
  add_filter( 'rest_user_query', [ $this, 'apply_global_users_query' ], 10, 2 );
17
  add_filter( 'rest_request_from_url', [ $this, 'retain_auth_header_from_embeds' ] );
72
  return $curies;
73
  }
74
 
75
+ /**
76
+ * Modifies the global `/wp-json` index.
77
+ *
78
+ * @param WP_REST_Response $response
79
+ *
80
+ * @return WP_REST_Response
81
+ */
82
+ public function modify_global_index( $response ) {
83
+ $response->data['multisite'] = is_multisite();
84
+
85
+ return $response;
86
+ }
87
+
88
  /**
89
  * Modify the ithemes-security/v1 index to include some additional global information we need.
90
  *
91
  * @param WP_REST_Response $response
92
+ * @param WP_REST_Request $request
93
  *
94
  * @return WP_REST_Response
95
  */
96
+ public function modify_index( $response, $request ) {
97
+ if ( $request['namespace'] !== 'ithemes-security/v1' ) {
98
+ return $response;
99
+ }
100
+
101
  if (
102
  ITSEC_Core::current_user_can_manage() ||
103
  current_user_can( 'create_users' ) ||
116
  $response->data['roles'] = $roles;
117
  }
118
 
119
+ if ( ITSEC_Core::current_user_can_manage() ) {
120
+ $response->data['requirements_info'] = ITSEC_Lib::get_requirements_info();
121
+ }
122
+
123
  $response->data['supports'] = apply_filters( 'itsec_rest_supports', [] );
124
 
125
  return $response;
core/setup.php CHANGED
@@ -141,6 +141,15 @@ final class ITSEC_Setup {
141
 
142
  if ( empty( $build ) ) {
143
  ITSEC_Lib::schedule_cron_test();
 
 
 
 
 
 
 
 
 
144
  } else {
145
  // Existing install. Perform data upgrades.
146
 
141
 
142
  if ( empty( $build ) ) {
143
  ITSEC_Lib::schedule_cron_test();
144
+
145
+ if ( ITSEC_Files::can_write_to_files() ) {
146
+ try {
147
+ $secret = ITSEC_Lib_Encryption::generate_secret();
148
+ ITSEC_Lib_Encryption::save_secret_key( $secret );
149
+ } catch ( RuntimeException $e ) {
150
+
151
+ }
152
+ }
153
  } else {
154
  // Existing install. Perform data upgrades.
155
 
dist/144.js ADDED
@@ -0,0 +1 @@
 
1
+ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[144],{19144:(e,t,n)=>{"use strict";n.d(t,{UQ:()=>we,T2:()=>ue,qb:()=>C,Z8:()=>z,w2:()=>x,Gs:()=>J,y2:()=>X,fv:()=>Ue,KM:()=>Ce,Xp:()=>he,ss:()=>Me,J$:()=>xe,gN:()=>B,eR:()=>Ze,Lu:()=>Re,rN:()=>Ie,ot:()=>j,s8:()=>v,Yw:()=>q,yR:()=>f,$j:()=>Z,x4:()=>re,yA:()=>G,mp:()=>le,in:()=>oe});var s=n(6293),r=n(64893),i=n(95122),a=n(31511),o=n(94184),l=n.n(o),c=n(92819),d=n(9576);function u(e){let{id:t,isVisible:n,children:r}=e;return(0,s.createElement)("div",{className:"itsec-site-scan__details",id:t,style:{display:n?"block":"none"}},(0,s.createElement)("ul",null,r))}function h(e){let{type:t,status:n,description:a,children:o}=e;const m=(0,d.useInstanceId)(h),[p,g]=(0,s.useState)(!1);let b;switch(n){case"clean":b=(0,i.__)("Clean","better-wp-security");break;case"warn":b=(0,i.__)("Warn","better-wp-security");break;case"error":b=(0,i.__)("Error","better-wp-security");break;default:b=n}const f=(0,s.createElement)("span",{className:`itsec-site-scan__status itsec-site-scan__status--${n}`},b);return(0,s.createElement)("div",{className:l()("itsec-site-scan-results-section",`itsec-site-scan-results-${t}-section`)},(0,c.isEmpty)(o)?(0,s.createElement)("p",null,f," ",a):(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,f,a,(0,s.createElement)(r.Button,{isLink:!0,className:"itsec-site-scan-toggle-details",onClick:()=>g(!p),"aria-expanded":p,"aria-controls":`itsec-site-scan__details--${m}`},p?(0,i.__)("Hide Details","better-wp-security"):(0,i.__)("Show Details","better-wp-security"))),(0,s.createElement)(u,{id:`itsec-site-scan__details--${m}`,isVisible:p},o)))}const m=function(e){let{results:t,showErrorDetails:n=!1}=e;const r=t;return(0,s.createElement)(h,{status:"error",description:(0,i.__)("The scan failed to properly scan the site.","better-wp-security")},(0,s.createElement)("p",null,(0,i.sprintf)((0,i.__)("Error Message: %s","better-wp-security"),r.getErrorMessage())),(0,s.createElement)("p",null,(0,i.sprintf)((0,i.__)("Error Code: %s","better-wp-security"),r.getErrorCode())),n&&r.getErrorData()&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,i.__)("If you contact support about this error, please provide the following debug details:","better-wp-security")),(0,s.createElement)("pre",null,JSON.stringify({code:r.getErrorCode(),data:r.getErrorData()},null,2))))};function p(e){let{status:t,children:n}=e;return(0,s.createElement)("li",{className:`itsec-site-scan__detail itsec-site-scan__detail--${t}`},(0,s.createElement)("span",null,n))}const g=function(e){let{results:t}=e;return t.errors.length>0&&(0,s.createElement)(h,{type:"system-error",status:"error",description:(0,i.__)("The scan failed to properly scan the site.","better-wp-security")},t.errors.map(((e,t)=>(0,s.createElement)(p,{key:t,status:"error"},e.message))))},b=function(e){let{results:t,entry:n}=e,r=(0,c.get)(t,["_embedded","ithemes-security:site-scan-issues",0],[]);return(0,c.isArray)(r)||(r=[]),(0,s.createElement)(h,{type:"malware",status:n.status,description:n.title},r.filter((e=>e.entry===n.slug)).map(((e,t)=>(0,s.createElement)(p,{key:t,status:e.status},(0,s.createElement)("a",{href:e.link},e.description)))))},f=function(e){let{results:t,showSiteUrl:n=!0,showErrorDetails:r=!0}=e;const o=t.url;let l;return(0,a.ZE)(t)?l=(0,a.NC)(t):"error"===t.code&&(l=(0,a.NC)(t.errors[0])),(0,s.createElement)("div",{className:"itsec-site-scan-results"},n&&o&&(0,s.createElement)("h4",null,(0,i.sprintf)((0,i.__)("Site: %s","better-wp-security"),o)),l?(0,s.createElement)(m,{results:l,showErrorDetails:r}):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g,{results:t}),t.entries.map(((e,n)=>(0,s.createElement)(b,{results:t,entry:e,key:n})))))};function v(e){let{json:t}=e;return(0,s.createElement)("pre",{className:"itsec-component-print-r"},E((0,c.cloneDeep)(t)))}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if((0,c.isString)(e))return 0===e.length?(0,s.createElement)("strong",null,"[empty string]"):e;if((0,c.isNumber)(e))return(0,s.createElement)("strong",null,`[number] ${e}`);if((0,c.isBoolean)(e))return(0,s.createElement)("strong",null,e?"[boolean] true":"[boolean] false");if(null==e)return(0,s.createElement)("strong",null,"null");if((0,c.isArray)(e)||(0,c.isPlainObject)(e)){const i=[];if(r&&i.push((0,s.createElement)("strong",{key:"header"},"Array")),0===(0,c.size)(e))return i.push("()"),i;if(n===t)return i.push(`(${e.length})`),i;let a=0;for(const t of(0,c.keys)(e))t.length>a&&(a=t.length);const o=y(n);return(0,c.forEach)(e,((e,r)=>{i.push((0,s.createElement)(s.Fragment,{key:r},"\n",o,r,y(a-(0,c.toString)(r).length," ")," ",(0,s.createElement)("strong",null,"=>")," ",E(e,t,n+1)))})),i}return(0,s.createElement)("strong",null,"[*]")}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n="";for(let s=0;s<=e;s++)n+=t;return n}var _=n(99196),N=n(35800);const k=(0,_.lazy)((()=>n.e(379).then(n.bind(n,19379))));function I(){return(0,s.createElement)("span",null,(0,i.__)("Error when loading. Please refresh.","better-wp-security"))}function C(e){let{addErrorBoundary:t=!0,...n}=e;const i=(0,s.createElement)(_.Suspense,{fallback:(0,s.createElement)(r.Spinner,null)},(0,s.createElement)(k,n));return t?(0,s.createElement)(N.ErrorBoundary,{FallbackComponent:I},i):i}var w=n(4942);const S=()=>{};class O extends s.Component{constructor(e){super(e),this.state={isHovering:!1},this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.setIsHovering=this.setIsHovering.bind(this),this.unsetIsHovering=this.unsetIsHovering.bind(this),this.componentWillUnmount=this.componentWillUnmount.bind(this),this.timerIds=[]}onMouseEnter(e){this.props.onMouseEnter({e,setIsHovering:this.setIsHovering,unsetIsHovering:this.unsetIsHovering})}onMouseLeave(e){this.props.onMouseLeave({e,setIsHovering:this.setIsHovering,unsetIsHovering:this.unsetIsHovering})}onMouseOver(e){this.props.onMouseOver({e,setIsHovering:this.setIsHovering,unsetIsHovering:this.unsetIsHovering})}onMouseOut(e){this.props.onMouseOut({e,setIsHovering:this.setIsHovering,unsetIsHovering:this.unsetIsHovering})}componentWillUnmount(){this.clearTimers()}setIsHovering(){this.clearTimers();const e=setTimeout((()=>{const e={isHovering:!0};this.setState(e,(()=>{this.props.onHoverChanged(e)}))}),this.props.hoverDelayInMs);this.timerIds.push(e)}unsetIsHovering(){this.clearTimers();const e=setTimeout((()=>{const e={isHovering:!1};this.setState(e,(()=>{this.props.onHoverChanged(e)}))}),this.props.hoverOffDelayInMs);this.timerIds.push(e)}clearTimers(){const e=this.timerIds;for(;e.length;)clearTimeout(e.pop())}render(){const{children:e,className:t}=this.props;return(0,s.createElement)("div",{className:t,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseOver:this.onMouseOver,onMouseOut:this.onMouseOut},e)}}function Z(e){let{size:t,color:n,paused:r}=e;const i={};return t&&(i["--itsec-size"]=(0,c.isNumber)(t)?`${t}px`:t),n&&(i["--itsec-color"]=(0,c.startsWith)(n,"--")?`var(${n})`:n),(0,s.createElement)("div",{style:i,className:l()("itsec-spinner",{"itsec-spinner--paused":r})},(0,s.createElement)("div",null),(0,s.createElement)("div",null))}(0,w.Z)(O,"displayName","HoverDetector"),(0,w.Z)(O,"defaultProps",{hoverDelayInMs:0,hoverOffDelayInMs:0,onHoverChanged:S,onMouseEnter:e=>{let{setIsHovering:t}=e;return t()},onMouseLeave:e=>{let{unsetIsHovering:t}=e;return t()},onMouseOver:S,onMouseOut:S,shouldDecorateChildren:!0}),n(30379);var T=n(87462);function x(e){let t,n,{value:i,onChange:a,options:o,label:d,help:u,disabled:h,readOnly:m,className:p}=e;return(0,c.isArray)(i)?(t=e=>i.includes(e.value),n=e=>t=>a(t?[...i,e.value]:i.filter((t=>t!==e.value)))):(t=e=>i[e.value]||!1,n=e=>t=>a({...i,[e.value]:t})),(0,s.createElement)("fieldset",{className:l()("components-base-control",p)},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("legend",{className:"components-base-control__label"},d),u&&(0,s.createElement)("p",{className:"components-base-control__help"},u),(0,s.createElement)("div",{className:"itsec-components-checkbox-group-control__options"},o.map((e=>(0,s.createElement)(r.CheckboxControl,(0,T.Z)({},(0,c.omit)(e,["value","disabled","readOnly"]),{key:e.value,checked:t(e),onChange:n(e),disabled:h||e.disabled,readOnly:m||e.readOnly,className:t(e)&&"itsec-components-checkbox-group-control__option--is-checked"})))))))}var L=n(59588),M=n.n(L);let D,P;D=Symbol.iterator;class H{constructor(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];(0,w.Z)(this,"tree",void 0),(0,w.Z)(this,"name",void 0),(0,w.Z)(this,"data",void 0),(0,w.Z)(this,"parent",void 0),(0,w.Z)(this,"children",void 0),this.tree=e,this.name=t,this.data=n,this.parent=s,this.children=r}getParent(){return this.parent?this.tree.nodes[this.parent]:null}getAllParents(){const e=[];let t=this.getParent();for(;t;)e.push(t.name),t=t.getParent();return e}hasChildren(){return this.children.length>0}getAllChildren(){const e=[];if(!this.hasChildren())return e;for(const t of this)e.push(t.name,...t.getAllChildren());return e}*[D](){for(let e=0;e<this.children.length;e++){const t=this.children[e];yield this.tree.nodes[t]}}}P=Symbol.iterator;class A{constructor(){(0,w.Z)(this,"nodes",{}),(0,w.Z)(this,"ordered",[])}add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.ordered.push(e),this.nodes[e]?(this.nodes[e].data=t,this.nodes[e].parent=n):this.nodes[e]=new H(this,e,t,n),n&&(this.nodes[n]?this.nodes[n].children.push(e):this.nodes[n]=new H(this,n))}*[P](){for(let e=0;e<this.ordered.length;e++){const t=this.ordered[e];this.nodes[t].parent||(yield this.nodes[t])}}}const R=M()((e=>{const t=new A;for(const n of e)t.add(n.value,n,n.parent);return t}));class $ extends s.Component{constructor(){super(...arguments),(0,w.Z)(this,"props",void 0),this.renderOption=this.renderOption.bind(this),this.isChecked=this.isChecked.bind(this),this.isIndeterminate=this.isIndeterminate.bind(this),this.onChange=this.onChange.bind(this)}indeterminate(e){e.indeterminate=!0}isChecked(e){return!!e&&((0,c.isArray)(this.props.value)?this.props.value.includes(e.name)||this.isChecked(e.getParent()):this.props.value[e.name]||this.isChecked(e.getParent()))}isIndeterminate(e){if(!e.hasChildren())return!1;for(const t of e){if(this.isChecked(t))return!0;if(this.isIndeterminate(t))return!0}return!1}onChange(e,t){const n=[e.name,...e.getAllChildren()],s=t?[]:e.getAllParents();if((0,c.isArray)(this.props.value)){let e;e=t?[...this.props.value,...n]:this.props.value.filter((e=>!n.includes(e)&&!s.includes(e))),this.props.onChange(e)}else this.props.onChange({...this.props.value,...n.reduce(((e,n)=>e[n]=t),{}),...s.reduce(((e,t)=>e[t]=!1),{})})}render(){const{label:e,help:t,options:n}=this.props,r=R(n);return(0,s.createElement)("div",{className:"components-base-control"},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("div",{className:"components-base-control__label"},e),t&&(0,s.createElement)("p",{className:"components-base-control__help"},t)),(0,s.createElement)("ul",{className:"components-hierarchical-checkbox-control__group"},Array.from(r,this.renderOption)))}renderOption(e){const{value:t,selectable:n=!0,...r}=e.data,i=this.isChecked(e),a=!i&&this.isIndeterminate(e);return(0,s.createElement)("li",{key:t,className:l()("components-hierarchical-checkbox-control__option",{"components-hierarchical-checkbox-control__option--has-children":e.hasChildren()})},(0,s.createElement)(z,(0,T.Z)({},r,{checked:!!n&&i,disabled:!n||this.props.disabled,indeterminate:a,onChange:t=>this.onChange(e,t)})),e.hasChildren()&&(0,s.createElement)("ul",{className:"components-hierarchical-checkbox-control__group"},Array.from(e,this.renderOption)))}}const B=$;var F=n(48015);const j=(0,d.compose)([(0,F.withSelect)(((e,t)=>{let{context:n="ithemes-security"}=t;return{notices:e("core/notices").getNotices(n)}})),(0,F.withDispatch)(((e,t)=>{let{context:n="ithemes-security"}=t;return{onRemove:t=>e("core/notices").removeNotice(t,n)}}))])((function(e){let{notices:t,onRemove:n}=e;const i=(0,c.filter)(t,(e=>e.isDismissible&&(!e.type||"default"===e.type))),a=(0,c.filter)(t,(e=>!(e.isDismissible||e.type&&"default"!==e.type))),o=(0,c.filter)(t,{type:"snackbar"});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(r.NoticeList,{notices:a,className:"components-editor-notices__pinned"}),(0,s.createElement)(r.NoticeList,{notices:i,className:"components-editor-notices__dismissible",onRemove:n}),r.SnackbarList&&(0,s.createElement)(r.SnackbarList,{notices:o,className:"components-editor-notices__snackbar",onRemove:n}))})),K=function(e){let{className:t,status:n,children:a,onRemove:o=c.noop,isDismissible:d=!0,actions:u=[]}=e;const h=l()(t,"notice","notice-alt","notice-"+n,{"is-dismissible":d});return(0,s.createElement)("div",{className:h},(0,s.createElement)("p",null,a,u.map(((e,t)=>{let{className:n,label:i,onClick:a,url:c,isLink:d=!1}=e;return(0,s.createElement)(r.Button,{key:t,href:c,isSmall:!d&&!c,isLink:d||c,onClick:c?void 0:()=>{o(),a()},className:l()("notice__action",n)},i)}))),d&&(0,s.createElement)("button",{type:"button",className:"notice-dismiss",onClick:o},(0,s.createElement)("span",{className:"screen-reader-text"},(0,i.__)("Dismiss this notice","better-wp-security"))))};(0,d.compose)([(0,F.withSelect)(((e,t)=>{let{context:n="ithemes-security"}=t;return{notices:e("core/notices").getNotices(n)}})),(0,F.withDispatch)(((e,t)=>{let{context:n="ithemes-security"}=t;return{onRemove:t=>e("core/notices").removeNotice(t,n)}}))])((function(e){let{notices:t,onRemove:n}=e;const i=function(e){if(!r.SnackbarList)return e.length;let t=0;for(const n of e)"snackbar"!==n.type&&t++;return t}(t),a=function(e){const t=(0,s.useRef)();return(0,s.useEffect)((()=>{t.current=e})),t.current}(i);(0,s.useEffect)((()=>{i>a&&window.itsecSettingsPage&&window.itsecSettingsPage.scrollTop()}),[i,a]);const o=r.SnackbarList?(0,c.filter)(t,{type:"snackbar"}):[];return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"itsec-module-settings-notice-list"},t.map((e=>{return"snackbar"===e.type&&r.SnackbarList?null:(0,s.createElement)(K,(0,T.Z)({},(0,c.omit)(e,["content"]),{key:e.id,onRemove:(t=e.id,()=>n(t))}),e.content);var t}))),r.SnackbarList&&(0,s.createElement)(r.SnackbarList,{notices:o,className:"components-editor-notices__snackbar",onRemove:n}))}));var U=n(11984),V=n(28184),W=n(79526);function z(e){let{id:t,label:n,hideLabelFromVision:i,className:a,heading:o,checked:c,help:u,onChange:h,indeterminate:m,...p}=e;const g=(0,d.useInstanceId)(z);return t=t||`itsec-inspector-checkbox-control-${g}`,(0,s.createElement)(r.BaseControl,{label:o,id:t,help:u,className:a},(0,s.createElement)("span",{className:"components-checkbox-control__input-container"},(0,s.createElement)("input",(0,T.Z)({id:t,className:l()("components-checkbox-control__input",{"components-checkbox-control__input--indeterminate":m}),type:"checkbox",value:"1",onChange:e=>h(e.target.checked),checked:c,"aria-describedby":u?t+"__help":void 0},p,{ref:e=>e&&(e.indeterminate=m)})),c&&(0,s.createElement)(U.Z,{icon:V.Z,className:"components-checkbox-control__checked",role:"presentation"}),m&&(0,s.createElement)(U.Z,{icon:W.Z,className:"components-checkbox-control__checked",role:"presentation"})),n&&(i?(0,s.createElement)(r.VisuallyHidden,{as:"label",htmlFor:t},n):(0,s.createElement)("label",{className:"components-checkbox-control__label",htmlFor:t},n)))}function q(e){let{help:t,label:n,multiple:i=!1,onChange:a,options:o=[],className:l,hideLabelFromVision:u,...h}=e;const m=`inspector-select-control-${(0,d.useInstanceId)(q)}`,p=(0,c.groupBy)(o,"optgroup");return!(0,c.isEmpty)(o)&&(0,s.createElement)(r.BaseControl,{label:n,hideLabelFromVision:u,id:m,help:t,className:l},(0,s.createElement)("select",(0,T.Z)({id:m,className:"components-select-control__input",onChange:e=>{if(i){const t=[...e.target.options].filter((e=>{let{selected:t}=e;return t})).map((e=>{let{value:t}=e;return t}));a(t)}else a(e.target.value)},"aria-describedby":t?`${m}__help`:void 0,multiple:i},h),(0,c.map)(p,((e,t)=>{const n=e.map(((e,t)=>(0,s.createElement)("option",{key:`${e.label}-${e.value}-${t}`,value:e.value,disabled:e.disabled},e.label)));return"undefined"===t?n:(0,s.createElement)("optgroup",{label:t,key:t},n)}))))}function G(e){let{value:t,onChange:n,...i}=e;(0,c.isArray)(t)||(t=(0,c.isString)(t)?[t]:[]);const[a,o]=(0,s.useState)(t.join("\n"));return t.join("\n").trim()!==a.trim()&&o(t.join("\n")),(0,s.createElement)(r.TextareaControl,(0,T.Z)({value:a,onChange:e=>{o(e),n(e.split("\n").map((e=>e.trim())).filter((e=>e.length>0)))}},i))}function J(e){let{id:t,checked:n,onChange:r,label:i,className:a,...o}=e;return t=(0,d.useInstanceId)(J,"itsec-chip-control")||t,(0,s.createElement)("div",{className:l()("itsec-chip-control",a)},(0,s.createElement)("input",(0,T.Z)({type:"checkbox",checked:n,onChange:e=>r(e.target.checked),id:t},o)),(0,s.createElement)("label",{htmlFor:t},i))}function Q(e){let{tabId:t,onClick:n,children:i,selected:a,...o}=e;return(0,s.createElement)(r.Button,(0,T.Z)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},o),i)}class Y extends s.Component{constructor(){super(...arguments),this.handleClick=this.handleClick.bind(this),this.onNavigate=this.onNavigate.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}handleClick(e){const{onSelect:t=c.noop}=this.props;t(e)}onNavigate(e,t){const n=this.event;n&&"tab"===n.target.getAttribute("role")&&n.preventDefault(),t.click()}onKeyDown(e){this.event=e}render(){const{activeClass:e="is-active",className:t,instanceId:n,orientation:i="horizontal",tabs:a,selected:o,isStyled:d}=this.props,u=(0,c.find)(a,{name:o})||a[0],h=n+"-"+u.name;return(0,s.createElement)("div",{className:l()("itsec-tab-panel",t,{"itsec-tab-panel--styled":d})},(0,s.createElement)(r.NavigableMenu,{role:"tablist",orientation:i,onNavigate:this.onNavigate,onKeyDown:this.onKeyDown,className:"components-tab-panel__tabs"},a.map((t=>(0,s.createElement)(Q,{className:l()("itsec-tab-panel__tab",t.className,{[e]:t.name===u.name}),tabId:n+"-"+t.name,"aria-controls":n+"-"+t.name+"-view",selected:t.name===u.name,key:t.name,onClick:(0,c.partial)(this.handleClick,t.name)},t.title)))),u&&(0,s.createElement)("div",{"aria-labelledby":h,role:"tabpanel",id:h+"-view",className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(u)))}}const X=(0,d.withInstanceId)(Y);var ee=n(81834),te=n.n(ee),ne=n(91991);class se extends s.Component{constructor(){super(...arguments),this.handleClick=this.handleClick.bind(this),this.onNavigate=this.onNavigate.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.toggleTab=this.toggleTab.bind(this),this.getSelectedTabs=this.getSelectedTabs.bind(this),this.isSelected=this.isSelected.bind(this),this.getSelectedId=this.getSelectedId.bind(this),this.getLabelledBy=this.getLabelledBy.bind(this),this.getTabId=this.getTabId.bind(this),this.getTabPanelId=this.getTabPanelId.bind(this),this.isTabDisabled=this.isTabDisabled.bind(this),this.isNonMultiSelectableTabSelected=this.isNonMultiSelectableTabSelected.bind(this)}handleClick(e,t){t.metaKey||t.ctrlKey?this.toggleTab(e):this.props.onSelect([e])}onNavigate(e,t){const n=this.event;if(n){if("tab"===n.target.getAttribute("role")&&n.preventDefault(),n.ctrlKey)return;if(n.shiftKey){if(this.isTabDisabled(this.props.tabs[e]))return;const t=this.props.tabs[e].name;return void this.toggleTab(t)}}t.click()}onKeyDown(e){if(!e.nativeEvent&&(this.event=e,e.ctrlKey&&("Space"===e.code||32===e.keyCode))){e.preventDefault();const t=e.target.dataset.tabname;t&&this.toggleTab(t)}}toggleTab(e){const t=(0,c.find)(this.props.tabs,{name:e});t&&!1===t.allowMultiple||(this.props.selected.includes(e)?this.props.onSelect(this.props.selected.filter((t=>t!==e))):this.props.onSelect([...this.props.selected,e]))}getSelectedTabs(){const e=this.props.selected;!e.length&&this.props.initialTab&&e.push(this.props.initialTab);const t=[];return this.props.tabs.forEach((e=>{this.props.selected.includes(e.name)&&t.push(e)})),t}isSelected(e,t){return e.some((e=>e.name===t.name))}isTabDisabled(e){const{pressedModifierKeys:t}=this.props;if(this.props.selected.includes(e.name))return!1;if(!1!==e.allowMultiple&&!this.isNonMultiSelectableTabSelected())return!1;if(t.meta||t.ctrl)return!0;if(t.shift){const{activeElement:e}=document;if(e.parentElement&&e.parentElement.id===`components-tab-panel__tabs-${this.props.instanceId}`)return!0}return!1}isNonMultiSelectableTabSelected(){if(1!==this.props.selected.length)return!1;const e=(0,c.find)(this.props.tabs,{name:this.props.selected[0]});return e&&!1===e.allowMultiple}getSelectedId(e){return 1===e.length?this.getTabPanelId(e[0].name):`components-tab-panel__panel-${this.props.instanceId}-${(0,c.map)(e,"name").join("-")}`}getLabelledBy(e){return e.map((e=>this.getTabId(e.name))).join(",")}getTabId(e){return`components-tab-panel__tab-${this.props.instanceId}-${e}`}getTabPanelId(e){return`components-tab-panel__panel-${this.props.instanceId}-${e}`}componentDidUpdate(e){if(1!==this.props.selected.length)return;if(!te()(this.props.selected,e.selected))return;const t=this.props.selected[0];if((0,c.find)(this.props.tabs,{name:t}))return;const n=(0,c.findIndex)(e.tabs,{name:t});if(-1===n)return;const s=Math.max(n-1,0),r=this.props.tabs[s];r&&this.props.onSelect([r.name])}render(){const{tabs:e,className:t,activeClass:n="is-active",orientation:i="horizontal"}=this.props,a=this.getSelectedTabs(),o=this.getSelectedId(a);return(0,s.createElement)("div",{className:t},(0,s.createElement)(r.NavigableMenu,{role:"tablist","aria-multiselectable":!0,orientation:i,onNavigate:this.onNavigate,onKeyDown:this.onKeyDown,className:"components-tab-panel__tabs",id:`components-tab-panel__tabs-${this.props.instanceId}`},e.map((e=>{const t=this.isSelected(a,e),r=t&&a.length>1?o:this.getTabPanelId(e.name);return(0,s.createElement)(Q,{className:l()(e.className,{[n]:t}),tabId:this.getTabId(e.name),"aria-controls":r,selected:t,disabled:this.isTabDisabled(e),key:e.name,onClick:(0,c.partial)(this.handleClick,e.name),"data-tabname":e.name},e.title)}))),a.length>0&&(0,s.createElement)("div",{"aria-labelledby":this.getLabelledBy(a),role:"tabpanel",id:o,className:"components-tab-panel__tab-content",tabIndex:"0"},this.props.children(a)))}}(0,d.compose)([d.withInstanceId,ne.lo])(se);class re extends s.Component{constructor(){super(...arguments),(0,w.Z)(this,"onSelect",(e=>{this.setState({selected:e})})),this.state={selected:this.props.initialTab||""}}render(){return(0,s.createElement)(X,(0,T.Z)({},this.props,{selected:this.state.selected,onSelect:this.onSelect}))}}var ie=n(64239),ae=n(81019);function oe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;for(let s=0;s<e.length;s++){const r=t(e[s],n,s);if(r!==oe.skip){if(r===oe.halt)return r;if((0,c.isArray)(e[s].children)&&oe.halt===oe(e[s].children,t,e[s]))return oe.halt}}}function le(e){let{id:t,tree:n,active:i,setActive:a,onActivate:o,onLoad:l,label:c,help:d,...u}=e;const h=(0,s.useRef)(),m=(0,s.useMemo)((()=>{const e={};return oe(n,((t,n,s)=>{e[t.id]={item:t,index:s,parent:n?.id}})),e}),[n]),[p,g]=(0,s.useState)([]),[b,f]=(0,s.useState)([]),v=t+"__item__",E=async e=>{!0===e.children&&l&&(f((t=>[...t,e.id])),await l(e.id),f((t=>t.filter((t=>t!==e.id))))),g((t=>t.includes(e.id)?t.filter((t=>t!==e.id)):[...t,e.id]))};return(0,s.createElement)(r.BaseControl,{help:d,className:"itsec-tree"},(0,s.createElement)("span",{className:"components-base-control__label",id:t+"__tree_label"},c),(0,s.createElement)("ul",(0,T.Z)({ref:h,id:t,role:"tree",tabIndex:0,onKeyDown:async e=>{u.onKeyDown&&u.onKeyDown(e);const{keyCode:t}=e;if(o&&[ae.ENTER,ae.SPACE].includes(t)&&o(i),![ae.UP,ae.DOWN,ae.RIGHT,ae.LEFT].includes(t))return;e.stopPropagation(),e.preventDefault();const s=m[i];if(!s)return void a(n[0].id);const{item:r,parent:l}=s;let c;switch(t){case ae.UP:c=function(e,t,n){let s;return oe(e,(e=>e.id===t?oe.halt:(s=e,!1===e.children||n.includes(e.id)?void 0:oe.skip))),s}(n,r.id,p)?.id;break;case ae.DOWN:c=function(e,t,n){let s,r=!1;return oe(e,(e=>(s=e,r?oe.halt:(e.id===t&&(r=!0),!1===e.children||n.includes(e.id)?void 0:oe.skip)))),s}(n,r.id,p)?.id;break;case ae.RIGHT:r.children&&(p.includes(r.id)?c=r.children?.[0].id:await E(r));break;case ae.LEFT:r.children&&p.includes(r.id)?await E(r):c=l}if(c&&(a(c),h.current)){const e=h.current.ownerDocument.getElementById(v+c);e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():(0,ie.Z)(e,{scrollMode:"if-needed"})}},onFocus:i?void 0:()=>a(n[0].id),"aria-activedescendant":i?v+i:void 0,"aria-labelledby":t+"__tree_label"},u),n.map((e=>(0,s.createElement)(ce,{key:e.id,idBase:v,active:i,setActive:a,expandedIds:p,onToggle:E,loadingIds:b,item:e})))))}function ce(e){const{idBase:t,item:n,expandedIds:r,loadingIds:i,onToggle:a,active:o,setActive:c}=e,d=!!n.children,u=r.includes(n.id);return(0,s.createElement)("li",{id:t+n.id,role:"treeitem","aria-selected":o===n.id?"true":void 0,"aria-expanded":d?u:void 0,className:l()("itsec-tree__item",{"itsec-tree__item--loading":i.includes(n.id)})},(0,s.createElement)("span",{onClick:async()=>{await a(n),c(n.id)},"aria-label":n.label},n.label),d&&n.children.length>0&&(0,s.createElement)("ul",{role:"group"},n.children.map((t=>(0,s.createElement)(ce,(0,T.Z)({key:t.id},e,{item:t}))))))}oe.halt=Symbol("halt"),oe.skip=Symbol("skip");const de=["group","treeitem","option","menuitem","tab"].join(" "),ue=(0,s.forwardRef)((function(e,t){let{active:n,onKeyDown:r=c.noop,onNavigate:i,orientation:a="vertical",cycle:o=!0,descendantRoles:l=de,as:d="div",children:u,...h}=e;const m=(0,s.useRef)();return(0,s.useImperativeHandle)(t,(()=>({focus(){m.current.focus()}}))),(0,s.createElement)(d,(0,T.Z)({ref:m,tabIndex:0,"aria-activedescendant":n,"aria-orientation":a,onKeyDown:e=>{const t=function(e,t){let n=[ae.DOWN],s=[ae.UP];return"horizontal"===t&&(n=[ae.RIGHT],s=[ae.LEFT]),"both"===t&&(n=[ae.RIGHT,ae.DOWN],s=[ae.LEFT,ae.UP]),(0,c.includes)(n,e)?1:(0,c.includes)(s,e)?-1:(0,c.includes)([ae.DOWN,ae.UP,ae.LEFT,ae.RIGHT],e)?0:void 0}(e.keyCode,a);if(r(e,t),void 0===t)return;e.stopPropagation(),e.preventDefault();const s=function(e,t){const n=t.split(" ").map((e=>`[role="${e}"]`)).join(", ");return e.querySelectorAll(n)}(m.current,l),d=(0,c.findIndex)(s,{id:n}),u=o?function(e,t,n){const s=e+n;return s<0?t+s:s>=t?s-t:s}(d,s.length,t):d+t;if(u>=0&&u<s.length){const e=s[u];!function(e,t){if(t.scrollIntoViewIfNeeded)return void t.scrollIntoViewIfNeeded();const n=e.ownerDocument.defaultView.getComputedStyle(e),s=parseInt(n.getPropertyValue("border-top-width")),r=t.offsetTop-e.offsetTop<e.scrollTop,i=t.offsetTop-e.offsetTop+t.clientHeight-s>e.scrollTop+e.clientHeight;(r||i)&&(e.scrollTop=t.offsetTop-e.offsetTop-e.clientHeight/2-s+t.clientHeight/2,e.scrollLeft=0)}(m.current,e),i(e.id)}}},h),u)}));function he(){return(0,s.createElement)("div",{style:{flexGrow:1},"aria-hidden":!0,className:"itsec-component-flex-spacer"})}var me=n(86227);const pe=(0,me.Z)(r.Dashicon,{shouldForwardProp:e=>"size"!==e&&"padding"!==e,target:"e15jp5o50"})("border-radius:50%;font-size:calc(",(e=>{let{size:t}=e;return t})," - (",(e=>{let{padding:t}=e;return t})," * 2));padding:",(e=>{let{padding:t}=e;return t}),";padding-left:calc(",(e=>{let{padding:t}=e;return t})," + 0.5px);background:",(e=>{let{theme:t}=e;return t.colors.primary.base}),";color:#ffffff;");function ge(e){let{size:t=20,className:n}=e;const r=`var(--itsec-recommended-icon-size, ${"number"==typeof t?`${t}px`:t})`,i=`calc(${r} / 5)`;return(0,s.createElement)(pe,{className:n,icon:"star-filled",size:r,padding:i})}const be={error:{primary:"#551515",secondary:"#F7ABAB",icon:"warning"},info:{primary:"#005169",secondary:"#ecfaff",icon:"info"},warning:{primary:"#a9582e",secondary:"#fdddcd",icon:"flag"},success:{primary:"#237739",secondary:"#ddf1e2",icon:"yes-alt"}},fe=(0,me.Z)("div",{target:"e2e3eg46"})("display:flex;padding:.75rem .5rem;border-radius:4px;margin-bottom:",(e=>{let{noMargins:t}=e;return!t&&"1rem"}),";background:",(e=>{let{type:t}=e;return be[t].secondary}),";border:",(e=>{let{type:t,hasBorder:n}=e;return n&&`1px solid ${be[t].primary}`}),";"),ve=(0,me.Z)("h3",{target:"e2e3eg45"})("font-size:1.25rem;margin:0 0 0.5rem 0;color:",(e=>{let{type:t}=e;return be[t].primary}),";"),Ee=(0,me.Z)(r.Dashicon,{shouldForwardProp:e=>"type"!==e,target:"e2e3eg44"})("color:",(e=>{let{type:t}=e;return be[t].primary}),";margin-right:0.5rem;"),ye=(0,me.Z)(ge,{target:"e2e3eg43"})({name:"u7ytkp",styles:"margin-right:0.5rem"}),_e=(0,me.Z)("ul",{target:"e2e3eg42"})({name:"ti75j2",styles:"margin:0"}),Ne=(0,me.Z)("li",{target:"e2e3eg41"})("margin:0 0 0.25rem 0;color:",(e=>{let{type:t}=e;return be[t].primary}),";&:last-child{margin-bottom:0;}"),ke=(0,me.Z)(r.Button,{shouldForwardProp:e=>"type"!==e,target:"e2e3eg40"})("margin-left:auto;padding:0!important;min-width:0!important;min-height:0!important;height:min-content!important;&:hover{color:",(e=>{let{theme:t}=e;return t.colors.primary.base}),";}.dashicon{color:",(e=>{let{type:t}=e;return be[t].primary}),";margin-left:0;margin-right:0;&:hover{color:",(e=>{let{theme:t}=e;return t.colors.primary.base}),";}}");function Ie(e){let{type:t="info",title:n,messages:r=[],className:i,onDismiss:a,hasBorder:o,recommended:d,noMargins:u}=e;return r=(0,c.castArray)(r),r.length?(0,s.createElement)(fe,{type:t,hasBorder:o,recommended:d,noMargins:u,className:l()("itsec-message-list",`itsec-message-list--type-${t}`,i)},d?(0,s.createElement)(ye,null):(0,s.createElement)(Ee,{icon:be[t].icon,type:t}),(0,s.createElement)("div",null,n&&(0,s.createElement)(ve,null,n),(0,s.createElement)(_e,null,r.map(((e,n)=>(0,s.createElement)(Ne,{key:n,type:t},e))))),a&&(0,s.createElement)(ke,{icon:"dismiss",type:t,onClick:a})):null}function Ce(e){let{errors:t,apiError:n,schemaError:r,title:i,className:o,hasBorder:l,noMargins:c}=e;const d=[...t||[],...(0,a.Y3)(n),...(r||[]).map((e=>e.stack))];return d.length?(0,s.createElement)(Ie,{messages:d,title:i,className:o,hasBorder:l,noMargins:c,type:"error"}):null}function we(e){let{panels:t,header:n="h3",expanded:r,setExpanded:i,isStyled:a,className:o,allowNone:c}=e;const u=(0,d.useInstanceId)(we,"itsec-accordion"),h=(0,s.useRef)([]),m=e=>{i(c&&e===r?"":e)},p=t.some((e=>!!e.description));return(0,s.createElement)("div",{id:u,className:l()("itsec-accordion",o,{"itsec-accordion--styled":a,"itsec-accordion--has-description":p})},t.map(((e,t)=>{let{name:i,text:a,className:o,render:c=Oe,...d}=e;return(0,s.createElement)(s.Fragment,{key:i},(0,s.createElement)(Se,(0,T.Z)({id:u+"__trigger__"+i,name:i},d,{as:n,controls:u+"__panel__"+i,isExpanded:r===i,onTrigger:m,refs:h,index:t,className:o})),(0,s.createElement)(c,{name:i,text:a,className:l()("itsec-accordion__panel",o,{"itsec-accordion__panel--is-expanded":r===i}),role:"region",id:u+"__panel__"+i,"aria-labelledby":u+"__trigger__"+i}))})))}function Se(e){let{id:t,name:n,title:i,description:a,showSpinner:o,icon:c,controls:d,isExpanded:u,onTrigger:h,className:m,as:p,refs:g,index:b}=e;const f=!0===o?(0,s.createElement)(Z,{size:30}):o;return(0,s.createElement)(p,{className:l()("itsec-accordion__header",m,{"itsec-accordion__header--is-expanded":u,"itsec-accordion__header--has-graphic":f||c})},(0,s.createElement)(r.Button,{id:t+n,icon:u?"arrow-up-alt2":"arrow-down-alt2",onClick:()=>h(n),"aria-expanded":u,"aria-controls":d,ref:e=>g.current[b]=e,onKeyDown:e=>{if(e.keyCode!==ae.UP&&e.keyCode!==ae.DOWN)return;e.preventDefault();const t=e.keyCode===ae.UP?-1:1,n=function(e,t,n){const s=e+n;return s<0?t+s:s>=t?s-t:s}(b,g.current.length,t);g.current[n]?.focus()}},(0,s.createElement)("span",{className:"itsec-accordion__header-title"},i),a&&(0,s.createElement)("span",{className:"itsec-accordion__header-description"},a),f||c&&(0,s.createElement)(r.Dashicon,{icon:c,className:"itsec-accordion__header-icon"})))}function Oe(e){let{text:t,name:n,...r}=e;return(0,s.createElement)("div",r,(0,s.createElement)("p",null,t))}function Ze(e){let{icon:t,className:n,label:i,children:a}=e;const[o,c]=(0,s.useState)(!1);return(0,s.createElement)(r.Button,{icon:t,label:i,onClick:()=>c(!o),"aria-expanded":o,"aria-haspopup":!0,className:l()("itsec-icon-popover__trigger",n&&`${n}__trigger`)},o&&(0,s.createElement)(r.Popover,{noArrow:!1,position:"bottom center",className:l()("itsec-icon-popover",n),focusOnMount:"container",onFocusOutside:()=>c(!1)},a))}var Te=n(73727);function xe(e){let{help:t,to:n}=e;return(0,s.createElement)(Ze,{icon:"info",className:"itsec-help-popover",label:(0,i.__)("Help","better-wp-security")},(0,s.createElement)(Re,{content:t,tagName:"p"}),n&&(0,s.createElement)("footer",null,(0,s.createElement)(Te.rU,{component:(0,ne.Sj)(r.Button),text:(0,i.__)("More","better-wp-security"),to:n,icon:"arrow-right-alt",iconPosition:"right"})))}var Le=n(31600);function Me(e){let{topic:t,fallback:n}=e;const r=(0,F.useSelect)((e=>e(Le.HELP_STORE_NAME).isEnabled()));return void 0===r?null:r?(0,s.createElement)(Pe,{topic:t,fallback:n}):(0,s.createElement)(De,null)}function De(){const[e,t]=(0,s.useState)(!0),[n,a]=(0,s.useState)(!1),{enableHelp:o}=(0,F.useDispatch)(Le.HELP_STORE_NAME);return e&&(0,s.createElement)(r.Modal,{title:(0,i.__)("Privacy Notice","better-wp-security"),onRequestClose:()=>t(!1),className:"itsec-help-list__enable-modal"},(0,s.createElement)("p",null,(0,i.__)("Loading help remotely requires making an API request to iThemes.com. Only the requested help topic is transmitted.","better-wp-security")),(0,s.createElement)("footer",null,(0,s.createElement)("a",{href:"https://www.liquidweb.com/about-us/policies/privacy-policy/"},(0,i.__)("Privacy Policy","better-wp-security")),(0,s.createElement)(r.Button,{isBusy:n,onClick:async()=>{a(!0),await o(),a(!1)},isPrimary:!0},(0,i.__)("Continue","better-wp-security"))))}function Pe(e){let{topic:t,fallback:n}=e;const{help:r,isLoaded:a,fallbackHelp:o,fallbackLoaded:l}=(0,F.useSelect)((e=>({help:e(Le.HELP_STORE_NAME).getHelp(t),isLoaded:e(Le.HELP_STORE_NAME).hasFinishedResolution("getHelp",[t]),fallbackHelp:n?e(Le.HELP_STORE_NAME).getHelp(n):[],fallbackLoaded:!n||e(Le.HELP_STORE_NAME).hasFinishedResolution("getHelp",[n])})));if(!a||!l)return null;const d=(0,c.groupBy)([...r,...o],"type");return(0,s.createElement)(React.Fragment,null,(0,s.createElement)(He,{title:(0,i.__)("Help Center","better-wp-security"),icon:"sos",link:"https://help.ithemes.com/hc/en-us/categories/200147050/",items:d.hc}),(0,s.createElement)(He,{title:(0,i.__)("Blog","better-wp-security"),icon:"book-alt",link:"https://ithemes.com/blog/",items:d.post}),(0,s.createElement)(He,{title:(0,i.__)("Video","better-wp-security"),icon:"youtube",link:"https://www.youtube.com/channel/UCYSDQEcxAppePTn5E7iNpFg",items:d.video}))}function He(e){let{title:t,icon:n,link:a,items:o}=e;return(0,s.createElement)(r.Card,{className:l()("itsec-help-list-section",{"itsec-help-list-section--has-content":!!o})},(0,s.createElement)("header",null,(0,s.createElement)("a",{href:a},(0,s.createElement)(r.Dashicon,{icon:n,className:"itsec-help-list-section__icon"}),(0,s.createElement)("h3",null,t),(0,s.createElement)(r.Dashicon,{icon:"arrow-right-alt",className:"itsec-help-list-section__more"}))),(0,s.createElement)("section",null,o?o.map((e=>(0,s.createElement)("article",{key:e.title},(0,s.createElement)("a",{href:e.link},(0,s.createElement)("h4",null,e.title),(0,s.createElement)(Re,{content:e.description,tagName:"p"}))))):(0,s.createElement)("p",null,(0,i.__)("No relevant content at this time.","better-wp-security"))))}var Ae=n(63108);function Re(e){let{transform:t,...n}=e;return(0,s.createElement)(Ae.Lu,(0,T.Z)({},n,{transform:(e,r)=>{if(t){const n=t(e,r);if(void 0!==n)return n}if("a"===e.tagName.toLowerCase()&&e.dataset.itsecPath&&!n.noHtml)return(0,s.createElement)(Te.rU,{to:e.dataset.itsecPath},r)}}))}var $e=n(62845),Be=n(87514),Fe=n.n(Be),je=n(73470);const{useGlobalState:Ke}=(0,$e.r8)({cache:{}});function Ue(e){let{id:t,value:n,disabled:i,readonly:a,onChange:o,label:l,description:u,isMultiple:h=!1,path:m,query:p={},labelAttr:g,idAttr:b="id",searchArg:f="search"}=e;const[v,E]=Ke("cache"),y=(0,d.useInstanceId)(Ue,"itsec-entity-select-control");t=t||y;const[_,N]=(0,s.useState)(""),k=function(e,t,n,r,i,a,o){return(0,s.useCallback)((s=>Fe()({path:(0,je.addQueryArgs)(e,{...t,[i]:s})}).then((e=>e.map((e=>({value:e[r],label:e[n]}))))).then((t=>(o({...a,[e]:{...a[e]||{},...(0,c.mapValues)((0,c.keyBy)(t,"value"),"label")}}),t)))),[e,t,n,r,i,a])}(m,p,g,b,f,v,E);let I;return h?I=(n||[]).filter((e=>void 0!==e)).map((e=>({value:e,label:v[m]?.[e]||e}))):n&&(I={value:n,label:v[m]?.[n]||n}),(0,s.createElement)(r.BaseControl,{className:"itsec-entity-select-control",label:l,help:(0,s.createElement)(Re,{noWrap:!0,content:u}),id:t},(0,s.createElement)(C,{"aria-label":l,"aria-describedby":u?t+"__help":void 0,classNamePrefix:"itsec-entity-select-control-as",inputId:t,isDisabled:i||a,isMulti:h,isClearable:!0,cacheOptions:!0,defaultOptions:!0,loadOptions:k,value:I,onChange:e=>o(h?(e||[]).map((e=>e.value)):e?.value),inputValue:_,onInputChange:N}))}},31511:(e,t,n)=>{"use strict";n.d(t,{sE:()=>I,x4:()=>g,PN:()=>h,pL:()=>N,NC:()=>y,N4:()=>_,CO:()=>S,AW:()=>w,SU:()=>C,ZE:()=>E,UC:()=>O,xJ:()=>k,z8:()=>v,Y3:()=>Z,bv:()=>f});var s=n(92819),r=n(6293),i=n(73470),a=n(4942),o=n(13092),l=n(86033);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,u=new WeakMap;class h{constructor(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;c(this,d,{writable:!0,value:{}}),c(this,u,{writable:!0,value:{}}),(0,a.Z)(this,"add",((e,t,n)=>((0,l.Z)(this,d)[e]||((0,l.Z)(this,d)[e]=[]),(0,l.Z)(this,d)[e].push(t),n&&((0,l.Z)(this,u)[e]||((0,l.Z)(this,u)[e]=[]),(0,l.Z)(this,u)[e].push(n)),this))),(0,a.Z)(this,"hasErrors",(()=>this.getErrorCodes().length>0)),(0,a.Z)(this,"getErrorCodes",(()=>Object.keys((0,l.Z)(this,d)))),(0,a.Z)(this,"getErrorCode",(()=>this.getErrorCodes()[0])),(0,a.Z)(this,"getErrorMessages",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t)return(0,l.Z)(e,d)[t];const n=[];for(const t in(0,l.Z)(e,d))(0,l.Z)(e,d).hasOwnProperty(t)&&n.concat((0,l.Z)(e,d)[t]);return n})),(0,a.Z)(this,"getErrorMessage",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t=t||e.getErrorCode(),e.getErrorMessages(t)[0]})),(0,a.Z)(this,"getErrorData",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t=t||e.getErrorCode(),(0,l.Z)(e,u)[t]})),(0,a.Z)(this,"getAllErrorMessages",(()=>{const e=[];for(const t in(0,l.Z)(this,d))(0,l.Z)(this,d).hasOwnProperty(t)&&e.push(...(0,l.Z)(this,d)[t]);return e})),t&&(n&&((0,l.Z)(this,d)[t]=[n]),s&&((0,l.Z)(this,u)[t]=s))}static fromPHPObject(e){const t=new h;return(0,o.Z)(t,d,e.errors),(0,o.Z)(t,u,e.error_data),t}static fromApiError(e){const t=new h;if((0,l.Z)(t,d)[e.code]=[e.message],(0,l.Z)(t,u)[e.code]=[e.data],e.additional_errors)for(const n of e.additional_errors)(0,l.Z)(t,d)[n.code]=[n.message],n.data&&((0,l.Z)(t,u)||(0,o.Z)(t,u,[]),(0,l.Z)(t,u)[n.code].push(n.data));return t}}var m=n(95122);class p extends Error{constructor(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];super(e.message||(0,m.__)("An unknown error occurred.","better-wp-security"),...n),Error.captureStackTrace&&Error.captureStackTrace(this,p),this.__response=e;for(const t in e)e.hasOwnProperty(t)&&Object.defineProperty(this,t,{value:e[t],configurable:!0,enumerable:!0,writable:!0})}toString(){return this.__response.toString()}getResponse(){return this.__response}}class g{constructor(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];(0,a.Z)(this,"type",void 0),(0,a.Z)(this,"error",void 0),(0,a.Z)(this,"data",void 0),(0,a.Z)(this,"success",void 0),(0,a.Z)(this,"info",void 0),(0,a.Z)(this,"warning",void 0),this.type=e,this.error=t,this.data=n,this.success=s,this.info=r,this.warning=i,Object.seal(this)}isSuccess(){return this.type===g.SUCCESS}static async fromResponse(e){const t=t=>{const n=e.headers?.get(`X-Messages-${t}`);return n?JSON.parse(n):[]},n=204!==e.status&&e.json?await e.json():null,s=y(n),r=s.hasErrors()?g.ERROR:g.SUCCESS,i=t("Success"),a=t("Info"),o=t("Warning");return new g(r,s,n,i,a,o)}}Object.defineProperty(g,"SUCCESS",{value:"success",writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(g,"ERROR",{value:"error",writable:!1,enumerable:!1,configurable:!1});const b=(0,r.createContext)({getUrl(e){e="settings"===e?"itsec":"itsec-"+e;const t=(0,i.removeQueryArgs)(document.location.href,...Object.keys((0,i.getQueryArgs)(document.location.href)));return(0,i.addQueryArgs)(t,{page:e})}});function f(e){const{getUrl:t}=(0,r.useContext)(b);return t(e)}function v(e){if(e<=999)return e.toString();if(e<=9999){const t=(e/1e3).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","k"):`${t}k`}if(e<=99999)return e.toString().substring(0,2)+"k";if(e<=999999)return e.toString().substring(0,3)+"k";if(e<=9999999){const t=(e/1e6).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","m"):`${t}m`}if(e<=99999999)return e.toString().substring(0,2)+"m";if(e<=999999999)return e.toString().substring(0,3)+"m";if(e<=9999999999){const t=(e/1e9).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","b"):`${t}b`}return e}function E(e){if(!(0,s.isPlainObject)(e))return!1;const t=Object.keys(e);return 2===t.length&&t.includes("errors")&&t.includes("error_data")}function y(e){return e instanceof h?e:E(e)?h.fromPHPObject(e):function(e){if(!(0,s.isPlainObject)(e))return!1;const t=Object.keys(e);return(3===t.length||4===t.length)&&!(4===t.length&&!t.includes("additional_errors"))&&t.includes("code")&&t.includes("message")&&t.includes("data")}(e)?h.fromApiError(e):new h}function _(e){const t={};for(const[n,s]of e)t[n]=s;return t}function N(e,t){const n=[[],[]];for(const s of e)n[t(s)?0:1].push(s);return n}function k(e){if(e instanceof Error)throw e;throw new p(e)}const I="https://secure.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=96&d=mm&f=y&r=g";function C(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,s.get)(e,["_links","self",0,"targetHints",t],n?void 0:[])}function w(e){return function(e,t){return(0,s.get)(e,["_links","self",0,"href"])}(e)}function S(e,t){if(e&&e.links)for(const n of e.links)if(n.rel===t)return n}function O(e,t){if("object"!==e.type)return e;let n;for(const r in t)t.hasOwnProperty(r)&&"hidden"===t[r]["ui:widget"]&&(n||(n=(0,s.cloneDeep)(e)),delete n.properties[r]);return n||e}function Z(e){let t=[];if(!e)return t;const n=e instanceof h?e:y((0,s.pick)(e,["code","message","data"]));return"rest_invalid_param"===n.getErrorCode()&&(t=Object.values(n.getErrorData().params)),[...n.getAllErrorMessages(),...t]}},30379:(e,t,n)=>{var s=n(99196);function r(e){return s.createElement("svg",e,[s.createElement("defs",{key:0},s.createElement("style",null,".cls-1{fill:#0083e3;}")),s.createElement("g",{id:"Layer_2","data-name":"Layer 2",key:1},s.createElement("g",{id:"Layer_1-2","data-name":"Layer 1"},[s.createElement("path",{className:"cls-1",d:"M102.41,40.58V8a1.74,1.74,0,0,0-1.71-1.74S63.49.22,51.08,0,1.78,6,1.78,6A1.74,1.74,0,0,0,0,7.74V40.58s-1.16,27.36,17.44,48.9c16.52,19.13,30.32,23.66,33.2,24.44a2.6,2.6,0,0,0,1.11,0c2.92-.79,16.7-5.35,33.18-24.44C103.53,67.94,102.41,40.58,102.41,40.58Zm-25,43c-11.21,13-20.79,18.57-25.67,20.8a1.6,1.6,0,0,1-1.14,0C45.76,102.09,36.17,96.5,25,83.53,8.49,64.45,9.15,39.45,9.16,39.19v-25a.86.86,0,0,1,.6-.78A170.63,170.63,0,0,1,50.93,8.21h.71a164.87,164.87,0,0,1,41,5.18.86.86,0,0,1,.6.78V39.23C93.27,39.45,93.92,64.45,77.46,83.53Z",key:0}),s.createElement("path",{className:"cls-1",d:"M51.1,31.87a8.86,8.86,0,1,0,8.83,8.88A8.87,8.87,0,0,0,51.1,31.87Z",key:1}),s.createElement("path",{className:"cls-1",d:"M84.1,39.41v-18a.78.78,0,0,0-.59-.73,156.44,156.44,0,0,0-31.86-3.28H51a162.74,162.74,0,0,0-32,3.34.78.78,0,0,0-.59.73V39.54c0,1.33,0,22.31,13.59,38C39.53,86.36,46.14,91.3,50.7,94a1.12,1.12,0,0,0,1,0c4.53-2.69,11.14-7.63,18.77-16.46C84.41,61.43,84.1,39.66,84.1,39.41ZM63.51,71.6c-1.09,1.28-2.16,2.45-3.2,3.54-.24.25-.43.17-.43-.18V67.4c0-5.72,5.55-8.63,7.38-9.43a1,1,0,0,0,.58-.86V51.37a.38.38,0,0,0-.58-.38A44.13,44.13,0,0,1,34.9,51a.39.39,0,0,0-.58.38v5.74a1,1,0,0,0,.59.84c6.08,2.33,7.32,6.29,7.32,9.52V74.9c0,.35-.19.43-.43.18q-1.53-1.6-3.16-3.48c-11.44-13.26-11.37-31.84-11.37-32V29a.76.76,0,0,1,.62-.72,152.22,152.22,0,0,1,23-1.83h.69a147.44,147.44,0,0,1,22.69,1.76.75.75,0,0,1,.62.72v10.3C74.89,39.58,75,58.31,63.51,71.6Z",key:2})]))])}r.defaultProps={width:"200px",viewBox:"0 0 102.43 113.98"},e.exports=r,r.default=r}}]);
dist/15.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! For license information please see 15.js.LICENSE.txt */
2
+ "use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[15],{51015:(e,t,r)=>{r.d(t,{zx:()=>fo,UW:()=>Ic,EE:()=>Rc,TT:()=>Vc,X6:()=>Sc,aV:()=>Fc,HC:()=>_c,w8:()=>Bc,lD:()=>Yc,Tg:()=>wc,xv:()=>jc,fs:()=>rc,uH:()=>Zc});var n=r(86227),i=(r(99196),r(96384),r(19296)),o=(r(8679),r(30302)),a=r(85893),c=a.Fragment;function s(e,t,r){return i.h.call(t,"css")?(0,a.jsx)(i.E,(0,i.c)(e,t),r):(0,a.jsx)(e,t,r)}function l(e,t,r){return i.h.call(t,"css")?(0,a.jsxs)(i.E,(0,i.c)(e,t),r):(0,a.jsxs)(e,t,r)}var u=r(64893),d=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),f=r(46411),p=r(26686),h=r(19685),m=r(20211),g=r(92190),v=function(e,t,r){for(var n=0,i=0;n=i,i=(0,f.fj)(),38===n&&12===i&&(t[r]=1),!(0,f.r)(i);)(0,f.lp)();return(0,f.tP)(e,f.FK)},y=new WeakMap,b=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||y.get(r))&&!n){y.set(e,!0);for(var i=[],o=function(e,t){return(0,f.cE)(function(e,t){var r=-1,n=44;do{switch((0,f.r)(n)){case 0:38===n&&12===(0,f.fj)()&&(t[r]=1),e[r]+=v(f.FK-1,t,r);break;case 2:e[r]+=(0,f.iF)(n);break;case 4:if(44===n){e[++r]=58===(0,f.fj)()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=(0,p.Dp)(n)}}while(n=(0,f.lp)());return e}((0,f.un)(e),t))}(t,i),a=r.props,c=0,s=0;c<o.length;c++)for(var l=0;l<a.length;l++,s++)e.props[s]=i[c]?o[c].replace(/&\f/g,a[l]):a[l]+" "+o[c]}}},x=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},w=[h.Ji];function O(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var A=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function S(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function C(e,t,r){var n=[],i=O(e,n,r);return n.length<2?r:i+t(n)}var E=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var a in o="",i)i[a]&&a&&(o&&(o+=" "),o+=a);break;default:o=i}o&&(r&&(r+=" "),r+=o)}}return r};var j=function(e){var t=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,o=e.stylisPlugins||w,a={},c=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;c.push(e)}));var s,l=[b,x],u=[m.P,(0,h.cD)((function(e){s.insert(e)}))],f=(0,h.qR)(l.concat(o,u));i=function(e,t,r,n){var i;s=r,i=e?e+"{"+t.styles+"}":t.styles,(0,m.q)((0,g.MY)(i),f),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new d({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(c),p}(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,o.O)(r,t.registered,void 0);return A(t,i,!1),t.key+"-"+i.name};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return C(t.registered,r,E(n))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,o.O)(r,t.registered);S(t,i)},keyframes:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,o.O)(r,t.registered),a="animation-"+i.name;return S(t,{name:i.name,styles:"@keyframes "+a+"{"+i.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:O.bind(null,t.registered),merge:C.bind(null,t.registered,r)}}({key:"css"}),L=(j.flush,j.hydrate,j.cx),R=(j.merge,j.getRegisteredStyles,j.injectGlobal,j.keyframes,j.css,j.sheet,j.cache,r(6293)),N=r(9576),T=r(14776);const I=(0,R.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(T.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),P=(0,R.createElement)(T.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,R.createElement)(T.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"})),k=(0,R.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,R.createElement)(T.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var M=r(28184),z=r(81019),_=r(95122),F=(r(73470),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}),G=function(e){return e&&e.Math==Math&&e},V=G("object"==typeof globalThis&&globalThis)||G("object"==typeof window&&window)||G("object"==typeof self&&self)||G("object"==typeof F&&F)||function(){return this}()||Function("return this")(),D={},B=function(e){try{return!!e()}catch(e){return!0}},H=!B((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),W=!B((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),U=W,Y=Function.prototype.call,Z=U?Y.bind(Y):function(){return Y.apply(Y,arguments)},q={},K={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,X=$&&!K.call({1:2},1);q.f=X?function(e){var t=$(this,e);return!!t&&t.enumerable}:K;var J,Q,ee=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},te=W,re=Function.prototype,ne=re.bind,ie=re.call,oe=te&&ne.bind(ie,ie),ae=te?function(e){return e&&oe(e)}:function(e){return e&&function(){return ie.apply(e,arguments)}},ce=ae,se=ce({}.toString),le=ce("".slice),ue=function(e){return le(se(e),8,-1)},de=B,fe=ue,pe=Object,he=ae("".split),me=de((function(){return!pe("z").propertyIsEnumerable(0)}))?function(e){return"String"==fe(e)?he(e,""):pe(e)}:pe,ge=TypeError,ve=function(e){if(null==e)throw ge("Can't call method on "+e);return e},ye=me,be=ve,xe=function(e){return ye(be(e))},we=function(e){return"function"==typeof e},Oe=we,Ae=function(e){return"object"==typeof e?null!==e:Oe(e)},Se=V,Ce=we,Ee=function(e){return Ce(e)?e:void 0},je=function(e,t){return arguments.length<2?Ee(Se[e]):Se[e]&&Se[e][t]},Le=ae({}.isPrototypeOf),Re=V,Ne=je("navigator","userAgent")||"",Te=Re.process,Ie=Re.Deno,Pe=Te&&Te.versions||Ie&&Ie.version,ke=Pe&&Pe.v8;ke&&(Q=(J=ke.split("."))[0]>0&&J[0]<4?1:+(J[0]+J[1])),!Q&&Ne&&(!(J=Ne.match(/Edge\/(\d+)/))||J[1]>=74)&&(J=Ne.match(/Chrome\/(\d+)/))&&(Q=+J[1]);var Me=Q,ze=B,_e=!!Object.getOwnPropertySymbols&&!ze((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Me&&Me<41})),Fe=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ge=je,Ve=we,De=Le,Be=Object,He=Fe?function(e){return"symbol"==typeof e}:function(e){var t=Ge("Symbol");return Ve(t)&&De(t.prototype,Be(e))},We=String,Ue=we,Ye=TypeError,Ze=function(e){if(Ue(e))return e;throw Ye(function(e){try{return We(e)}catch(e){return"Object"}}(e)+" is not a function")},qe=Z,Ke=we,$e=Ae,Xe=TypeError,Je={exports:{}},Qe=V,et=Object.defineProperty,tt=function(e,t){try{et(Qe,e,{value:t,configurable:!0,writable:!0})}catch(r){Qe[e]=t}return t},rt=tt,nt="__core-js_shared__",it=V[nt]||rt(nt,{}),ot=it;(Je.exports=function(e,t){return ot[e]||(ot[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"});var at=ve,ct=Object,st=function(e){return ct(at(e))},lt=st,ut=ae({}.hasOwnProperty),dt=Object.hasOwn||function(e,t){return ut(lt(e),t)},ft=ae,pt=0,ht=Math.random(),mt=ft(1..toString),gt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mt(++pt+ht,36)},vt=V,yt=Je.exports,bt=dt,xt=gt,wt=_e,Ot=Fe,At=yt("wks"),St=vt.Symbol,Ct=St&&St.for,Et=Ot?St:St&&St.withoutSetter||xt,jt=function(e){if(!bt(At,e)||!wt&&"string"!=typeof At[e]){var t="Symbol."+e;wt&&bt(St,e)?At[e]=St[e]:At[e]=Ot&&Ct?Ct(t):Et(t)}return At[e]},Lt=Z,Rt=Ae,Nt=He,Tt=TypeError,It=jt("toPrimitive"),Pt=function(e,t){if(!Rt(e)||Nt(e))return e;var r,n,i=null==(n=e[It])?void 0:Ze(n);if(i){if(void 0===t&&(t="default"),r=Lt(i,e,t),!Rt(r)||Nt(r))return r;throw Tt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&Ke(r=e.toString)&&!$e(n=qe(r,e)))return n;if(Ke(r=e.valueOf)&&!$e(n=qe(r,e)))return n;if("string"!==t&&Ke(r=e.toString)&&!$e(n=qe(r,e)))return n;throw Xe("Can't convert object to primitive value")}(e,t)},kt=He,Mt=function(e){var t=Pt(e,"string");return kt(t)?t:t+""},zt=Ae,_t=V.document,Ft=zt(_t)&&zt(_t.createElement),Gt=function(e){return Ft?_t.createElement(e):{}},Vt=Gt,Dt=!H&&!B((function(){return 7!=Object.defineProperty(Vt("div"),"a",{get:function(){return 7}}).a})),Bt=H,Ht=Z,Wt=q,Ut=ee,Yt=xe,Zt=Mt,qt=dt,Kt=Dt,$t=Object.getOwnPropertyDescriptor;D.f=Bt?$t:function(e,t){if(e=Yt(e),t=Zt(t),Kt)try{return $t(e,t)}catch(e){}if(qt(e,t))return Ut(!Ht(Wt.f,e,t),e[t])};var Xt={},Jt=H&&B((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=Ae,er=String,tr=TypeError,rr=function(e){if(Qt(e))return e;throw tr(er(e)+" is not an object")},nr=H,ir=Dt,or=Jt,ar=rr,cr=Mt,sr=TypeError,lr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor;Xt.f=nr?or?function(e,t,r){if(ar(e),t=cr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=ur(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return lr(e,t,r)}:lr:function(e,t,r){if(ar(e),t=cr(t),ar(r),ir)try{return lr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Xt,fr=ee,pr=H?function(e,t,r){return dr.f(e,t,fr(1,r))}:function(e,t,r){return e[t]=r,e},hr={exports:{}},mr=H,gr=dt,vr=Function.prototype,yr=mr&&Object.getOwnPropertyDescriptor,br=gr(vr,"name"),xr={EXISTS:br,PROPER:br&&"something"===function(){}.name,CONFIGURABLE:br&&(!mr||mr&&yr(vr,"name").configurable)},wr=we,Or=it,Ar=ae(Function.toString);wr(Or.inspectSource)||(Or.inspectSource=function(e){return Ar(e)});var Sr,Cr,Er,jr=Or.inspectSource,Lr=we,Rr=jr,Nr=V.WeakMap,Tr=Lr(Nr)&&/native code/.test(Rr(Nr)),Ir=Je.exports,Pr=gt,kr=Ir("keys"),Mr=function(e){return kr[e]||(kr[e]=Pr(e))},zr={},_r=Tr,Fr=V,Gr=ae,Vr=Ae,Dr=pr,Br=dt,Hr=it,Wr=Mr,Ur=zr,Yr="Object already initialized",Zr=Fr.TypeError,qr=Fr.WeakMap;if(_r||Hr.state){var Kr=Hr.state||(Hr.state=new qr),$r=Gr(Kr.get),Xr=Gr(Kr.has),Jr=Gr(Kr.set);Sr=function(e,t){if(Xr(Kr,e))throw new Zr(Yr);return t.facade=e,Jr(Kr,e,t),t},Cr=function(e){return $r(Kr,e)||{}},Er=function(e){return Xr(Kr,e)}}else{var Qr=Wr("state");Ur[Qr]=!0,Sr=function(e,t){if(Br(e,Qr))throw new Zr(Yr);return t.facade=e,Dr(e,Qr,t),t},Cr=function(e){return Br(e,Qr)?e[Qr]:{}},Er=function(e){return Br(e,Qr)}}var en={set:Sr,get:Cr,has:Er,enforce:function(e){return Er(e)?Cr(e):Sr(e,{})},getterFor:function(e){return function(t){var r;if(!Vr(t)||(r=Cr(t)).type!==e)throw Zr("Incompatible receiver, "+e+" required");return r}}},tn=B,rn=we,nn=dt,on=H,an=xr.CONFIGURABLE,cn=jr,sn=en.enforce,ln=en.get,un=Object.defineProperty,dn=on&&!tn((function(){return 8!==un((function(){}),"length",{value:8}).length})),fn=String(String).split("String"),pn=hr.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!nn(e,"name")||an&&e.name!==t)&&un(e,"name",{value:t,configurable:!0}),dn&&r&&nn(r,"arity")&&e.length!==r.arity&&un(e,"length",{value:r.arity});try{r&&nn(r,"constructor")&&r.constructor?on&&un(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=sn(e);return nn(n,"source")||(n.source=fn.join("string"==typeof t?t:"")),e};Function.prototype.toString=pn((function(){return rn(this)&&ln(this).source||cn(this)}),"toString");var hn=we,mn=Xt,gn=hr.exports,vn=tt,yn=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;return hn(r)&&gn(r,o,n),n.global?i?e[t]=r:vn(t,r):(n.unsafe?e[t]&&(i=!0):delete e[t],i?e[t]=r:mn.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})),e},bn={},xn=Math.ceil,wn=Math.floor,On=Math.trunc||function(e){var t=+e;return(t>0?wn:xn)(t)},An=function(e){var t=+e;return t!=t||0===t?0:On(t)},Sn=An,Cn=Math.max,En=Math.min,jn=An,Ln=Math.min,Rn=xe,Nn=function(e){return(t=e.length)>0?Ln(jn(t),9007199254740991):0;var t},Tn=function(e){return function(t,r,n){var i,o=Rn(t),a=Nn(o),c=function(e,t){var r=Sn(e);return r<0?Cn(r+t,0):En(r,t)}(n,a);if(e&&r!=r){for(;a>c;)if((i=o[c++])!=i)return!0}else for(;a>c;c++)if((e||c in o)&&o[c]===r)return e||c||0;return!e&&-1}},In={includes:Tn(!0),indexOf:Tn(!1)},Pn=dt,kn=xe,Mn=In.indexOf,zn=zr,_n=ae([].push),Fn=function(e,t){var r,n=kn(e),i=0,o=[];for(r in n)!Pn(zn,r)&&Pn(n,r)&&_n(o,r);for(;t.length>i;)Pn(n,r=t[i++])&&(~Mn(o,r)||_n(o,r));return o},Gn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vn=Fn,Dn=Gn.concat("length","prototype");bn.f=Object.getOwnPropertyNames||function(e){return Vn(e,Dn)};var Bn={};Bn.f=Object.getOwnPropertySymbols;var Hn=je,Wn=bn,Un=Bn,Yn=rr,Zn=ae([].concat),qn=Hn("Reflect","ownKeys")||function(e){var t=Wn.f(Yn(e)),r=Un.f;return r?Zn(t,r(e)):t},Kn=dt,$n=qn,Xn=D,Jn=Xt,Qn=function(e,t,r){for(var n=$n(t),i=Jn.f,o=Xn.f,a=0;a<n.length;a++){var c=n[a];Kn(e,c)||r&&Kn(r,c)||i(e,c,o(t,c))}},ei=B,ti=we,ri=/#|\.prototype\./,ni=function(e,t){var r=oi[ii(e)];return r==ci||r!=ai&&(ti(t)?ei(t):!!t)},ii=ni.normalize=function(e){return String(e).replace(ri,".").toLowerCase()},oi=ni.data={},ai=ni.NATIVE="N",ci=ni.POLYFILL="P",si=ni,li=V,ui=D.f,di=pr,fi=yn,pi=tt,hi=Qn,mi=si,gi=function(e,t){var r,n,i,o,a,c=e.target,s=e.global,l=e.stat;if(r=s?li:l?li[c]||pi(c,{}):(li[c]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=ui(r,n))&&a.value:r[n],!mi(s?n:c+(l?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;hi(o,i)}(e.sham||i&&i.sham)&&di(o,"sham",!0),fi(r,n,o,e)}},vi={},yi=Fn,bi=Gn,xi=Object.keys||function(e){return yi(e,bi)},wi=H,Oi=Jt,Ai=Xt,Si=rr,Ci=xe,Ei=xi;vi.f=wi&&!Oi?Object.defineProperties:function(e,t){Si(e);for(var r,n=Ci(t),i=Ei(t),o=i.length,a=0;o>a;)Ai.f(e,r=i[a++],n[r]);return e};var ji,Li=je("document","documentElement"),Ri=rr,Ni=vi,Ti=Gn,Ii=zr,Pi=Li,ki=Gt,Mi=Mr("IE_PROTO"),zi=function(){},_i=function(e){return"<script>"+e+"<\/script>"},Fi=function(e){e.write(_i("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gi=function(){try{ji=new ActiveXObject("htmlfile")}catch(e){}var e,t;Gi="undefined"!=typeof document?document.domain&&ji?Fi(ji):((t=ki("iframe")).style.display="none",Pi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_i("document.F=Object")),e.close(),e.F):Fi(ji);for(var r=Ti.length;r--;)delete Gi.prototype[Ti[r]];return Gi()};Ii[Mi]=!0;var Vi=Object.create||function(e,t){var r;return null!==e?(zi.prototype=Ri(e),r=new zi,zi.prototype=null,r[Mi]=e):r=Gi(),void 0===t?r:Ni.f(r,t)},Di=jt,Bi=Vi,Hi=Xt.f,Wi=Di("unscopables"),Ui=Array.prototype;null==Ui[Wi]&&Hi(Ui,Wi,{configurable:!0,value:Bi(null)});var Yi=function(e){Ui[Wi][e]=!0},Zi=In.includes,qi=Yi;gi({target:"Array",proto:!0,forced:B((function(){return!Array(1).includes()}))},{includes:function(e){return Zi(this,e,arguments.length>1?arguments[1]:void 0)}}),qi("includes");var Ki=H,$i=ae,Xi=Z,Ji=B,Qi=xi,eo=Bn,to=q,ro=st,no=me,io=Object.assign,oo=Object.defineProperty,ao=$i([].concat),co=!io||Ji((function(){if(Ki&&1!==io({b:1},io(oo({},"a",{enumerable:!0,get:function(){oo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=io({},e)[r]||Qi(io({},t)).join("")!=n}))?function(e,t){for(var r=ro(e),n=arguments.length,i=1,o=eo.f,a=to.f;n>i;)for(var c,s=no(arguments[i++]),l=o?ao(Qi(s),o(s)):Qi(s),u=l.length,d=0;u>d;)c=l[d++],Ki&&!Xi(a,s,c)||(r[c]=s[c]);return r}:io,so=co;gi({target:"Object",stat:!0,arity:2,forced:Object.assign!==so},{assign:so});const lo=["textSize","isRounded","isWide","customVariant"],uo=(0,n.Z)(u.Button,{shouldForwardProp:e=>!lo.includes(e),target:"esijqd70"})("&.components-button{font-size:",(({theme:e,textSize:t})=>t?e.sizes.text[t]:e.sizes.text.normal),";height:",(({textSize:e})=>e&&"auto"),";border-radius:",(({isRounded:e})=>e&&"12px"),";padding:",(({isWide:e})=>e&&"0.75rem 4rem"),";--wp-admin-theme-color:",(({theme:e,customVariant:t})=>"secondaryAccent"===t&&e.colors.secondary.base),";--wp-admin-theme-color-darker-10:",(({theme:e,customVariant:t})=>"secondaryAccent"===t&&e.colors.secondary.darker10),";--wp-admin-theme-color-darker-20:",(({theme:e,customVariant:t})=>"secondaryAccent"===t&&e.colors.secondary.darker20),";color:",(({theme:e,customVariant:t})=>"secondaryAccent"===t&&e.colors.text.dark),";&.is-primary:hover:not(:disabled),&.is-primary:active:not(:disabled),&.is-primary:disabled,&.is-primary:disabled:active:enabled,&.is-primary[aria-disabled='true'],&.is-primary[aria-disabled='true']:enabled,&.is-primary[aria-disabled='true']:active:enabled,&.is-primary.is-busy,&.is-primary.is-busy:disabled,&.is-primary.is-busy[aria-disabled='true']{color:",(({theme:e,customVariant:t})=>"secondaryAccent"===t&&e.colors.text.dark),";}}");function fo(e){return s(uo,Object.assign({},e,{variant:"secondaryAccent"===e.customVariant?"primary":e.customVariant||e.variant}),void 0)}var po={};po[jt("toStringTag")]="z";var ho="[object z]"===String(po),mo=we,go=ue,vo=jt("toStringTag"),yo=Object,bo="Arguments"==go(function(){return arguments}()),xo=ho?go:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=yo(e),vo))?r:bo?go(t):"Object"==(n=go(t))&&mo(t.callee)?"Arguments":n},wo=String,Oo=gi,Ao=H,So=V,Co=ae,Eo=dt,jo=we,Lo=Le,Ro=function(e){if("Symbol"===xo(e))throw TypeError("Cannot convert a Symbol value to a string");return wo(e)},No=Xt.f,To=Qn,Io=So.Symbol,Po=Io&&Io.prototype;if(Ao&&jo(Io)&&(!("description"in Po)||void 0!==Io().description)){var ko={},Mo=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Ro(arguments[0]),t=Lo(Po,this)?new Io(e):void 0===e?Io():Io(e);return""===e&&(ko[t]=!0),t};To(Mo,Io),Mo.prototype=Po,Po.constructor=Mo;var zo="Symbol(test)"==String(Io("test")),_o=Co(Po.toString),Fo=Co(Po.valueOf),Go=/^Symbol\((.*)\)[^)]+$/,Vo=Co("".replace),Do=Co("".slice);No(Po,"description",{configurable:!0,get:function(){var e=Fo(this),t=_o(e);if(Eo(ko,e))return"";var r=zo?Do(t,7,-1):Vo(t,Go,"$1");return""===r?void 0:r}}),Oo({global:!0,constructor:!0,forced:!0},{Symbol:Mo})}var Bo,Ho,Wo,Uo={},Yo=!B((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Zo=dt,qo=we,Ko=st,$o=Yo,Xo=Mr("IE_PROTO"),Jo=Object,Qo=Jo.prototype,ea=$o?Jo.getPrototypeOf:function(e){var t=Ko(e);if(Zo(t,Xo))return t[Xo];var r=t.constructor;return qo(r)&&t instanceof r?r.prototype:t instanceof Jo?Qo:null},ta=B,ra=we,na=ea,ia=yn,oa=jt("iterator"),aa=!1;[].keys&&("next"in(Wo=[].keys())?(Ho=na(na(Wo)))!==Object.prototype&&(Bo=Ho):aa=!0);var ca=null==Bo||ta((function(){var e={};return Bo[oa].call(e)!==e}));ca&&(Bo={}),ra(Bo[oa])||ia(Bo,oa,(function(){return this}));var sa={IteratorPrototype:Bo,BUGGY_SAFARI_ITERATORS:aa},la=Xt.f,ua=dt,da=jt("toStringTag"),fa=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ua(e,da)&&la(e,da,{configurable:!0,value:t})},pa=sa.IteratorPrototype,ha=Vi,ma=ee,ga=fa,va=Uo,ya=function(){return this},ba=we,xa=String,wa=TypeError,Oa=ae,Aa=rr,Sa=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Oa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Aa(r),function(e){if("object"==typeof e||ba(e))return e;throw wa("Can't set "+xa(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ca=gi,Ea=Z,ja=we,La=ea,Ra=Sa,Na=fa,Ta=pr,Ia=yn,Pa=Uo,ka=xr.PROPER,Ma=xr.CONFIGURABLE,za=sa.IteratorPrototype,_a=sa.BUGGY_SAFARI_ITERATORS,Fa=jt("iterator"),Ga="keys",Va="values",Da="entries",Ba=function(){return this},Ha=xe,Wa=Yi,Ua=Uo,Ya=en,Za=Xt.f,qa=H,Ka="Array Iterator",$a=Ya.set,Xa=Ya.getterFor(Ka),Ja=function(e,t,r,n,i,o,a){!function(e,t,r,n){var i=t+" Iterator";e.prototype=ha(pa,{next:ma(+!n,r)}),ga(e,i,!1),va[i]=ya}(r,t,n);var c,s,l,u=function(e){if(e===i&&m)return m;if(!_a&&e in p)return p[e];switch(e){case Ga:case Va:case Da:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[Fa]||p["@@iterator"]||i&&p[i],m=!_a&&h||u(i),g="Array"==t&&p.entries||h;if(g&&(c=La(g.call(new e)))!==Object.prototype&&c.next&&(La(c)!==za&&(Ra?Ra(c,za):ja(c[Fa])||Ia(c,Fa,Ba)),Na(c,d,!0)),ka&&i==Va&&h&&h.name!==Va&&(Ma?Ta(p,"name",Va):(f=!0,m=function(){return Ea(h,this)})),i)if(s={values:u(Va),keys:o?m:u(Ga),entries:u(Da)},a)for(l in s)(_a||f||!(l in p))&&Ia(p,l,s[l]);else Ca({target:t,proto:!0,forced:_a||f},s);return p[Fa]!==m&&Ia(p,Fa,m,{name:i}),Pa[t]=m,s}(Array,"Array",(function(e,t){$a(this,{type:Ka,target:Ha(e),index:0,kind:t})}),(function(){var e=Xa(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Qa=Ua.Arguments=Ua.Array;if(Wa("keys"),Wa("values"),Wa("entries"),qa&&"values"!==Qa.name)try{Za(Qa,"name",{value:"values"})}catch(e){}var ec,tc,rc,nc,ic,oc=Gt("span").classList,ac=oc&&oc.constructor&&oc.constructor.prototype,cc=ac===Object.prototype?void 0:ac,sc=V,lc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},uc=cc,dc=Ja,fc=pr,pc=jt,hc=pc("iterator"),mc=pc("toStringTag"),gc=dc.values,vc=function(e,t){if(e){if(e[hc]!==gc)try{fc(e,hc,gc)}catch(t){e[hc]=gc}if(e[mc]||fc(e,mc,t),lc[t])for(var r in dc)if(e[r]!==dc[r])try{fc(e,r,dc[r])}catch(t){e[r]=dc[r]}}};for(var yc in lc)vc(sc[yc]&&sc[yc].prototype,yc);vc(uc,"DOMTokenList"),function(e){e.DARK="dark",e.MUTED="muted",e.ACCENT="accent",e.NORMAL="normal",e.WHITE="white",e.DANGER="danger",e.WARNING="warning",e.INFO="info",e.SUCCESS="success"}(ec||(ec={})),function(e){e.GIGANTIC="gigantic",e.HUGE="huge",e.EXTRA_LARGE="extraLarge",e.LARGE="large",e.NORMAL="normal",e.SMALL="small"}(tc||(tc={})),function(e){e[e.HEAVY=600]="HEAVY",e[e.NORMAL=400]="NORMAL",e[e.LIGHT=300]="LIGHT"}(rc||(rc={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.PRIMARY_ACCENT="primaryAccent",e.DANGER="danger",e.WARNING="warning",e.INFO="info",e.SUCCESS="success"}(nc||(nc={})),function(e){e.HUGE="huge",e.WIDE="wide",e.XLARGE="xlarge",e.LARGE="large",e.MEDIUM="medium",e.SMALL="small",e.MOBILE="mobile"}(ic||(ic={}));const bc=(0,n.Z)("div",{target:"epu5adf0"})("background-color:",(({theme:e,variant:t})=>t?e.colors.surface[t]:e.colors.surface.primary),";"),xc=(0,R.createContext)(void 0);function wc(e){const{components:{surface:t}}=(0,i.u)(),{variant:r=nc.PRIMARY}=e,n=(0,R.useMemo)((()=>({variant:r,textVariant:t.variant[r]})),[r,t.variant]);return s(xc.Provider,Object.assign({value:n},{children:s(bc,Object.assign({},e),void 0)}),void 0)}const Oc=(0,n.Z)("div",{target:"e5g6tmc1"})("display:",(({hasIcon:e})=>e?"flex":"block"),";gap:",(({hasIcon:e})=>e&&"0.25rem"),";align-items:center;margin:0;line-height:calc(2px + 2ex + 2px);color:",(({theme:{colors:e},variant:t})=>e.text[t]),";font-size:",(({theme:{sizes:e},size:t})=>e.text[t]),";font-weight:",(({weight:e})=>e),";text-align:",(({align:e,hasIcon:t})=>!t&&e),";justify-content:",(({align:e,hasIcon:t})=>t&&e),";"),Ac=(0,n.Z)(u.Icon,{shouldForwardProp:e=>"iconColor"!==e,target:"e5g6tmc0"})("flex-shrink:0;width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:",(({theme:e,iconColor:t,variant:r})=>t||e.colors.text[r]),";");function Sc(e){const{components:{heading:t}}=(0,i.u)(),r=(0,R.useContext)(xc),n=e.variant||(null==r?void 0:r.textVariant)||t.variants[e.level],o=e.size||t.sizes[e.level],a=e.weight||t.weights[e.level],c="h"+e.level;return l(Oc.withComponent(c,{target:"e5g6tmc2"}),Object.assign({weight:a,variant:n,size:o,hasIcon:!!e.icon,className:L("it-ui-heading",e.className),align:e.align||"left"},{children:[e.icon&&s(Ac,{icon:e.icon,size:e.iconSize,variant:n,iconColor:e.iconColor},void 0),e.text,e.children]}),void 0)}const Cc=(0,n.Z)("span",{target:"e19li2x11"})("margin:0;color:",(({theme:e,variant:t})=>t?e.colors.text[t]:e.colors.text.normal),";font-size:",(({theme:e,size:t})=>t?e.sizes.text[t]:e.sizes.text.normal),";font-weight:",(({weight:e})=>e),";display:",(({icon:e,as:t})=>e&&("span"===t?"inline-flex":"flex")),";align-items:",(({icon:e})=>e&&"center"),";text-align:",(({align:e,icon:t})=>!t&&e),";justify-content:",(({align:e,icon:t})=>t&&e),";"),Ec=(0,n.Z)(u.Icon,{shouldForwardProp:e=>"iconPosition"!==e&&"hasText"!==e,target:"e19li2x10"})("flex-shrink:0;width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:currentColor;margin:",(({iconPosition:e,hasText:t})=>t&&("left"===e?"0 0.5rem 0 0":"0 0 0 0.5rem")),";");function jc({variant:e,size:t=tc.NORMAL,as:r="span",weight:n,text:i,align:o="left",icon:a,iconSize:c=24,iconPosition:u="left",className:d,children:f}){const p=Cc.withComponent(r,{target:"e19li2x12"}),h=a&&s(Ec,{icon:a,size:c,iconPosition:u,hasText:void 0!==i||void 0!==f},void 0),m=(0,R.useContext)(xc);return l(p,Object.assign({variant:e||(null==m?void 0:m.textVariant)||ec.NORMAL,size:t,weight:n,align:o,as:r,icon:a,iconPosition:u,className:L("it-ui-text",d,{"it-ui-text--has-icon":!!h})},{children:["left"===u&&h,i,f,"right"===u&&h]}),void 0)}const Lc=(0,R.createContext)({variant:"primary"});function Rc({heading:e,description:t,icon:r}){const{variant:n}=(0,R.useContext)(Lc);return l(c,{children:[s(Sc,{level:3,text:e,icon:r,variant:"primary"===n?ec.DARK:ec.ACCENT},void 0),s(jc,{text:t,as:"p"},void 0)]},void 0)}const Nc=(0,n.Z)(u.Card,{target:"e8tjnus1"})("&.components-card{background:",(({theme:e,variant:t})=>"secondary"===t?e.colors.surface.secondary:e.colors.surface.primary),";}"),Tc=(0,n.Z)(u.CardBody,{target:"e8tjnus0"})("display:",(({isColumn:e})=>e?"flex":"grid"),";flex-direction:column;grid-auto-flow:column;grid-auto-columns:1fr;grid-template-rows:auto auto;grid-gap:0 2rem;.it-ui-heading{padding-top:",(({isColumn:e})=>!e&&"0.5rem"),";padding-bottom:1rem;&:not(:first-of-type){padding-top:",(({isColumn:e})=>e?"1rem":"0.5rem"),";margin-top:",(({isColumn:e})=>e&&"1rem"),";border-top:",(({theme:e,isColumn:t})=>t&&`1px solid ${e.colors.border.normal}`),";}}p{padding-bottom:",(({isColumn:e})=>!e&&"0.5rem"),";}.it-ui-heading:not(:last-of-type),p:not(:last-of-type){position:relative;&:after{content:",(({isColumn:e})=>!e&&"' '"),";background:",(({theme:e})=>e.colors.border.normal),";width:1px;height:100%;position:absolute;right:-1rem;display:block;top:0;bottom:0;}}");function Ic({children:e,variant:t="primary",className:r}){const[n,i]=(0,N.useResizeObserver)(),o=null!==i.width&&i.width<=600;return s(Lc.Provider,Object.assign({value:{variant:t}},{children:l(Nc,Object.assign({variant:t,className:L("it-ui-callout",r)},{children:[n,s(Tc,Object.assign({isColumn:o},{children:e}),void 0)]}),void 0)}),void 0)}const Pc=(0,R.createContext)({}),kc=(0,n.Z)("ul",{target:"eroy0ha2"})({name:"z06qs",styles:"list-style:none;margin:0;padding:0"}),Mc=(0,n.Z)("li",{target:"eroy0ha1"})("display:",(({icon:e})=>e?"grid":"block"),";grid-template-columns:",(({iconSize:e})=>e+"px")," auto;gap:0.25rem;padding:0;margin:0 0 calc(",(({gap:e})=>e||2)," * 0.25rem) 0;&:last-of-type{margin-bottom:0;}span{line-height:",(({icon:e,iconSize:t})=>e&&t+"px"),";}"),zc=(0,n.Z)(u.Icon,{shouldForwardProp:e=>"iconColor"!==e,target:"eroy0ha0"})("width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:",(({theme:e,iconColor:t})=>t||e.colors.primary.base),";");function _c(e){const t=(0,R.useContext)(Pc),r=Object.assign(Object.assign({},t),function(e){const t=Object.create(null);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&void 0!==e[r]&&(t[r]=e[r]);return t}(e)),n=r.icon&&s(zc,{icon:r.icon,size:r.iconSize,iconColor:r.iconColor},void 0),i=e.text&&s(jc,{text:e.text,variant:r.textVariant,size:r.textSize,weight:r.textWeight},void 0);return l(Mc,Object.assign({},t,e,{children:[n,i,e.children]}),void 0)}function Fc(e){const{className:t,icon:r,iconSize:n=24,iconColor:i,textVariant:o,textSize:a=tc.NORMAL,textWeight:c=rc.NORMAL,gap:l=2,children:u}=e,d=(0,R.useContext)(xc),f=o||(null==d?void 0:d.textVariant)||ec.NORMAL,p=(0,R.useMemo)((()=>({icon:r,iconSize:n,iconColor:i,textVariant:f,textSize:a,textWeight:c,gap:l})),[r,n,i,f,a,c,l]);return s(Pc.Provider,Object.assign({value:p},{children:s(kc,Object.assign({},e,{className:L("it-ui-list",t)},{children:u}),void 0)}),void 0)}const Gc=(0,n.Z)(u.Card,{target:"ey1he6v0"})({name:"197hbr1",styles:"&.components-card{width:320px;border-radius:16px;}>div{display:flex;flex-direction:column;}header{display:flex;align-items:center;img{width:40px;margin:0 1rem 0 0;}}h3{margin:0.5rem 0;}.it-ui-list{margin:0.5rem 0;}figure{display:flex;height:130px;align-items:center;justify-content:center;margin:0;padding:1rem;background:#f8f8f8;img{max-width:100%;max-height:100%;}}.components-card-body{display:flex;flex-direction:column;align-items:stretch;&:last-of-type{flex-grow:1;}}.components-button{width:90%;margin-top:0.5rem;align-self:center;justify-content:center;}"});function Vc(e){const{heading:t,subheading:r,iconSrc:n,imageSrc:i,imageAlt:o,features:a,buttonText:c,buttonHref:d,className:f}=e;return l(Gc,Object.assign({},e,{className:L("it-ui-feature-card",f)},{children:[s(u.CardBody,{children:l("header",{children:[n&&s("img",{src:n,alt:"","aria-hidden":!0},void 0),s(Sc,{text:t,level:2,size:tc.NORMAL,variant:ec.DARK,weight:rc.HEAVY},void 0)]},void 0)},void 0),s("figure",{children:s("img",{src:i,alt:o},void 0)},void 0),l(u.CardBody,{children:[s(Sc,{text:r,level:3,size:tc.NORMAL,variant:ec.DARK,weight:rc.HEAVY},void 0),s(Fc,Object.assign({icon:M.Z,textVariant:ec.MUTED},{children:a.map(((e,t)=>s(_c,{text:e},t)))}),void 0),s("div",{"aria-hidden":!0,style:{flexGrow:1}},void 0),s(fo,{text:c,href:d,customVariant:"primary",isRounded:!0,isWide:!0,textSize:tc.LARGE},void 0)]},void 0)]}),void 0)}const Dc=(0,n.Z)(u.Card,{target:"enj8ncp0"})("&.components-card{width:320px;border-radius:16px;background-color:",(({theme:{colors:e},variant:t})=>"secondary"===t?e.surface.secondary:e.surface.primary),";}&>div{display:flex;flex-direction:column;}.components-card-body{display:flex;flex-direction:column;align-items:stretch;flex-grow:1;}.it-ui-heading,.it-ui-list,p{margin:0.75rem 0;}sup{font-size:0.5em;}.components-button{width:90%;margin-top:0.5rem;margin-bottom:1rem;align-self:center;justify-content:center;}");function Bc(e){const{description:t,features:r,heading:n,price:i,variant:o="primary",buttonText:a,buttonHref:c,className:d}=e;return s(Dc,Object.assign({},e,{className:L("it-ui-pricing-card",d),elevation:5},{children:l(u.CardBody,{children:[s(Sc,{level:2,size:tc.GIGANTIC,variant:"primary"===o?ec.DARK:ec.ACCENT,weight:rc.HEAVY,text:n},void 0),l(Sc,Object.assign({level:3,size:tc.GIGANTIC,variant:ec.NORMAL,weight:rc.HEAVY},{children:[s("sup",{children:"$"},void 0),i]}),void 0),s(jc,{text:t,as:"p"},void 0),s("div",{"aria-hidden":!0,style:{flexGrow:1}},void 0),s(Fc,Object.assign({icon:M.Z,textVariant:ec.DARK,textWeight:rc.HEAVY},{children:r.map((({text:e,variant:t},r)=>s(_c,{text:e,textVariant:t},r)))}),void 0),s(fo,{text:a,href:c,customVariant:"primary"===o?"secondaryAccent":"primary",isRounded:!0,isWide:!0,textSize:tc.EXTRA_LARGE},void 0)]},void 0)}),void 0)}const Hc=(0,n.Z)("div",{target:"e6ae9c80"})("display:flex;align-items:stretch;flex-wrap:nowrap;justify-content:center;height:40px;border-radius:2px;border:1px solid transparent;@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:30px;}.components-base-control{flex-grow:1;}.components-base-control__field{height:100%;margin-bottom:0;}.components-text-control__input{height:100%;margin:0;&:focus{box-shadow:none;outline:none;}}.components-button{height:auto;&:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);}}.components-spinner{margin:1px -1px;}.it-ui-text{display:flex;align-items:center;height:40px;padding:6px 10px;background:",(({theme:e,surfaceVariant:t})=>e.colors.surface[t]),";border:1px solid ",(({theme:e})=>e.colors.border.input),";@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:30px;}&.it-ui-text--has-icon{padding:3px 5px;}&>*{margin:0;}}>*:first-child,>*:first-child .components-text-control__input{border-radius:2px 0 0 2px;border-right:",(({omitSeparators:e})=>(!0===e||"left"===e)&&"none"),";}>*:last-child,>*:last-child .components-text-control__input{border-radius:0 2px 2px 0;border-left:",(({omitSeparators:e})=>(!0===e||"right"===e)&&"none"),";}.components-base-control:first-child .components-text-control__input{border-right:none;}.components-base-control:last-child .components-text-control__input{border-left:none;}.components-base-control:not(:first-child):not(:last-child) .components-text-control__input{border-left:none;border-right:none;border-radius:0;}&:focus-within{border-color:white;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent;.it-ui-text{&:first-child{border-right-color:var(--wp-admin-theme-color);}&:last-child{border-left-color:var(--wp-admin-theme-color);}}}");function Wc({children:e,className:t,omitSeparators:r=!1,surfaceVariant:n=nc.PRIMARY}){return s(Hc,Object.assign({className:L("it-ui-input-group",t),surfaceVariant:n,omitSeparators:r},{children:e}),void 0)}var Uc;!function(e){e[e.INITIAL=0]="INITIAL",e[e.SEARCHING=1]="SEARCHING",e[e.CLEARABLE=2]="CLEARABLE",e[e.SUBMITTABLE=3]="SUBMITTABLE"}(Uc||(Uc={}));const Yc=(0,R.forwardRef)(((e,t)=>{const{isSearching:r,className:n,value:i,onChange:o,onCancel:a,onSubmit:c,surfaceVariant:d,omitSeparators:f}=e,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["isSearching","className","value","onChange","onCancel","onSubmit","surfaceVariant","omitSeparators"]),h=(0,R.useRef)(null),m=(0,N.useMergeRefs)([h,t]),g=()=>{var e;null===(e=h.current)||void 0===e||e.focus(),r&&a?a():o("")},v=(({isSearching:e,value:t,onCancel:r,onSubmit:n})=>{const i=t.length>0;return!e&&i&&n?Uc.SUBMITTABLE:!i||e&&!r?e?Uc.SEARCHING:Uc.INITIAL:Uc.CLEARABLE})(e);return l(Wc,Object.assign({className:L("it-ui-search-control",n),surfaceVariant:d,omitSeparators:f},{children:[s(u.TextControl,Object.assign({value:i,onChange:o,onKeyUp:({keyCode:e})=>e===z.ESCAPE&&g(),hideLabelFromVision:!0},p,{ref:m}),void 0),v===Uc.INITIAL&&s(jc,{icon:I},void 0),v===Uc.SEARCHING&&s(jc,{children:s(u.Spinner,{},void 0)},void 0),v===Uc.CLEARABLE&&s(fo,{icon:P,variant:"secondary",onClick:g,label:(0,_.__)("Cancel Search","better-wp-security")},void 0),v===Uc.SUBMITTABLE&&s(fo,{icon:k,variant:"primary",onClick:()=>{var e;null===(e=h.current)||void 0===e||e.focus(),null==c||c()},label:(0,_.__)("Submit Search","better-wp-security")},void 0)]}),void 0)}));(0,n.Z)("span",{target:"eebqy5t0"})("display:inline-flex;align-items:center;justify-content:center;font-size:",(({theme:e,textSize:t})=>e.sizes.text[t]),";font-weight:",rc.HEAVY,";color:",(({textColor:e})=>e),";border-radius:50%;width:calc(",(({theme:e,textSize:t})=>e.sizes.text[t])," * 2);height:calc(",(({theme:e,textSize:t})=>e.sizes.text[t])," * 2);background:",(({backgroundColor:e})=>e),";border:",(({addOutline:e,textColor:t})=>e&&`1px solid ${t}`),";"),(0,n.Z)("span",{target:"ew0iuyz5"})("display:flex;flex-direction:column;flex-shrink:0;align-items:center;flex:",(({justifyChildren:e})=>"center"===e&&"1 0 0"),";margin-right:",(({justifyChildren:e})=>"center"!==e&&"1rem"),";"),(0,n.Z)("div",{target:"ew0iuyz3"})("display:flex;flex-direction:column;flex-grow:",(({justifyChildren:e})=>"center"===e&&2),";gap:calc(",(({gap:e})=>e)," * 0.25rem);&>:nth-last-child(2){margin-bottom:",(({hasLink:e})=>e&&"0.5rem"),";}"),(0,n.Z)("a",{target:"ew0iuyz1"})("color:",(({theme:e,surfaceVariant:t})=>e.colors.text[e.components.surface.variant[t]]),";text-decoration:underline;&:hover{opacity:0.9;text-decoration-style:dashed;color:",(({theme:e,surfaceVariant:t})=>e.colors.text[e.components.surface.variant[t]]),";}"),(0,n.Z)("div",{target:"ew0iuyz0"})({name:"73nvea",styles:"flex:1 0 0"});const Zc={colors:{primary:{base:"#0081E3",darker10:"#0064b0",darker20:"#00477d"},secondary:{base:"#FBD440",darker10:"#F1CA36",darker20:"#E7C02C"},text:{dark:"#0A1A23",normal:"#71747d",muted:"#878787",accent:"#0081E3",white:"#FFFFFF",danger:"#551515",warning:"#A9582E",info:"#005169",success:"#237739"},border:{normal:"#dddddd",input:"#757575"},surface:{primary:"#FFFFFF",secondary:"#EDF5F9",tertiary:"#E5EAEE",primaryAccent:"#008CCE",danger:"#F7ABAB",warning:"#FDDDCD",info:"#ECFAFF",success:"#DDF1E2"}},sizes:{text:{gigantic:"2.25rem",huge:"1.6rem",extraLarge:"1.25rem",large:"1rem",normal:"0.8125rem",small:"0.6rem"}},breaks:{huge:1440,wide:1280,xlarge:1080,large:960,medium:783,small:600,mobile:480},components:{heading:{sizes:{1:tc.HUGE,2:tc.EXTRA_LARGE,3:tc.LARGE,4:tc.LARGE,5:tc.NORMAL,6:tc.NORMAL},variants:{1:ec.DARK,2:ec.NORMAL,3:ec.NORMAL,4:ec.NORMAL,5:ec.NORMAL,6:ec.NORMAL},weights:{1:rc.HEAVY,2:rc.NORMAL,3:rc.NORMAL,4:rc.NORMAL,5:rc.NORMAL,6:rc.NORMAL}},surface:{variant:{[nc.PRIMARY]:ec.NORMAL,[nc.SECONDARY]:ec.NORMAL,[nc.TERTIARY]:ec.NORMAL,[nc.PRIMARY_ACCENT]:ec.WHITE,[nc.DANGER]:ec.DANGER,[nc.WARNING]:ec.WARNING,[nc.INFO]:ec.INFO,[nc.SUCCESS]:ec.SUCCESS}}}}},27418:e=>{var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,c,s=i(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))r.call(a,u)&&(s[u]=a[u]);if(t){c=t(a);for(var d=0;d<c.length;d++)n.call(a,c[d])&&(s[c[d]]=a[c[d]])}}return s}},75251:(e,t,r)=>{r(27418);var n=r(99196),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,o={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,n)&&!s.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:a.current}}t.jsx=l,t.jsxs=l},85893:(e,t,r)=>{e.exports=r(75251)}}]);
dist/15.js.LICENSE.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
dist/155.css ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .itsec-log-modal .components-modal__frame{min-width:80%;height:100%}.itsec-log-modal .itsec-log-modal__content{margin:2em 1em}.itsec-log-modal .itsec-log-modal__content .itsec-log-raw-details-toggle{display:none}.itsec-log-modal .itsec-log-modal__content tr:first-child th,.itsec-log-modal .itsec-log-modal__content tr:first-child td{margin-top:0;padding-top:0}
2
+ .itsec-site-scan-results h4{margin-top:5px}.itsec-site-scan-results .itsec-site-scan-details pre{background-color:#eaeaea;padding:1em;white-space:pre-wrap}.itsec-site-scan-results .itsec-site-scan-results-section{border:1px solid #ddd;border-bottom-color:rgba(0,0,0,0);padding:1em}.itsec-site-scan-results .itsec-site-scan-results-section>p{margin:0}.itsec-site-scan-results .itsec-site-scan-results-section:last-child{border-bottom-color:#ddd}.itsec-site-scan-results .itsec-site-scan__status{display:inline-block;padding:2px 6px;color:#fff;margin-right:1em;width:60px;text-align:center}.itsec-site-scan-results .itsec-site-scan__status.itsec-site-scan__status--clean{background:#7ad03a}.itsec-site-scan-results .itsec-site-scan__status.itsec-site-scan__status--warn{background:#dd3d36}.itsec-site-scan-results .itsec-site-scan__status.itsec-site-scan__status--error{background:#dd3d36}.itsec-site-scan-results .itsec-site-scan__details ul{margin-left:2.5em;list-style:disc outside}.itsec-site-scan-results .itsec-site-scan__details .itsec-site-scan__detail{width:100%;margin-bottom:.25em;padding-bottom:.5em;color:inherit;border-bottom:1px solid #ddd}.itsec-site-scan-results .itsec-site-scan__details .itsec-site-scan__detail:last-child{border:none}.itsec-site-scan-results .itsec-site-scan__details .itsec-site-scan__detail.itsec-site-scan__detail--warn{color:#dd3d36}.itsec-site-scan-results .itsec-site-scan__details .itsec-site-scan__detail.itsec-site-scan__detail--error{color:#dd3d36}.itsec-site-scan-results .itsec-site-scan__details .itsec-site-scan__detail.itsec-site-scan__detail--clean{color:#7ad03a}.itsec-site-scan-results .itsec-site-scan__details .itsec-site-scan__detail span{color:#444}.itsec-site-scan-results .itsec-site-scan-toggle-details{margin-left:1em}
3
+ .itsec-component-print-r{background:#f1f1f1;overflow:scroll;padding:1em;color:#000;font-family:"Courier New",Courier,monospace;font-size:12px;white-space:pre-wrap;text-align:left;max-width:100%}
4
+ .itsec-close-button.components-button.has-icon{padding:0;height:20px;position:absolute;right:1em;top:1em}.itsec-close-button.components-button.has-icon:hover{opacity:.5;box-shadow:none !important}.components-popover.is-mobile .itsec-close-button.components-button.has-icon{display:none}
5
+ .itsec-loader{margin:0 auto;display:flex;align-items:center;justify-content:center;height:100%}.itsec-loader svg{animation:itsec-loader__grow 3s infinite ease-in}@keyframes itsec-loader__grow{0%{transform:scale(0)}100%{transform:scale(1);opacity:0}}
6
+ .itsec-spinner{width:var(--itsec-size, 40px);height:var(--itsec-size, 40px);position:relative}.itsec-spinner *{width:100%;height:100%;border-radius:50%;background-color:var(--itsec-color, #71747d);opacity:.6;position:absolute;top:0;left:0;animation:itsec-spinner-bounce 2s infinite ease-in-out;transition:opacity 400ms}.itsec-spinner *:nth-child(2){animation-delay:-1s}.itsec-spinner.itsec-spinner--paused *{animation-play-state:paused;opacity:0}@keyframes itsec-spinner-bounce{0%,100%{transform:scale(0)}45%,55%{transform:scale(1)}}
7
+ .components-base-control>ul.components-hierarchical-checkbox-control__group{padding-left:0}ul.components-hierarchical-checkbox-control__group{padding-left:1em;margin:0}.components-hierarchical-checkbox-control__group .components-hierarchical-checkbox-control__option{list-style-type:none}.components-hierarchical-checkbox-control__group .components-hierarchical-checkbox-control__option:last-child{margin-bottom:0}.components-hierarchical-checkbox-control__option--has-children{margin-bottom:1em}.components-hierarchical-checkbox-control__option--has-children>.components-base-control{font-weight:bold}
8
+ .itsec-module-settings-notice-list .notice .notice__action{margin-left:.5em}.itsec-module-settings-notice-list{position:relative;padding-bottom:1em;font-size:13px}.itsec-module-settings-notice-list:empty{display:none}.itsec-module-settings-content .components-editor-notices__snackbar{position:fixed;bottom:100px;padding-left:16px;padding-right:16px;width:max-content}.itsec-module-settings-content .components-snackbar{width:max-content}
9
+ .components-checkbox-control__input[type=checkbox].components-checkbox-control__input--indeterminate{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox].components-checkbox-control__input--indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox].components-checkbox-control__input--indeterminate::before{content:none}
10
+ .itsec-chip-control{position:relative}.itsec-chip-control input{opacity:0;position:absolute;width:100%;height:100%}.itsec-chip-control label{display:inline-flex;align-items:center;color:#0081e3;background:#fff;border:1px solid #0081e3;border-radius:12px;padding:2px 8px}.itsec-chip-control label:after{content:"";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in;color:#fff;background:#0081e3;margin-left:4px;margin-right:-5px;border-radius:10px}.itsec-chip-control input:checked+label{color:#fff;background:#0081e3;border-color:rgba(0,0,0,0)}.itsec-chip-control input:checked+label:after{content:"";color:#0081e3;background:#fff}.itsec-chip-control input:focus+label{box-shadow:inset 0 0 0 1px #fff,0 0 0 2px var(--wp-admin-theme-color);outline:3px solid rgba(0,0,0,0);border-color:#fff}
11
+ .itsec-tab-panel--styled .components-tab-panel__tabs{display:grid;grid-gap:.5rem;grid-template-columns:1fr 1fr;align-items:stretch;justify-content:flex-start;border-bottom:1px solid #e2e4e7;box-sizing:content-box;padding:16px 24px}@media(min-width: 600px){.itsec-tab-panel--styled .components-tab-panel__tabs{display:flex;padding-top:0;padding-bottom:0}}.itsec-tab-panel__tab.components-button{cursor:pointer;font-weight:600;justify-content:center;align-items:center;outline-offset:-1px;border-radius:0;color:#71747d;padding:6px 12px;height:auto;margin:0}.itsec-tab-panel__tab.components-button:hover,.itsec-tab-panel__tab.components-button:focus{box-shadow:none !important;outline:none}.itsec-tab-panel__tab.components-button.is-active,.itsec-tab-panel__tab.components-button:hover{color:#fff;background:#0081e3;border-radius:2px}@media(min-width: 600px){.itsec-tab-panel__tab.components-button{border-bottom:2px solid rgba(0,0,0,0);padding:10px 0;margin:0 12px -1.5px;text-transform:uppercase}.itsec-tab-panel__tab.components-button:first-child{margin-left:0}.itsec-tab-panel__tab.components-button.is-active,.itsec-tab-panel__tab.components-button:hover{color:#0081e3;border-bottom-color:#0081e3;background:none}}
12
+ .itsec-tree .components-base-control__label{margin-bottom:8px}.itsec-tree [role=tree]{margin:0}.itsec-tree [role=tree] [role=group]{display:none}.itsec-tree [role=tree] [aria-expanded=true]>[role=group]{display:block}.itsec-tree [role=tree] ul{margin-left:1rem}.itsec-tree [role=tree] [aria-selected=true]>span{background:#dcebf3}
13
+ .itsec-accordion .itsec-accordion__panel{display:none}.itsec-accordion .itsec-accordion__header--is-expanded+.itsec-accordion__panel{display:block}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header{margin:0;padding:0}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header:not(:last-child){border-bottom:1px solid #e5eaee}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .components-button{display:grid;grid-template-areas:"toggle title graphic" "description description description";grid-template-columns:min-content auto min-content;justify-content:stretch;grid-gap:0 .25rem;padding:.5rem;background:#fff;height:auto;width:100%;color:#bfbfbf;border:2px solid rgba(0,0,0,0);transition:none}@media(min-width: 600px){.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .components-button{display:flex;padding:1rem 1rem 1rem .25rem}}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .components-button:focus{box-shadow:none;border-color:var(--wp-admin-theme-color)}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-accordion__header-title{grid-area:title;font-size:1rem;line-height:1.4;font-weight:700;color:#71747d;width:auto;text-align:left;padding-right:.75rem}@media(min-width: 600px){.itsec-accordion--has-description.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-accordion__header-title{width:180px}}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-accordion__header-description{grid-area:description;color:#71747d;text-align:left;font-size:1rem;width:100%}@media(min-width: 600px){.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-accordion__header-description{width:min-content;flex-grow:1}}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header.itsec-accordion__header--has-graphic .itsec-accordion__header-description{padding-right:.75rem}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .dashicon:first-child{grid-area:toggle}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .components-spinner,.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-spinner,.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-accordion__header-icon{grid-area:graphic;margin:0 0 0 auto;flex-shrink:0}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header .itsec-accordion__header-icon{font-size:30px;width:30px;height:30px}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header.itsec-accordion__header--is-expanded .itsec-accordion__header-title,.itsec-accordion.itsec-accordion--styled .itsec-accordion__header:hover .itsec-accordion__header-title{color:#0a1a23}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header:hover:not(.itsec-accordion__header--is-expanded) .components-button .dashicon:first-child{transform:rotate(-90deg)}.itsec-accordion.itsec-accordion--styled .itsec-accordion__header.itsec-accordion__header--is-expanded .components-button,.itsec-accordion.itsec-accordion--styled .itsec-accordion__header.itsec-accordion__header--is-expanded .components-button:focus{z-index:2;box-shadow:0 2px 6px rgba(0,0,0,.25)}.itsec-accordion.itsec-accordion--styled .itsec-accordion__panel--is-expanded+.itsec-accordion__header{border-top:1px solid #e5eaee}.itsec-accordion.itsec-accordion--styled .itsec-accordion__panel--is-expanded+.itsec-accordion__header .components-button,.itsec-accordion.itsec-accordion--styled .itsec-accordion__panel--is-expanded+.itsec-accordion__header .components-button:focus{z-index:2;box-shadow:0 2px 6px rgba(0,0,0,.25);clip-path:inset(-6px 0 0 0)}.itsec-accordion.itsec-accordion--styled .itsec-accordion__panel--is-expanded{padding:1rem calc(32px + .25rem)}
14
+ .itsec-icon-popover__trigger.components-button.has-icon{height:auto;margin:0 4px;padding:0 !important;min-width:0}.itsec-icon-popover__trigger.components-button.has-icon .dashicon{margin:0}.itsec-icon-popover.components-popover:not(.is-without-arrow)::after{border-bottom-color:#0081e3}.itsec-icon-popover.components-popover .components-popover__content{min-width:300px;border-top:8px solid #0081e3}.itsec-icon-popover.components-popover .components-popover__content p{margin:0;padding:.5rem}
15
+ .itsec-help-popover.components-popover .components-popover__content footer{padding:.5rem;font-size:.6rem;border-top:1px solid #e5eaee;text-align:right}.itsec-help-popover.components-popover .components-popover__content .components-button{height:auto;margin:0;padding:0}.itsec-help-popover.components-popover .components-popover__content .components-button .dashicon{margin-right:0}.itsec-help-popover.components-popover .components-popover__content .components-button:focus{outline:none;box-shadow:none}
16
+ @media(min-width: 600px){.itsec-help-list-section.components-surface>div,.itsec-help-list-section:not(.components-surface){display:grid;grid-template-columns:165px auto;min-height:200px}}.itsec-help-list-section header{z-index:2}.itsec-help-list-section header a{padding:1rem;color:#71747d;height:100%;display:flex;align-items:center;justify-content:center;text-decoration:none;border-bottom:1px solid #e5eaee}@media(min-width: 600px){.itsec-help-list-section header a{padding:.5rem;flex-direction:column;border-bottom:none;border-right:1px solid #e5eaee}}.itsec-help-list-section header a .itsec-help-list-section__icon{color:#bfbfbf;font-size:40px;height:auto;width:auto;padding:1rem;border:1px solid #71747d;border-radius:10px}.itsec-help-list-section header a h3{margin:0 auto 0 .5rem;color:#71747d;text-transform:uppercase;font-weight:700;font-size:1rem}@media(min-width: 600px){.itsec-help-list-section header a h3{margin:.5rem 0}}.itsec-help-list-section header a .itsec-help-list-section__more{color:#bfbfbf}.itsec-help-list-section header a:hover{text-decoration:none}.itsec-help-list-section.itsec-help-list-section--has-content header a{color:#0081e3;box-shadow:0 2px 6px rgba(0,0,0,.25)}.itsec-help-list-section.itsec-help-list-section--has-content header a .itsec-help-list-section__icon{color:#0081e3;border-color:#0081e3}.itsec-help-list-section.itsec-help-list-section--has-content header a h3{color:#0a1a23}.itsec-help-list-section.itsec-help-list-section--has-content header a .itsec-help-list-section__more{color:#0081e3}.itsec-help-list-section.itsec-help-list-section--has-content header a:hover .itsec-help-list-section__icon{color:#fff;background:#0081e3}.itsec-help-list-section section article:not(:last-child) a{border-bottom:1px solid #e5eaee}.itsec-help-list-section section a{padding:1rem;display:block;text-decoration:none}.itsec-help-list-section section a h4{color:#0081e3;font-weight:400;text-transform:none}.itsec-help-list-section section a p{margin-top:.5rem}.itsec-help-list-section section a:hover,.itsec-help-list-section section a:focus{background:#dcebf3;outline:none;box-shadow:none}.itsec-help-list-section section a:hover h4,.itsec-help-list-section section a:focus h4{color:#0081e3}.itsec-help-list-section:not(.itsec-help-list-section--has-content) section{display:flex;align-items:center;justify-content:center}.itsec-help-list-section:not(.itsec-help-list-section--has-content) section p{color:#71747d;font-size:1rem;font-weight:300;padding:1rem 0}.itsec-help-list__enable-modal footer{margin:24px -24px -24px;padding:12px 24px;border-top:1px solid #ddd;display:flex;align-items:center;justify-content:flex-end}.itsec-help-list__enable-modal footer .components-button{margin-left:1rem}
17
+ .itsec-split-button{display:inline-flex;align-items:center}.itsec-split-button .itsec-split-button__main{border-radius:0}.itsec-split-button .itsec-split-button__dropdown{display:inline-flex}.itsec-split-button .itsec-split-button__dropdown .components-button{border-radius:0}.is-small.itsec-split-button .itsec-split-button__dropdown .components-button{width:30px;min-width:0}
18
+ .itsec-rjsf-include-exclude-widget__sides{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));grid-gap:1rem}.itsec-rjsf-include-exclude-widget__side{display:flex;flex-direction:column}.itsec-rjsf-include-exclude-widget__listbox{flex:1;display:flex;flex-direction:column}.itsec-rjsf-include-exclude-widget__listbox .components-base-control__field{height:100%;display:flex;flex-direction:column}.itsec-rjsf-include-exclude-widget__listbox [role=listbox]{flex:1;border:1px solid #757575;height:300px;min-height:300px;max-height:300px;overflow-y:scroll}.itsec-rjsf-include-exclude-widget__listbox [role=listbox]:focus,.itsec-rjsf-include-exclude-widget__listbox [role=listbox]:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.itsec-rjsf-include-exclude-widget__listbox [role=option],.itsec-rjsf-include-exclude-widget__listbox [role=presentation]{padding:.5rem 1rem .5rem 1.5rem}.itsec-rjsf-include-exclude-widget__listbox [role=option][aria-selected=true]{background:#dcebf3;position:relative}.itsec-rjsf-include-exclude-widget__listbox [role=option][aria-selected=true]::before{position:absolute;left:.15rem;content:"";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in}.itsec-rjsf-include-exclude-widget__listbox [role=presentation]{opacity:.5}.itsec-rjsf-include-exclude-widget__move{margin-top:8px;margin-right:auto}
19
+ .itsec-rjsf-file-tree__controls{display:grid;grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));grid-gap:1rem}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree]{flex:1;border:1px solid #757575;height:300px;min-height:300px;max-height:300px;padding:6px 8px;overflow-y:scroll}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree]:focus,.itsec-rjsf-file-tree__controls .itsec-tree [role=tree]:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid rgba(0,0,0,0)}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree] li>span{display:flex;align-items:center;padding:.5rem 1rem;width:100%;word-break:break-all}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree] li>span::before{margin-right:.5rem}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree] li[aria-expanded=false]:not(.itsec-tree__item--loading)>span::before{content:"";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree] li[aria-expanded=true]:not(.itsec-tree__item--loading)>span::before{content:"";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree] li:not([aria-expanded]):not(.itsec-tree__item--loading)>span::before{content:"";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;speak:never;text-decoration:inherit;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:20px;height:20px;font-size:20px;vertical-align:top;text-align:center;transition:color .1s ease-in}.itsec-rjsf-file-tree__controls .itsec-tree [role=tree] li.itsec-tree__item--loading>span::before{content:"";box-sizing:border-box;width:20px;height:20px;border-radius:50%;border:2px solid #ccc;border-top-color:#000;animation:rotate .6s linear infinite}.itsec-rjsf-file-tree__controls .itsec-rjsf-file-tree__list .components-base-control__field,.itsec-rjsf-file-tree__controls .itsec-tree .components-base-control__field{display:flex;flex-direction:column;height:100%;margin-bottom:0}.itsec-rjsf-file-tree__controls .itsec-rjsf-file-tree__list .components-textarea-control__input,.itsec-rjsf-file-tree__controls .itsec-rjsf-file-tree__list [role=tree],.itsec-rjsf-file-tree__controls .itsec-tree .components-textarea-control__input,.itsec-rjsf-file-tree__controls .itsec-tree [role=tree]{flex:1;margin:0}.itsec-rjsf-file-tree__controls .itsec-rjsf-file-tree__select{margin-top:8px}@keyframes rotate{to{transform:rotate(360deg)}}
20
+ .itsec-rjsf-reset-field{margin-top:.5rem}
dist/155.js ADDED
@@ -0,0 +1 @@
 
1
+ "use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[155],{33590:(e,t,n)=>{n.d(t,{bB:()=>R,ZP:()=>G});var l={};n.r(l),n.d(l,{BaseInput:()=>d,CheckboxWidget:()=>p,CheckboxesWidget:()=>f,IncludeExcludeWidget:()=>T,RadioWidget:()=>L,SelectWidget:()=>y,TextareaWidget:()=>_,ToggleWidget:()=>m});var i={};n.r(i),n.d(i,{EntitySelectField:()=>j,FileTreeField:()=>$,TextareaListField:()=>A,TitleField:()=>I});var a=n(92819),r=n(87462),o=n(6293),c=n(64893),s=n(19144);const d=function(e){const{id:t,label:n,value:l,readonly:i,disabled:d,onBlur:u,onFocus:m,options:p,onChange:f,schema:h,uiSchema:b={},...g}=e;p.inputType?g.type=p.inputType:g.type||("number"===h.type?(g.type="number",g.step="any"):"integer"===h.type?(g.type="number",g.step="1"):g.type="text"),p.autocomplete&&(g.autoComplete=p.autocomplete),h.multipleOf&&(g.step=h.multipleOf),void 0!==h.minimum&&(g.min=h.minimum),void 0!==h.maximum&&(g.max=h.maximum);const v=b["ui:description"]||h.description;return(0,o.createElement)(c.TextControl,(0,r.Z)({label:n,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:v}),readOnly:i,disabled:d,value:l||""},(0,a.omit)(g,["autofocus","formContext","registry","rawErrors"]),{onChange:e=>f(""===e?p.emptyValue:e),onBlur:u&&(e=>u(g.id,e.target.value)),onFocus:m&&(e=>m(g.id,e.target.value))}))};var u=n(54639);function m(e){let{schema:t,uiSchema:n={},id:l,value:i,disabled:a,readonly:r,label:d,onBlur:m,onFocus:p,onChange:f}=e;const h=u.P6.schemaRequiresTrueValue(t),b=n["ui:description"]||t.description;return(0,o.createElement)(c.ToggleControl,{checked:i||!1,onChange:f,required:h,disabled:a,readOnly:r,label:d,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:b}),onBlur:m&&(e=>m(l,e.target.checked)),onFocus:p&&(e=>p(l,e.target.checked))})}function p(e){let{schema:t,uiSchema:n={},id:l,value:i,disabled:a,readonly:r,label:d,onBlur:m,onFocus:p,onChange:f}=e;const h=u.P6.schemaRequiresTrueValue(t),b=n["ui:description"]||t.description;return(0,o.createElement)(c.CheckboxControl,{checked:i||!1,onChange:f,required:h,disabled:a,readOnly:r,label:d,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:b}),onBlur:m&&(e=>m(l,e.target.checked)),onFocus:p&&(e=>p(l,e.target.checked))})}function f(e){const{disabled:t,options:n,value:l,readonly:i,onChange:a,label:r,schema:c,uiSchema:d={}}=e,{enumOptions:u,enumDisabled:m=[],enumDescriptions:p=[]}=n,f=d["ui:description"]||c.description,h=u.map(((e,t)=>({...e,disabled:m.includes(e.value),help:p[t]&&(0,o.createElement)(s.Lu,{noWrap:!0,content:p[t]})})));return(0,o.createElement)(s.w2,{value:l||[],onChange:a,options:h,label:r||d["ui:title"]||c.title,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:f}),readOnly:i,disabled:t})}const{asNumber:h,guessType:b}=u.P6,g=new Set(["number","integer"]);function v(e,t){const{type:n,items:l}=e;if(""!==t){if("array"===n&&l&&g.has(l.type))return t.map(h);if("boolean"===n)return"true"===t;if("number"===n)return h(t);if(e.enum){if(e.enum.every((e=>"number"===b(e))))return h(t);if(e.enum.every((e=>"boolean"===b(e))))return"true"===t}return t}}function E(e,t){return t?[].slice.call(e.target.options).filter((e=>e.selected)).map((e=>e.value)):e.target.value}const y=function(e){const{schema:t,uiSchema:n={},id:l,options:i,value:a,label:r,required:d,disabled:u,readonly:m,multiple:p,onChange:f,onBlur:h,onFocus:b,placeholder:g}=e,{enumOptions:y,enumDisabled:_}=i,C=p?[]:"",N=[];p||void 0!==t.default||N.push({value:"",label:g});for(const e of y)N.push({...e,disabled:_&&_.includes(e.value)});const x=n["ui:description"]||t.description;return(0,o.createElement)(c.SelectControl,{multiple:p,options:N,value:void 0===a?C:a,label:r,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:x}),required:d,disabled:u,readOnly:m,onChange:e=>f(v(t,e)),onBlur:h&&(e=>h(l,v(t,E(e,p)))),onFocus:b&&(e=>b(l,v(t,E(e,p))))})};function _(e){let{schema:t,uiSchema:n={},id:l,value:i,disabled:d,readonly:u,label:m,onBlur:p,onFocus:f,onChange:h,...b}=e;const g=n["ui:description"]||t.description;return(0,o.createElement)(c.TextareaControl,(0,r.Z)({value:void 0===i?"":i,onChange:h,disabled:d,readOnly:u,label:m,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:g}),onBlur:p&&(e=>p(l,e.target.value)),onFocus:f&&(e=>f(l,e.target.value))},(0,a.without)(b,["autofocus","formContext","registry","rawErrors"])))}const{asNumber:C,guessType:N}=u.P6,x=new Set(["number","integer"]);function O(e,t){const{type:n,items:l}=e;if(""!==t){if("array"===n&&l&&x.has(l.type))return t.map(C);if("boolean"===n)return"true"===t;if("number"===n)return C(t);if(e.enum){if(e.enum.every((e=>"number"===N(e))))return C(t);if(e.enum.every((e=>"boolean"===N(e))))return"true"===t}return t}}function L(e){let{schema:t,uiSchema:n={},id:l,options:i,value:a,label:r,required:d,disabled:u,readonly:m,onChange:p,onBlur:f,onFocus:h}=e;const{enumOptions:b}=i,g=n["ui:description"]||t.description;return(0,o.createElement)(c.RadioControl,{selected:a,options:b,label:r,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:g}),required:d,disabled:u,readOnly:m,onChange:e=>p(O(t,e)),onBlur:f&&(e=>f(l,O(t,e.target.value))),onFocus:h&&(e=>h(l,O(t,e.target.value)))})}var S=n(95122),k=n(82839),F=n(81019);function T(e){let{id:t,disabled:n,options:l,value:i,onChange:r,schema:s,autofocus:d,readonly:u}=e;const{enumOptions:m,enumDisabled:p=[],excludeList:{title:f=(0,S.__)("Excluded","better-wp-security"),description:h=(0,S.__)("The list of items to exclude from the selection.","better-wp-security"),button:b=(0,S.__)("Include","better-wp-security")}={},includeList:{title:g=(0,S.__)("Included","better-wp-security"),description:v=(0,S.__)("The list of items to include in the selection.","better-wp-security"),button:E=(0,S.__)("Exclude","better-wp-security")}={},title:y=s.title,description:_=s.description}=l;(0,o.useEffect)((()=>{const e=m.map((e=>e.value)),t=i.filter((t=>e.includes(t)));t.length!==i.length&&r(t)}),[i,m,r]);const[C,N]=(0,a.partition)(m,(e=>!i.includes(e.value)));return(0,o.createElement)("div",{className:"itsec-rjsf-include-exclude-widget"},y&&(0,o.createElement)(c.BaseControl.VisualLabel,null,y),_&&(0,o.createElement)("p",null,_),(0,o.createElement)("div",{className:"itsec-rjsf-include-exclude-widget__sides",id:t},(0,o.createElement)(B,{id:t+"__exclude",options:C,label:f,description:h,button:b,disabled:n||u,disabledOptions:p,autofocus:d,onToggle:e=>{(0,k.speak)((0,S.sprintf)((0,S.__)("Moved %1$s to %2$s.","better-wp-security"),(0,a.find)(C,{value:e}).label,g)),r([...i,e])}}),(0,o.createElement)(B,{id:t+"__include",options:N,label:g,description:v,button:E,disabled:n||u,disabledOptions:p,onToggle:e=>{(0,k.speak)((0,S.sprintf)((0,S.__)("Moved %1$s to %2$s.","better-wp-security"),(0,a.find)(N,{value:e}).label,f)),r(i.filter((t=>t!==e)))}})))}function B(e){let{id:t,label:n,description:l,options:i,button:r,onToggle:d,disabled:u,disabledOptions:m=[],autofocus:p}=e;const f=t+"__option__",[h,b]=(0,o.useState)("");return h&&!(0,a.find)(i,{value:h})&&b(""),(0,o.createElement)("div",{className:"itsec-rjsf-include-exclude-widget__side"},(0,o.createElement)(c.BaseControl,{id:t,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:l}),className:"itsec-rjsf-include-exclude-widget__listbox"},(0,o.createElement)("span",{className:"components-base-control__label",id:t+"__label"},n),(0,o.createElement)(s.T2,{role:"listbox",id:t,active:h&&f+h,"aria-labelledby":t+"__label","aria-describedby":l&&t+"__help",onNavigate:e=>b(e.substr(f.length)),onKeyDown:e=>{let{keyCode:t}=e;if(!h||t!==F.DELETE&&t!==F.BACKSPACE)return;const n=(0,a.findIndex)(i,{value:h}),l=n+1<i.length?n+1:n-1;d(h),b(i[l]?.value||"")},autoFocus:p},i.map((e=>(0,o.createElement)("div",{id:f+e.value,key:e.value,role:u||m.includes(e.value)?"presentation":"option","aria-selected":e.value===h||void 0,onClick:u||m.includes(e.value)?void 0:()=>b(e.value)},e.label))))),(0,o.createElement)(c.Button,{isSecondary:!0,disabled:!h,className:"itsec-rjsf-include-exclude-widget__move",onClick:()=>d(h),"aria-keyshortcuts":"Delete Backspace"},r))}function I(e){const{id:t,title:n,required:l}=e;return(0,o.createElement)("span",{className:"itsec-rjsf-title-field",id:t},n,l&&(0,o.createElement)("span",{className:"required"},"*"))}const{getUiOptions:W}=u.P6;function j(e){let{uiSchema:t,schema:n,idSchema:l,name:i,formData:a,disabled:r,readonly:c,onChange:d}=e;const u=W(t);return(0,o.createElement)(s.fv,{id:l.$id,value:a,disabled:r,readonly:c,onChange:d,isMultiple:"array"===n.type,label:t["ui:title"]||n.title||i,description:t["ui:description"]||n.description,path:u.path,query:u.query,labelAttr:u.labelAttr,idAttr:u.idAttr,searchArg:u.searchArg})}const{getUiOptions:w}=u.P6;function A(e){let{uiSchema:t,schema:n,name:l,formData:i,disabled:a,readonly:r,onChange:c}=e;const d=t["ui:title"]||n.title||l,u=t["ui:description"]||n.description,m=w(t),{rows:p,placeholder:f}=m;return(0,o.createElement)(s.yA,{label:d,help:(0,o.createElement)(s.Lu,{noWrap:!0,content:u}),disabled:a,readonly:r,rows:p,value:i,onChange:c,placeholder:f})}var D=n(87514),P=n.n(D),q=n(73470);function $(e){let{idSchema:t,formData:n,onChange:l,uiSchema:i,schema:r,name:d,disabled:u,readonly:m,autofocus:p}=e;const f=t.$id,h=i["ui:title"]||r.title||d,b=i["ui:description"]||r.description,[g,v]=(0,o.useState)([]),[E,y]=(0,o.useState)("");(0,o.useEffect)((()=>{P()({path:(0,q.addQueryArgs)("/ithemes-security/rpc/file-change/file-tree",{directory:"/"})}).then(v)}),[]);const _=e=>{l(n.includes(e)?n.filter((t=>t!==e)):[...n,e])};return(0,o.createElement)("div",{className:"itsec-rjsf-file-tree"},b&&(0,o.createElement)(s.Lu,{content:b,tagName:"p"}),(0,o.createElement)("div",{className:"itsec-rjsf-file-tree__controls"},(0,o.createElement)("div",null,(0,o.createElement)(s.mp,{tree:g,id:f,label:(0,S.__)("File Selector","better-wp-security"),active:E,setActive:y,onActivate:_,onLoad:async e=>{const t=await P()({path:(0,q.addQueryArgs)("/ithemes-security/rpc/file-change/file-tree",{directory:e})}),n=(0,a.cloneDeep)(g);(0,s.in)(n,(n=>{if(n.id===e)return n.children=t,s.in.halt})),v(n)}}),(0,o.createElement)(c.Button,{isSecondary:!0,disabled:!E,className:"itsec-rjsf-file-tree__select",onClick:()=>_(E),"aria-keyshortcuts":"Enter Space"},(0,S.__)("Select","better-wp-security"))),(0,o.createElement)(s.yA,{value:n,onChange:l,className:"itsec-rjsf-file-tree__list",label:h,disabled:u,readonly:m,autoFocus:p})))}function R(e){let{name:t,...n}=e;return(0,o.createElement)(c.Fill,(0,r.Z)({name:`RjsfField${t}`},n))}function K(e){let{name:t,...n}=e;return(0,o.createElement)(c.Slot,(0,r.Z)({name:`RjsfField${t}`},n))}const{ADDITIONAL_PROPERTY_FLAG:Z,getUiOptions:M}=u.P6;function V(e){const{id:t,classNames:n,disabled:l,label:i,onKeyChange:a,onDropPropertyClick:r,readonly:s,required:d,schema:u,uiSchema:m}=e,p=`${i} Key`,f=u.hasOwnProperty(Z),{removable:h}=M(m);return f&&!1!==h?(0,o.createElement)("div",{className:n},(0,o.createElement)("div",{className:"row"},(0,o.createElement)("div",{className:"col-xs-5 form-additional"},(0,o.createElement)(c.TextControl,{label:p,required:d,id:`${t}-key`,onBlur:e=>a(e.target.value)})),(0,o.createElement)("div",{className:"form-additional form-group col-xs-5"},e.children),(0,o.createElement)("div",{className:"col-xs-2"},(0,o.createElement)(c.Button,{icon:"no-alt",isDestructive:!0,disabled:l||s,onClick:r(i)})))):(0,o.createElement)("div",{className:n},e.children)}const{canExpand:U}=u.P6;function J(e){let{className:t,onClick:n,disabled:l}=e;return(0,o.createElement)("div",{className:"row"},(0,o.createElement)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${t}`},(0,o.createElement)(c.Button,{icon:"plus-alt2",className:"btn-add col-xs-12","aria-label":(0,S.__)("Add","better-wp-security"),tabIndex:"0",onClick:n,disabled:l})))}const Q={FieldTemplate:function(e){const{children:t,errors:n,hidden:l,schema:i,uiSchema:a,formContext:r,onChange:s}=e;if(l)return null;const{resettable:d}=M(a);return(0,o.createElement)(V,e,t,(0,o.createElement)(K,{name:e.id,fillProps:e}),d&&(0,o.createElement)(c.Button,{className:"itsec-rjsf-reset-field",isSecondary:!0,onClick:()=>s(i.default)},(0,S.__)("Restore Default","better-wp-security")),!0!==r?.disableInlineErrors&&n)},ObjectFieldTemplate:function(e){const{TitleField:t,DescriptionField:n,schema:l,uiSchema:i,properties:a}=e;if(!a.length)return null;const r=(i["ui:sections"]||[]).reduce(((e,t)=>({...e,[t.fields.find((e=>!!l.properties[e]))]:t})),{});return(0,o.createElement)("div",{className:"itsec-rjsf-object-fieldset",id:e.idSchema.$id},(i["ui:title"]||e.title)&&(0,o.createElement)(t,{id:`${e.idSchema.$id}__title`,title:e.title||i["ui:title"],required:e.required,formContext:e.formContext}),e.description&&(0,o.createElement)(n,{id:`${e.idSchema.$id}__description`,description:(0,o.createElement)(s.Lu,{noWrap:!0,content:e.description}),formContext:e.formContext}),a.map((e=>{let{name:t,content:n}=e;return r[t]?(0,o.createElement)(o.Fragment,{key:t},(0,o.createElement)("h3",{className:"itsec-rjsf-section-title"},r[t].title),r[t].description&&(0,o.createElement)("p",{className:"itsec-rjsf-section-description"},(0,o.createElement)(s.Lu,{noWrap:!0,content:r[t].description})),n):n})),U(l,i,e.formData)&&(0,o.createElement)(J,{className:"object-property-expand",onClick:e.onAddClick(l),disabled:e.disabled||e.readonly}))},ErrorList:function(e){let{errors:t}=e;return(0,o.createElement)(s.KM,{errors:t.map((function(){let{stack:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e})).filter((e=>!!e))})},widgets:l,fields:i},G=Q}}]);
dist/34.js DELETED
@@ -1 +0,0 @@
1
- (window.itsecWebpackJsonP=window.itsecWebpackJsonP||[]).push([[34],{Bnag:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},EbDI:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},FUBA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n("cDcd"),a=u(i),s=u(n("17x9"));function u(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},l=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||d(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},Ijbi:function(e,t,n){var r=n("WkPL");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},J4zp:function(e,t,n){var r=n("wTVA"),o=n("m0LI"),i=n("ZhPi"),a=n("wkBT");e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},PJYZ:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},QDav:function(e,t,n){"use strict";n.r(t),n.d(t,"defaultProps",(function(){return an})),n.d(t,"makeAsyncSelect",(function(){return sn}));var r=n("zLVn");function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i=n("wx14");n("J4zp"),n("RIqP"),n("lSNA");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n("PJYZ");var c=n("s4An");function l(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Object(c.a)(e,t)}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=n("cDcd"),v=n.n(m),b=n("dI71");var g=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var y=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[u++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===j||2===j&&o(u,1)?"-webkit-"+u+u:u}if(0===j||2===j&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(y,"tb");break;case 232:u=a.replace(y,"tb-rl");break;case 220:u=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,c,l){for(var p,f=0,d=t;f<V;++f)switch(p=A[f].call(u,e,d,n,r,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?j=1:(j=2,D=e):j=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<V){var u=a(-1,n,s,s,I,P,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var p=function e(n,s,u,p,f){for(var d,h,m,y,w,x=0,S=0,k=0,C=0,A=0,D=0,R=m=d=0,T=0,F=0,N=0,_=0,H=u.length,U=H-1,z="",W="",B="",Y="";T<H;){if(h=u.charCodeAt(T),T===U&&0!==S+C+k+x&&(0!==S&&(h=47===S?10:47),C=k=x=0,H++,U++),0===S+C+k+x){if(T===U&&(0<F&&(z=z.replace(l,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=u.charAt(T)}h=59}switch(h){case 123:for(d=(z=z.trim()).charCodeAt(0),m=1,_=++T;T<H;){switch(h=u.charCodeAt(T)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(T+1)){case 42:case 47:e:{for(R=T+1;R<U;++R)switch(u.charCodeAt(R)){case 47:if(42===h&&42===u.charCodeAt(R-1)&&T+2!==R){T=R+1;break e}break;case 10:if(47===h){T=R+1;break e}}T=R}}break;case 91:h++;case 40:h++;case 34:case 39:for(;T++<U&&u.charCodeAt(T)!==h;);}if(0===m)break;T++}switch(m=u.substring(_,T),0===d&&(d=(z=z.replace(c,"").trim()).charCodeAt(0)),d){case 64:switch(0<F&&(z=z.replace(l,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:F=s;break;default:F=M}if(_=(m=e(s,F,m,h,f+1)).length,0<V&&(w=a(3,m,F=t(M,z,N),s,I,P,_,h,f,p),z=F.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:z=z.replace(O,i);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(v,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===p&&(W+=m,m="")}else m="";break;default:m=e(s,t(s,z,N),m,p,f+1)}B+=m,m=N=F=R=d=0,z="",h=u.charCodeAt(++T);break;case 125:case 59:if(1<(_=(z=(0<F?z.replace(l,""):z).trim()).length))switch(0===R&&(d=z.charCodeAt(0),45===d||96<d&&123>d)&&(_=(z=z.replace(" ",":")).length),0<V&&void 0!==(w=a(1,z,s,n,I,P,W.length,p,f,p))&&0===(_=(z=w.trim()).length)&&(z="\0\0"),d=z.charCodeAt(0),h=z.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){Y+=z+u.charAt(T);break}default:58!==z.charCodeAt(_-1)&&(W+=r(z,d,h,z.charCodeAt(2)))}N=F=R=d=0,z="",h=u.charCodeAt(++T)}}switch(h){case 13:case 10:47===S?S=0:0===1+d&&107!==p&&0<z.length&&(F=1,z+="\0"),0<V*L&&a(0,z,s,n,I,P,W.length,p,f,p),P=1,I++;break;case 59:case 125:if(0===S+C+k+x){P++;break}default:switch(P++,y=u.charAt(T),h){case 9:case 32:if(0===C+x+S)switch(A){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===C+S+x&&(F=N=1,y="\f"+y);break;case 108:if(0===C+S+x+E&&0<R)switch(T-R){case 2:112===A&&58===u.charCodeAt(T-3)&&(E=A);case 8:111===D&&(E=D)}break;case 58:0===C+S+x&&(R=T);break;case 44:0===S+k+C+x&&(F=1,y+="\r");break;case 34:case 39:0===S&&(C=C===h?0:0===C?h:C);break;case 91:0===C+S+k&&x++;break;case 93:0===C+S+k&&x--;break;case 41:0===C+S+x&&k--;break;case 40:if(0===C+S+x){if(0===d)switch(2*A+3*D){case 533:break;default:d=1}k++}break;case 64:0===S+k+C+x+R+m&&(m=1);break;case 42:case 47:if(!(0<C+x+k))switch(S){case 0:switch(2*h+3*u.charCodeAt(T+1)){case 235:S=47;break;case 220:_=T,S=42}break;case 42:47===h&&42===A&&_+2!==T&&(33===u.charCodeAt(_+2)&&(W+=u.substring(_,T+1)),y="",S=0)}}0===S&&(z+=y)}D=A,A=h,T++}if(0<(_=W.length)){if(F=s,0<V&&(void 0!==(w=a(2,W,F,n,I,P,_,p,f,p))&&0===(W=w).length))return Y+W+B;if(W=F.join(",")+"{"+W+"}",0!=j*E){switch(2!==j||o(W,2)||(E=0),E){case 111:W=W.replace(g,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}E=0}}return Y+W+B}(M,s,n,0,0);return 0<V&&(void 0!==(u=a(-2,p,s,s,I,P,p.length,0,0,0))&&(p=u)),"",E=0,P=I=1,p}var c=/^\0+/g,l=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,g=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,P=1,I=1,E=0,j=1,M=[],A=[],V=0,D=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:V=A.length=0;break;default:if("function"==typeof t)A[V++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},u.set=s,void 0!==e&&s(e),u};n("gRFL");function O(e){e&&w.current.insert(e+"}")}var w={current:null},x=function(e,t,n,r,o,i,a,s,u,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return w.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return w.current.insert(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(O)}},S=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new y(t);var o,i={};o=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(x),a=function(e,t,n,o){var i=t.name;w.current=n,r(e,t.styles),o&&(u.inserted[i]=!0)};var u={key:n,sheet:new g({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return u};n("VbXa");function k(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var C=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}},P=n("zpY+"),I=n("ME5O"),E=n("4qRI"),j=/[A-Z]|^ms/g,M=/_EMO_([^_]+?)_([^]*?)_EMO_/g,A=function(e){return 45===e.charCodeAt(1)},V=function(e){return null!=e&&"boolean"!=typeof e},D=Object(E.a)((function(e){return A(e)?e:e.replace(j,"-$&").toLowerCase()})),L=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(M,(function(e,t,n){return T={name:t,styles:n,next:T},t}))}return 1===I.a[e]||A(e)||"number"!=typeof t||0===t?t:t+"px"};function R(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return T={name:n.name,styles:n.styles,next:T},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)T={name:o.name,styles:o.styles,next:T},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=R(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":V(a)&&(r+=D(i)+":"+L(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=R(e,t,a,!1);switch(i){case"animation":case"animationName":r+=D(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)V(a[u])&&(r+=D(i)+":"+L(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=T,a=n(e);return T=i,R(e,t,a,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var T,F=/label:\s*([^\s;\n{]+)\s*;/g;var N=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";T=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=R(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=R(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);F.lastIndex=0;for(var s,u="";null!==(s=F.exec(o));)u+="-"+s[1];return{name:Object(P.a)(o)+u,styles:o,next:T}},_=Object.prototype.hasOwnProperty,H=Object(m.createContext)("undefined"!=typeof HTMLElement?S():null),U=Object(m.createContext)({}),z=(H.Provider,function(e){var t=function(t,n){return Object(m.createElement)(H.Consumer,null,(function(r){return e(t,r,n)}))};return Object(m.forwardRef)(t)}),W="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",B=function(e,t){var n={};for(var r in t)_.call(t,r)&&(n[r]=t[r]);return n[W]=e,n},Y=function(){return null},$=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[W],a=[o],s="";"string"==typeof t.className?s=k(e.registered,a,t.className):null!=t.className&&(s=t.className+" ");var u=N(a);C(e,u,"string"==typeof i);s+=e.key+"-"+u.name;var c={};for(var l in t)_.call(t,l)&&"css"!==l&&l!==W&&(c[l]=t[l]);c.ref=r,c.className=s;var p=Object(m.createElement)(i,c),f=Object(m.createElement)(Y,null);return Object(m.createElement)(m.Fragment,null,f,p)},G=z((function(e,t,n){return"function"==typeof e.css?Object(m.createElement)(U.Consumer,null,(function(r){return $(t,e,r,n)})):$(t,e,null,n)}));var q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return N(t)},X=function(e,t){var n=arguments;if(null==t||!_.call(t,"css"))return m.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=G,o[1]=B(e,t);for(var i=2;i<r;i++)o[i]=n[i];return m.createElement.apply(null,o)},J=(m.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function Z(e,t,n){var r=[],o=k(e,r,n);return r.length<2?n:o+t(r)}var K=function(){return null},Q=z((function(e,t){return Object(m.createElement)(U.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=N(n,t.registered);return C(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Z(t.registered,r,J(n))},theme:n},i=e.children(o);var a=Object(m.createElement)(K,null);return Object(m.createElement)(m.Fragment,null,a,i)}))})),ee=n("faye");n("cDf5");function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ne=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return N(t)};var re=n("FUBA"),oe=n.n(re),ie=function(){};function ae(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function se(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(ae(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ue=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===p(e)&&null!==e?[e]:[]};function ce(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function le(e){return ce(e)?window.pageYOffset:e.scrollTop}function pe(e,t){ce(e)?window.scrollTo(0,t):e.scrollTop=t}function fe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ie,o=le(e),i=t-o,a=10,s=0;function u(){var t=fe(s+=a,o,i,n);pe(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function he(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function ge(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,b=le(u),g=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=m-y,w=v-h,x=O+b,S=l-b-h,k=f-v+b+g,C=b+h-y;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!a)return i&&de(u,k,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&w>=r)return i&&de(u,k,160),{placement:"bottom",maxHeight:a?w-g:S-g};if("auto"===o||a){var P=t,I=a?O:x;return I>=r&&(P=Math.min(I-g-s.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return pe(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(O>=d)return{placement:"top",maxHeight:t};if(x>=d&&!a)return i&&de(u,C,160),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&O>=r){var E=t;return(!a&&x>=r||a&&O>=r)&&(E=a?O-y:x-y),i&&de(u,C,160),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var ye=function(e){return"auto"===e?"bottom":e},Oe=Object(m.createContext)({getPortalPlacement:null}),we=function(e){l(n,e);var t=be(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var c="fixed"===a,l=ge({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!c,isFixedPosition:c,theme:u}),p=e.context.getPortalPlacement;p&&p(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||ye(t);return ve(ve({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return u(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(m.Component);we.contextType=Oe;var xe=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Se=xe,ke=xe,Ce=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return X("div",Object(i.a)({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Ce.defaultProps={children:"No options"};var Pe=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return X("div",Object(i.a)({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Pe.defaultProps={children:"Loading..."};var Ie=function(e){l(n,e);var t=be(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==ye(e.props.menuPlacement)&&e.setState({placement:n})},e}return u(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,s="fixed"===i;if(!t&&!s||!r)return null;var u=this.state.placement||ye(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,p=c[u]+l,f=X("div",{css:a("menuPortal",{offset:p,position:i,rect:c})},n);return X(Oe.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(ee.createPortal)(f,t):f)}}]),n}(m.Component),Ee=Array.isArray,je=Object.keys,Me=Object.prototype.hasOwnProperty;function Ae(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==p(t)&&"object"==p(n)){var r,o,i,a=Ee(t),s=Ee(n);if(a&&s){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var l=t instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return t.toString()==n.toString();var d=je(t);if((o=d.length)!==je(n).length)return!1;for(r=o;0!=r--;)if(!Me.call(n,d[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(i=d[r])&&t.$$typeof||e(t[i],n[i])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Ve(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Ve=function(){return n},n}var De={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Le=function(e){var t=e.size,n=o(e,["size"]);return X("svg",Object(i.a)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:De},n))},Re=function(e){return X(Le,Object(i.a)({size:20},e),X("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Te=function(e){return X(Le,Object(i.a)({size:20},e),X("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Fe=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Ne=Fe,_e=Fe,He=function(){var e=q.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ve()),Ue=function(e){var t=e.delay,n=e.offset;return X("span",{css:ne({animation:"".concat(He," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},ze=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return X("div",Object(i.a)({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),X(Ue,{delay:0,offset:a}),X(Ue,{delay:160,offset:!0}),X(Ue,{delay:320,offset:!a}))};ze.defaultProps={size:4};function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t=e.children,n=e.innerProps;return X("div",n,t)},Ze=Je,Ke=Je;var Qe=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return X(Q,null,(function(r){var h=r.css,m=r.cx;return X(p,{data:i,innerProps:Xe(Xe({},s),{},{className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))}),selectProps:l},X(f,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),X(d,{data:i,innerProps:Xe({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:l}))}))};Qe.defaultProps={cropWithEllipsis:!0};function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nt={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return X("div",Object(i.a)({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||X(Re,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,s=e.isFocused,u=e.innerRef,c=e.innerProps,l=e.menuIsOpen;return X("div",Object(i.a)({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return X("div",Object(i.a)({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||X(Te,null))},DownChevron:Te,CrossIcon:Re,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,s=e.headingProps,u=e.label,c=e.theme,l=e.selectProps;return X("div",{css:o("group",e),className:r({group:!0},n)},X(a,Object(i.a)({},s,{selectProps:l,theme:c,getStyles:o,cx:r}),u),X("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,s=(e.selectProps,o(e,["className","cx","getStyles","theme","selectProps"]));return X("div",Object(i.a)({css:r("groupHeading",Be({theme:a},s)),className:n({"group-heading":!0},t)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return X("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return X("span",Object(i.a)({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,s=e.isHidden,u=e.isDisabled,c=e.theme,l=(e.selectProps,o(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return X("div",{css:r("input",$e({theme:c},l))},X(oe.a,Object(i.a)({className:n({input:!0},t),inputRef:a,inputStyle:Ge(s),disabled:u},l)))},LoadingIndicator:ze,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,s=e.innerProps;return X("div",Object(i.a)({css:o("menu",e),className:r({menu:!0},n)},s,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,s=e.innerRef,u=e.innerProps;return X("div",Object(i.a)({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:s},u),t)},MenuPortal:Ie,LoadingMessage:Pe,NoOptionsMessage:Ce,MultiValue:Qe,MultiValueContainer:Ze,MultiValueLabel:Ke,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return X("div",n,t||X(Re,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,s=e.isFocused,u=e.isSelected,c=e.innerRef,l=e.innerProps;return X("div",Object(i.a)({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":u},n),ref:c},l),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return X("div",Object(i.a)({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,s=e.isDisabled,u=e.isRtl;return X("div",Object(i.a)({css:o("container",e),className:r({"--is-disabled":s,"--is-rtl":u},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,s=e.innerProps;return X("div",Object(i.a)({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return X("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}};function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ot(e,t){if(e){if("string"==typeof e)return rt(e,t);var n=Object.prototype.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)?rt(e,t):void 0}}function it(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||ot(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 at(e){return function(e){if(Array.isArray(e))return rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ot(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var st=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ut(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||st(r)&&st(o)))return!1;var r,o;return!0}for(var ct=function(e,t){var n;void 0===t&&(t=ut);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},lt=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pt=new RegExp("["+lt.map((function(e){return e.letters})).join("")+"]","g"),ft={},dt=0;dt<lt.length;dt++)for(var ht=lt[dt],mt=0;mt<ht.letters.length;mt++)ft[ht.letters[mt]]=ht.base;var vt=function(e){return e.replace(pt,(function(e){return ft[e]}))};function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var gt=function(e){return e.replace(/^\s+|\s+$/g,"")},yt=function(e){return"".concat(e.label," ").concat(e.value)};var Ot={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},wt=function(e){return X("span",Object(i.a)({css:Ot},e))};function xt(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,o(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return X("input",Object(i.a)({ref:t},n,{css:ne({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var kt=function(e){l(n,e);var t=St(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(ee.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(m.Component),Ct=["boxSizing","height","overflow","paddingRight","position"],Pt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function It(e){e.preventDefault()}function Et(e){e.stopPropagation()}function jt(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Mt(){return"ontouchstart"in window||navigator.maxTouchPoints}function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var Vt=!(!window.document||!window.document.createElement),Dt=0,Lt=function(e){l(n,e);var t=At(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return u(n,[{key:"componentDidMount",value:function(){var e=this;if(Vt){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&Ct.forEach((function(t){var n=i&&i[t];e.originalStyles[t]=n})),n&&Dt<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+a||0;Object.keys(Pt).forEach((function(e){var t=Pt[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(u,"px"))}o&&Mt()&&(o.addEventListener("touchmove",It,this.listenerOptions),r&&(r.addEventListener("touchstart",jt,this.listenerOptions),r.addEventListener("touchmove",Et,this.listenerOptions))),Dt+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Vt){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;Dt=Math.max(Dt-1,0),n&&Dt<1&&Ct.forEach((function(t){var n=e.originalStyles[t];i&&(i[t]=n)})),o&&Mt()&&(o.removeEventListener("touchmove",It,this.listenerOptions),r&&(r.removeEventListener("touchstart",jt,this.listenerOptions),r.removeEventListener("touchmove",Et,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}(m.Component);function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}Lt.defaultProps={accountForScrollbars:!0};var Tt={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Ft=function(e){l(n,e);var t=Rt(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return u(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?X("div",null,X("div",{onClick:this.blurSelectInput,css:Tt}),X(kt,{innerRef:this.getScrollTarget},t),r?X(Lt,{touchScrollTarget:r}):null):t}}]),n}(m.PureComponent);function Nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var _t=function(e){l(n,e);var t=Nt(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,u=e.scrollTarget,c=u.scrollTop,l=u.scrollHeight,p=u.clientHeight,f=e.scrollTarget,d=n>0,h=l-p-c,m=!1;h>n&&e.isBottom&&(i&&i(t),e.isBottom=!1),d&&e.isTop&&(s&&s(t),e.isTop=!1),d&&n>h?(o&&!e.isBottom&&o(t),f.scrollTop=l,m=!0,e.isBottom=!0):!d&&-n>c&&(a&&!e.isTop&&a(t),f.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return u(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return v.a.createElement(kt,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(m.Component);function Ht(e){var t=e.isEnabled,n=void 0===t||t,r=o(e,["isEnabled"]);return n?v.a.createElement(_t,r):r.children}var Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},zt=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Wt=function(e){return!!e.isDisabled};var Bt={clearIndicator:_e,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Ne,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:ke,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return te(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),te(t,"backgroundColor",a.neutral0),te(t,"borderRadius",o),te(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),te(t,"marginBottom",i.menuGutter),te(t,"marginTop",i.menuGutter),te(t,"position","absolute"),te(t,"width","100%"),te(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Se,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Yt={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var Xt,Jt={backspaceRemovesValue:!0,blurInputOnSelect:he(),captureMenuScroll:!he(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:yt,trim:!0,matchFrom:"any"},Xt),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?gt(t):t,c=a?gt(i(e)):i(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=vt(u),c=vt(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Wt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Zt=1,Kt=function(e){l(n,e);var t=qt(n);function n(e){var r;a(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){var t;r.components=(t={components:e},tt(tt({},nt),t.components))},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;o(e,Gt(Gt({},t),{},{name:i}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.inputIsHiddenAfterUpdate=!a,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=r.state.selectValue;if(o)if(r.isOptionSelected(e,i)){var a=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==a})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(at(i),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter((function(e){return r.getOptionValue(e)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return se.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return r.props.getOptionLabel(e)},r.getOptionValue=function(e){return r.props.getOptionValue(e)},r.getStyles=function(e,t){var n=Bt[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getActiveDescendentId=function(){var e=r.props.menuIsOpen,t=r.state,n=t.menuOptions,o=t.focusedOption;if(o&&e){var i=n.focusable.indexOf(o),a=n.render[i];return a&&a.key}},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:zt(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:Ut(t,Gt(Gt({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ce(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!p||!h||f&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,i=e.options,a=function(e,n){var i=r.isOptionDisabled(e,t),a=r.isOptionSelected(e,t),s=r.getOptionLabel(e),u=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:u,data:e},o))){var c=i?void 0:function(){return r.onOptionHover(e)},l=i?void 0:function(){return r.selectOption(e)},p="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:p,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:u}}};return i.reduce((function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map((function(t,r){var o=a(t,"".concat(n,"-").concat(r));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:i,data:t,options:o})}}else{var s=a(t,"".concat(n));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var o=e.value;r.cacheComponents=ct(r.cacheComponents,Ae).bind(f(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++Zt);var i=ue(o);r.buildMenuOptions=ct(r.buildMenuOptions,(function(e,t){var n=it(e,2),r=n[0],o=n[1],i=it(t,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(f(r));var s=e.menuIsOpen?r.buildMenuOptions(e,i):{render:[],focusable:[]};return r.state.menuOptions=s,r.state.selectValue=i,r}return u(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=ue(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},u=this.getNextFocusedValue(a),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,u=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?pe(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&pe(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,u=a.tabSelectsValue,c="first"===e?0:i.focusable.length-1;if(!s){var l=i.focusable.indexOf(r[0]);l>-1&&(c=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=i.length-1,c=-1;if(i.length){switch(e){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:i[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,i=o.focusedOption,a=o.menuOptions,s=a.focusable;if(s.length){var u=0,c=s.indexOf(i);i||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=c>0?c-1:s.length-1:"down"===e?u=(c+1)%s.length:"pageup"===e?(u=c-n)<0&&(u=0):"pagedown"===e?(u=c+n)>s.length-1&&(u=s.length-1):"last"===e&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Wt(s[u]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Yt):Gt(Gt({},Yt),this.props.theme):Yt}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,i=this.selectOption,a=this.props,s=a.isMulti,u=a.isRtl,c=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:i,setValue:o,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,u=i.inputValue,c=i.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,u=this.components.Input,c=this.state.inputIsHidden,l=r||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return v.a.createElement(xt,Object(i.a)({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ie,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:s,value:""},p));var f=this.commonProps,d=f.cx,h=f.theme,m=f.selectProps;return v.a.createElement(u,Object(i.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:a,form:s,theme:h,type:"text",value:o},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,c=this.commonProps,l=this.props,p=l.controlShouldRenderValue,f=l.isDisabled,d=l.isMulti,h=l.inputValue,m=l.placeholder,b=this.state,g=b.selectValue,y=b.focusedValue,O=b.isFocused;if(!this.hasValue()||!p)return h?null:v.a.createElement(u,Object(i.a)({},c,{key:"placeholder",isDisabled:f,isFocused:O}),m);if(d)return g.map((function(t,s){var u=t===y;return v.a.createElement(n,Object(i.a)({},c,{components:{Container:r,Label:o,Remove:a},isFocused:u,isDisabled:f,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=g[0];return v.a.createElement(s,Object(i.a)({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.a.createElement(e,Object(i.a)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return v.a.createElement(e,Object(i.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return v.a.createElement(n,Object(i.a)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.a.createElement(e,Object(i.a)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,p=t.Option,f=this.commonProps,d=this.state,h=d.focusedOption,m=d.menuOptions,b=this.props,g=b.captureMenuScroll,y=b.inputValue,O=b.isLoading,w=b.loadingMessage,x=b.minMenuHeight,S=b.maxMenuHeight,k=b.menuIsOpen,C=b.menuPlacement,P=b.menuPosition,I=b.menuPortalTarget,E=b.menuShouldBlockScroll,j=b.menuShouldScrollIntoView,M=b.noOptionsMessage,A=b.onMenuScrollToTop,V=b.onMenuScrollToBottom;if(!k)return null;var D,L=function(t){var n=h===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,v.a.createElement(p,Object(i.a)({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=m.render.map((function(t){if("group"===t.type){t.type;var a=o(t,["type"]),s="".concat(t.key,"-heading");return v.a.createElement(n,Object(i.a)({},f,a,{Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return L(e)})))}if("option"===t.type)return L(t)}));else if(O){var R=w({inputValue:y});if(null===R)return null;D=v.a.createElement(c,f,R)}else{var T=M({inputValue:y});if(null===T)return null;D=v.a.createElement(l,f,T)}var F={minMenuHeight:x,maxMenuHeight:S,menuPlacement:C,menuPosition:P,menuShouldScrollIntoView:j},N=v.a.createElement(we,Object(i.a)({},f,F),(function(t){var n=t.ref,r=t.placerProps,o=r.placement,u=r.maxHeight;return v.a.createElement(a,Object(i.a)({},f,F,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:O,placement:o}),v.a.createElement(Ht,{isEnabled:g,onTopArrive:A,onBottomArrive:V},v.a.createElement(Ft,{isEnabled:E},v.a.createElement(s,Object(i.a)({},f,{innerRef:e.getMenuListRef,isLoading:O,maxHeight:u}),D))))}));return I||"fixed"===P?v.a.createElement(u,Object(i.a)({},f,{appendTo:I,controlElement:this.controlRef,menuPlacement:C,menuPosition:P}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return v.a.createElement("input",{name:i,type:"hidden",value:s})}var u=a.length>0?a.map((function(t,n){return v.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):v.a.createElement("input",{name:i,type:"hidden"});return v.a.createElement("div",null,u)}var c=a[0]?this.getOptionValue(a[0]):"";return v.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?v.a.createElement(wt,{"aria-live":"polite"},v.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),v.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,u=a.id,c=a.isDisabled,l=a.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return v.a.createElement(r,Object(i.a)({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),v.a.createElement(t,Object(i.a)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:l}),v.a.createElement(o,Object(i.a)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),v.a.createElement(n,Object(i.a)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(m.Component);Kt.defaultProps=Jt;n("VkAN");function Qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var en={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}var nn,rn,on,an={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},sn=function(e){var t,n;return n=t=function(t){l(r,t);var n=tn(r);function r(e){var t;return a(this,r),(t=n.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,n){var r=t.props,o=r.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!i)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[i])t.setState({inputValue:i,loadedInputValue:i,loadedOptions:t.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:i,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(i,(function(e){t.mounted&&(e&&(t.optionsCache[i]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return u(r,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,n.isLoading),a=o(n,["loadOptions","isLoading"]),s=this.state,u=s.defaultOptions,c=s.inputValue,l=s.isLoading,p=s.loadedInputValue,f=s.loadedOptions,d=s.passEmptyOptions?[]:c&&p?f:u||[];return v.a.createElement(e,Object(i.a)({},a,{ref:function(e){t.select=e},options:d,isLoading:l||r,onInputChange:this.handleInputChange}))}}]),r}(m.Component),t.defaultProps=an,n},un=(nn=Kt,on=rn=function(e){l(n,e);var t=Qt(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return u(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,o(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return v.a.createElement(nn,Object(i.a)({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(m.Component),rn.defaultProps=en,on),cn=sn(un);t.default=cn},RIqP:function(e,t,n){var r=n("Ijbi"),o=n("EbDI"),i=n("ZhPi"),a=n("Bnag");e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},SksO:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},VbXa:function(e,t,n){var r=n("SksO");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},VkAN:function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},WkPL:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},ZhPi:function(e,t,n){var r=n("WkPL");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},cDf5:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},m0LI:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},wTVA:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},wkBT:function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
 
dist/379.js ADDED
@@ -0,0 +1 @@
 
1
+ "use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[379],{19379:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ln,defaultProps:()=>an,makeAsyncSelect:()=>sn});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i=n(87462);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=n(89611);function c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,l.Z)(e,t)}function p(e){return p="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},p(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=n(99196),v=n.n(m),g=(n(94578),function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}());const b=function(e){function t(e,r,u,l,f){for(var d,h,m,v,O,S=0,k=0,x=0,C=0,P=0,D=0,L=m=d=0,j=0,F=0,N=0,H=0,Z=u.length,U=Z-1,z="",W="",_="",B="";j<Z;){if(h=u.charCodeAt(j),j===U&&0!==k+C+x+S&&(0!==k&&(h=47===k?10:47),C=x=S=0,Z++,U++),0===k+C+x+S){if(j===U&&(0<F&&(z=z.replace(p,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=u.charAt(j)}h=59}switch(h){case 123:for(d=(z=z.trim()).charCodeAt(0),m=1,H=++j;j<Z;){switch(h=u.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(j+1)){case 42:case 47:e:{for(L=j+1;L<U;++L)switch(u.charCodeAt(L)){case 47:if(42===h&&42===u.charCodeAt(L-1)&&j+2!==L){j=L+1;break e}break;case 10:if(47===h){j=L+1;break e}}j=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<U&&u.charCodeAt(j)!==h;);}if(0===m)break;j++}if(m=u.substring(H,j),0===d&&(d=(z=z.replace(c,"").trim()).charCodeAt(0)),64===d){switch(0<F&&(z=z.replace(p,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=V}if(H=(m=t(r,F,m,h,f+1)).length,0<R&&(O=s(3,m,F=n(V,z,N),r,I,E,H,h,f,l),z=F.join(""),void 0!==O&&0===(H=(m=O.trim()).length)&&(h=0,m="")),0<H)switch(h){case 115:z=z.replace(w,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(g,"$1 $2"))+"{"+m+"}",m=1===A||2===A&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===l&&(W+=m,m="")}else m=""}else m=t(r,n(r,z,N),m,l,f+1);_+=m,m=N=F=L=d=0,z="",h=u.charCodeAt(++j);break;case 125:case 59:if(1<(H=(z=(0<F?z.replace(p,""):z).trim()).length))switch(0===L&&(d=z.charCodeAt(0),45===d||96<d&&123>d)&&(H=(z=z.replace(" ",":")).length),0<R&&void 0!==(O=s(1,z,r,e,I,E,W.length,l,f,l))&&0===(H=(z=O.trim()).length)&&(z="\0\0"),d=z.charCodeAt(0),h=z.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){B+=z+u.charAt(j);break}default:58!==z.charCodeAt(H-1)&&(W+=o(z,d,h,z.charCodeAt(2)))}N=F=L=d=0,z="",h=u.charCodeAt(++j)}}switch(h){case 13:case 10:47===k?k=0:0===1+d&&107!==l&&0<z.length&&(F=1,z+="\0"),0<R*T&&s(0,z,r,e,I,E,W.length,l,f,l),E=1,I++;break;case 59:case 125:if(0===k+C+x+S){E++;break}default:switch(E++,v=u.charAt(j),h){case 9:case 32:if(0===C+S+k)switch(P){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===C+k+S&&(F=N=1,v="\f"+v);break;case 108:if(0===C+k+S+M&&0<L)switch(j-L){case 2:112===P&&58===u.charCodeAt(j-3)&&(M=P);case 8:111===D&&(M=D)}break;case 58:0===C+k+S&&(L=j);break;case 44:0===k+x+C+S&&(F=1,v+="\r");break;case 34:case 39:0===k&&(C=C===h?0:0===C?h:C);break;case 91:0===C+k+x&&S++;break;case 93:0===C+k+x&&S--;break;case 41:0===C+k+S&&x--;break;case 40:0===C+k+S&&(0===d&&(2*P+3*D==533||(d=1)),x++);break;case 64:0===k+x+C+S+L+m&&(m=1);break;case 42:case 47:if(!(0<C+S+x))switch(k){case 0:switch(2*h+3*u.charCodeAt(j+1)){case 235:k=47;break;case 220:H=j,k=42}break;case 42:47===h&&42===P&&H+2!==j&&(33===u.charCodeAt(H+2)&&(W+=u.substring(H,j+1)),v="",k=0)}}0===k&&(z+=v)}D=P,P=h,j++}if(0<(H=W.length)){if(F=r,0<R&&void 0!==(O=s(2,W,F,e,I,E,H,l,f,l))&&0===(W=O).length)return B+W+_;if(W=F.join(",")+"{"+W+"}",0!=A*M){switch(2!==A||i(W,2)||(M=0),M){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}M=0}}return B+W+_}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===A||2===A&&i(u,1)?"-webkit-"+u+u:u}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(P,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(O,"tb");break;case 232:u=a.replace(O,"tb-rl");break;case 220:u=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,u,c){for(var p,f=0,d=t;f<R;++f)switch(p=D[f].call(l,e,d,n,r,o,i,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function u(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?A=1:(A=2,L=e):A=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<R){var o=s(-1,n,r,r,I,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(V,r,n,0,0);return 0<R&&void 0!==(o=s(-2,i,r,r,I,E,i.length,0,0,0))&&(i=o),M=0,E=I=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,k=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,E=1,I=1,M=0,A=1,V=[],D=[],R=0,L=null,T=0;return l.use=function e(t){switch(t){case void 0:case null:R=D.length=0;break;default:if("function"==typeof t)D[R++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},l.set=u,void 0!==e&&u(e),l};var y="/*|*/";function O(e){e&&w.current.insert(e+"}")}var w={current:null},S=function(e,t,n,r,o,i,a,s,u,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return w.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+y;break;case 3:switch(s){case 102:case 112:return w.current.insert(n[0]+t),"";default:return t+(0===l?y:"")}case-2:t.split("/*|*/}").forEach(O)}};function k(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var x,C=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}},P=n(62506),E=n(40351),I=/[A-Z]|^ms/g,M=/_EMO_([^_]+?)_([^]*?)_EMO_/g,A=function(e){return 45===e.charCodeAt(1)},V=function(e){return null!=e&&"boolean"!=typeof e},D=(x={},function(e){return void 0===x[e]&&(x[e]=A(t=e)?t:t.replace(I,"-$&").toLowerCase()),x[e];var t}),R=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(M,(function(e,t,n){return T={name:t,styles:n,next:T},t}))}return 1===E.Z[e]||A(e)||"number"!=typeof t||0===t?t:t+"px"};function L(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return T={name:n.name,styles:n.styles,next:T},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)T={name:o.name,styles:o.styles,next:T},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=L(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":V(a)&&(r+=D(i)+":"+R(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=L(e,t,a,!1);switch(i){case"animation":case"animationName":r+=D(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)V(a[u])&&(r+=D(i)+":"+R(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=T,a=n(e);return T=i,L(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var T,j=/label:\s*([^\s;\n{]+)\s*;/g,F=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";T=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=L(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=L(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);j.lastIndex=0;for(var s,u="";null!==(s=j.exec(o));)u+="-"+s[1];return{name:(0,P.Z)(o)+u,styles:o,next:T}},N=Object.prototype.hasOwnProperty,H=(0,m.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new b(t),i={};r=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),o.use(e.stylisPlugins)(S),a=function(e,t,n,r){var i=t.name;w.current=n,o(e,t.styles),r&&(u.inserted[i]=!0)};var u={key:n,sheet:new g({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return u}():null),Z=(0,m.createContext)({}),U=(H.Provider,function(e){var t=function(t,n){return(0,m.createElement)(H.Consumer,null,(function(r){return e(t,r,n)}))};return(0,m.forwardRef)(t)}),z="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",W=function(e,t){var n={};for(var r in t)N.call(t,r)&&(n[r]=t[r]);return n[z]=e,n},_=function(){return null},B=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[z],a=[o],s="";"string"==typeof t.className?s=k(e.registered,a,t.className):null!=t.className&&(s=t.className+" ");var u=F(a);C(e,u,"string"==typeof i),s+=e.key+"-"+u.name;var l={};for(var c in t)N.call(t,c)&&"css"!==c&&c!==z&&(l[c]=t[c]);l.ref=r,l.className=s;var p=(0,m.createElement)(i,l),f=(0,m.createElement)(_,null);return(0,m.createElement)(m.Fragment,null,f,p)},$=U((function(e,t,n){return"function"==typeof e.css?(0,m.createElement)(Z.Consumer,null,(function(r){return B(t,e,r,n)})):B(t,e,null,n)}));const Y=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F(t)};var G=function(e,t){var n=arguments;if(null==t||!N.call(t,"css"))return m.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=$,o[1]=W(e,t);for(var i=2;i<r;i++)o[i]=n[i];return m.createElement.apply(null,o)},q=(m.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function X(e,t,n){var r=[],o=k(e,r,n);return r.length<2?n:o+t(r)}var K=function(){return null},J=U((function(e,t){return(0,m.createElement)(Z.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=F(n,t.registered);return C(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return X(t.registered,r,q(n))},theme:n},i=e.children(o),a=(0,m.createElement)(K,null);return(0,m.createElement)(m.Fragment,null,a,i)}))})),Q=n(91850),ee=n(4942),te=/[A-Z]|^ms/g,ne=/_EMO_([^_]+?)_([^]*?)_EMO_/g,re=function(e){return 45===e.charCodeAt(1)},oe=function(e){return null!=e&&"boolean"!=typeof e},ie=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=re(n=e)?n:n.replace(te,"-$&").toLowerCase()),t[e];var n}}(),ae=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ne,(function(e,t,n){return ue={name:t,styles:n,next:ue},t}))}return 1===E.Z[e]||re(e)||"number"!=typeof t||0===t?t:t+"px"};function se(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ue={name:n.name,styles:n.styles,next:ue},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ue={name:o.name,styles:o.styles,next:ue},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=se(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":oe(a)&&(r+=ie(i)+":"+ae(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=se(e,t,a,!1);switch(i){case"animation":case"animationName":r+=ie(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)oe(a[u])&&(r+=ie(i)+":"+ae(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=ue,a=n(e);return ue=i,se(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var ue,le=/label:\s*([^\s;\n{]+)\s*;/g,ce=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ue=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=se(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=se(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);le.lastIndex=0;for(var s,u="";null!==(s=le.exec(o));)u+="-"+s[1];return{name:(0,P.Z)(o)+u,styles:o,next:ue}};const pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ce(t)};var fe=n(66680),de=function(){};function he(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function me(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(he(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ve=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===p(e)&&null!==e?[e]:[]};function ge(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function be(e){return ge(e)?window.pageYOffset:e.scrollTop}function ye(e,t){ge(e)?window.scrollTo(0,t):e.scrollTop=t}function Oe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:de,o=be(e),i=t-o,a=10,s=0;function u(){var t=Oe(s+=a,o,i,n);ye(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function Se(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Pe(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,g=be(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=m-y,w=v-h,S=O+g,k=c-g-h,x=f-v+g+b,C=g+h-y,P=160;switch(o){case"auto":case"bottom":if(w>=d)return{placement:"bottom",maxHeight:t};if(k>=d&&!a)return i&&we(u,x,P),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&w>=r)return i&&we(u,x,P),{placement:"bottom",maxHeight:a?w-b:k-b};if("auto"===o||a){var E=t,I=a?O:S;return I>=r&&(E=Math.min(I-b-s.controlHeight,t)),{placement:"top",maxHeight:E}}if("bottom"===o)return ye(u,x),{placement:"bottom",maxHeight:t};break;case"top":if(O>=d)return{placement:"top",maxHeight:t};if(S>=d&&!a)return i&&we(u,C,P),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&O>=r){var M=t;return(!a&&S>=r||a&&O>=r)&&(M=a?O-y:S-y),i&&we(u,C,P),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var Ee=function(e){return"auto"===e?"bottom":e},Ie=(0,m.createContext)({getPortalPlacement:null}),Me=function(e){c(n,e);var t=Ce(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var l="fixed"===a,c=Pe({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!l,isFixedPosition:l,theme:u}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Ee(t);return xe(xe({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return u(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(m.Component);Me.contextType=Ie;var Ae=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Ve=Ae,De=Ae,Re=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return G("div",(0,i.Z)({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Re.defaultProps={children:"No options"};var Le=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return G("div",(0,i.Z)({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Le.defaultProps={children:"Loading..."};var Te=function(e){c(n,e);var t=Ce(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Ee(e.props.menuPlacement)&&e.setState({placement:n})},e}return u(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,s="fixed"===i;if(!t&&!s||!r)return null;var u=this.state.placement||Ee(o),l=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),c=s?0:window.pageYOffset,p=l[u]+c,f=G("div",{css:a("menuPortal",{offset:p,position:i,rect:l})},n);return G(Ie.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Q.createPortal)(f,t):f)}}]),n}(m.Component),je=Array.isArray,Fe=Object.keys,Ne=Object.prototype.hasOwnProperty;function He(e,t){if(e===t)return!0;if(e&&t&&"object"==p(e)&&"object"==p(t)){var n,r,o,i=je(e),a=je(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!He(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=e instanceof Date,u=t instanceof Date;if(s!=u)return!1;if(s&&u)return e.getTime()==t.getTime();var l=e instanceof RegExp,c=t instanceof RegExp;if(l!=c)return!1;if(l&&c)return e.toString()==t.toString();var f=Fe(e);if((r=f.length)!==Fe(t).length)return!1;for(n=r;0!=n--;)if(!Ne.call(t,f[n]))return!1;for(n=r;0!=n--;)if(!("_owner"===(o=f[n])&&e.$$typeof||He(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}function Ze(e,t){try{return He(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Ue(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Ue=function(){return n},n}var ze={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},We=function(e){var t=e.size,n=o(e,["size"]);return G("svg",(0,i.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ze},n))},_e=function(e){return G(We,(0,i.Z)({size:20},e),G("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Be=function(e){return G(We,(0,i.Z)({size:20},e),G("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},$e=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Ye=$e,Ge=$e,qe=function(){var e=Y.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ue()),Xe=function(e){var t=e.delay,n=e.offset;return G("span",{css:pe({animation:"".concat(qe," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ke=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return G("div",(0,i.Z)({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),G(Xe,{delay:0,offset:a}),G(Xe,{delay:160,offset:!0}),G(Xe,{delay:320,offset:!a}))};function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ke.defaultProps={size:4};var nt=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var it=function(e){var t=e.children,n=e.innerProps;return G("div",n,t)},at=it,st=it,ut=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,u=e.isDisabled,l=e.removeProps,c=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return G(J,null,(function(r){var h=r.css,m=r.cx;return G(p,{data:i,innerProps:ot(ot({},s),{},{className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))}),selectProps:c},G(f,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),G(d,{data:i,innerProps:ot({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},l),selectProps:c}))}))};function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ut.defaultProps={cropWithEllipsis:!0};var pt={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return G("div",(0,i.Z)({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||G(_e,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,s=e.isFocused,u=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return G("div",(0,i.Z)({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return G("div",(0,i.Z)({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||G(Be,null))},DownChevron:Be,CrossIcon:_e,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,s=e.headingProps,u=e.label,l=e.theme,c=e.selectProps;return G("div",{css:o("group",e),className:r({group:!0},n)},G(a,(0,i.Z)({},s,{selectProps:c,theme:l,getStyles:o,cx:r}),u),G("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.theme,s=(e.selectProps,o(e,["className","cx","getStyles","theme","selectProps"]));return G("div",(0,i.Z)({css:r("groupHeading",Qe({theme:a},s)),className:n({"group-heading":!0},t)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return G("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return G("span",(0,i.Z)({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerRef,s=e.isHidden,u=e.isDisabled,l=e.theme,c=(e.selectProps,o(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return G("div",{css:r("input",tt({theme:l},c))},G(fe.Z,(0,i.Z)({className:n({input:!0},t),inputRef:a,inputStyle:nt(s),disabled:u},c)))},LoadingIndicator:Ke,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,s=e.innerProps;return G("div",(0,i.Z)({css:o("menu",e),className:r({menu:!0},n)},s,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,s=e.innerRef,u=e.innerProps;return G("div",(0,i.Z)({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:s},u),t)},MenuPortal:Te,LoadingMessage:Le,NoOptionsMessage:Re,MultiValue:ut,MultiValueContainer:at,MultiValueLabel:st,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return G("div",n,t||G(_e,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,s=e.isFocused,u=e.isSelected,l=e.innerRef,c=e.innerProps;return G("div",(0,i.Z)({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":u},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return G("div",(0,i.Z)({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,s=e.isDisabled,u=e.isRtl;return G("div",(0,i.Z)({css:o("container",e),className:r({"--is-disabled":s,"--is-rtl":u},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,s=e.innerProps;return G("div",(0,i.Z)({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return G("div",{css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}},ft=function(e){return ct(ct({},pt),e.components)};function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ht(e,t){if(e){if("string"==typeof e)return dt(e,t);var n=Object.prototype.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)?dt(e,t):void 0}}function mt(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||ht(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.")}()}var vt=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||vt(r)&&vt(o)))return!1;var r,o;return!0}const bt=function(e,t){var n;void 0===t&&(t=gt);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};for(var yt=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ot=new RegExp("["+yt.map((function(e){return e.letters})).join("")+"]","g"),wt={},St=0;St<yt.length;St++)for(var kt=yt[St],xt=0;xt<kt.letters.length;xt++)wt[kt.letters[xt]]=kt.base;var Ct=function(e){return e.replace(Ot,(function(e){return wt[e]}))};function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Et=function(e){return e.replace(/^\s+|\s+$/g,"")},It=function(e){return"".concat(e.label," ").concat(e.value)},Mt={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},At=function(e){return G("span",(0,i.Z)({css:Mt},e))};function Vt(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,o(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return G("input",(0,i.Z)({ref:t},n,{css:pe({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var Dt=function(e){c(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)});function o(){return a(this,o),r.apply(this,arguments)}return u(o,[{key:"componentDidMount",value:function(){this.props.innerRef((0,Q.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),o}(m.Component),Rt=["boxSizing","height","overflow","paddingRight","position"],Lt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Tt(e){e.preventDefault()}function jt(e){e.stopPropagation()}function Ft(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Nt(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ht=!(!window.document||!window.document.createElement),Zt=0,Ut=function(e){c(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)});function o(){var e;a(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return u(o,[{key:"componentDidMount",value:function(){var e=this;if(Ht){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&Rt.forEach((function(t){var n=i&&i[t];e.originalStyles[t]=n})),n&&Zt<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+a||0;Object.keys(Lt).forEach((function(e){var t=Lt[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(u,"px"))}o&&Nt()&&(o.addEventListener("touchmove",Tt,this.listenerOptions),r&&(r.addEventListener("touchstart",Ft,this.listenerOptions),r.addEventListener("touchmove",jt,this.listenerOptions))),Zt+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Ht){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;Zt=Math.max(Zt-1,0),n&&Zt<1&&Rt.forEach((function(t){var n=e.originalStyles[t];i&&(i[t]=n)})),o&&Nt()&&(o.removeEventListener("touchmove",Tt,this.listenerOptions),r&&(r.removeEventListener("touchstart",Ft,this.listenerOptions),r.removeEventListener("touchmove",jt,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),o}(m.Component);Ut.defaultProps={accountForScrollbars:!0};var zt={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Wt=function(e){c(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)});function o(){var e;a(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return u(o,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?G("div",null,G("div",{onClick:this.blurSelectInput,css:zt}),G(Dt,{innerRef:this.getScrollTarget},t),r?G(Ut,{touchScrollTarget:r}):null):t}}]),o}(m.PureComponent);var _t=function(e){c(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)});function o(){var e;a(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,s=r.onTopLeave,u=e.scrollTarget,l=u.scrollTop,c=u.scrollHeight,p=u.clientHeight,f=e.scrollTarget,d=n>0,h=c-p-l,m=!1;h>n&&e.isBottom&&(i&&i(t),e.isBottom=!1),d&&e.isTop&&(s&&s(t),e.isTop=!1),d&&n>h?(o&&!e.isBottom&&o(t),f.scrollTop=c,m=!0,e.isBottom=!0):!d&&-n>l&&(a&&!e.isTop&&a(t),f.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return u(o,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return v().createElement(Dt,{innerRef:this.getScrollTarget},this.props.children)}}]),o}(m.Component);function Bt(e){var t=e.isEnabled,n=void 0===t||t,r=o(e,["isEnabled"]);return n?v().createElement(_t,r):r.children}var $t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Yt=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Gt=function(e){return!!e.isDisabled},qt={clearIndicator:Ge,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Ye,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:De,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},(0,ee.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,ee.Z)(t,"backgroundColor",a.neutral0),(0,ee.Z)(t,"borderRadius",o),(0,ee.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,ee.Z)(t,"marginBottom",i.menuGutter),(0,ee.Z)(t,"marginTop",i.menuGutter),(0,ee.Z)(t,"position","absolute"),(0,ee.Z)(t,"width","100%"),(0,ee.Z)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Ve,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Xt={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qt={backspaceRemovesValue:!0,blurInputOnSelect:Se(),captureMenuScroll:!Se(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){(0,ee.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:It,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?Et(t):t,l=a?Et(i(e)):i(e);return r&&(u=u.toLowerCase(),l=l.toLowerCase()),o&&(u=Ct(u),l=Ct(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Gt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},en=1,tn=function(e){c(s,e);var t,n,r=(t=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)});function s(e){var t;a(this,s),(t=r.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},t.blockOptionHover=!1,t.isComposing=!1,t.clearFocusValueOnUpdate=!1,t.commonProps=void 0,t.components=void 0,t.hasGroups=!1,t.initialTouchX=0,t.initialTouchY=0,t.inputIsHiddenAfterUpdate=void 0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.cacheComponents=function(e){t.components=ft({components:e})},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;o(e,Jt(Jt({},n),{},{name:i}))},t.setValue=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=t.props,i=o.closeMenuOnSelect,a=o.isMulti;t.onInputChange("",{action:"set-value"}),i&&(t.inputIsHiddenAfterUpdate=!a,t.onMenuClose()),t.clearFocusValueOnUpdate=!0,t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n,r=t.props,o=r.blurInputOnSelect,i=r.isMulti,a=t.state.selectValue;if(i)if(t.isOptionSelected(e,a)){var s=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e),t.announceAriaLiveSelection({event:"deselect-option",context:{value:t.getOptionLabel(e)}})}else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue([].concat(function(e){if(Array.isArray(e))return dt(e)}(n=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||ht(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]),"select-option",e),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));else t.isOptionDisabled(e,a)?t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e),isDisabled:!0}}):(t.setValue(e,"select-option"),t.announceAriaLiveSelection({event:"select-option",context:{value:t.getOptionLabel(e)}}));o&&t.blurInput()},t.removeValue=function(e){var n=t.state.selectValue,r=t.getOptionValue(e),o=n.filter((function(e){return t.getOptionValue(e)!==r}));t.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),t.announceAriaLiveSelection({event:"remove-value",context:{value:e?t.getOptionLabel(e):""}}),t.focusInput()},t.clearValue=function(){t.onChange(null,{action:"clear"})},t.popValue=function(){var e=t.state.selectValue,n=e[e.length-1],r=e.slice(0,e.length-1);t.announceAriaLiveSelection({event:"pop-value",context:{value:n?t.getOptionLabel(n):""}}),t.onChange(r.length?r:null,{action:"pop-value",removedValue:n})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return me.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return t.props.getOptionLabel(e)},t.getOptionValue=function(e){return t.props.getOptionValue(e)},t.getStyles=function(e,n){var r=qt[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getActiveDescendentId=function(){var e=t.props.menuIsOpen,n=t.state,r=n.menuOptions,o=n.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}},t.announceAriaLiveSelection=function(e){var n=e.event,r=e.context;t.setState({ariaLiveSelection:Yt(n,r)})},t.announceAriaLiveContext=function(e){var n=e.event,r=e.context;t.setState({ariaLiveContext:$t(n,Jt(Jt({},r),{},{label:t.props["aria-label"]}))})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.inputIsHiddenAfterUpdate=!r,t.onMenuClose()):t.openMenu("first"),e.preventDefault(),e.stopPropagation()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.stopPropagation(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ge(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=e.currentTarget.value;t.inputIsHiddenAfterUpdate=!1,t.onInputChange(n,{action:"input-change"}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){var n=t.props,r=n.isSearchable,o=n.isMulti;t.props.onFocus&&t.props.onFocus(e),t.inputIsHiddenAfterUpdate=!1,t.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),t.setState({isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur"}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){var e=t.props,n=e.hideSelectedOptions,r=e.isMulti;return void 0===n?r:n},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,f=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!p||!h||f&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.inputIsHiddenAfterUpdate=!1,t.onInputChange("",{action:"menu-close"}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.buildMenuOptions=function(e,n){var r=e.inputValue,o=void 0===r?"":r,i=e.options,a=function(e,r){var i=t.isOptionDisabled(e,n),a=t.isOptionSelected(e,n),s=t.getOptionLabel(e),u=t.getOptionValue(e);if(!(t.shouldHideSelectedOptions()&&a||!t.filterOption({label:s,value:u,data:e},o))){var l=i?void 0:function(){return t.onOptionHover(e)},c=i?void 0:function(){return t.selectOption(e)},p="".concat(t.getElementId("option"),"-").concat(r);return{innerProps:{id:p,onClick:c,onMouseMove:l,onMouseOver:l,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:s,type:"option",value:u}}};return i.reduce((function(e,n,r){if(n.options){t.hasGroups||(t.hasGroups=!0);var o=n.options.map((function(t,n){var o=a(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i="".concat(t.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:i,data:n,options:o})}}else{var s=a(n,"".concat(r));s&&(e.render.push(s),e.focusable.push(n))}return e}),{render:[],focusable:[]})};var n=e.value;t.cacheComponents=bt(t.cacheComponents,Ze).bind(f(t)),t.cacheComponents(e.components),t.instancePrefix="react-select-"+(t.props.instanceId||++en);var o=ve(n);t.buildMenuOptions=bt(t.buildMenuOptions,(function(e,t){var n=mt(e,2),r=n[0],o=n[1],i=mt(t,2),a=i[0];return o===i[1]&&r.inputValue===a.inputValue&&r.options===a.options})).bind(f(t));var i=e.menuIsOpen?t.buildMenuOptions(e,o):{render:[],focusable:[]};return t.state.menuOptions=i,t.state.selectValue=o,t}return u(s,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=ve(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},u=this.getNextFocusedValue(a),l=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:l,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused;(l&&!s&&e.isDisabled||l&&u&&!e.menuIsOpen)&&this.focusInput(),l&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?ye(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&ye(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,u=a.tabSelectsValue,l="first"===e?0:i.focusable.length-1;if(!s){var c=i.focusable.indexOf(r[0]);c>-1&&(l=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[l]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=i.length-1,l=-1;if(i.length){switch(e){case"previous":l=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(l=s+1)}-1===l&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==l,focusedValue:i[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,i=o.focusedOption,a=o.menuOptions,s=a.focusable;if(s.length){var u=0,l=s.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=l>0?l-1:s.length-1:"down"===e?u=(l+1)%s.length:"pageup"===e?(u=l-n)<0&&(u=0):"pagedown"===e?(u=l+n)>s.length-1&&(u=s.length-1):"last"===e&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Gt(s[u]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Xt):Jt(Jt({},Xt),this.props.theme):Xt}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,i=this.selectOption,a=this.props,s=a.isMulti,u=a.isRtl,l=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:i,setValue:o,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,u=i.inputValue,l=i.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.selectValue;return"value ".concat((0,e.getOptionLabel)(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&s?function(e){var t=e.focusedOption,n=e.options;return"option ".concat((0,e.getOptionLabel)(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",f=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:l({count:this.countOptions()})});return"".concat(c," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,u=this.components.Input,l=this.state.inputIsHidden,c=r||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return v().createElement(Vt,(0,i.Z)({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:de,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:s,value:""},p));var f=this.commonProps,d=f.cx,h=f.theme,m=f.selectProps;return v().createElement(u,(0,i.Z)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:a,form:s,theme:h,type:"text",value:o},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,p=c.controlShouldRenderValue,f=c.isDisabled,d=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!p)return h?null:v().createElement(u,(0,i.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:O}),m);if(d)return b.map((function(t,s){var u=t===y;return v().createElement(n,(0,i.Z)({},l,{components:{Container:r,Label:o,Remove:a},isFocused:u,isDisabled:f,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=b[0];return v().createElement(s,(0,i.Z)({},l,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v().createElement(e,(0,i.Z)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?v().createElement(e,(0,i.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return v().createElement(n,(0,i.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v().createElement(e,(0,i.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,p=t.Option,f=this.commonProps,d=this.state,h=d.focusedOption,m=d.menuOptions,g=this.props,b=g.captureMenuScroll,y=g.inputValue,O=g.isLoading,w=g.loadingMessage,S=g.minMenuHeight,k=g.maxMenuHeight,x=g.menuIsOpen,C=g.menuPlacement,P=g.menuPosition,E=g.menuPortalTarget,I=g.menuShouldBlockScroll,M=g.menuShouldScrollIntoView,A=g.noOptionsMessage,V=g.onMenuScrollToTop,D=g.onMenuScrollToBottom;if(!x)return null;var R,L=function(t){var n=h===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,v().createElement(p,(0,i.Z)({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=m.render.map((function(t){if("group"===t.type){t.type;var a=o(t,["type"]),s="".concat(t.key,"-heading");return v().createElement(n,(0,i.Z)({},f,a,{Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return L(e)})))}if("option"===t.type)return L(t)}));else if(O){var T=w({inputValue:y});if(null===T)return null;R=v().createElement(l,f,T)}else{var j=A({inputValue:y});if(null===j)return null;R=v().createElement(c,f,j)}var F={minMenuHeight:S,maxMenuHeight:k,menuPlacement:C,menuPosition:P,menuShouldScrollIntoView:M},N=v().createElement(Me,(0,i.Z)({},f,F),(function(t){var n=t.ref,r=t.placerProps,o=r.placement,u=r.maxHeight;return v().createElement(a,(0,i.Z)({},f,F,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:O,placement:o}),v().createElement(Bt,{isEnabled:b,onTopArrive:V,onBottomArrive:D},v().createElement(Wt,{isEnabled:I},v().createElement(s,(0,i.Z)({},f,{innerRef:e.getMenuListRef,isLoading:O,maxHeight:u}),R))))}));return E||"fixed"===P?v().createElement(u,(0,i.Z)({},f,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:P}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return v().createElement("input",{name:i,type:"hidden",value:s})}var u=a.length>0?a.map((function(t,n){return v().createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):v().createElement("input",{name:i,type:"hidden"});return v().createElement("div",null,u)}var l=a[0]?this.getOptionValue(a[0]):"";return v().createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?v().createElement(At,{"aria-live":"polite"},v().createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),v().createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return v().createElement(r,(0,i.Z)({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),v().createElement(t,(0,i.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:c}),v().createElement(o,(0,i.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),v().createElement(n,(0,i.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),s}(m.Component);tn.defaultProps=Qt;var nn,rn,on,an={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},sn=function(e){var t,n;return n=t=function(t){c(l,t);var n,r,s=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(n);if(r){var o=h(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return d(this,e)});function l(e){var t;return a(this,l),(t=s.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,n){var r=t.props,o=r.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,n,r.onInputChange);if(!i)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[i])t.setState({inputValue:i,loadedInputValue:i,loadedOptions:t.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=t.lastRequest={};t.setState({inputValue:i,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(i,(function(e){t.mounted&&(e&&(t.optionsCache[i]=e),a===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return u(l,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,n.isLoading),a=o(n,["loadOptions","isLoading"]),s=this.state,u=s.defaultOptions,l=s.inputValue,c=s.isLoading,p=s.loadedInputValue,f=s.loadedOptions,d=s.passEmptyOptions?[]:l&&p?f:u||[];return v().createElement(e,(0,i.Z)({},a,{ref:function(e){t.select=e},options:d,isLoading:c||r,onInputChange:this.handleInputChange}))}}]),l}(m.Component),t.defaultProps=an,n},un=(nn=tn,on=rn=function(e){c(s,e);var t,n,r=(t=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)});function s(){var e;a(this,s);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return u(s,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,o(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return v().createElement(nn,(0,i.Z)({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),s}(m.Component),rn.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},on);const ln=sn(un)},66680:(e,t,n)=>{var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(99196),a=u(i),s=u(n(45697));function u(e){return e&&e.__esModule?e:{default:e}}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||d(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h}}]);
dist/434.js ADDED
@@ -0,0 +1 @@
 
1
+ "use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[434],{44020:e=>{var r="%[a-f0-9]{2}",t=new RegExp(r,"gi"),n=new RegExp("("+r+")+","gi");function a(e,r){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;r=r||1;var t=e.slice(0,r),n=e.slice(r);return Array.prototype.concat.call([],a(t),a(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var r=e.match(t),n=1;n<r.length;n++)r=(e=a(r,n).join("")).match(t);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(r){return function(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},t=n.exec(e);t;){try{r[t[0]]=decodeURIComponent(t[0])}catch(e){var a=i(t[0]);a!==t[0]&&(r[t[0]]=a)}t=n.exec(e)}r["%C2"]="�";for(var o=Object.keys(r),s=0;s<o.length;s++){var c=o[s];e=e.replace(new RegExp(c,"g"),r[c])}return e}(e)}}},92806:e=>{e.exports=function(e,r){for(var t={},n=Object.keys(e),a=Array.isArray(r),i=0;i<n.length;i++){var o=n[i],s=e[o];(a?-1!==r.indexOf(o):r(o,s,e))&&(t[o]=s)}return t}},17563:(e,r,t)=>{const n=t(70610),a=t(44020),i=t(80500),o=t(92806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,r){return r.encode?r.strict?n(e):encodeURIComponent(e):e}function l(e,r){return r.decode?a(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort(((e,r)=>Number(e)-Number(r))).map((r=>e[r])):e}function f(e){const r=e.indexOf("#");return-1!==r&&(e=e.slice(0,r)),e}function d(e){const r=(e=f(e)).indexOf("?");return-1===r?"":e.slice(r+1)}function m(e,r){return r.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!r.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,r){c((r=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},r)).arrayFormatSeparator);const t=function(e){let r;switch(e.arrayFormat){case"index":return(e,t,n)=>{r=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),r?(void 0===n[e]&&(n[e]={}),n[e][r[1]]=t):n[e]=t};case"bracket":return(e,t,n)=>{r=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),r?void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=[t]:n[e]=t};case"colon-list-separator":return(e,t,n)=>{r=/(:list)$/.exec(e),e=e.replace(/:list$/,""),r?void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=[t]:n[e]=t};case"comma":case"separator":return(r,t,n)=>{const a="string"==typeof t&&t.includes(e.arrayFormatSeparator),i="string"==typeof t&&!a&&l(t,e).includes(e.arrayFormatSeparator);t=i?l(t,e):t;const o=a||i?t.split(e.arrayFormatSeparator).map((r=>l(r,e))):null===t?t:l(t,e);n[r]=o};case"bracket-separator":return(r,t,n)=>{const a=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!a)return void(n[r]=t?l(t,e):t);const i=null===t?[]:t.split(e.arrayFormatSeparator).map((r=>l(r,e)));void 0!==n[r]?n[r]=[].concat(n[r],i):n[r]=i};default:return(e,r,t)=>{void 0!==t[e]?t[e]=[].concat(t[e],r):t[e]=r}}}(r),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const a of e.split("&")){if(""===a)continue;let[e,o]=i(r.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?o:l(o,r),t(l(e,r),o,n)}for(const e of Object.keys(n)){const t=n[e];if("object"==typeof t&&null!==t)for(const e of Object.keys(t))t[e]=m(t[e],r);else n[e]=m(t,r)}return!1===r.sort?n:(!0===r.sort?Object.keys(n).sort():Object.keys(n).sort(r.sort)).reduce(((e,r)=>{const t=n[r];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?e[r]=p(t):e[r]=t,e}),Object.create(null))}r.extract=d,r.parse=y,r.stringify=(e,r)=>{if(!e)return"";c((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==e[t]||r.skipEmptyString&&""===e[t],n=function(e){switch(e.arrayFormat){case"index":return r=>(t,n)=>{const a=t.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[u(r,e),"[",a,"]"].join("")]:[...t,[u(r,e),"[",u(a,e),"]=",u(n,e)].join("")]};case"bracket":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[u(r,e),"[]"].join("")]:[...t,[u(r,e),"[]=",u(n,e)].join("")];case"colon-list-separator":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[u(r,e),":list="].join("")]:[...t,[u(r,e),":list=",u(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r="bracket-separator"===e.arrayFormat?"[]=":"=";return t=>(n,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?n:(a=null===a?"":a,0===n.length?[[u(t,e),r,u(a,e)].join("")]:[[n,u(a,e)].join(e.arrayFormatSeparator)])}default:return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,u(r,e)]:[...t,[u(r,e),"=",u(n,e)].join("")]}}(r),a={};for(const r of Object.keys(e))t(r)||(a[r]=e[r]);const i=Object.keys(a);return!1!==r.sort&&i.sort(r.sort),i.map((t=>{const a=e[t];return void 0===a?"":null===a?u(t,r):Array.isArray(a)?0===a.length&&"bracket-separator"===r.arrayFormat?u(t,r)+"[]":a.reduce(n(t),[]).join("&"):u(t,r)+"="+u(a,r)})).filter((e=>e.length>0)).join("&")},r.parseUrl=(e,r)=>{r=Object.assign({decode:!0},r);const[t,n]=i(e,"#");return Object.assign({url:t.split("?")[0]||"",query:y(d(e),r)},r&&r.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,r)}:{})},r.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[s]:!0},t);const n=f(e.url).split("?")[0]||"",a=r.extract(e.url),i=r.parse(a,{sort:!1}),o=Object.assign(i,e.query);let c=r.stringify(o,t);c&&(c=`?${c}`);let l=function(e){let r="";const t=e.indexOf("#");return-1!==t&&(r=e.slice(t)),r}(e.url);return e.fragmentIdentifier&&(l=`#${t[s]?u(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${n}${c}${l}`},r.pick=(e,t,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:a,query:i,fragmentIdentifier:c}=r.parseUrl(e,n);return r.stringifyUrl({url:a,query:o(i,t),fragmentIdentifier:c},n)},r.exclude=(e,t,n)=>{const a=Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r);return r.pick(e,a,n)}},28306:(e,r,t)=>{var n,a;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function s(e,r,t){var n;if(e.length!==r.length)return!1;for(n=t;n<e.length;n++)if(e[n]!==r[n])return!1;return!0}function c(e,r){var t,c;function u(){t=a?new WeakMap:o()}function l(){var t,n,a,i,o,u=arguments.length;for(i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];for(o=r.apply(null,i),(t=c(o)).isUniqueByDependants||(t.lastDependants&&!s(o,t.lastDependants,0)&&t.clear(),t.lastDependants=o),n=t.head;n;){if(s(n.args,i,1))return n!==t.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=t.head,n.prev=null,t.head.prev=n,t.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,t.head&&(t.head.prev=n,n.next=t.head),t.head=n,n.val}return r||(r=i),c=a?function(e){var r,a,i,s,c,u=t,l=!0;for(r=0;r<e.length;r++){if(!(c=a=e[r])||"object"!=typeof c){l=!1;break}u.has(a)?u=u.get(a):(i=new WeakMap,u.set(a,i),u=i)}return u.has(n)||((s=o()).isUniqueByDependants=l,u.set(n,s)),u.get(n)}:function(){return t},l.getDependants=r,l.clear=u,u(),l}t.d(r,{Z:()=>c}),n={},a="undefined"!=typeof WeakMap},19071:(e,r,t)=>{t.d(r,{V3:()=>s,dJ:()=>c,Zp:()=>o,m6:()=>f,YF:()=>p,Wc:()=>a});var n=function(){return n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},n.apply(this,arguments)};function a(e,r,t){return void 0===t&&(t=!0),n(n({},e),{decode:function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=e.decode.apply(e,n);return void 0===i||t&&null===i?r:i}})}function i(e,r){if(null==e)return e;if(0===e.length&&(!r||r&&""!==e))return null;var t=e instanceof Array?e[0]:e;return null==t||r||""!==t?t:null}var o={encode:function(e){return null==e?e:String(e)},decode:function(e){var r=i(e,!0);return null==r?r:String(r)}},s={encode:function(e){return e},decode:function(e){var r=function(e){return null==e||e instanceof Array?e:""===e?[]:[e]}(e);return r}},c={encode:function(e){return null==e?e:e?"1":"0"},decode:function(e){var r=i(e);return null==r?r:"1"===r||"0"!==r&&null}},u=t(17563),l=function(){return l=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},l.apply(this,arguments)};function p(e,r,t){var n=(0,u.stringify)(e,t);t&&t.transformSearchString&&(n=t.transformSearchString(n));var a=n.length?"?"+n:"",i=(0,u.parseUrl)(r.href||"").url+a;return l(l({},r),{key:""+Date.now(),href:i,search:a,query:e})}function f(e,r,t){var n=(0,u.parse)(r.search,{parseNumbers:!1});return p(l(l({},n),e),r,t)}'{}[],":'.split("").map((function(e){return[e,encodeURIComponent(e)]}))},80500:e=>{e.exports=(e,r)=>{if("string"!=typeof e||"string"!=typeof r)throw new TypeError("Expected the arguments to be of type `string`");if(""===r)return[e];const t=e.indexOf(r);return-1===t?[e]:[e.slice(0,t),e.slice(t+r.length)]}},70610:e=>{e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},27171:e=>{e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')}}]);
dist/469.js ADDED
@@ -0,0 +1 @@
 
1
+ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[469],{31511:(e,t,r)=>{"use strict";r.d(t,{sE:()=>O,x4:()=>p,PN:()=>d,pL:()=>E,NC:()=>w,N4:()=>m,CO:()=>S,AW:()=>x,SU:()=>j,ZE:()=>y,UC:()=>C,xJ:()=>k,z8:()=>Z,Y3:()=>P,bv:()=>b});var n=r(92819),s=r(6293),i=r(73470),o=r(4942),a=r(13092),c=r(86033);function u(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}var l=new WeakMap,f=new WeakMap;class d{constructor(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;u(this,l,{writable:!0,value:{}}),u(this,f,{writable:!0,value:{}}),(0,o.Z)(this,"add",((e,t,r)=>((0,c.Z)(this,l)[e]||((0,c.Z)(this,l)[e]=[]),(0,c.Z)(this,l)[e].push(t),r&&((0,c.Z)(this,f)[e]||((0,c.Z)(this,f)[e]=[]),(0,c.Z)(this,f)[e].push(r)),this))),(0,o.Z)(this,"hasErrors",(()=>this.getErrorCodes().length>0)),(0,o.Z)(this,"getErrorCodes",(()=>Object.keys((0,c.Z)(this,l)))),(0,o.Z)(this,"getErrorCode",(()=>this.getErrorCodes()[0])),(0,o.Z)(this,"getErrorMessages",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t)return(0,c.Z)(e,l)[t];const r=[];for(const t in(0,c.Z)(e,l))(0,c.Z)(e,l).hasOwnProperty(t)&&r.concat((0,c.Z)(e,l)[t]);return r})),(0,o.Z)(this,"getErrorMessage",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t=t||e.getErrorCode(),e.getErrorMessages(t)[0]})),(0,o.Z)(this,"getErrorData",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t=t||e.getErrorCode(),(0,c.Z)(e,f)[t]})),(0,o.Z)(this,"getAllErrorMessages",(()=>{const e=[];for(const t in(0,c.Z)(this,l))(0,c.Z)(this,l).hasOwnProperty(t)&&e.push(...(0,c.Z)(this,l)[t]);return e})),t&&(r&&((0,c.Z)(this,l)[t]=[r]),n&&((0,c.Z)(this,f)[t]=n))}static fromPHPObject(e){const t=new d;return(0,a.Z)(t,l,e.errors),(0,a.Z)(t,f,e.error_data),t}static fromApiError(e){const t=new d;if((0,c.Z)(t,l)[e.code]=[e.message],(0,c.Z)(t,f)[e.code]=[e.data],e.additional_errors)for(const r of e.additional_errors)(0,c.Z)(t,l)[r.code]=[r.message],r.data&&((0,c.Z)(t,f)||(0,a.Z)(t,f,[]),(0,c.Z)(t,f)[r.code].push(r.data));return t}}var h=r(95122);class g extends Error{constructor(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];super(e.message||(0,h.__)("An unknown error occurred.","better-wp-security"),...r),Error.captureStackTrace&&Error.captureStackTrace(this,g),this.__response=e;for(const t in e)e.hasOwnProperty(t)&&Object.defineProperty(this,t,{value:e[t],configurable:!0,enumerable:!0,writable:!0})}toString(){return this.__response.toString()}getResponse(){return this.__response}}class p{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];(0,o.Z)(this,"type",void 0),(0,o.Z)(this,"error",void 0),(0,o.Z)(this,"data",void 0),(0,o.Z)(this,"success",void 0),(0,o.Z)(this,"info",void 0),(0,o.Z)(this,"warning",void 0),this.type=e,this.error=t,this.data=r,this.success=n,this.info=s,this.warning=i,Object.seal(this)}isSuccess(){return this.type===p.SUCCESS}static async fromResponse(e){const t=t=>{const r=e.headers?.get(`X-Messages-${t}`);return r?JSON.parse(r):[]},r=204!==e.status&&e.json?await e.json():null,n=w(r),s=n.hasErrors()?p.ERROR:p.SUCCESS,i=t("Success"),o=t("Info"),a=t("Warning");return new p(s,n,r,i,o,a)}}Object.defineProperty(p,"SUCCESS",{value:"success",writable:!1,enumerable:!1,configurable:!1}),Object.defineProperty(p,"ERROR",{value:"error",writable:!1,enumerable:!1,configurable:!1});const v=(0,s.createContext)({getUrl(e){e="settings"===e?"itsec":"itsec-"+e;const t=(0,i.removeQueryArgs)(document.location.href,...Object.keys((0,i.getQueryArgs)(document.location.href)));return(0,i.addQueryArgs)(t,{page:e})}});function b(e){const{getUrl:t}=(0,s.useContext)(v);return t(e)}function Z(e){if(e<=999)return e.toString();if(e<=9999){const t=(e/1e3).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","k"):`${t}k`}if(e<=99999)return e.toString().substring(0,2)+"k";if(e<=999999)return e.toString().substring(0,3)+"k";if(e<=9999999){const t=(e/1e6).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","m"):`${t}m`}if(e<=99999999)return e.toString().substring(0,2)+"m";if(e<=999999999)return e.toString().substring(0,3)+"m";if(e<=9999999999){const t=(e/1e9).toFixed(1);return"0"===t.charAt(t.length-1)?t.replace(".0","b"):`${t}b`}return e}function y(e){if(!(0,n.isPlainObject)(e))return!1;const t=Object.keys(e);return 2===t.length&&t.includes("errors")&&t.includes("error_data")}function w(e){return e instanceof d?e:y(e)?d.fromPHPObject(e):function(e){if(!(0,n.isPlainObject)(e))return!1;const t=Object.keys(e);return(3===t.length||4===t.length)&&!(4===t.length&&!t.includes("additional_errors"))&&t.includes("code")&&t.includes("message")&&t.includes("data")}(e)?d.fromApiError(e):new d}function m(e){const t={};for(const[r,n]of e)t[r]=n;return t}function E(e,t){const r=[[],[]];for(const n of e)r[t(n)?0:1].push(n);return r}function k(e){if(e instanceof Error)throw e;throw new g(e)}const O="https://secure.gravatar.com/avatar/d7a973c7dab26985da5f961be7b74480?s=96&d=mm&f=y&r=g";function j(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,n.get)(e,["_links","self",0,"targetHints",t],r?void 0:[])}function x(e){return function(e,t){return(0,n.get)(e,["_links","self",0,"href"])}(e)}function S(e,t){if(e&&e.links)for(const r of e.links)if(r.rel===t)return r}function C(e,t){if("object"!==e.type)return e;let r;for(const s in t)t.hasOwnProperty(s)&&"hidden"===t[s]["ui:widget"]&&(r||(r=(0,n.cloneDeep)(e)),delete r.properties[s]);return r||e}function P(e){let t=[];if(!e)return t;const r=e instanceof d?e:w((0,n.pick)(e,["code","message","data"]));return"rest_invalid_param"===r.getErrorCode()&&(t=Object.values(r.getErrorData().params)),[...r.getAllErrorMessages(),...t]}},38085:function(e,t,r){var n,s,i,o;i=function(){var e=/^;\s*([^"=]+)=(?:"([^"]+)"|([^";,]+)(?:[;,]|$))/,t=/^<([^>]*)>/,r=/^\s*,\s*/;return{parse:function(n,s){for(var i,o,a,c=s&&s.extended||!1,u=[];n&&(n=n.trim(),o=t.exec(n));){for(var l={link:o[1]},f=(n=n.slice(o[0].length)).match(r);n&&(!f||f.index>0)&&(i=e.exec(n));)f=(n=n.slice(i[0].length)).match(r),"rel"===i[1]||"rev"===i[1]?(a=(i[2]||i[3]).split(/\s+/),l[i[1]]=a):l[i[1]]=i[2]||i[3];u.push(l),n=n.replace(r,"")}return c?u:u.reduce((function(e,t){return t.rel&&t.rel.forEach((function(r){e[r]=t.link})),e}),{})},stringify:function(e){var t=Object.keys(e).reduce((function(t,r){return t[e[r]]=t[e[r]]||[],t[e[r]].push(r),t}),{});return Object.keys(t).reduce((function(e,r){return e.concat("<"+r+'>; rel="'+t[r].join(" ")+'"')}),[]).join(", ")}}},o=this,e.exports?e.exports=i():"function"==typeof o.define&&o.define.amd?void 0===(s="function"==typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=s):o.li=i()},28306:(e,t,r)=>{"use strict";var n,s;function i(e){return[e]}function o(){var e={clear:function(){e.head=null}};return e}function a(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function c(e,t){var r,c;function u(){r=s?new WeakMap:o()}function l(){var r,n,s,i,o,u=arguments.length;for(i=new Array(u),s=0;s<u;s++)i[s]=arguments[s];for(o=t.apply(null,i),(r=c(o)).isUniqueByDependants||(r.lastDependants&&!a(o,r.lastDependants,0)&&r.clear(),r.lastDependants=o),n=r.head;n;){if(a(n.args,i,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,i)},i[0]=null,n.args=i,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=i),c=s?function(e){var t,s,i,a,c,u=r,l=!0;for(t=0;t<e.length;t++){if(!(c=s=e[t])||"object"!=typeof c){l=!1;break}u.has(s)?u=u.get(s):(i=new WeakMap,u.set(s,i),u=i)}return u.has(n)||((a=o()).isUniqueByDependants=l,u.set(n,a)),u.get(n)}:function(){return r},l.getDependants=t,l.clear=u,u(),l}r.d(t,{Z:()=>c}),n={},s="undefined"!=typeof WeakMap},1519:(e,t,r)=>{"use strict";function n(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r.d(t,{Z:()=>n})},86033:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(1519);function s(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,n.Z)(e,t,"get"))}},13092:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(1519);function s(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,(0,n.Z)(e,t,"set"),r),r}},4942:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>n})}}]);
dist/639.js ADDED
@@ -0,0 +1 @@
 
1
+ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[639],{54639:(e,r,t)=>{"use strict";t.d(r,{ZP:()=>Mt,P6:()=>n,Zz:()=>It});var n={};t.r(n),t.d(n,{ADDITIONAL_PROPERTY_FLAG:()=>qr,allowAdditionalItems:()=>ut,asNumber:()=>Xr,canExpand:()=>$r,dataURItoBlob:()=>Pt,deepEquals:()=>xt,findSchemaDefinition:()=>ct,getDefaultFormState:()=>Jr,getDefaultRegistry:()=>Ur,getDisplayLabel:()=>Yr,getMatchingOption:()=>kt,getSchemaType:()=>Vr,getUiOptions:()=>Gr,getWidget:()=>Lr,guessType:()=>lt,hasWidget:()=>zr,isConstant:()=>rt,isFilesArray:()=>it,isFixedItems:()=>at,isMultiSelect:()=>ot,isObject:()=>Zr,isSelect:()=>nt,localToUTC:()=>Ct,mergeDefaultsWithFormData:()=>Hr,mergeObjects:()=>Qr,mergeSchemas:()=>gt,optionsList:()=>st,orderProperties:()=>et,pad:()=>Ft,parseDateString:()=>Et,rangeSpec:()=>At,resolveSchema:()=>pt,retrieveSchema:()=>vt,schemaRequiresTrueValue:()=>Dt,shouldRender:()=>wt,stubExistingAdditionalProperties:()=>ft,toConstant:()=>tt,toDateString:()=>_t,toIdSchema:()=>St,toPathSchema:()=>Ot,utcToLocal:()=>jt});var o=t(26243),i=t.n(o),a=t(62680),u=t(95366),s=t(26771);function c(e,r,t){return r in e?s(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},n=o(t);"function"==typeof a&&n.push.apply(n,a(t).filter((function(e){return u(t,e).enumerable}))),n.forEach((function(r){c(e,r,t[r])}))}return e}var f=t(78149),p=t.n(f),d=t(85579),v=t(22013);function m(e){return m="function"==typeof d&&"symbol"==typeof v?function(e){return typeof e}:function(e){return e&&"function"==typeof d&&e.constructor===d&&e!==d.prototype?"symbol":typeof e},m(e)}function h(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function y(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),s(e,n.key,n)}}function g(e,r,t){return r&&y(e.prototype,r),t&&y(e,t),s(e,"prototype",{writable:!1}),e}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,r){if(r&&("object"===m(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}var w=t(22863),S=t(62962);function O(e){return O=w?S.bind():function(e){return e.__proto__||S(e)},O(e)}var E=t(5940);function _(e,r){return _=w?w.bind():function(e,r){return e.__proto__=r,e},_(e,r)}function j(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=E(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),s(e,"prototype",{writable:!1}),r&&_(e,r)}var C=t(99196),F=t.n(C),P=t(78718),A=t.n(P),k=t(27361),D=t.n(k),N=t(41609),T=t.n(N),I=t(64233),M=t.n(I),R=t(90487),W=t.n(R),q=t(27921),B=t.n(q);function $(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function U(e){return function(e){if(f(e))return $(e)}(e)||function(e){if(void 0!==d&&null!=e[v]||null!=e["@@iterator"])return q(e)}(e)||function(e,r){if(e){if("string"==typeof e)return $(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?q(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var V=t(7520),L=t.n(V),z=t(18428);function K(){return K=z?z.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},K.apply(this,arguments)}function J(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t,n,i={},a=o(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(a){var u=a(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var H=t(59864),G=t(19830),Y=t.n(G),Z=t(56219),Q=t.n(Z),X=t(93386),ee=t.n(X),re=t(89038),te=t(79529),ne=t.n(te);function oe(e){var r=e.type,t=void 0===r?"default":r,n=e.icon,o=e.className,i=J(e,["type","icon","className"]);return F().createElement("button",K({type:"button",className:"btn btn-".concat(t," ").concat(o)},i),F().createElement("i",{className:"glyphicon glyphicon-".concat(n)}))}function ie(e){var r=e.className,t=e.onClick,n=e.disabled;return F().createElement("div",{className:"row"},F().createElement("p",{className:"col-xs-3 col-xs-offset-9 text-right ".concat(r)},F().createElement(oe,{type:"info",icon:"plus",className:"btn-add col-xs-12","aria-label":"Add",tabIndex:"0",onClick:t,disabled:n})))}var ae=t(12782),ue=t.n(ae),se=t(45697),ce=t.n(se),le=ce().shape({ArrayFieldTemplate:ce().elementType,FieldTemplate:ce().elementType,ObjectFieldTemplate:ce().elementType,definitions:ce().object.isRequired,rootSchema:ce().object,fields:ce().objectOf(ce().elementType).isRequired,formContext:ce().object.isRequired,widgets:ce().objectOf(ce().oneOfType([ce().func,ce().object])).isRequired}),fe=(ce().bool,ce().bool,ce().object,ce().any,ce().object,ce().func,ce().func.isRequired,ce().func,ce().arrayOf(ce().string),ce().bool,le.isRequired,ce().bool,ce().object.isRequired,ce().shape({"ui:options":ce().shape({addable:ce().bool,orderable:ce().bool,removable:ce().bool})}),t(14670)),pe=t.n(fe);function de(e){var r=e.TitleField,t=e.idSchema,n=e.title,o=e.required;if(!n)return null;var i="".concat(t.$id,"__title");return F().createElement(r,{id:i,title:n,required:o})}function ve(e){var r=e.DescriptionField,t=e.idSchema,n=e.description;if(!n)return null;var o="".concat(t.$id,"__description");return F().createElement(r,{id:o,description:n})}function me(e){var r={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return F().createElement("div",{key:e.key,className:e.className},F().createElement("div",{className:e.hasToolbar?"col-xs-9":"col-xs-12"},e.children),e.hasToolbar&&F().createElement("div",{className:"col-xs-3 array-item-toolbox"},F().createElement("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},(e.hasMoveUp||e.hasMoveDown)&&F().createElement(oe,{icon:"arrow-up","aria-label":"Move up",className:"array-item-move-up",tabIndex:"-1",style:r,disabled:e.disabled||e.readonly||!e.hasMoveUp,onClick:e.onReorderClick(e.index,e.index-1)}),(e.hasMoveUp||e.hasMoveDown)&&F().createElement(oe,{icon:"arrow-down",className:"array-item-move-down","aria-label":"Move down",tabIndex:"-1",style:r,disabled:e.disabled||e.readonly||!e.hasMoveDown,onClick:e.onReorderClick(e.index,e.index+1)}),e.hasRemove&&F().createElement(oe,{type:"danger",icon:"remove","aria-label":"Remove",className:"array-item-remove",tabIndex:"-1",style:r,disabled:e.disabled||e.readonly,onClick:e.onDropIndexClick(e.index)}))))}function he(e){return F().createElement("fieldset",{className:e.className,id:e.idSchema.$id},F().createElement(de,{key:"array-field-title-".concat(e.idSchema.$id),TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&F().createElement("div",{className:"field-description",key:"field-description-".concat(e.idSchema.$id)},e.uiSchema["ui:description"]||e.schema.description),F().createElement("div",{className:"row array-item-list",key:"array-item-list-".concat(e.idSchema.$id)},e.items&&e.items.map(me)),e.canAdd&&F().createElement(ie,{className:"array-item-add",onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function ye(e){return F().createElement("fieldset",{className:e.className,id:e.idSchema.$id},F().createElement(de,{key:"array-field-title-".concat(e.idSchema.$id),TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&F().createElement(ve,{key:"array-field-description-".concat(e.idSchema.$id),DescriptionField:e.DescriptionField,idSchema:e.idSchema,description:e.uiSchema["ui:description"]||e.schema.description}),F().createElement("div",{className:"row array-item-list",key:"array-item-list-".concat(e.idSchema.$id)},e.items&&e.items.map((function(e){return me(e)}))),e.canAdd&&F().createElement(ie,{className:"array-item-add",onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function ge(){return pe().generate()}function be(e){return p()(e)?e.map((function(e){return{key:ge(),item:e}})):[]}function xe(e){return e.map((function(e){return e.item}))}var we=function(e){function r(e){var t;h(this,r),c(b(t=x(this,O(r).call(this,e))),"_getNewFormDataRow",(function(){var e=t.props,r=e.schema,n=e.registry,o=(void 0===n?Ur():n).rootSchema,i=r.items;return at(r)&&ut(r)&&(i=r.additionalItems),Jr(i,void 0,o)})),c(b(t),"onAddClick",(function(e){e&&e.preventDefault();var r=t.props.onChange,n={key:ge(),item:t._getNewFormDataRow()},o=[].concat(U(t.state.keyedFormData),[n]);t.setState({keyedFormData:o,updatedKeyedFormData:!0},(function(){return r(xe(o))}))})),c(b(t),"onAddIndexClick",(function(e){return function(r){r&&r.preventDefault();var n=t.props.onChange,o={key:ge(),item:t._getNewFormDataRow()},i=U(t.state.keyedFormData);i.splice(e,0,o),t.setState({keyedFormData:i,updatedKeyedFormData:!0},(function(){return n(xe(i))}))}})),c(b(t),"onDropIndexClick",(function(e){return function(r){r&&r.preventDefault();var n,o=t.props.onChange,i=t.state.keyedFormData;if(t.props.errorSchema){n={};var a=t.props.errorSchema;for(var u in a)(u=ne()(u))<e?n[u]=a[u]:u>e&&(n[u-1]=a[u])}var s=i.filter((function(r,t){return t!==e}));t.setState({keyedFormData:s,updatedKeyedFormData:!0},(function(){return o(xe(s),n)}))}})),c(b(t),"onReorderClick",(function(e,r){return function(n){n&&(n.preventDefault(),n.target.blur());var o,i=t.props.onChange;if(t.props.errorSchema){o={};var a=t.props.errorSchema;for(var u in a)u==e?o[r]=a[e]:u==r?o[e]=a[r]:o[u]=a[u]}var s,c=t.state.keyedFormData,l=((s=c.slice()).splice(e,1),s.splice(r,0,c[e]),s);t.setState({keyedFormData:l},(function(){return i(xe(l),o)}))}})),c(b(t),"onChangeForIndex",(function(e){return function(r,n){var o=t.props,i=o.formData;(0,o.onChange)(i.map((function(t,n){return e===n?void 0===r?null:r:t})),n&&t.props.errorSchema&&l({},t.props.errorSchema,c({},e,n)))}})),c(b(t),"onSelectChange",(function(e){t.props.onChange(e)}));var n=be(e.formData);return t.state={keyedFormData:n,updatedKeyedFormData:!1},t}return j(r,e),g(r,[{key:"isItemRequired",value:function(e){return p()(e.type)?!ue()(e.type,"null"):"null"!==e.type}},{key:"canAddItem",value:function(e){var r=this.props,t=r.schema,n=Gr(r.uiSchema).addable;return!1!==n&&(n=void 0===t.maxItems||e.length<t.maxItems),n}},{key:"render",value:function(){var e=this.props,r=e.schema,t=e.uiSchema,n=e.idSchema,o=e.registry,i=void 0===o?Ur():o,a=i.rootSchema;if(!r.hasOwnProperty("items")){var u=i.fields.UnsupportedField;return F().createElement(u,{schema:r,idSchema:n,reason:"Missing items definition"})}return at(r)?this.renderFixedArray():it(r,t,a)?this.renderFiles():ot(r,a)?this.renderMultiSelect():this.renderNormalArray()}},{key:"renderNormalArray",value:function(){var e=this,r=this.props,t=r.schema,n=r.uiSchema,o=r.errorSchema,i=r.idSchema,a=r.name,u=r.required,s=r.disabled,c=r.readonly,l=r.autofocus,f=r.registry,p=void 0===f?Ur():f,d=r.onBlur,v=r.onFocus,m=r.idPrefix,h=r.rawErrors,y=void 0===t.title?a:t.title,g=p.ArrayFieldTemplate,b=p.rootSchema,x=p.fields,w=p.formContext,S=x.TitleField,O=x.DescriptionField,E=vt(t.items,b),_=xe(this.state.keyedFormData),j={canAdd:this.canAddItem(_),items:this.state.keyedFormData.map((function(r,a){var u=r.key,s=r.item,c=vt(t.items,b,s),f=o?o[a]:void 0,p=St(c,i.$id+"_"+a,b,s,m);return e.renderArrayFieldItem({key:u,index:a,canMoveUp:a>0,canMoveDown:a<_.length-1,itemSchema:c,itemIdSchema:p,itemErrorSchema:f,itemData:s,itemUiSchema:n.items,autofocus:l&&0===a,onBlur:d,onFocus:v})})),className:"field field-array field-array-of-".concat(E.type),DescriptionField:O,disabled:s,idSchema:i,uiSchema:n,onAddClick:this.onAddClick,readonly:c,required:u,schema:t,title:y,TitleField:S,formContext:w,formData:_,rawErrors:h,registry:p},C=n["ui:ArrayFieldTemplate"]||g||ye;return F().createElement(C,j)}},{key:"renderMultiSelect",value:function(){var e=this.props,r=e.schema,t=e.idSchema,n=e.uiSchema,o=e.formData,i=e.disabled,a=e.readonly,u=e.required,s=e.label,c=e.placeholder,f=e.autofocus,p=e.onBlur,d=e.onFocus,v=e.registry,m=void 0===v?Ur():v,h=e.rawErrors,y=this.props.formData,g=m.widgets,b=m.rootSchema,x=m.formContext,w=st(vt(r.items,b,o)),S=l({},Gr(n),{enumOptions:w}),O=S.widget,E=void 0===O?"select":O,_=J(S,["widget"]),j=Lr(r,E,g);return F().createElement(j,{id:t&&t.$id,multiple:!0,onChange:this.onSelectChange,onBlur:p,onFocus:d,options:_,schema:r,registry:m,value:y,disabled:i,readonly:a,required:u,label:s,placeholder:c,formContext:x,autofocus:f,rawErrors:h})}},{key:"renderFiles",value:function(){var e=this.props,r=e.schema,t=e.uiSchema,n=e.idSchema,o=e.name,i=e.disabled,a=e.readonly,u=e.autofocus,s=e.onBlur,c=e.onFocus,l=e.registry,f=void 0===l?Ur():l,p=e.rawErrors,d=r.title||o,v=this.props.formData,m=f.widgets,h=f.formContext,y=Gr(t),g=y.widget,b=void 0===g?"files":g,x=J(y,["widget"]),w=Lr(r,b,m);return F().createElement(w,{options:x,id:n&&n.$id,multiple:!0,onChange:this.onSelectChange,onBlur:s,onFocus:c,schema:r,title:d,value:v,disabled:i,readonly:a,formContext:h,autofocus:u,rawErrors:p})}},{key:"renderFixedArray",value:function(){var e=this,r=this.props,t=r.schema,n=r.uiSchema,o=r.formData,i=r.errorSchema,a=r.idPrefix,u=r.idSchema,s=r.name,c=r.required,l=r.disabled,f=r.readonly,d=r.autofocus,v=r.registry,m=void 0===v?Ur():v,h=r.onBlur,y=r.onFocus,g=r.rawErrors,b=t.title||s,x=this.props.formData,w=m.ArrayFieldTemplate,S=m.rootSchema,O=m.fields,E=m.formContext,_=O.TitleField,j=t.items.map((function(e,r){return vt(e,S,o[r])})),C=ut(t)?vt(t.additionalItems,S,o):null;(!x||x.length<j.length)&&(x=(x=x||[]).concat(new Array(j.length-x.length)));var P={canAdd:this.canAddItem(x)&&C,className:"field field-array field-array-fixed-items",disabled:l,idSchema:u,formData:o,items:this.state.keyedFormData.map((function(r,o){var s=r.key,c=r.item,l=o>=j.length,f=l?vt(t.additionalItems,S,c):j[o],v=St(f,u.$id+"_"+o,S,c,a),m=l?n.additionalItems||{}:p()(n.items)?n.items[o]:n.items||{},g=i?i[o]:void 0;return e.renderArrayFieldItem({key:s,index:o,canRemove:l,canMoveUp:o>=j.length+1,canMoveDown:l&&o<x.length-1,itemSchema:f,itemData:c,itemUiSchema:m,itemIdSchema:v,itemErrorSchema:g,autofocus:d&&0===o,onBlur:h,onFocus:y})})),onAddClick:this.onAddClick,readonly:f,required:c,schema:t,uiSchema:n,title:b,TitleField:_,formContext:E,rawErrors:g},A=n["ui:ArrayFieldTemplate"]||w||he;return F().createElement(A,P)}},{key:"renderArrayFieldItem",value:function(e){var r=e.key,t=e.index,n=e.canRemove,o=void 0===n||n,a=e.canMoveUp,u=void 0===a||a,s=e.canMoveDown,c=void 0===s||s,f=e.itemSchema,p=e.itemData,d=e.itemUiSchema,v=e.itemIdSchema,m=e.itemErrorSchema,h=e.autofocus,y=e.onBlur,g=e.onFocus,b=e.rawErrors,x=this.props,w=x.disabled,S=x.readonly,O=x.uiSchema,E=x.registry,_=(void 0===E?Ur():E).fields.SchemaField,j=l({orderable:!0,removable:!0},O["ui:options"]),C=j.orderable,P={moveUp:C&&u,moveDown:C&&c,remove:j.removable&&o};return P.toolbar=i()(P).some((function(e){return P[e]})),{children:F().createElement(_,{index:t,schema:f,uiSchema:d,formData:p,errorSchema:m,idSchema:v,required:this.isItemRequired(f),onChange:this.onChangeForIndex(t),onBlur:y,onFocus:g,registry:this.props.registry,disabled:this.props.disabled,readonly:this.props.readonly,autofocus:h,rawErrors:b}),className:"array-item",disabled:w,hasToolbar:P.toolbar,hasMoveUp:P.moveUp,hasMoveDown:P.moveDown,hasRemove:P.remove,index:t,key:r,onAddIndexClick:this.onAddIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:S}}},{key:"itemTitle",get:function(){var e=this.props.schema;return e.items.title||e.items.description||"Item"}}],[{key:"getDerivedStateFromProps",value:function(e,r){if(r.updatedKeyedFormData)return{updatedKeyedFormData:!1};var t=e.formData||[],n=r.keyedFormData||[];return{keyedFormData:t.length===n.length?n.map((function(e,r){return{key:e.key,item:t[r]}})):be(t)}}}]),r}(C.Component);c(we,"defaultProps",{uiSchema:{},formData:[],idSchema:{},required:!1,disabled:!1,readonly:!1,autofocus:!1});const Se=we;function Oe(e){var r,t=e.schema,n=e.name,o=e.uiSchema,i=e.idSchema,a=e.formData,u=e.registry,s=void 0===u?Ur():u,c=e.required,f=e.disabled,d=e.readonly,v=e.autofocus,m=e.onChange,h=e.onFocus,y=e.onBlur,g=e.rawErrors,b=t.title,x=s.widgets,w=s.formContext,S=s.fields,O=Gr(o),E=O.widget,_=void 0===E?"checkbox":E,j=J(O,["widget"]),C=Lr(t,_,x);return r=p()(t.oneOf)?st({oneOf:t.oneOf.map((function(e){return l({},e,{title:e.title||(!0===e.const?"Yes":"No")})}))}):st({enum:t.enum||[!0,!1],enumNames:t.enumNames||(t.enum&&!1===t.enum[0]?["No","Yes"]:["Yes","No"])}),F().createElement(C,{options:l({},j,{enumOptions:r}),schema:t,id:i&&i.$id,onChange:m,onFocus:h,onBlur:y,label:void 0===b?n:b,value:a,required:c,disabled:f,readonly:d,registry:s,formContext:w,autofocus:v,rawErrors:g,DescriptionField:S.DescriptionField})}Oe.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1};const Ee=Oe;var _e=t(16490),je=t.n(_e),Ce=function(e){function r(e){var t;h(this,r),c(b(t=x(this,O(r).call(this,e))),"onOptionChange",(function(e){var r=ne()(e,10),n=t.props,o=n.formData,i=n.onChange,a=n.options,u=n.registry.rootSchema,s=vt(a[r],u,o),c=void 0;if("object"===lt(o)&&("object"===s.type||s.properties)){c=K({},o);var l=a.slice();l.splice(r,1);var f=!0,p=!1,d=void 0;try{for(var v,m=je()(l);!(f=(v=m.next()).done);f=!0){var h=v.value;if(h.properties)for(var y in h.properties)c.hasOwnProperty(y)&&delete c[y]}}catch(e){p=!0,d=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw d}}}i(Jr(a[r],c,u)),t.setState({selectedOption:ne()(e,10)})}));var n=t.props,o=n.formData,i=n.options;return t.state={selectedOption:t.getMatchingOption(o,i)},t}return j(r,e),g(r,[{key:"componentDidUpdate",value:function(e,r){if(!xt(this.props.formData,e.formData)&&this.props.idSchema.$id===e.idSchema.$id){var t=this.getMatchingOption(this.props.formData,this.props.options);if(!r||t===this.state.selectedOption)return;this.setState({selectedOption:t})}}},{key:"getMatchingOption",value:function(e,r){var t=kt(e,r,this.props.registry.rootSchema);return 0!==t?t:this&&this.state?this.state.selectedOption:0}},{key:"render",value:function(){var e,r=this.props,t=r.baseType,n=r.disabled,o=r.errorSchema,i=r.formData,a=r.idPrefix,u=r.idSchema,s=r.onBlur,c=r.onChange,l=r.onFocus,f=r.options,p=r.registry,d=r.uiSchema,v=r.schema,m=p.fields.SchemaField,h=p.widgets,y=this.state.selectedOption,g=Gr(d),b=g.widget,x=void 0===b?"select":b,w=J(g,["widget"]),S=Lr({type:"number"},x,h),O=f[y]||null;O&&(e=O.type?O:K({},O,{type:t}));var E=f.map((function(e,r){return{label:e.title||"Option ".concat(r+1),value:r}}));return F().createElement("div",{className:"panel panel-default panel-body"},F().createElement("div",{className:"form-group"},F().createElement(S,K({id:"".concat(u.$id).concat(v.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:l,value:y,options:{enumOptions:E}},w))),null!==O&&F().createElement(m,{schema:e,uiSchema:d,errorSchema:o,idSchema:u,idPrefix:a,formData:i,onChange:c,onBlur:s,onFocus:l,registry:p,disabled:n}))}}]),r}(C.Component);Ce.defaultProps={disabled:!1,errorSchema:{},idSchema:{},uiSchema:{}};const Fe=Ce;var Pe=/\.([0-9]*0)*$/,Ae=/[0.]0*$/,ke=function(e){function r(e){var t;return h(this,r),c(b(t=x(this,O(r).call(this,e))),"handleChange",(function(e){t.setState({lastValue:e}),"."==="".concat(e).charAt(0)&&(e="0".concat(e));var r="string"==typeof e&&e.match(Pe)?Xr(e.replace(Ae,"")):Xr(e);t.props.onChange(r)})),t.state={lastValue:e.value},t}return j(r,e),g(r,[{key:"render",value:function(){var e=this.props.registry.fields.StringField,r=this.props,t=r.formData,n=J(r,["formData"]),o=this.state.lastValue,i=t;if("string"==typeof o&&"number"==typeof i){var a=new RegExp("".concat(i).replace(".","\\.")+"\\.?0*$");o.match(a)&&(i=o)}return F().createElement(e,K({},n,{formData:i,onChange:this.handleChange}))}}]),r}(F().Component);ke.defaultProps={uiSchema:{}};const De=ke;var Ne=t(8450),Te=t.n(Ne);function Ie(e){var r=e.TitleField,t=e.DescriptionField;return F().createElement("fieldset",{id:e.idSchema.$id},(e.uiSchema["ui:title"]||e.title)&&F().createElement(r,{id:"".concat(e.idSchema.$id,"__title"),title:e.title||e.uiSchema["ui:title"],required:e.required,formContext:e.formContext}),e.description&&F().createElement(t,{id:"".concat(e.idSchema.$id,"__description"),description:e.description,formContext:e.formContext}),e.properties.map((function(e){return e.content})),$r(e.schema,e.uiSchema,e.formData)&&F().createElement(ie,{className:"object-property-expand",onClick:e.onAddClick(e.schema),disabled:e.disabled||e.readonly}))}var Me=function(e){function r(){var e,t;h(this,r);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return c(b(t=x(this,(e=O(r)).call.apply(e,[this].concat(o)))),"state",{wasPropertyKeyModified:!1,additionalProperties:{}}),c(b(t),"onPropertyChange",(function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,o){!n&&r&&(n="");var i=l({},t.props.formData,c({},e,n));t.props.onChange(i,o&&t.props.errorSchema&&l({},t.props.errorSchema,c({},e,o)))}})),c(b(t),"onDropPropertyClick",(function(e){return function(r){r.preventDefault();var n=t.props,o=n.onChange,i=l({},n.formData);delete i[e],o(i)}})),c(b(t),"getAvailableKey",(function(e,r){for(var t=0,n=e;r.hasOwnProperty(n);)n="".concat(e,"-").concat(++t);return n})),c(b(t),"onKeyChange",(function(e){return function(r,n){if(e!==r){r=t.getAvailableKey(r,t.props.formData);var o=l({},t.props.formData),a=c({},e,r),u=i()(o).map((function(e){return c({},a[e]||e,o[e])})),s=K.apply(void 0,[{}].concat(U(u)));t.setState({wasPropertyKeyModified:!0}),t.props.onChange(s,n&&t.props.errorSchema&&l({},t.props.errorSchema,c({},r,n)))}}})),c(b(t),"handleAddClick",(function(e){return function(){var r=e.additionalProperties.type,n=l({},t.props.formData);if(e.additionalProperties.hasOwnProperty("$ref")){var o=t.props.registry,i=void 0===o?Ur():o;r=vt({$ref:e.additionalProperties.$ref},i.rootSchema,t.props.formData).type}n[t.getAvailableKey("newKey",n)]=t.getDefaultValue(r),t.props.onChange(n)}})),t}return j(r,e),g(r,[{key:"isRequired",value:function(e){var r=this.props.schema;return p()(r.required)&&-1!==r.required.indexOf(e)}},{key:"getDefaultValue",value:function(e){switch(e){case"string":default:return"New Value";case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{}}}},{key:"render",value:function(){var e,r=this,t=this.props,n=t.uiSchema,o=t.formData,a=t.errorSchema,u=t.idSchema,s=t.name,c=t.required,l=t.disabled,f=t.readonly,p=t.idPrefix,d=t.onBlur,v=t.onFocus,m=t.registry,h=void 0===m?Ur():m,y=h.rootSchema,g=h.fields,b=h.formContext,x=g.SchemaField,w=g.TitleField,S=g.DescriptionField,O=vt(this.props.schema,y,o),E=void 0===O.title?s:O.title,_=n["ui:description"]||O.description;try{e=et(i()(O.properties||{}),n["ui:order"])}catch(e){return F().createElement("div",null,F().createElement("p",{className:"config-error",style:{color:"red"}},"Invalid ",s||"root"," object field configuration:",F().createElement("em",null,e.message),"."),F().createElement("pre",null,Te()(O)))}var j=n["ui:ObjectFieldTemplate"]||h.ObjectFieldTemplate||Ie,C={title:n["ui:title"]||E,description:_,TitleField:w,DescriptionField:S,properties:e.map((function(e){var t=O.properties[e].hasOwnProperty(qr);return{content:F().createElement(x,{key:e,name:e,required:r.isRequired(e),schema:O.properties[e],uiSchema:t?n.additionalProperties:n[e],errorSchema:a[e],idSchema:u[e],idPrefix:p,formData:(o||{})[e],wasPropertyKeyModified:r.state.wasPropertyKeyModified,onKeyChange:r.onKeyChange(e),onChange:r.onPropertyChange(e,t),onBlur:d,onFocus:v,registry:h,disabled:l,readonly:f,onDropPropertyClick:r.onDropPropertyClick}),name:e,readonly:f,disabled:l,required:c}})),readonly:f,disabled:l,required:c,idSchema:u,uiSchema:n,schema:O,formData:o,formContext:b};return F().createElement(j,K({},C,{onAddClick:this.handleAddClick}))}}]),r}(C.Component);c(Me,"defaultProps",{uiSchema:{},formData:{},errorSchema:{},idSchema:{},required:!1,disabled:!1,readonly:!1});const Re=Me;var We={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function qe(e){var r=e.label,t=e.required,n=e.id;return r?F().createElement("label",{className:"control-label",htmlFor:n},r,t&&F().createElement("span",{className:"required"},"*")):null}function Be(e){var r=e.id,t=e.label,n=e.onChange;return F().createElement("input",{className:"form-control",type:"text",id:r,onBlur:function(e){return n(e.target.value)},defaultValue:t})}function $e(e){var r=e.help;return r?"string"==typeof r?F().createElement("p",{className:"help-block"},r):F().createElement("div",{className:"help-block"},r):null}function Ue(e){var r=e.errors,t=void 0===r?[]:r;return 0===t.length?null:F().createElement("div",null,F().createElement("ul",{className:"error-detail bs-callout bs-callout-info"},t.filter((function(e){return!!e})).map((function(e,r){return F().createElement("li",{className:"text-danger",key:r},e)}))))}function Ve(e){var r=e.id,t=e.label,n=e.children,o=e.errors,i=e.help,a=e.description,u=e.hidden,s=e.required,c=e.displayLabel;return u?F().createElement("div",{className:"hidden"},n):F().createElement(Le,e,c&&F().createElement(qe,{label:t,required:s,id:r}),c&&a?a:null,n,o,i)}function Le(e){var r=e.id,t=e.classNames,n=e.disabled,o=e.label,i=e.onKeyChange,a=e.onDropPropertyClick,u=e.readonly,s=e.required,c=e.schema,l="".concat(o," Key");return c.hasOwnProperty(qr)?F().createElement("div",{className:t},F().createElement("div",{className:"row"},F().createElement("div",{className:"col-xs-5 form-additional"},F().createElement("div",{className:"form-group"},F().createElement(qe,{label:l,required:s,id:"".concat(r,"-key")}),F().createElement(Be,{label:o,required:s,id:"".concat(r,"-key"),onChange:i}))),F().createElement("div",{className:"form-additional form-group col-xs-5"},e.children),F().createElement("div",{className:"col-xs-2"},F().createElement(oe,{type:"danger",icon:"remove",className:"array-item-remove btn-block",tabIndex:"-1",style:{border:"0"},disabled:n||u,onClick:a(o)})))):F().createElement("div",{className:t},e.children)}Ve.defaultProps={hidden:!1,readonly:!1,required:!1,displayLabel:!0};var ze=function(e){function r(){return h(this,r),x(this,O(r).apply(this,arguments))}return j(r,e),g(r,[{key:"shouldComponentUpdate",value:function(e,r){return!xt(this.props,e)}},{key:"render",value:function(){return function(e){var r=e.uiSchema,t=e.formData,n=e.errorSchema,o=e.idPrefix,a=e.name,u=e.onChange,s=e.onKeyChange,c=e.onDropPropertyClick,f=e.required,p=e.registry,d=void 0===p?Ur():p,v=e.wasPropertyKeyModified,m=void 0!==v&&v,h=d.rootSchema,y=d.fields,g=d.formContext,b=r["ui:FieldTemplate"]||d.FieldTemplate||Ve,x=e.idSchema,w=vt(e.schema,h,t),S=function(e,r,t,n){var o=r["ui:field"];if("function"==typeof o)return o;if("string"==typeof o&&o in n)return n[o];var i=We[Vr(e)];return i||!e.anyOf&&!e.oneOf?i in n?n[i]:function(){var r=n.UnsupportedField;return F().createElement(r,{schema:e,idSchema:t,reason:"Unknown field type ".concat(e.type)})}:function(){return null}}(w,r,x=Qr(St(w,null,h,t,o),x),y),O=y.DescriptionField,E=Boolean(e.disabled||r["ui:disabled"]),_=Boolean(e.readonly||r["ui:readonly"]||e.schema.readOnly||w.readOnly),j=Boolean(e.autofocus||r["ui:autofocus"]);if(0===i()(w).length)return null;var C,P=Yr(w,r,h),A=n.__errors,k=J(n,["__errors"]),D=F().createElement(S,K({},e,{idSchema:x,schema:w,uiSchema:l({},r,{classNames:void 0}),disabled:E,readonly:_,autofocus:j,errorSchema:k,formContext:g,rawErrors:A})),N=x.$id;C=m?a:r["ui:title"]||e.schema.title||w.title||a;var T=r["ui:description"]||e.schema.description||w.description,I=A,M=r["ui:help"],R="hidden"===r["ui:widget"],W=["form-group","field","field-".concat(w.type),I&&I.length>0?"field-error has-error has-danger":"",r.classNames].join(" ").trim(),q={description:F().createElement(O,{id:N+"__description",description:T,formContext:g}),rawDescription:T,help:F().createElement($e,{help:M}),rawHelp:"string"==typeof M?M:void 0,errors:F().createElement(Ue,{errors:I}),rawErrors:I,id:N,label:C,hidden:R,onChange:u,onKeyChange:s,onDropPropertyClick:c,required:f,disabled:E,readonly:_,displayLabel:P,classNames:W,formContext:g,formData:t,fields:y,schema:w,uiSchema:r,registry:d},B=d.fields.AnyOfField,$=d.fields.OneOfField;return F().createElement(b,q,F().createElement(F().Fragment,null,D,w.anyOf&&!nt(w)&&F().createElement(B,{disabled:E,errorSchema:n,formData:t,idPrefix:o,idSchema:x,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.anyOf,baseType:w.type,registry:d,schema:w,uiSchema:r}),w.oneOf&&!nt(w)&&F().createElement($,{disabled:E,errorSchema:n,formData:t,idPrefix:o,idSchema:x,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:w.oneOf,baseType:w.type,registry:d,schema:w,uiSchema:r})))}(this.props)}}]),r}(F().Component);ze.defaultProps={uiSchema:{},errorSchema:{},idSchema:{},disabled:!1,readonly:!1,autofocus:!1};const Ke=ze;function Je(e){var r=e.schema,t=e.name,n=e.uiSchema,o=e.idSchema,i=e.formData,a=e.required,u=e.disabled,s=e.readonly,c=e.autofocus,f=e.onChange,p=e.onBlur,d=e.onFocus,v=e.registry,m=void 0===v?Ur():v,h=e.rawErrors,y=r.title,g=r.format,b=m.widgets,x=m.formContext,w=nt(r)&&st(r),S=w?"select":"text";g&&zr(r,g,b)&&(S=g);var O=Gr(n),E=O.widget,_=void 0===E?S:E,j=O.placeholder,C=void 0===j?"":j,P=J(O,["widget","placeholder"]),A=Lr(r,_,b);return F().createElement(A,{options:l({},P,{enumOptions:w}),schema:r,uiSchema:n,id:o&&o.$id,label:void 0===y?t:y,value:i,onChange:f,onBlur:p,onFocus:d,required:a,disabled:u,readonly:s,formContext:x,autofocus:c,registry:m,placeholder:C,rawErrors:h})}Je.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1};const He={AnyOfField:Fe,ArrayField:Se,BooleanField:Ee,DescriptionField:function(e){var r=e.id,t=e.description;return t?"string"==typeof t?F().createElement("p",{id:r,className:"field-description"},t):F().createElement("div",{id:r,className:"field-description"},t):null},NumberField:De,ObjectField:Re,OneOfField:Fe,SchemaField:Ke,StringField:Je,TitleField:function(e){var r=e.id,t=e.title,n=e.required;return F().createElement("legend",{id:r},t,n&&F().createElement("span",{className:"required"},"*"))},NullField:function(e){function r(){return h(this,r),x(this,O(r).apply(this,arguments))}return j(r,e),g(r,[{key:"componentDidMount",value:function(){void 0===this.props.formData&&this.props.onChange(null)}},{key:"render",value:function(){return null}}]),r}(C.Component),UnsupportedField:function(e){var r=e.schema,t=e.idSchema,n=e.reason;return F().createElement("div",{className:"unsupported-field"},F().createElement("p",null,"Unsupported field schema",t&&t.$id&&F().createElement("span",null," for"," field ",F().createElement("code",null,t.$id)),n&&F().createElement("em",null,": ",n),"."),r&&F().createElement("pre",null,Te()(r,null,2)))}};function Ge(e,r){for(var t=[],n=e;n<=r;n++)t.push({value:n,label:Ft(n,2)});return t}function Ye(e){var r=e.type,t=e.range,n=e.value,o=e.select,i=e.rootId,a=e.disabled,u=e.readonly,s=e.autofocus,c=e.registry,l=e.onBlur,f=i+"_"+r,p=c.widgets.SelectWidget;return F().createElement(p,{schema:{type:"integer"},id:f,className:"form-control",options:{enumOptions:Ge(t[0],t[1])},placeholder:r,value:n,disabled:a,readonly:u,autofocus:s,onChange:function(e){return o(r,e)},onBlur:l})}var Ze=function(e){function r(e){var t;return h(this,r),c(b(t=x(this,O(r).call(this,e))),"onChange",(function(e,r){t.setState(c({},e,void 0===r?-1:r),(function(){var e;e=t.state,i()(e).every((function(r){return-1!==e[r]}))&&t.props.onChange(_t(t.state,t.props.time))}))})),c(b(t),"setNow",(function(e){e.preventDefault();var r=t.props,n=r.time,o=r.disabled,i=r.readonly,a=r.onChange;if(!o&&!i){var u=Et((new Date).toJSON(),n);t.setState(u,(function(){return a(_t(t.state,n))}))}})),c(b(t),"clear",(function(e){e.preventDefault();var r=t.props,n=r.time,o=r.disabled,i=r.readonly,a=r.onChange;o||i||t.setState(Et("",n),(function(){return a(void 0)}))})),t.state=Et(e.value,e.time),t}return j(r,e),g(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState(Et(e.value,e.time))}},{key:"shouldComponentUpdate",value:function(e,r){return wt(this,e,r)}},{key:"render",value:function(){var e=this,r=this.props,t=r.id,n=r.disabled,o=r.readonly,i=r.autofocus,a=r.registry,u=r.onBlur,s=r.options;return F().createElement("ul",{className:"list-inline"},this.dateElementProps.map((function(r,s){return F().createElement("li",{key:s},F().createElement(Ye,K({rootId:t,select:e.onChange},r,{disabled:n,readonly:o,registry:a,onBlur:u,autofocus:i&&0===s})))})),("undefined"===s.hideNowButton||!s.hideNowButton)&&F().createElement("li",null,F().createElement("a",{href:"#",className:"btn btn-info btn-now",onClick:this.setNow},"Now")),("undefined"===s.hideClearButton||!s.hideClearButton)&&F().createElement("li",null,F().createElement("a",{href:"#",className:"btn btn-warning btn-clear",onClick:this.clear},"Clear")))}},{key:"dateElementProps",get:function(){var e=this.props,r=e.time,t=e.options,n=this.state,o=n.year,i=n.month,a=n.day,u=n.hour,s=n.minute,c=n.second,l=[{type:"year",range:t.yearsRange,value:o},{type:"month",range:[1,12],value:i},{type:"day",range:[1,31],value:a}];return r&&l.push({type:"hour",range:[0,23],value:u},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:c}),l}}]),r}(C.Component);c(Ze,"defaultProps",{time:!1,disabled:!1,readonly:!1,autofocus:!1,options:{yearsRange:[1900,(new Date).getFullYear()+2]}});const Qe=Ze;function Xe(e){var r=e.registry.widgets.AltDateWidget;return F().createElement(r,K({time:!0},e))}Xe.defaultProps=l({},Qe.defaultProps,{time:!0});const er=Xe;function rr(e){if(!e.id)throw console.log("No id for",e),new Error("no id for props ".concat(Te()(e)));var r=e.value,t=e.readonly,n=e.disabled,o=e.autofocus,i=e.onBlur,a=e.onFocus,u=e.options,s=e.schema,c=(e.uiSchema,e.formContext,e.registry,e.rawErrors,J(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","uiSchema","formContext","registry","rawErrors"]));return u.inputType?c.type=u.inputType:c.type||("number"===s.type?(c.type="number",c.step="any"):"integer"===s.type?(c.type="number",c.step="1"):c.type="text"),u.autocomplete&&(c.autoComplete=u.autocomplete),s.multipleOf&&(c.step=s.multipleOf),void 0!==s.minimum&&(c.min=s.minimum),void 0!==s.maximum&&(c.max=s.maximum),[F().createElement("input",K({key:c.id,className:"form-control",readOnly:t,disabled:n,autoFocus:o,value:null==r?"":r},c,{list:s.examples?"examples_".concat(c.id):null,onChange:function(r){var t=r.target.value;return e.onChange(""===t?u.emptyValue:t)},onBlur:i&&function(e){return i(c.id,e.target.value)},onFocus:a&&function(e){return a(c.id,e.target.value)}})),s.examples?F().createElement("datalist",{id:"examples_".concat(c.id)},U(new(W())(s.examples.concat(s.default?[s.default]:[]))).map((function(e){return F().createElement("option",{key:e,value:e})}))):null]}rr.defaultProps={required:!1,disabled:!1,readonly:!1,autofocus:!1};const tr=rr;function nr(e){var r=e.schema,t=e.id,n=e.value,o=e.disabled,i=e.readonly,a=e.label,u=e.autofocus,s=e.onBlur,c=e.onFocus,l=e.onChange,f=e.DescriptionField,p=Dt(r);return F().createElement("div",{className:"checkbox ".concat(o||i?"disabled":"")},r.description&&F().createElement(f,{description:r.description}),F().createElement("label",null,F().createElement("input",{type:"checkbox",id:t,checked:void 0!==n&&n,required:p,disabled:o||i,autoFocus:u,onChange:function(e){return l(e.target.checked)},onBlur:s&&function(e){return s(t,e.target.checked)},onFocus:c&&function(e){return c(t,e.target.checked)}}),F().createElement("span",null,a)))}nr.defaultProps={autofocus:!1};const or=nr;function ir(e){var r=e.id,t=e.disabled,n=e.options,o=e.value,i=e.autofocus,a=e.readonly,u=e.onChange,s=n.enumOptions,c=n.enumDisabled,l=n.inline;return F().createElement("div",{className:"checkboxes",id:r},s.map((function(e,n){var f=-1!==o.indexOf(e.value),p=c&&-1!=c.indexOf(e.value),d=t||p||a?"disabled":"",v=F().createElement("span",null,F().createElement("input",{type:"checkbox",id:"".concat(r,"_").concat(n),checked:f,disabled:t||p||a,autoFocus:i&&0===n,onChange:function(r){var t=s.map((function(e){return e.value}));r.target.checked?u(function(e,r,t){var n=t.indexOf(e);return r.slice(0,n).concat(e,r.slice(n)).sort((function(e,r){return t.indexOf(e)>t.indexOf(r)}))}(e.value,o,t)):u(function(e,r){return r.filter((function(r){return r!==e}))}(e.value,o))}}),F().createElement("span",null,e.label));return l?F().createElement("label",{key:n,className:"checkbox-inline ".concat(d)},v):F().createElement("div",{key:n,className:"checkbox ".concat(d)},F().createElement("label",null,v))})))}ir.defaultProps={autofocus:!1,options:{inline:!1}};const ar=ir;var ur=t(73473),sr=t.n(ur);function cr(e,r){return e.replace(";base64",";name=".concat(encodeURIComponent(r),";base64"))}function lr(e){var r=e.name,t=e.size,n=e.type;return new(sr())((function(o,i){var a=new window.FileReader;a.onerror=i,a.onload=function(e){o({dataURL:cr(e.target.result,r),name:r,size:t,type:n})},a.readAsDataURL(e)}))}function fr(e){var r=e.filesInfo;return 0===r.length?null:F().createElement("ul",{className:"file-info"},r.map((function(e,r){var t=e.name,n=e.size,o=e.type;return F().createElement("li",{key:r},F().createElement("strong",null,t)," (",o,", ",n," bytes)")})))}var pr=function(e){function r(e){var t;h(this,r),c(b(t=x(this,O(r).call(this,e))),"onChange",(function(e){var r,n=t.props,o=n.multiple,i=n.onChange;(r=e.target.files,sr().all([].map.call(r,lr))).then((function(e){var r={values:e.map((function(e){return e.dataURL})),filesInfo:e};t.setState(r,(function(){i(o?r.values:r.values[0])}))}))}));var n,o=e.value,i=p()(o)?o:[o];return t.state={values:i,filesInfo:(n=i,n.filter((function(e){return void 0!==e})).map((function(e){var r=Pt(e),t=r.blob;return{name:r.name,size:t.size,type:t.type}})))},t}return j(r,e),g(r,[{key:"shouldComponentUpdate",value:function(e,r){return wt(this,e,r)}},{key:"render",value:function(){var e=this,r=this.props,t=r.multiple,n=r.id,o=r.readonly,i=r.disabled,a=r.autofocus,u=r.options,s=this.state.filesInfo;return F().createElement("div",null,F().createElement("p",null,F().createElement("input",{ref:function(r){return e.inputRef=r},id:n,type:"file",disabled:o||i,onChange:this.onChange,defaultValue:"",autoFocus:a,multiple:t,accept:u.accept})),F().createElement(fr,{filesInfo:s}))}}]),r}(C.Component);pr.defaultProps={autofocus:!1};const dr=pr;function vr(e){var r=e.options,t=e.value,n=e.required,o=e.disabled,i=e.readonly,a=e.autofocus,u=e.onBlur,s=e.onFocus,c=e.onChange,l=e.id,f=Math.random().toString(),p=r.enumOptions,d=r.enumDisabled,v=r.inline;return F().createElement("div",{className:"field-radio-group",id:l},p.map((function(e,r){var p=e.value===t,m=d&&-1!=d.indexOf(e.value),h=o||m||i?"disabled":"",y=F().createElement("span",null,F().createElement("input",{type:"radio",checked:p,name:f,required:n,value:e.value,disabled:o||m||i,autoFocus:a&&0===r,onChange:function(r){return c(e.value)},onBlur:u&&function(e){return u(l,e.target.value)},onFocus:s&&function(e){return s(l,e.target.value)}}),F().createElement("span",null,e.label));return v?F().createElement("label",{key:r,className:"radio-inline ".concat(h)},y):F().createElement("div",{key:r,className:"radio ".concat(h)},F().createElement("label",null,y))})))}vr.defaultProps={autofocus:!1};const mr=vr;var hr=new(W())(["number","integer"]);function yr(e,r){var t=e.type,n=e.items;if(""!==r){if("array"===t&&n&&hr.has(n.type))return r.map(Xr);if("boolean"===t)return"true"===r;if("number"===t)return Xr(r);if(e.enum){if(e.enum.every((function(e){return"number"===lt(e)})))return Xr(r);if(e.enum.every((function(e){return"boolean"===lt(e)})))return"true"===r}return r}}function gr(e,r){return r?[].slice.call(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value}function br(e){var r=e.schema,t=e.id,n=e.options,o=e.value,i=e.required,a=e.disabled,u=e.readonly,s=e.multiple,c=e.autofocus,l=e.onChange,f=e.onBlur,p=e.onFocus,d=e.placeholder,v=n.enumOptions,m=n.enumDisabled,h=s?[]:"";return F().createElement("select",{id:t,multiple:s,className:"form-control",value:void 0===o?h:o,required:i,disabled:a||u,autoFocus:c,onBlur:f&&function(e){var n=gr(e,s);f(t,yr(r,n))},onFocus:p&&function(e){var n=gr(e,s);p(t,yr(r,n))},onChange:function(e){var t=gr(e,s);l(yr(r,t))}},!s&&void 0===r.default&&F().createElement("option",{value:""},d),v.map((function(e,r){var t=e.value,n=e.label,o=m&&-1!=m.indexOf(t);return F().createElement("option",{key:r,value:t,disabled:o},n)})))}br.defaultProps={autofocus:!1};const xr=br;function wr(e){var r=e.id,t=e.options,n=e.placeholder,o=e.value,i=e.required,a=e.disabled,u=e.readonly,s=e.autofocus,c=e.onChange,l=e.onBlur,f=e.onFocus;return F().createElement("textarea",{id:r,className:"form-control",value:o||"",placeholder:n,required:i,disabled:a,readOnly:u,autoFocus:s,rows:t.rows,onBlur:l&&function(e){return l(r,e.target.value)},onFocus:f&&function(e){return f(r,e.target.value)},onChange:function(e){var r=e.target.value;return c(""===r?t.emptyValue:r)}})}wr.defaultProps={autofocus:!1,options:{}};const Sr={BaseInput:tr,PasswordWidget:function(e){var r=e.registry.widgets.BaseInput;return F().createElement(r,K({type:"password"},e))},RadioWidget:mr,UpDownWidget:function(e){var r=e.registry.widgets.BaseInput;return F().createElement(r,K({type:"number"},e,At(e.schema)))},RangeWidget:function(e){var r=e.schema,t=e.value,n=e.registry.widgets.BaseInput;return F().createElement("div",{className:"field-range-wrapper"},F().createElement(n,K({type:"range"},e,At(r))),F().createElement("span",{className:"range-view"},t))},SelectWidget:xr,TextWidget:function(e){var r=e.registry.widgets.BaseInput;return F().createElement(r,e)},DateWidget:function(e){var r=e.onChange,t=e.registry.widgets.BaseInput;return F().createElement(t,K({type:"date"},e,{onChange:function(e){return r(e||void 0)}}))},DateTimeWidget:function(e){var r=e.value,t=e.onChange,n=e.registry.widgets.BaseInput;return F().createElement(n,K({type:"datetime-local"},e,{value:jt(r),onChange:function(e){return t(Ct(e))}}))},AltDateWidget:Qe,AltDateTimeWidget:er,EmailWidget:function(e){var r=e.registry.widgets.BaseInput;return F().createElement(r,K({type:"email"},e))},URLWidget:function(e){var r=e.registry.widgets.BaseInput;return F().createElement(r,K({type:"url"},e))},TextareaWidget:wr,HiddenWidget:function(e){var r=e.id,t=e.value;return F().createElement("input",{type:"hidden",id:r,value:void 0===t?"":t})},ColorWidget:function(e){var r=e.disabled,t=e.readonly,n=e.registry.widgets.BaseInput;return F().createElement(n,K({type:"color"},e,{disabled:r||t}))},FileWidget:dr,CheckboxWidget:or,CheckboxesWidget:ar};var Or=t(30084),Er=t.n(Or),_r=t(65096),jr=t.n(_r),Cr=Ar(),Fr=null,Pr=null;function Ar(){var e=new(jr())({errorDataPath:"property",allErrors:!0,multipleOfPrecision:8,schemaId:"auto",unknownFormats:"ignore"});return e.addFormat("data-url",/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/),e.addFormat("color",/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/),e}function kr(e){return e.length?e.reduce((function(e,r){var t=r.property,n=r.message,o=Er()(t),i=e;o.length>0&&""===o[0]&&o.splice(0,1);var a=!0,u=!1,s=void 0;try{for(var c,l=je()(o.slice(0));!(a=(c=l.next()).done);a=!0){var f=c.value;f in i||(i[f]={}),i=i[f]}}catch(e){u=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(u)throw s}}return p()(i.__errors)?i.__errors=i.__errors.concat(n):n&&(i.__errors=[n]),e}),{}):{}}function Dr(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",t=[];return"__errors"in e&&(t=t.concat(e.__errors.map((function(e){return{stack:"".concat(r,": ").concat(e)}})))),i()(e).reduce((function(r,t){return"__errors"!==t&&(r=r.concat(Dr(e[t],t))),r}),t)}function Nr(e){var r={__errors:[],addError:function(e){this.__errors.push(e)}};return Zr(e)?i()(e).reduce((function(r,t){return l({},r,c({},t,Nr(e[t])))}),r):p()(e)?e.reduce((function(e,r,t){return l({},e,c({},t,Nr(r)))}),r):r}function Tr(e){return i()(e).reduce((function(r,t){return"addError"===t?r:l({},r,c({},t,"__errors"===t?e[t]:Tr(e[t])))}),{})}function Ir(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null===e?[]:e.map((function(e){var r=e.dataPath,t=e.keyword,n=e.message,o=e.params,i=e.schemaPath,a="".concat(r);return{name:t,property:a,message:n,params:o,stack:"".concat(a," ").concat(n).trim(),schemaPath:i}}))}function Mr(e,r,t,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=r;e=Jr(r,e,u,!0);var s=!xt(Pr,o),c=!xt(Fr,a);(s||c)&&(Cr=Ar()),o&&s&&p()(o)&&(Cr.addMetaSchema(o),Pr=o),a&&c&&Zr(a)&&(i()(a).forEach((function(e){Cr.addFormat(e,a[e])})),Fr=a);var f=null;try{Cr.validate(r,e)}catch(e){f=e}var d=Ir(Cr.errors);Cr.errors=null;var v=f&&f.message&&"string"==typeof f.message&&f.message.includes("no schema with key or ref ");v&&(d=[].concat(U(d),[{stack:f.message}])),"function"==typeof n&&(d=n(d));var m=kr(d);if(v&&(m=l({},m,{$schema:{__errors:[f.message]}})),"function"!=typeof t)return{errors:d,errorSchema:m};var h=t(e,Nr(e)),y=Tr(h),g=Qr(m,y,!0),b=Dr(g);return{errors:b,errorSchema:g}}function Rr(e,r){try{return Cr.validate(e,r)}catch(e){return!1}}function Wr(e){var r=function(e,r){if("object"!==m(e)||null===e)return e;var t=e[M()];if(void 0!==t){var n=t.call(e,r);if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===m(r)?r:String(r)}var qr="__additional_property",Br={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function $r(e,r,t){if(!e.additionalProperties)return!1;var n=Gr(r).expandable;return!1===n?n:void 0===e.maxProperties||i()(t).length<e.maxProperties}function Ur(){return{fields:He,widgets:Sr,definitions:{},rootSchema:{},formContext:{}}}function Vr(e){var r=e.type;return!r&&e.const?lt(e.const):!r&&e.enum?"string":r||!e.properties&&!e.additionalProperties?r instanceof Array&&2===r.length&&r.includes("null")?r.find((function(e){return"null"!==e})):r:"object"}function Lr(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Vr(e);function o(e){if(!e.MergedWidget){var r=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(t){var n=t.options,o=void 0===n?{}:n,i=J(t,["options"]);return F().createElement(e,K({options:l({},r,o)},i))}}return e.MergedWidget}if("function"==typeof r||H.isForwardRef(F().createElement(r))||H.isMemo(r))return o(r);if("string"!=typeof r)throw new Error("Unsupported widget definition: ".concat(m(r)));if(t.hasOwnProperty(r)){var i=t[r];return Lr(e,i,t)}if(!Br.hasOwnProperty(n))throw new Error('No widget for type "'.concat(n,'"'));if(Br[n].hasOwnProperty(r)){var a=t[Br[n][r]];return Lr(e,a,t)}throw new Error('No widget "'.concat(r,'" for type "').concat(n,'"'))}function zr(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return Lr(e,r,t),!0}catch(e){if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw e}}function Kr(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=Zr(e)?e:{},u=Zr(n)?n:{},s=r;if(Zr(s)&&Zr(a.default))s=Qr(s,a.default);else if("default"in a)s=a.default;else{if("$ref"in a){var c=ct(a.$ref,t);return Kr(c,s,t,u,o)}if("dependencies"in a){var l=mt(a,t,u);return Kr(l,s,t,u,o)}at(a)?s=a.items.map((function(e,n){return Kr(e,p()(r)?r[n]:void 0,t,u,o)})):"oneOf"in a?a=a.oneOf[kt(void 0,a.oneOf)]:"anyOf"in a&&(a=a.anyOf[kt(void 0,a.anyOf)])}switch(void 0===s&&(s=a.default),Vr(a)){case"object":return i()(a.properties||{}).reduce((function(e,r){var n=Kr(a.properties[r],(s||{})[r],t,(u||{})[r],o);return(o||void 0!==n)&&(e[r]=n),e}),{});case"array":if(p()(s)&&(s=s.map((function(e,r){return Kr(a.items[r]||a.additionalItems||{},e,t)}))),p()(n)&&(s=n.map((function(e,r){return Kr(a.items,(s||{})[r],t,e)}))),a.minItems){if(ot(a,t))return s||[];var f=s?s.length:0;if(a.minItems>f){var d=s||[],v=p()(a.items)?a.additionalItems:a.items,m=Q()(new Array(a.minItems-f),Kr(v,v.defaults,t));return d.concat(m)}}}return s}function Jr(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Zr(e))throw new Error("Invalid schema: "+e);var o=vt(e,t,r),i=Kr(o,e.default,t,r,n);return void 0===r?i:Zr(r)||p()(r)?Hr(i,r):0===r||!1===r||""===r?r:r||i}function Hr(e,r){if(p()(r))return p()(e)||(e=[]),r.map((function(r,t){return e[t]?Hr(e[t],r):r}));if(Zr(r)){var t=K({},e);return i()(r).reduce((function(t,n){return t[n]=Hr(e?e[n]:{},r[n]),t}),t)}return r}function Gr(e){return i()(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(r,t){var n=e[t];return"ui:widget"===t&&Zr(n)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),l({},r,n.options||{},{widget:n.component})):"ui:options"===t&&Zr(n)?l({},r,n):l({},r,c({},t.substring(3),n))}),{})}function Yr(e,r,t){var n=Gr(r).label,o=void 0===n||n;return"array"===e.type&&(o=ot(e,t)||it(e,r,t)),"object"===e.type&&(o=!1),"boolean"!==e.type||r["ui:widget"]||(o=!1),r["ui:field"]&&(o=!1),o}function Zr(e){return!("undefined"!=typeof File&&e instanceof File||"object"!==m(e)||null===e||p()(e))}function Qr(e,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=K({},e);return i()(r).reduce((function(n,o){var i=e?e[o]:{},a=r[o];return e&&e.hasOwnProperty(o)&&Zr(a)?n[o]=Qr(i,a,t):t&&p()(i)&&p()(a)?n[o]=i.concat(a):n[o]=a,n}),n)}function Xr(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;var r=Number(e),t="number"==typeof r&&!L()(r);return/\.\d*0$/.test(e)?e:t?r:e}}function et(e,r){if(!p()(r))return e;var t,n=function(e){return e.reduce((function(e,r){return e[r]=!0,e}),{})},o=n(e),i=r.filter((function(e){return"*"===e||o[e]})),a=n(i),u=e.filter((function(e){return!a[e]})),s=i.indexOf("*");if(-1===s){if(u.length)throw new Error("uiSchema order list does not contain ".concat((t=u).length>1?"properties '".concat(t.join("', '"),"'"):"property '".concat(t[0],"'")));return i}if(s!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=U(i);return c.splice.apply(c,[s,1].concat(U(u))),c}function rt(e){return p()(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function tt(e){if(p()(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function nt(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=vt(e,r),n=t.oneOf||t.anyOf;return!!p()(t.enum)||!!p()(n)&&n.every((function(e){return rt(e)}))}function ot(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!e.uniqueItems||!e.items)&&nt(e.items,r)}function it(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===r["ui:widget"])return!0;if(e.items){var n=vt(e.items,t);return"string"===n.type&&"data-url"===n.format}return!1}function at(e){return p()(e.items)&&e.items.length>0&&e.items.every((function(e){return Zr(e)}))}function ut(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Zr(e.additionalItems)}function st(e){return e.enum?e.enum.map((function(r,t){return{label:e.enumNames&&e.enumNames[t]||String(r),value:r}})):(e.oneOf||e.anyOf).map((function(e,r){var t=tt(e);return{schema:e,label:e.title||String(t),value:t}}))}function ct(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e;if(!e.startsWith("#"))throw new Error("Could not find a definition for ".concat(t,"."));e=decodeURIComponent(e.substring(1));var n=re.get(r,e);if(void 0===n)throw new Error("Could not find a definition for ".concat(t,"."));return n.hasOwnProperty("$ref")?ct(n.$ref,r):n}var lt=function(e){return p()(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"===m(e)?"object":"string":"number"};function ft(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=l({},e,{properties:l({},e.properties)}),i()(t).forEach((function(n){var o;e.properties.hasOwnProperty(n)||(o=e.additionalProperties.hasOwnProperty("$ref")?vt({$ref:e.additionalProperties.$ref},r,t):e.additionalProperties.hasOwnProperty("type")?l({},e.additionalProperties):{type:lt(t[n])},e.properties[n]=o,e.properties[n][qr]=!0)})),e}function pt(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.hasOwnProperty("$ref"))return dt(e,r,t);if(e.hasOwnProperty("dependencies")){var n=mt(e,r,t);return vt(n,r,t)}return e.hasOwnProperty("allOf")?l({},e,{allOf:e.allOf.map((function(e){return vt(e,r,t)}))}):e}function dt(e,r,t){var n=ct(e.$ref,r);return e.$ref,vt(l({},n,J(e,["$ref"])),r,t)}function vt(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Zr(e))return{};var n=pt(e,r,t);if("allOf"in e)try{n=Y()(l({},n,{allOf:n.allOf}))}catch(e){console.warn("could not merge subschemas in allOf:\n"+e);var o=n,i=(o.allOf,J(o,["allOf"]));return i}var a=n.hasOwnProperty("additionalProperties")&&!1!==n.additionalProperties;return a?ft(n,r,t):n}function mt(e,r,t){var n=e.dependencies,o=void 0===n?{}:n,i=J(e,["dependencies"]);return"oneOf"in i?i=i.oneOf[kt(t,i.oneOf)]:"anyOf"in i&&(i=i.anyOf[kt(t,i.anyOf)]),ht(o,i,r,t)}function ht(e,r,t,n){for(var o in e)if(void 0!==n[o]&&(!r.properties||o in r.properties)){var i=e[o],a=J(e,[o].map(Wr));return p()(i)?(u=r,r=(s=i)?l({},u,{required:p()(u.required)?B()(new(W())([].concat(U(u.required),U(s)))):s}):u):Zr(i)&&(r=yt(r,t,n,o,i)),ht(a,r,t,n)}var u,s;return r}function yt(e,r,t,n,o){var i=vt(o,r,t),a=i.oneOf;if(e=gt(e,J(i,["oneOf"])),void 0===a)return e;if(!p()(a))throw new Error("invalid: it is some ".concat(m(a)," instead of an array"));var u=a.map((function(e){return e.hasOwnProperty("$ref")?dt(e,r,t):e}));return function(e,r,t,n,o){var i=o.filter((function(e){if(!e.properties)return!1;var r=e.properties[n];if(r){var o={type:"object",properties:c({},n,r)};return 0===Mr(t,o).errors.length}}));if(1!==i.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var a=i[0],u=a.properties;return gt(e,vt(l({},a,{properties:(u[n],J(u,[n].map(Wr)))}),r,t))}(e,r,t,n,u)}function gt(e,r){var t=K({},e);return i()(r).reduce((function(t,n){var o=e?e[n]:{},i=r[n];return e&&e.hasOwnProperty(n)&&Zr(i)?t[n]=gt(o,i):e&&r&&("object"===Vr(e)||"object"===Vr(r))&&"required"===n&&p()(o)&&p()(i)?t[n]=ee()(o,i):t[n]=i,t}),t)}function bt(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function xt(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===r)return!0;if("function"==typeof e||"function"==typeof r)return!0;if("object"!==m(e)||"object"!==m(r))return!1;if(null===e||null===r)return!1;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(bt(e)||bt(r)){if(!bt(e)||!bt(r))return!1;var o=Array.prototype.slice;return xt(o.call(e),o.call(r),t,n)}if(e.constructor!==r.constructor)return!1;var a=i()(e),u=i()(r);if(0===a.length&&0===u.length)return!0;if(a.length!==u.length)return!1;for(var s,c=t.length;c--;)if(t[c]===e)return n[c]===r;t.push(e),n.push(r),a.sort(),u.sort();for(var l=a.length-1;l>=0;l--)if(a[l]!==u[l])return!1;for(var f=a.length-1;f>=0;f--)if(!xt(e[s=a[f]],r[s],t,n))return!1;return t.pop(),n.pop(),!0}function wt(e,r,t){var n=e.props,o=e.state;return!xt(n,r)||!xt(o,t)}function St(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"root",i={$id:r||o};if("$ref"in e||"dependencies"in e||"allOf"in e){var a=vt(e,t,n);return St(a,r,t,n,o)}if("items"in e&&!e.items.$ref)return St(e.items,r,t,n,o);if("object"!==e.type)return i;for(var u in e.properties||{}){var s=e.properties[u],c=i.$id+"_"+u;i[u]=St(Zr(s)?s:{},c,t,(n||{})[u],o)}return i}function Ot(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={$name:r.replace(/^\./,"")};if("$ref"in e||"dependencies"in e||"allOf"in e){var i=vt(e,t,n);return Ot(i,r,t,n)}if(e.hasOwnProperty("additionalProperties")&&(o.__rjsf_additionalProperties=!0),e.hasOwnProperty("items")&&p()(n))n.forEach((function(n,i){o[i]=Ot(e.items,"".concat(r,".").concat(i),t,n)}));else if(e.hasOwnProperty("properties"))for(var a in e.properties)o[a]=Ot(e.properties[a],"".concat(r,".").concat(a),t,(n||{})[a]);return o}function Et(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};var t=new Date(e);if(L()(t.getTime()))throw new Error("Unable to parse date "+e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}}function _t(e){var r=e.year,t=e.month,n=e.day,o=e.hour,i=void 0===o?0:o,a=e.minute,u=void 0===a?0:a,s=e.second,c=void 0===s?0:s,l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=Date.UTC(r,t-1,n,i,u,c),p=new Date(f).toJSON();return l?p:p.slice(0,10)}function jt(e){if(!e)return"";var r=new Date(e),t=Ft(r.getFullYear(),4),n=Ft(r.getMonth()+1,2),o=Ft(r.getDate(),2),i=Ft(r.getHours(),2),a=Ft(r.getMinutes(),2),u=Ft(r.getSeconds(),2),s=Ft(r.getMilliseconds(),3);return"".concat(t,"-").concat(n,"-").concat(o,"T").concat(i,":").concat(a,":").concat(u,".").concat(s)}function Ct(e){if(e)return new Date(e).toJSON()}function Ft(e,r){for(var t=String(e);t.length<r;)t="0"+t;return t}function Pt(e){var r,t=e.split(","),n=t[0].split(";"),o=n[0].replace("data:",""),i=n.filter((function(e){return"name"===e.split("=")[0]}));r=1!==i.length?"unknown":i[0].split("=")[1];for(var a=atob(t[1]),u=[],s=0;s<a.length;s++)u.push(a.charCodeAt(s));return{blob:new window.Blob([new Uint8Array(u)],{type:o}),name:r}}function At(e){var r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}function kt(e,r,t){for(var n=0;n<r.length;n++){var o=r[n];if(o.properties){var a={anyOf:i()(o.properties).map((function(e){return{required:[e]}}))},u=void 0;if(o.anyOf){var s=K({},o);s.allOf?s.allOf=s.allOf.slice():s.allOf=[],s.allOf.push(a),u=s}else u=K({},o,a);if(delete u.required,Rr(u,e))return n}else if(Rr(r[n],e))return n}return 0}function Dt(e){return!!e.const||!(!e.enum||1!==e.enum.length||!0!==e.enum[0])||(e.anyOf&&1===e.anyOf.length?Dt(e.anyOf[0]):e.oneOf&&1===e.oneOf.length?Dt(e.oneOf[0]):!!e.allOf&&e.allOf.some(Dt))}var Nt=function(e){function r(e){var t;return h(this,r),c(b(t=x(this,O(r).call(this,e))),"getUsedFormData",(function(e,r){if(0===r.length&&"object"!==m(e))return e;var t=A()(e,r);return p()(e)?i()(t).map((function(e){return t[e]})):t})),c(b(t),"getFieldNames",(function(e,r){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""];return i()(t).forEach((function(i){if("object"===m(t[i])){var a=o.map((function(e){return"".concat(e,".").concat(i)}));t[i].__rjsf_additionalProperties&&""!==t[i].$name?n.push(t[i].$name):e(t[i],n,a)}else"$name"===i&&""!==t[i]&&o.forEach((function(e){e=e.replace(/^\./,"");var t=D()(r,e);("object"!==m(t)||T()(t))&&n.push(e)}))})),n}(e)})),c(b(t),"onChange",(function(e,r){(Zr(e)||p()(e))&&(e=t.getStateFromProps(t.props,e).formData);var n=!t.props.noValidate&&t.props.liveValidate,o={formData:e},i=e;if(!0===t.props.omitExtraData&&!0===t.props.liveOmit){var a=Ot(vt(t.state.schema,t.state.schema,e),"",t.state.schema,e),u=t.getFieldNames(a,e);o={formData:i=t.getUsedFormData(e,u)}}if(n){var s=t.validate(i),c=s.errors,l=s.errorSchema,f=c,d=l;t.props.extraErrors&&(c=Dr(l=Qr(l,t.props.extraErrors,!0))),o={formData:i,errors:c,errorSchema:l,schemaValidationErrors:f,schemaValidationErrorSchema:d}}else if(!t.props.noValidate&&r){var v=t.props.extraErrors?Qr(r,t.props.extraErrors,!0):r;o={formData:i,errorSchema:v,errors:Dr(v)}}t.setState(o,(function(){return t.props.onChange&&t.props.onChange(t.state)}))})),c(b(t),"onBlur",(function(){var e;t.props.onBlur&&(e=t.props).onBlur.apply(e,arguments)})),c(b(t),"onFocus",(function(){var e;t.props.onFocus&&(e=t.props).onFocus.apply(e,arguments)})),c(b(t),"onSubmit",(function(e){if(e.preventDefault(),e.target===e.currentTarget){e.persist();var r,n,o=t.state.formData;if(!0===t.props.omitExtraData){var a=Ot(vt(t.state.schema,t.state.schema,o),"",t.state.schema,o),u=t.getFieldNames(a,o);o=t.getUsedFormData(o,u)}if(!t.props.noValidate){var s=t.validate(o),c=s.errors,f=s.errorSchema,p=c,d=f;if(i()(c).length>0)return t.props.extraErrors&&(f=Qr(f,t.props.extraErrors,!0),c=Dr(f)),void t.setState({errors:c,errorSchema:f,schemaValidationErrors:p,schemaValidationErrorSchema:d},(function(){t.props.onError?t.props.onError(c):console.error("Form validation failed",c)}))}t.props.extraErrors?n=Dr(r=t.props.extraErrors):(r={},n=[]),t.setState({formData:o,errors:n,errorSchema:r},(function(){t.props.onSubmit&&t.props.onSubmit(l({},t.state,{formData:o,status:"submitted"}),e)}))}})),t.state=t.getStateFromProps(e,e.formData),t.props.onChange&&!xt(t.state.formData,t.props.formData)&&t.props.onChange(t.state),t.formElement=null,t}return j(r,e),g(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var r=this.getStateFromProps(e,e.formData);xt(r.formData,e.formData)||xt(r.formData,this.state.formData)||!this.props.onChange||this.props.onChange(r),this.setState(r)}},{key:"getStateFromProps",value:function(e,r){var t,n,o,i,a=this.state||{},u="schema"in e?e.schema:this.props.schema,s="uiSchema"in e?e.uiSchema:this.props.uiSchema,c=void 0!==r,l="liveValidate"in e?e.liveValidate:this.props.liveValidate,f=c&&!e.noValidate&&l,p=u,d=Jr(u,r,p),v=vt(u,p,d),m=e.customFormats,h=e.additionalMetaSchemas;if(f){var y=this.validate(d,u,h,m);o=t=y.errors,i=n=y.errorSchema}else{var g=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};t=g.errors,n=g.errorSchema,o=a.schemaValidationErrors,i=a.schemaValidationErrorSchema}e.extraErrors&&(t=Dr(n=Qr(n,e.extraErrors,!0)));var b={schema:u,uiSchema:s,idSchema:St(v,s["ui:rootFieldId"],p,d,e.idPrefix),formData:d,edit:c,errors:t,errorSchema:n,additionalMetaSchemas:h};return o&&(b.schemaValidationErrors=o,b.schemaValidationErrorSchema=i),b}},{key:"shouldComponentUpdate",value:function(e,r){return wt(this,e,r)}},{key:"validate",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.schema,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.additionalMetaSchemas,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.customFormats,o=this.props,i=o.validate,a=o.transformErrors,u=this.getRegistry(),s=u.rootSchema,c=vt(r,s,e);return Mr(e,c,i,a,t,n)}},{key:"renderErrors",value:function(){var e=this.state,r=e.errors,t=e.errorSchema,n=e.schema,o=e.uiSchema,i=this.props,a=i.ErrorList,u=i.showErrorList,s=i.formContext;return r.length&&0!=u?F().createElement(a,{errors:r,errorSchema:t,schema:n,uiSchema:o,formContext:s}):null}},{key:"getRegistry",value:function(){var e=Ur(),r=e.fields,t=e.widgets;return{fields:l({},r,this.props.fields),widgets:l({},t,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,ObjectFieldTemplate:this.props.ObjectFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},rootSchema:this.props.schema,formContext:this.props.formContext||{}}}},{key:"submit",value:function(){this.formElement&&this.formElement.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))}},{key:"render",value:function(){var e=this,r=this.props,t=r.children,n=r.id,o=r.idPrefix,i=r.className,a=r.tagName,u=r.name,s=r.method,c=r.target,l=r.action,f=r.autocomplete,p=r.autoComplete,d=r.enctype,v=r.acceptcharset,m=r.noHtml5Validate,h=r.disabled,y=r.formContext,g=this.state,b=g.schema,x=g.uiSchema,w=g.formData,S=g.errorSchema,O=g.idSchema,E=this.getRegistry(),_=E.fields.SchemaField,j=a||"form";f&&console.warn("Using autocomplete property of Form is deprecated, use autoComplete instead.");var C=p||f;return F().createElement(j,{className:i||"rjsf",id:n,name:u,method:s,target:c,action:l,autoComplete:C,encType:d,acceptCharset:v,noValidate:m,onSubmit:this.onSubmit,ref:function(r){e.formElement=r}},this.renderErrors(),F().createElement(_,{schema:b,uiSchema:x,errorSchema:S,idSchema:O,idPrefix:o,formContext:y,formData:w,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:E,disabled:h}),t||F().createElement("div",null,F().createElement("button",{type:"submit",className:"btn btn-info"},"Submit")))}}]),r}(C.Component);function Tt(e){return(0,C.forwardRef)((function(r,t){var n=r.fields,o=r.widgets,i=J(r,["fields","widgets"]);return n=l({},e.fields,n),o=l({},e.widgets,o),F().createElement(Mt,K({},e,i,{fields:n,widgets:o,ref:t}))}))}c(Nt,"defaultProps",{uiSchema:{},noValidate:!1,liveValidate:!1,disabled:!1,noHtml5Validate:!1,ErrorList:function(e){var r=e.errors;return F().createElement("div",{className:"panel panel-danger errors"},F().createElement("div",{className:"panel-heading"},F().createElement("h3",{className:"panel-title"},"Errors")),F().createElement("ul",{className:"list-group"},r.map((function(e,r){return F().createElement("li",{key:r,className:"list-group-item text-danger"},e.stack)}))))},omitExtraData:!1}),Tt.propTypes={widgets:ce().object,fields:ce().object};const It=Tt,Mt=Nt},21252:(e,r,t)=>{"use strict";var n=t(14653),o=t(59158),i=t(79882),a=Math.pow(2,31)-1;function u(e,r){var t,n=1;if(0===e)return r;if(0===r)return e;for(;e%2==0&&r%2==0;)e/=2,r/=2,n*=2;for(;e%2==0;)e/=2;for(;r;){for(;r%2==0;)r/=2;e>r&&(t=r,r=e,e=t),r-=e}return n*e}function s(e,r){var t,n=0;if(0===e)return r;if(0===r)return e;for(;0==(1&e)&&0==(1&r);)e>>>=1,r>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;r;){for(;0==(1&r);)r>>>=1;e>r&&(t=r,r=e,e=t),r-=e}return e<<n}e.exports=function(){var e,r,t,c,l,f,p,d=arguments.length;for(e=new Array(d),p=0;p<d;p++)e[p]=arguments[p];if(o(e)){if(2===d)return(l=e[0])<0&&(l=-l),(f=e[1])<0&&(f=-f),l<=a&&f<=a?s(l,f):u(l,f);t=e}else{if(!n(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(d>1){if(t=e[0],r=e[1],!i(r))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else t=e[0]}if((c=t.length)<2)return null;if(r){for(l=new Array(c),p=0;p<c;p++)l[p]=r(t[p],p);t=l}if(d<3&&!o(t))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(p=0;p<c;p++)(l=t[p])<0&&(t[p]=-l);for(l=t[0],p=1;p<c;p++)l=(f=t[p])<=a&&l<=a?s(l,f):u(l,f);return l}},61735:(e,r,t)=>{"use strict";var n=t(21252),o=t(14653),i=t(59158),a=t(79882);e.exports=function(){var e,r,t,u,s,c,l,f=arguments.length;for(e=new Array(f),l=0;l<f;l++)e[l]=arguments[l];if(i(e)){if(2===f)return(s=e[0])<0&&(s=-s),(c=e[1])<0&&(c=-c),0===s||0===c?0:s/n(s,c)*c;t=e}else{if(!o(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(f>1){if(t=e[0],r=e[1],!a(r))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+r+"`.")}else t=e[0]}if((u=t.length)<2)return null;if(r){for(s=new Array(u),l=0;l<u;l++)s[l]=r(t[l],l);t=s}if(f<3&&!i(t))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(l=0;l<u;l++)(s=t[l])<0&&(t[l]=-s);for(s=t[0],l=1;l<u;l++){if(c=t[l],0===s||0===c)return 0;s=s/n(s,c)*c}return s}},56219:(e,r,t)=>{t(50408),e.exports=t(34579).Array.fill},47185:(e,r,t)=>{t(91867),t(2586),e.exports=t(34579).Array.from},12782:(e,r,t)=>{t(89293),e.exports=t(34579).Array.includes},53285:(e,r,t)=>{t(38691),e.exports=t(34579).Array.isArray},3597:(e,r,t)=>{t(73871),t(91867),e.exports=t(46459)},92742:(e,r,t)=>{var n=t(34579),o=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},24334:(e,r,t)=>{t(22960),e.exports=t(34579).Number.isNaN},56981:(e,r,t)=>{t(72699),e.exports=t(34579).Object.assign},45627:(e,r,t)=>{t(86760);var n=t(34579).Object;e.exports=function(e,r){return n.create(e,r)}},33391:(e,r,t)=>{t(31477);var n=t(34579).Object;e.exports=function(e,r,t){return n.defineProperty(e,r,t)}},67036:(e,r,t)=>{t(65178);var n=t(34579).Object;e.exports=function(e,r){return n.getOwnPropertyDescriptor(e,r)}},4511:(e,r,t)=>{t(46840),e.exports=t(34579).Object.getOwnPropertySymbols},30381:(e,r,t)=>{t(77220),e.exports=t(34579).Object.getPrototypeOf},98613:(e,r,t)=>{t(40961),e.exports=t(34579).Object.keys},63658:(e,r,t)=>{t(59349),e.exports=t(34579).Object.setPrototypeOf},27794:(e,r,t)=>{t(87609),e.exports=t(34579).parseInt},80112:(e,r,t)=>{t(94058),t(91867),t(73871),t(32878),t(95971),t(22526),e.exports=t(34579).Promise},32720:(e,r,t)=>{t(94058),t(91867),t(73871),t(61003),t(48408),t(31749),t(59806),e.exports=t(34579).Set},80025:(e,r,t)=>{t(46840),t(94058),t(8174),t(36461),e.exports=t(34579).Symbol},52392:(e,r,t)=>{t(91867),t(73871),e.exports=t(25103).f("iterator")},92038:(e,r,t)=>{e.exports=t(25103).f("toPrimitive")},85663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},79003:e=>{e.exports=function(){}},29142:e=>{e.exports=function(e,r,t,n){if(!(e instanceof r)||void 0!==n&&n in e)throw TypeError(t+": incorrect invocation!");return e}},12159:(e,r,t)=>{var n=t(36727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},4889:(e,r,t)=>{"use strict";var n=t(66530),o=t(16531),i=t(78728);e.exports=function(e){for(var r=n(this),t=i(r.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,t),s=a>2?arguments[2]:void 0,c=void 0===s?t:o(s,t);c>u;)r[u++]=e;return r}},37259:(e,r,t)=>{var n=t(45576);e.exports=function(e,r){var t=[];return n(e,!1,t.push,t,r),t}},57428:(e,r,t)=>{var n=t(7932),o=t(78728),i=t(16531);e.exports=function(e){return function(r,t,a){var u,s=n(r),c=o(s.length),l=i(a,c);if(e&&t!=t){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===t)return e||l||0;return!e&&-1}}},1523:(e,r,t)=>{var n=t(19216),o=t(50799),i=t(66530),a=t(78728),u=t(87745);e.exports=function(e,r){var t=1==e,s=2==e,c=3==e,l=4==e,f=6==e,p=5==e||f,d=r||u;return function(r,u,v){for(var m,h,y=i(r),g=o(y),b=n(u,v,3),x=a(g.length),w=0,S=t?d(r,x):s?d(r,0):void 0;x>w;w++)if((p||w in g)&&(h=b(m=g[w],w,y),e))if(t)S[w]=h;else if(h)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:S.push(m)}else if(l)return!1;return f?-1:c||l?l:S}}},80161:(e,r,t)=>{var n=t(36727),o=t(71421),i=t(22939)("species");e.exports=function(e){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)||(r=void 0),n(r)&&null===(r=r[i])&&(r=void 0)),void 0===r?Array:r}},87745:(e,r,t)=>{var n=t(80161);e.exports=function(e,r){return new(n(e))(r)}},14677:(e,r,t)=>{var n=t(32894),o=t(22939)("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(e){var r,t,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,r){try{return e[r]}catch(e){}}(r=Object(e),o))?t:i?n(r):"Object"==(a=n(r))&&"function"==typeof r.callee?"Arguments":a}},32894:e=>{var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},56175:(e,r,t)=>{"use strict";var n=t(4743).f,o=t(98989),i=t(48144),a=t(19216),u=t(29142),s=t(45576),c=t(45700),l=t(85084),f=t(39967),p=t(89666),d=t(77177).fastKey,v=t(20765),m=p?"_s":"size",h=function(e,r){var t,n=d(r);if("F"!==n)return e._i[n];for(t=e._f;t;t=t.n)if(t.k==r)return t};e.exports={getConstructor:function(e,r,t,c){var l=e((function(e,n){u(e,l,r,"_i"),e._t=r,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,null!=n&&s(n,t,e[c],e)}));return i(l.prototype,{clear:function(){for(var e=v(this,r),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var t=v(this,r),n=h(t,e);if(n){var o=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=o),o&&(o.p=i),t._f==n&&(t._f=o),t._l==n&&(t._l=i),t[m]--}return!!n},forEach:function(e){v(this,r);for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!h(v(this,r),e)}}),p&&n(l.prototype,"size",{get:function(){return v(this,r)[m]}}),l},def:function(e,r,t){var n,o,i=h(e,r);return i?i.v=t:(e._l=i={i:o=d(r,!0),k:r,v:t,p:n=e._l,n:void 0,r:!1},e._f||(e._f=i),n&&(n.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:h,setStrong:function(e,r,t){c(e,r,(function(e,t){this._t=v(e,r),this._k=t,this._l=void 0}),(function(){for(var e=this,r=e._k,t=e._l;t&&t.r;)t=t.p;return e._t&&(e._l=t=t?t.n:e._t._f)?l(0,"keys"==r?t.k:"values"==r?t.v:[t.k,t.v]):(e._t=void 0,l(1))}),t?"entries":"values",!t,!0),f(r)}}},61718:(e,r,t)=>{var n=t(14677),o=t(37259);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},32269:(e,r,t)=>{"use strict";var n=t(33938),o=t(83856),i=t(77177),a=t(7929),u=t(41818),s=t(48144),c=t(45576),l=t(29142),f=t(36727),p=t(25378),d=t(4743).f,v=t(1523)(0),m=t(89666);e.exports=function(e,r,t,h,y,g){var b=n[e],x=b,w=y?"set":"add",S=x&&x.prototype,O={};return m&&"function"==typeof x&&(g||S.forEach&&!a((function(){(new x).entries().next()})))?(x=r((function(r,t){l(r,x,e,"_c"),r._c=new b,null!=t&&c(t,y,r[w],r)})),v("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var r="add"==e||"set"==e;!(e in S)||g&&"clear"==e||u(x.prototype,e,(function(t,n){if(l(this,x,e),!r&&g&&!f(t))return"get"==e&&void 0;var o=this._c[e](0===t?0:t,n);return r?this:o}))})),g||d(x.prototype,"size",{get:function(){return this._c.size}})):(x=h.getConstructor(r,e,y,w),s(x.prototype,t),i.NEED=!0),p(x,e),O[e]=x,o(o.G+o.W+o.F,O),g||h.setStrong(x,e,y),x}},34579:e=>{var r=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},52445:(e,r,t)=>{"use strict";var n=t(4743),o=t(83101);e.exports=function(e,r,t){r in e?n.f(e,r,o(0,t)):e[r]=t}},19216:(e,r,t)=>{var n=t(85663);e.exports=function(e,r,t){if(n(e),void 0===r)return e;switch(t){case 1:return function(t){return e.call(r,t)};case 2:return function(t,n){return e.call(r,t,n)};case 3:return function(t,n,o){return e.call(r,t,n,o)}}return function(){return e.apply(r,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},89666:(e,r,t)=>{e.exports=!t(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(e,r,t)=>{var n=t(36727),o=t(33938).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},73338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},70337:(e,r,t)=>{var n=t(46162),o=t(48195),i=t(86274);e.exports=function(e){var r=n(e),t=o.f;if(t)for(var a,u=t(e),s=i.f,c=0;u.length>c;)s.call(e,a=u[c++])&&r.push(a);return r}},83856:(e,r,t)=>{var n=t(33938),o=t(34579),i=t(19216),a=t(41818),u=t(27069),s=function(e,r,t){var c,l,f,p=e&s.F,d=e&s.G,v=e&s.S,m=e&s.P,h=e&s.B,y=e&s.W,g=d?o:o[r]||(o[r]={}),b=g.prototype,x=d?n:v?n[r]:(n[r]||{}).prototype;for(c in d&&(t=r),t)(l=!p&&x&&void 0!==x[c])&&u(g,c)||(f=l?x[c]:t[c],g[c]=d&&"function"!=typeof x[c]?t[c]:h&&l?i(f,n):y&&x[c]==f?function(e){var r=function(r,t,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,t)}return new e(r,t,n)}return e.apply(this,arguments)};return r.prototype=e.prototype,r}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((g.virtual||(g.virtual={}))[c]=f,e&s.R&&b&&!b[c]&&a(b,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},45576:(e,r,t)=>{var n=t(19216),o=t(95602),i=t(45991),a=t(12159),u=t(78728),s=t(83728),c={},l={},f=e.exports=function(e,r,t,f,p){var d,v,m,h,y=p?function(){return e}:s(e),g=n(t,f,r?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(d=u(e.length);d>b;b++)if((h=r?g(a(v=e[b])[0],v[1]):g(e[b]))===c||h===l)return h}else for(m=y.call(e);!(v=m.next()).done;)if((h=o(m,g,v.value,r))===c||h===l)return h};f.BREAK=c,f.RETURN=l},33938:e=>{var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},27069:e=>{var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},41818:(e,r,t)=>{var n=t(4743),o=t(83101);e.exports=t(89666)?function(e,r,t){return n.f(e,r,o(1,t))}:function(e,r,t){return e[r]=t,e}},54881:(e,r,t)=>{var n=t(33938).document;e.exports=n&&n.documentElement},33758:(e,r,t)=>{e.exports=!t(89666)&&!t(7929)((function(){return 7!=Object.defineProperty(t(97467)("div"),"a",{get:function(){return 7}}).a}))},46778:e=>{e.exports=function(e,r,t){var n=void 0===t;switch(r.length){case 0:return n?e():e.call(t);case 1:return n?e(r[0]):e.call(t,r[0]);case 2:return n?e(r[0],r[1]):e.call(t,r[0],r[1]);case 3:return n?e(r[0],r[1],r[2]):e.call(t,r[0],r[1],r[2]);case 4:return n?e(r[0],r[1],r[2],r[3]):e.call(t,r[0],r[1],r[2],r[3])}return e.apply(t,r)}},50799:(e,r,t)=>{var n=t(32894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},45991:(e,r,t)=>{var n=t(15449),o=t(22939)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},71421:(e,r,t)=>{var n=t(32894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},36727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},95602:(e,r,t)=>{var n=t(12159);e.exports=function(e,r,t,o){try{return o?r(n(t)[0],t[1]):r(t)}catch(r){var i=e.return;throw void 0!==i&&n(i.call(e)),r}}},33945:(e,r,t)=>{"use strict";var n=t(98989),o=t(83101),i=t(25378),a={};t(41818)(a,t(22939)("iterator"),(function(){return this})),e.exports=function(e,r,t){e.prototype=n(a,{next:o(1,t)}),i(e,r+" Iterator")}},45700:(e,r,t)=>{"use strict";var n=t(16227),o=t(83856),i=t(57470),a=t(41818),u=t(15449),s=t(33945),c=t(25378),l=t(95089),f=t(22939)("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",v="values",m=function(){return this};e.exports=function(e,r,t,h,y,g,b){s(t,r,h);var x,w,S,O=function(e){if(!p&&e in C)return C[e];switch(e){case d:case v:return function(){return new t(this,e)}}return function(){return new t(this,e)}},E=r+" Iterator",_=y==v,j=!1,C=e.prototype,F=C[f]||C["@@iterator"]||y&&C[y],P=F||O(y),A=y?_?O("entries"):P:void 0,k="Array"==r&&C.entries||F;if(k&&(S=l(k.call(new e)))!==Object.prototype&&S.next&&(c(S,E,!0),n||"function"==typeof S[f]||a(S,f,m)),_&&F&&F.name!==v&&(j=!0,P=function(){return F.call(this)}),n&&!b||!p&&!j&&C[f]||a(C,f,P),u[r]=P,u[E]=m,y)if(x={values:_?P:O(v),keys:g?P:O(d),entries:A},b)for(w in x)w in C||i(C,w,x[w]);else o(o.P+o.F*(p||j),r,x);return x}},96630:(e,r,t)=>{var n=t(22939)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,r){if(!r&&!o)return!1;var t=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:t=!0}},i[n]=function(){return a},e(i)}catch(e){}return t}},85084:e=>{e.exports=function(e,r){return{value:r,done:!!e}}},15449:e=>{e.exports={}},16227:e=>{e.exports=!0},77177:(e,r,t)=>{var n=t(65730)("meta"),o=t(36727),i=t(27069),a=t(4743).f,u=0,s=Object.isExtensible||function(){return!0},c=!t(7929)((function(){return s(Object.preventExtensions({}))})),l=function(e){a(e,n,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:n,NEED:!1,fastKey:function(e,r){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!s(e))return"F";if(!r)return"E";l(e)}return e[n].i},getWeak:function(e,r){if(!i(e,n)){if(!s(e))return!0;if(!r)return!1;l(e)}return e[n].w},onFreeze:function(e){return c&&f.NEED&&s(e)&&!i(e,n)&&l(e),e}}},81601:(e,r,t)=>{var n=t(33938),o=t(62569).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==t(32894)(a);e.exports=function(){var e,r,t,c=function(){var n,o;for(s&&(n=a.domain)&&n.exit();e;){o=e.fn,e=e.next;try{o()}catch(n){throw e?t():r=void 0,n}}r=void 0,n&&n.enter()};if(s)t=function(){a.nextTick(c)};else if(!i||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);t=function(){l.then(c)}}else t=function(){o.call(n,c)};else{var f=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),t=function(){p.data=f=!f}}return function(n){var o={fn:n,next:void 0};r&&(r.next=o),e||(e=o,t()),r=o}}},59304:(e,r,t)=>{"use strict";var n=t(85663);function o(e){var r,t;this.promise=new e((function(e,n){if(void 0!==r||void 0!==t)throw TypeError("Bad Promise constructor");r=e,t=n})),this.resolve=n(r),this.reject=n(t)}e.exports.f=function(e){return new o(e)}},88082:(e,r,t)=>{"use strict";var n=t(89666),o=t(46162),i=t(48195),a=t(86274),u=t(66530),s=t(50799),c=Object.assign;e.exports=!c||t(7929)((function(){var e={},r={},t=Symbol(),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach((function(e){r[e]=e})),7!=c({},e)[t]||Object.keys(c({},r)).join("")!=n}))?function(e,r){for(var t=u(e),c=arguments.length,l=1,f=i.f,p=a.f;c>l;)for(var d,v=s(arguments[l++]),m=f?o(v).concat(f(v)):o(v),h=m.length,y=0;h>y;)d=m[y++],n&&!p.call(v,d)||(t[d]=v[d]);return t}:c},98989:(e,r,t)=>{var n=t(12159),o=t(57856),i=t(73338),a=t(58989)("IE_PROTO"),u=function(){},s=function(){var e,r=t(97467)("iframe"),n=i.length;for(r.style.display="none",t(54881).appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;n--;)delete s.prototype[i[n]];return s()};e.exports=Object.create||function(e,r){var t;return null!==e?(u.prototype=n(e),t=new u,u.prototype=null,t[a]=e):t=s(),void 0===r?t:o(t,r)}},4743:(e,r,t)=>{var n=t(12159),o=t(33758),i=t(33206),a=Object.defineProperty;r.f=t(89666)?Object.defineProperty:function(e,r,t){if(n(e),r=i(r,!0),n(t),o)try{return a(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[r]=t.value),e}},57856:(e,r,t)=>{var n=t(4743),o=t(12159),i=t(46162);e.exports=t(89666)?Object.defineProperties:function(e,r){o(e);for(var t,a=i(r),u=a.length,s=0;u>s;)n.f(e,t=a[s++],r[t]);return e}},76183:(e,r,t)=>{var n=t(86274),o=t(83101),i=t(7932),a=t(33206),u=t(27069),s=t(33758),c=Object.getOwnPropertyDescriptor;r.f=t(89666)?c:function(e,r){if(e=i(e),r=a(r,!0),s)try{return c(e,r)}catch(e){}if(u(e,r))return o(!n.f.call(e,r),e[r])}},94368:(e,r,t)=>{var n=t(7932),o=t(33230).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(n(e))}},33230:(e,r,t)=>{var n=t(12963),o=t(73338).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},48195:(e,r)=>{r.f=Object.getOwnPropertySymbols},95089:(e,r,t)=>{var n=t(27069),o=t(66530),i=t(58989)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},12963:(e,r,t)=>{var n=t(27069),o=t(7932),i=t(57428)(!1),a=t(58989)("IE_PROTO");e.exports=function(e,r){var t,u=o(e),s=0,c=[];for(t in u)t!=a&&n(u,t)&&c.push(t);for(;r.length>s;)n(u,t=r[s++])&&(~i(c,t)||c.push(t));return c}},46162:(e,r,t)=>{var n=t(12963),o=t(73338);e.exports=Object.keys||function(e){return n(e,o)}},86274:(e,r)=>{r.f={}.propertyIsEnumerable},12584:(e,r,t)=>{var n=t(83856),o=t(34579),i=t(7929);e.exports=function(e,r){var t=(o.Object||{})[e]||Object[e],a={};a[e]=r(t),n(n.S+n.F*i((function(){t(1)})),"Object",a)}},79115:(e,r,t)=>{var n=t(33938).parseInt,o=t(12422).trim,i=t(59617),a=/^[-+]?0[xX]/;e.exports=8!==n(i+"08")||22!==n(i+"0x16")?function(e,r){var t=o(String(e),3);return n(t,r>>>0||(a.test(t)?16:10))}:n},10931:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},87790:(e,r,t)=>{var n=t(12159),o=t(36727),i=t(59304);e.exports=function(e,r){if(n(e),o(r)&&r.constructor===e)return r;var t=i.f(e);return(0,t.resolve)(r),t.promise}},83101:e=>{e.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},48144:(e,r,t)=>{var n=t(41818);e.exports=function(e,r,t){for(var o in r)t&&e[o]?e[o]=r[o]:n(e,o,r[o]);return e}},57470:(e,r,t)=>{e.exports=t(41818)},6237:(e,r,t)=>{"use strict";var n=t(83856),o=t(85663),i=t(19216),a=t(45576);e.exports=function(e){n(n.S,e,{from:function(e){var r,t,n,u,s=arguments[1];return o(this),(r=void 0!==s)&&o(s),null==e?new this:(t=[],r?(n=0,u=i(s,arguments[2],2),a(e,!1,(function(e){t.push(u(e,n++))}))):a(e,!1,t.push,t),new this(t))}})}},46730:(e,r,t)=>{"use strict";var n=t(83856);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return new this(r)}})}},62906:(e,r,t)=>{var n=t(36727),o=t(12159),i=function(e,r){if(o(e),!n(r)&&null!==r)throw TypeError(r+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t(19216)(Function.call,t(76183).f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(e){r=!0}return function(e,t){return i(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:i}},39967:(e,r,t)=>{"use strict";var n=t(33938),o=t(34579),i=t(4743),a=t(89666),u=t(22939)("species");e.exports=function(e){var r="function"==typeof o[e]?o[e]:n[e];a&&r&&!r[u]&&i.f(r,u,{configurable:!0,get:function(){return this}})}},25378:(e,r,t)=>{var n=t(4743).f,o=t(27069),i=t(22939)("toStringTag");e.exports=function(e,r,t){e&&!o(e=t?e:e.prototype,i)&&n(e,i,{configurable:!0,value:r})}},58989:(e,r,t)=>{var n=t(20250)("keys"),o=t(65730);e.exports=function(e){return n[e]||(n[e]=o(e))}},20250:(e,r,t)=>{var n=t(34579),o=t(33938),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,r){return a[e]||(a[e]=void 0!==r?r:{})})("versions",[]).push({version:n.version,mode:t(16227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32707:(e,r,t)=>{var n=t(12159),o=t(85663),i=t(22939)("species");e.exports=function(e,r){var t,a=n(e).constructor;return void 0===a||null==(t=n(a)[i])?r:o(t)}},90510:(e,r,t)=>{var n=t(11052),o=t(8333);e.exports=function(e){return function(r,t){var i,a,u=String(o(r)),s=n(t),c=u.length;return s<0||s>=c?e?"":void 0:(i=u.charCodeAt(s))<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},12422:(e,r,t)=>{var n=t(83856),o=t(8333),i=t(7929),a=t(59617),u="["+a+"]",s=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),l=function(e,r,t){var o={},u=i((function(){return!!a[e]()||"​…"!="​…"[e]()})),s=o[e]=u?r(f):a[e];t&&(o[t]=s),n(n.P+n.F*u,"String",o)},f=l.trim=function(e,r){return e=String(o(e)),1&r&&(e=e.replace(s,"")),2&r&&(e=e.replace(c,"")),e};e.exports=l},59617:e=>{e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},62569:(e,r,t)=>{var n,o,i,a=t(19216),u=t(46778),s=t(54881),c=t(97467),l=t(33938),f=l.process,p=l.setImmediate,d=l.clearImmediate,v=l.MessageChannel,m=l.Dispatch,h=0,y={},g=function(){var e=+this;if(y.hasOwnProperty(e)){var r=y[e];delete y[e],r()}},b=function(e){g.call(e.data)};p&&d||(p=function(e){for(var r=[],t=1;arguments.length>t;)r.push(arguments[t++]);return y[++h]=function(){u("function"==typeof e?e:Function(e),r)},n(h),h},d=function(e){delete y[e]},"process"==t(32894)(f)?n=function(e){f.nextTick(a(g,e,1))}:m&&m.now?n=function(e){m.now(a(g,e,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(e){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:p,clear:d}},16531:(e,r,t)=>{var n=t(11052),o=Math.max,i=Math.min;e.exports=function(e,r){return(e=n(e))<0?o(e+r,0):i(e,r)}},11052:e=>{var r=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?t:r)(e)}},7932:(e,r,t)=>{var n=t(50799),o=t(8333);e.exports=function(e){return n(o(e))}},78728:(e,r,t)=>{var n=t(11052),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},66530:(e,r,t)=>{var n=t(8333);e.exports=function(e){return Object(n(e))}},33206:(e,r,t)=>{var n=t(36727);e.exports=function(e,r){if(!n(e))return e;var t,o;if(r&&"function"==typeof(t=e.toString)&&!n(o=t.call(e)))return o;if("function"==typeof(t=e.valueOf)&&!n(o=t.call(e)))return o;if(!r&&"function"==typeof(t=e.toString)&&!n(o=t.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},65730:e=>{var r=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+t).toString(36))}},26640:(e,r,t)=>{var n=t(33938).navigator;e.exports=n&&n.userAgent||""},20765:(e,r,t)=>{var n=t(36727);e.exports=function(e,r){if(!n(e)||e._t!==r)throw TypeError("Incompatible receiver, "+r+" required!");return e}},76347:(e,r,t)=>{var n=t(33938),o=t(34579),i=t(16227),a=t(25103),u=t(4743).f;e.exports=function(e){var r=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in r||u(r,e,{value:a.f(e)})}},25103:(e,r,t)=>{r.f=t(22939)},22939:(e,r,t)=>{var n=t(20250)("wks"),o=t(65730),i=t(33938).Symbol,a="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=n},83728:(e,r,t)=>{var n=t(14677),o=t(22939)("iterator"),i=t(15449);e.exports=t(34579).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},46459:(e,r,t)=>{var n=t(12159),o=t(83728);e.exports=t(34579).getIterator=function(e){var r=o(e);if("function"!=typeof r)throw TypeError(e+" is not iterable!");return n(r.call(e))}},50408:(e,r,t)=>{var n=t(83856);n(n.P,"Array",{fill:t(4889)}),t(79003)("fill")},2586:(e,r,t)=>{"use strict";var n=t(19216),o=t(83856),i=t(66530),a=t(95602),u=t(45991),s=t(78728),c=t(52445),l=t(83728);o(o.S+o.F*!t(96630)((function(e){Array.from(e)})),"Array",{from:function(e){var r,t,o,f,p=i(e),d="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,h=void 0!==m,y=0,g=l(p);if(h&&(m=n(m,v>2?arguments[2]:void 0,2)),null==g||d==Array&&u(g))for(t=new d(r=s(p.length));r>y;y++)c(t,y,h?m(p[y],y):p[y]);else for(f=g.call(p),t=new d;!(o=f.next()).done;y++)c(t,y,h?a(f,m,[o.value,y],!0):o.value);return t.length=y,t}})},38691:(e,r,t)=>{var n=t(83856);n(n.S,"Array",{isArray:t(71421)})},3882:(e,r,t)=>{"use strict";var n=t(79003),o=t(85084),i=t(15449),a=t(7932);e.exports=t(45700)(Array,"Array",(function(e,r){this._t=a(e),this._i=0,this._k=r}),(function(){var e=this._t,r=this._k,t=this._i++;return!e||t>=e.length?(this._t=void 0,o(1)):o(0,"keys"==r?t:"values"==r?e[t]:[t,e[t]])}),"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},22960:(e,r,t)=>{var n=t(83856);n(n.S,"Number",{isNaN:function(e){return e!=e}})},72699:(e,r,t)=>{var n=t(83856);n(n.S+n.F,"Object",{assign:t(88082)})},86760:(e,r,t)=>{var n=t(83856);n(n.S,"Object",{create:t(98989)})},31477:(e,r,t)=>{var n=t(83856);n(n.S+n.F*!t(89666),"Object",{defineProperty:t(4743).f})},65178:(e,r,t)=>{var n=t(7932),o=t(76183).f;t(12584)("getOwnPropertyDescriptor",(function(){return function(e,r){return o(n(e),r)}}))},77220:(e,r,t)=>{var n=t(66530),o=t(95089);t(12584)("getPrototypeOf",(function(){return function(e){return o(n(e))}}))},40961:(e,r,t)=>{var n=t(66530),o=t(46162);t(12584)("keys",(function(){return function(e){return o(n(e))}}))},59349:(e,r,t)=>{var n=t(83856);n(n.S,"Object",{setPrototypeOf:t(62906).set})},94058:()=>{},87609:(e,r,t)=>{var n=t(83856),o=t(79115);n(n.G+n.F*(parseInt!=o),{parseInt:o})},32878:(e,r,t)=>{"use strict";var n,o,i,a,u=t(16227),s=t(33938),c=t(19216),l=t(14677),f=t(83856),p=t(36727),d=t(85663),v=t(29142),m=t(45576),h=t(32707),y=t(62569).set,g=t(81601)(),b=t(59304),x=t(10931),w=t(26640),S=t(87790),O="Promise",E=s.TypeError,_=s.process,j=_&&_.versions,C=j&&j.v8||"",F=s.Promise,P="process"==l(_),A=function(){},k=o=b.f,D=!!function(){try{var e=F.resolve(1),r=(e.constructor={})[t(22939)("species")]=function(e){e(A,A)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof r&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var r;return!(!p(e)||"function"!=typeof(r=e.then))&&r},T=function(e,r){if(!e._n){e._n=!0;var t=e._c;g((function(){for(var n=e._v,o=1==e._s,i=0,a=function(r){var t,i,a,u=o?r.ok:r.fail,s=r.resolve,c=r.reject,l=r.domain;try{u?(o||(2==e._h&&R(e),e._h=1),!0===u?t=n:(l&&l.enter(),t=u(n),l&&(l.exit(),a=!0)),t===r.promise?c(E("Promise-chain cycle")):(i=N(t))?i.call(t,s,c):s(t)):c(n)}catch(e){l&&!a&&l.exit(),c(e)}};t.length>i;)a(t[i++]);e._c=[],e._n=!1,r&&!e._h&&I(e)}))}},I=function(e){y.call(s,(function(){var r,t,n,o=e._v,i=M(e);if(i&&(r=x((function(){P?_.emit("unhandledRejection",o,e):(t=s.onunhandledrejection)?t({promise:e,reason:o}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",o)})),e._h=P||M(e)?2:1),e._a=void 0,i&&r.e)throw r.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){y.call(s,(function(){var r;P?_.emit("rejectionHandled",e):(r=s.onrejectionhandled)&&r({promise:e,reason:e._v})}))},W=function(e){var r=this;r._d||(r._d=!0,(r=r._w||r)._v=e,r._s=2,r._a||(r._a=r._c.slice()),T(r,!0))},q=function(e){var r,t=this;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw E("Promise can't be resolved itself");(r=N(e))?g((function(){var n={_w:t,_d:!1};try{r.call(e,c(q,n,1),c(W,n,1))}catch(e){W.call(n,e)}})):(t._v=e,t._s=1,T(t,!1))}catch(e){W.call({_w:t,_d:!1},e)}}};D||(F=function(e){v(this,F,O,"_h"),d(e),n.call(this);try{e(c(q,this,1),c(W,this,1))}catch(e){W.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(48144)(F.prototype,{then:function(e,r){var t=k(h(this,F));return t.ok="function"!=typeof e||e,t.fail="function"==typeof r&&r,t.domain=P?_.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&T(this,!1),t.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=c(q,e,1),this.reject=c(W,e,1)},b.f=k=function(e){return e===F||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!D,{Promise:F}),t(25378)(F,O),t(39967)(O),a=t(34579).Promise,f(f.S+f.F*!D,O,{reject:function(e){var r=k(this);return(0,r.reject)(e),r.promise}}),f(f.S+f.F*(u||!D),O,{resolve:function(e){return S(u&&this===a?F:this,e)}}),f(f.S+f.F*!(D&&t(96630)((function(e){F.all(e).catch(A)}))),O,{all:function(e){var r=this,t=k(r),n=t.resolve,o=t.reject,i=x((function(){var t=[],i=0,a=1;m(e,!1,(function(e){var u=i++,s=!1;t.push(void 0),a++,r.resolve(e).then((function(e){s||(s=!0,t[u]=e,--a||n(t))}),o)})),--a||n(t)}));return i.e&&o(i.v),t.promise},race:function(e){var r=this,t=k(r),n=t.reject,o=x((function(){m(e,!1,(function(e){r.resolve(e).then(t.resolve,n)}))}));return o.e&&n(o.v),t.promise}})},61003:(e,r,t)=>{"use strict";var n=t(56175),o=t(20765);e.exports=t(32269)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return n.def(o(this,"Set"),e=0===e?0:e,e)}},n)},91867:(e,r,t)=>{"use strict";var n=t(90510)(!0);t(45700)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,r=this._t,t=this._i;return t>=r.length?{value:void 0,done:!0}:(e=n(r,t),this._i+=e.length,{value:e,done:!1})}))},46840:(e,r,t)=>{"use strict";var n=t(33938),o=t(27069),i=t(89666),a=t(83856),u=t(57470),s=t(77177).KEY,c=t(7929),l=t(20250),f=t(25378),p=t(65730),d=t(22939),v=t(25103),m=t(76347),h=t(70337),y=t(71421),g=t(12159),b=t(36727),x=t(66530),w=t(7932),S=t(33206),O=t(83101),E=t(98989),_=t(94368),j=t(76183),C=t(48195),F=t(4743),P=t(46162),A=j.f,k=F.f,D=_.f,N=n.Symbol,T=n.JSON,I=T&&T.stringify,M=d("_hidden"),R=d("toPrimitive"),W={}.propertyIsEnumerable,q=l("symbol-registry"),B=l("symbols"),$=l("op-symbols"),U=Object.prototype,V="function"==typeof N&&!!C.f,L=n.QObject,z=!L||!L.prototype||!L.prototype.findChild,K=i&&c((function(){return 7!=E(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a}))?function(e,r,t){var n=A(U,r);n&&delete U[r],k(e,r,t),n&&e!==U&&k(U,r,n)}:k,J=function(e){var r=B[e]=E(N.prototype);return r._k=e,r},H=V&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},G=function(e,r,t){return e===U&&G($,r,t),g(e),r=S(r,!0),g(t),o(B,r)?(t.enumerable?(o(e,M)&&e[M][r]&&(e[M][r]=!1),t=E(t,{enumerable:O(0,!1)})):(o(e,M)||k(e,M,O(1,{})),e[M][r]=!0),K(e,r,t)):k(e,r,t)},Y=function(e,r){g(e);for(var t,n=h(r=w(r)),o=0,i=n.length;i>o;)G(e,t=n[o++],r[t]);return e},Z=function(e){var r=W.call(this,e=S(e,!0));return!(this===U&&o(B,e)&&!o($,e))&&(!(r||!o(this,e)||!o(B,e)||o(this,M)&&this[M][e])||r)},Q=function(e,r){if(e=w(e),r=S(r,!0),e!==U||!o(B,r)||o($,r)){var t=A(e,r);return!t||!o(B,r)||o(e,M)&&e[M][r]||(t.enumerable=!0),t}},X=function(e){for(var r,t=D(w(e)),n=[],i=0;t.length>i;)o(B,r=t[i++])||r==M||r==s||n.push(r);return n},ee=function(e){for(var r,t=e===U,n=D(t?$:w(e)),i=[],a=0;n.length>a;)!o(B,r=n[a++])||t&&!o(U,r)||i.push(B[r]);return i};V||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),r=function(t){this===U&&r.call($,t),o(this,M)&&o(this[M],e)&&(this[M][e]=!1),K(this,e,O(1,t))};return i&&z&&K(U,e,{configurable:!0,set:r}),J(e)}).prototype,"toString",(function(){return this._k})),j.f=Q,F.f=G,t(33230).f=_.f=X,t(86274).f=Z,C.f=ee,i&&!t(16227)&&u(U,"propertyIsEnumerable",Z,!0),v.f=function(e){return J(d(e))}),a(a.G+a.W+a.F*!V,{Symbol:N});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;re.length>te;)d(re[te++]);for(var ne=P(d.store),oe=0;ne.length>oe;)m(ne[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(q,e+="")?q[e]:q[e]=N(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");for(var r in q)if(q[r]===e)return r},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,r){return void 0===r?E(e):Y(E(e),r)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:ee});var ie=c((function(){C.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return C.f(x(e))}}),T&&a(a.S+a.F*(!V||c((function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){for(var r,t,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(t=r=n[1],(b(r)||void 0!==e)&&!H(e))return y(r)||(r=function(e,r){if("function"==typeof t&&(r=t.call(this,e,r)),!H(r))return r}),n[1]=r,I.apply(T,n)}}),N.prototype[R]||t(41818)(N.prototype,R,N.prototype.valueOf),f(N,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},89293:(e,r,t)=>{"use strict";var n=t(83856),o=t(57428)(!0);n(n.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),t(79003)("includes")},95971:(e,r,t)=>{"use strict";var n=t(83856),o=t(34579),i=t(33938),a=t(32707),u=t(87790);n(n.P+n.R,"Promise",{finally:function(e){var r=a(this,o.Promise||i.Promise),t="function"==typeof e;return this.then(t?function(t){return u(r,e()).then((function(){return t}))}:e,t?function(t){return u(r,e()).then((function(){throw t}))}:e)}})},22526:(e,r,t)=>{"use strict";var n=t(83856),o=t(59304),i=t(10931);n(n.S,"Promise",{try:function(e){var r=o.f(this),t=i(e);return(t.e?r.reject:r.resolve)(t.v),r.promise}})},59806:(e,r,t)=>{t(6237)("Set")},31749:(e,r,t)=>{t(46730)("Set")},48408:(e,r,t)=>{var n=t(83856);n(n.P+n.R,"Set",{toJSON:t(61718)("Set")})},8174:(e,r,t)=>{t(76347)("asyncIterator")},36461:(e,r,t)=>{t(76347)("observable")},73871:(e,r,t)=>{t(3882);for(var n=t(33938),o=t(41818),i=t(15449),a=t(22939)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],l=n[c],f=l&&l.prototype;f&&!f[a]&&o(f,a,c),i[c]=i.Array}},36602:(e,r,t)=>{var n=t(18446),o=t(89734),i=t(44908),a=t(87185),u=t(91747),s=t(33856),c=t(68630),l=t(51584),f=e=>Array.isArray(e)?e:[e],p=e=>void 0===e,d=e=>c(e)||Array.isArray(e)?Object.keys(e):[],v=(e,r)=>e.hasOwnProperty(r),m=e=>o(i(e)),h=e=>p(e)||Array.isArray(e)&&0===e.length,y=(e,r)=>p(e)&&0===r||p(r)&&0===e||n(e,r),g=e=>p(e)||n(e,{})||!0===e,b=e=>p(e)||n(e,{}),x=e=>p(e)||c(e)||!0===e||!1===e;function w(e,r){return!(!h(e)||!h(r))||n(m(e),m(r))}function S(e,r,t,o){var a=i(d(e).concat(d(r)));return!(!b(e)||!b(r))||(!b(e)||!d(r).length)&&(!b(r)||!d(e).length)&&a.every((function(t){var i=e[t],a=r[t];return Array.isArray(i)&&Array.isArray(a)?n(m(e),m(r)):!(Array.isArray(i)&&!Array.isArray(a))&&!(Array.isArray(a)&&!Array.isArray(i))&&((e,r,t,n)=>r&&v(r,t)&&e&&v(e,t)&&n(e[t],r[t]))(e,r,t,o)}))}function O(e,r,t,n){var o=a(e,n),i=a(r,n);return s(o,i,n).length===Math.max(o.length,i.length)}var E={title:n,uniqueItems:(e,r)=>p(e)&&!1===r||p(r)&&!1===e||n(e,r),minLength:y,minItems:y,minProperties:y,required:w,enum:w,type:function(e,r){return e=f(e),r=f(r),n(m(e),m(r))},items:function(e,r,t,o){return c(e)&&c(r)?o(e,r):Array.isArray(e)&&Array.isArray(r)?S(e,r,0,o):n(e,r)},anyOf:O,allOf:O,oneOf:O,properties:S,patternProperties:S,dependencies:S},_=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],j=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(r,t,o){if(o=u(o,{ignore:[]}),g(r)&&g(t))return!0;if(!x(r)||!x(t))throw new Error("Either of the values are not a JSON schema.");if(r===t)return!0;if(l(r)&&l(t))return r===t;if(void 0===r&&!1===t||void 0===t&&!1===r)return!1;if(p(r)&&!p(t)||!p(r)&&p(t))return!1;var a=i(Object.keys(r).concat(Object.keys(t)));if(o.ignore.length&&(a=a.filter((e=>-1===o.ignore.indexOf(e)))),!a.length)return!0;function s(r,t){return e(r,t,o)}return a.every((function(i){var a=r[i],u=t[i];if(-1!==j.indexOf(i))return e(a,u,o);var c=E[i];if(c||(c=n),n(a,u))return!0;if(-1===_.indexOf(i)&&(!v(r,i)&&v(t,i)||v(r,i)&&!v(t,i)))return a===u;var f=c(a,u,i,s);if(!l(f))throw new Error("Comparer must return true or false");return f}))}},19830:(e,r,t)=>{var n=t(50361),o=t(36602),i=t(61735),a=t(66913),u=t(85564),s=t(42348),c=t(25325),l=t(33856),f=t(18446),p=t(68630),d=t(45604),v=t(89734),m=t(84486),h=t(44908),y=t(87185),g=t(82569),b=(e,...r)=>g.apply(null,[e].concat(u(r))),x=e=>S(L,e),w=e=>S(z,e),S=(e,r)=>-1!==e.indexOf(r),O=e=>p(e)||!0===e||!1===e,E=e=>!1===e,_=e=>!0===e,j=(e,r,t)=>t(e),C=e=>v(h(s(e))),F=e=>void 0!==e,P=e=>h(s(e.map(M))),A=e=>e[0],k=e=>Math.max.apply(Math,e),D=e=>Math.min.apply(Math,e);function N(e){if(Array.isArray(e.allOf)){var r=e.allOf;return delete e.allOf,[e].concat(r.map((function(e){return N(e)})))}return[e]}function T(e,r){return e.map((function(e){return e&&e[r]}))}function I(e,r){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;var t=e.items[r];return O(t)?t:e.hasOwnProperty("additionalItems")?e.additionalItems:void 0}}))}function M(e){return p(e)||Array.isArray(e)?Object.keys(e):[]}function R(e,r){if(r=r||[],!e.length)return r;var t=e.slice(0).shift(),n=e.slice(1);return r.length?R(n,u(r.map((e=>t.map((r=>[r].concat(e))))))):R(n,t.map((e=>e)))}function W(e,r){var t;try{t=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(r){t=e.join(", ")}throw new Error('Could not resolve values for path:"'+r.join(".")+'". They are probably incompatible. Values: \n'+t)}function q(e){for(var r in e)e.hasOwnProperty(r)&&!M(t=e[r]).length&&!1!==t&&!0!==t&&delete e[r];var t;return e}function B(e,r,t){return function(n,o){if(void 0===o)throw new Error("You need to call merger with a key for the property name or index if array.");return o=String(o),e(n,null,t.concat(r,o))}}function $(e,r,t,n,i,a){if(e.length){var u=i.resolvers[r];if(!u)throw new Error("No resolver found for "+r);var s=y(t.map((function(r){return e.reduce((function(e,t){return void 0!==r[t]&&(e[t]=r[t]),e}),{})})).filter(F),o),c=("properties"===r?L:z).reduce((function(e,r){return S(K,r)?e[r]=B(n,r,a):e[r]=function(e){return n(e,null,a.concat(r))},e}),{});"items"===r&&(c.itemsArray=B(n,"items",a),c.items=function(e){return n(e,null,a.concat("items"))});var l=u(s,a.concat(r),c,i);return p(l)||W(s,a.concat(r)),q(l)}}function U(e,r,t){var n=P(t||e),i=t?I:T;return n.reduce((function(t,n){var a=i(e,n),u=y(a.filter(F),o);return t[n]=r(u,n),t}),t?[]:{})}function V(e){return{required:e}}var L=["properties","patternProperties","additionalProperties"],z=["items","additionalItems"],K=["properties","patternProperties","definitions","dependencies"],J=["anyOf","oneOf"],H=["additionalProperties","additionalItems","contains","propertyNames","not","items"],G={type(e){if(e.some(Array.isArray)){var r=e.map((function(e){return Array.isArray(e)?e:[e]})),t=c.apply(null,r);if(1===t.length)return t[0];if(t.length>1)return h(t)}},properties(e,r,t,n){n.ignoreAdditionalProperties||(e.forEach((function(r){var n=e.filter((e=>e!==r)),o=M(r.properties),i=M(r.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){var n=M(e.properties),a=n.filter((e=>i.some((r=>r.test(e)))));b(n,o,a).forEach((function(n){e.properties[n]=t.properties([e.properties[n],r.additionalProperties],n)}))}))})),e.forEach((function(r){var t=e.filter((e=>e!==r)),n=M(r.patternProperties);!1===r.additionalProperties&&t.forEach((function(e){var r=M(e.patternProperties);b(r,n).forEach((r=>delete e.patternProperties[r]))}))})));var o,i={additionalProperties:t.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:U(e.map((e=>e.patternProperties)),t.patternProperties),properties:U(e.map((e=>e.properties)),t.properties)};return!1===i.additionalProperties&&m(o=i.properties,(function(e,r){!1===e&&delete o[r]})),i},dependencies:(e,r,t)=>P(e).reduce((function(r,n){var i=T(e,n),a=y(i.filter(F),f),u=a.filter(Array.isArray);if(u.length){if(u.length===a.length)r[n]=C(a);else{var s=a.filter(O),c=u.map(V);r[n]=t(s.concat(c),n)}return r}return a=y(a,o),r[n]=t(a,n),r}),{}),items(e,r,t){var n,o,i=e.map((e=>e.items)),a=i.filter(F),u={};return a.every(O)?u.items=t.items(i):u.items=U(e,t.itemsArray,i),a.every(Array.isArray)?n=e.map((e=>e.additionalItems)):a.some(Array.isArray)&&(n=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),n&&(u.additionalItems=t.additionalItems(n)),!1===u.additionalItems&&Array.isArray(u.items)&&(o=u.items,m(o,(function(e,r){!1===e&&o.splice(r,1)}))),u},oneOf(e,r,t){var i=function(e,r){return e.map((function(e,t){try{return r(e,t)}catch(e){return}})).filter(F)}(R(n(e)),t),a=y(i,o);if(a.length)return a},not:e=>({anyOf:e}),pattern(e,r,t,n,o){var i=r.pop();o(e.map((function(e){return{[i]:e}})))},multipleOf(e){for(var r=e.slice(0),t=1;r.some((e=>!Number.isInteger(e)));)r=r.map((e=>10*e)),t*=10;return i(r)/t},enum(e){var r=l.apply(null,e.concat(f));if(r.length)return v(r)}};function Y(e,r,t){return t=t||[],r=a(r,{ignoreAdditionalProperties:!1,resolvers:G}),function e(i,a,u){i=n(i.filter(F)),u=u||[];var s=p(a)?a:{};if(i.length){if(i.some(E))return!1;if(i.every(_))return!0;i=i.filter(p);var c=P(i);if(S(c,"allOf"))return Y({allOf:i},r,t);var l=c.filter(x);d(c,l);var f=c.filter(w);return d(c,f),c.forEach((function(t){var n=T(i,t),a=y(n.filter(F),function(e){return function(r,t){return o({[e]:r},{[e]:t})}}(t));if(1===a.length&&S(J,t))s[t]=a[0].map((function(r){return e([r],r)}));else if(1!==a.length||S(K,t)||S(H,t)){var c,l=r.resolvers[t]||r.resolvers.defaultResolver;if(!l)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");c=S(K,t)||S(J,t)?B(e,t,u):function(r){return e(r,null,u.concat(t))};var f=!1;s[t]=l(a,u.concat(t),c,r,(function(e){return f=Array.isArray(e),function(e){s.allOf=function(e,r){return Array.isArray(e)?(e.splice.apply(e,[0,0].concat(r)),e):r}(s.allOf,e)}(e)})),void 0!==s[t]||f?void 0===s[t]&&delete s[t]:W(a,u.concat(t))}else s[t]=a[0]})),Object.assign(s,$(l,"properties",i,e,r,u)),Object.assign(s,$(f,"items",i,e,r,u)),s}}(s(N(e)),e)}G.$id=A,G.$ref=A,G.$schema=A,G.additionalItems=j,G.additionalProperties=j,G.anyOf=G.oneOf,G.contains=j,G.default=A,G.definitions=G.dependencies,G.description=A,G.examples=e=>y(u(e),f),G.exclusiveMaximum=D,G.exclusiveMinimum=k,G.maximum=D,G.maxItems=D,G.maxLength=D,G.maxProperties=D,G.minimum=k,G.minItems=k,G.minLength=k,G.minProperties=k,G.propertyNames=j,G.required=e=>C(e),G.title=A,G.uniqueItems=e=>e.some(_),Y.options={resolvers:G},e.exports=Y},89038:(e,r)=>{var t=/~/,n=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function i(e){return t.test(e)?e.replace(n,o):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e))return e;throw new Error("Invalid JSON pointer.")}function u(e,r){if("object"!=typeof e)throw new Error("Invalid input object.");var t=(r=a(r)).length;if(1===t)return e;for(var n=1;n<t;){if(e=e[i(r[n++])],t===n)return e;if("object"!=typeof e)return}}function s(e,r,t){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(r=a(r)).length)throw new Error("Invalid JSON pointer for set.");return function(e,r,t){var n,o;if("constructor"===r[1]&&"prototype"===r[2])return e;if("__proto__"===r[1])return e;for(var a=1,u=r.length;a<u&&(n=i(r[a++]),o=u>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==r[a]&&r[a]<1/0||"-"===r[a]?e[n]=[]:e[n]={})),o);)e=e[n];var s=e[n];return void 0===t?delete e[n]:e[n]=t,s}(e,r,t)}r.get=u,r.set=s,r.compile=function(e){var r=a(e);return{get:function(e){return u(e,r)},set:function(e,t){return s(e,r,t)}}}},18552:(e,r,t)=>{var n=t(10852)(t(55639),"DataView");e.exports=n},1989:(e,r,t)=>{var n=t(51789),o=t(80401),i=t(57667),a=t(21327),u=t(81866);function s(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},38407:(e,r,t)=>{var n=t(27040),o=t(14125),i=t(82117),a=t(67518),u=t(54705);function s(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},57071:(e,r,t)=>{var n=t(10852)(t(55639),"Map");e.exports=n},83369:(e,r,t)=>{var n=t(24785),o=t(11285),i=t(96e3),a=t(49916),u=t(95265);function s(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,e.exports=s},53818:(e,r,t)=>{var n=t(10852)(t(55639),"Promise");e.exports=n},58525:(e,r,t)=>{var n=t(10852)(t(55639),"Set");e.exports=n},88668:(e,r,t)=>{var n=t(83369),o=t(90619),i=t(72385);function a(e){var r=-1,t=null==e?0:e.length;for(this.__data__=new n;++r<t;)this.add(e[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:(e,r,t)=>{var n=t(38407),o=t(37465),i=t(63779),a=t(67599),u=t(44758),s=t(34309);function c(e){var r=this.__data__=new n(e);this.size=r.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,e.exports=c},62705:(e,r,t)=>{var n=t(55639).Symbol;e.exports=n},11149:(e,r,t)=>{var n=t(55639).Uint8Array;e.exports=n},70577:(e,r,t)=>{var n=t(10852)(t(55639),"WeakMap");e.exports=n},96874:e=>{e.exports=function(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}},77412:e=>{e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length;++t<n&&!1!==r(e[t],t,e););return e}},34963:e=>{e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length,o=0,i=[];++t<n;){var a=e[t];r(a,t,e)&&(i[o++]=a)}return i}},47443:(e,r,t)=>{var n=t(42118);e.exports=function(e,r){return!(null==e||!e.length)&&n(e,r,0)>-1}},1196:e=>{e.exports=function(e,r,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(r,e[n]))return!0;return!1}},14636:(e,r,t)=>{var n=t(22545),o=t(35694),i=t(1469),a=t(44144),u=t(65776),s=t(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,r){var t=i(e),l=!t&&o(e),f=!t&&!l&&a(e),p=!t&&!l&&!f&&s(e),d=t||l||f||p,v=d?n(e.length,String):[],m=v.length;for(var h in e)!r&&!c.call(e,h)||d&&("length"==h||f&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||u(h,m))||v.push(h);return v}},29932:e=>{e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o}},62488:e=>{e.exports=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e}},82908:e=>{e.exports=function(e,r){for(var t=-1,n=null==e?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}},86556:(e,r,t)=>{var n=t(89465),o=t(77813);e.exports=function(e,r,t){(void 0!==t&&!o(e[r],t)||void 0===t&&!(r in e))&&n(e,r,t)}},34865:(e,r,t)=>{var n=t(89465),o=t(77813),i=Object.prototype.hasOwnProperty;e.exports=function(e,r,t){var a=e[r];i.call(e,r)&&o(a,t)&&(void 0!==t||r in e)||n(e,r,t)}},18470:(e,r,t)=>{var n=t(77813);e.exports=function(e,r){for(var t=e.length;t--;)if(n(e[t][0],r))return t;return-1}},44037:(e,r,t)=>{var n=t(98363),o=t(3674);e.exports=function(e,r){return e&&n(r,o(r),e)}},63886:(e,r,t)=>{var n=t(98363),o=t(81704);e.exports=function(e,r){return e&&n(r,o(r),e)}},89465:(e,r,t)=>{var n=t(38777);e.exports=function(e,r,t){"__proto__"==r&&n?n(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}},85990:(e,r,t)=>{var n=t(46384),o=t(77412),i=t(34865),a=t(44037),u=t(63886),s=t(64626),c=t(278),l=t(18805),f=t(1911),p=t(58234),d=t(46904),v=t(64160),m=t(43824),h=t(29148),y=t(38517),g=t(1469),b=t(44144),x=t(56688),w=t(13218),S=t(72928),O=t(3674),E=t(81704),_="[object Arguments]",j="[object Function]",C="[object Object]",F={};F[_]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[C]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[j]=F["[object WeakMap]"]=!1,e.exports=function e(r,t,P,A,k,D){var N,T=1&t,I=2&t,M=4&t;if(P&&(N=k?P(r,A,k,D):P(r)),void 0!==N)return N;if(!w(r))return r;var R=g(r);if(R){if(N=m(r),!T)return c(r,N)}else{var W=v(r),q=W==j||"[object GeneratorFunction]"==W;if(b(r))return s(r,T);if(W==C||W==_||q&&!k){if(N=I||q?{}:y(r),!T)return I?f(r,u(N,r)):l(r,a(N,r))}else{if(!F[W])return k?r:{};N=h(r,W,T)}}D||(D=new n);var B=D.get(r);if(B)return B;D.set(r,N),S(r)?r.forEach((function(n){N.add(e(n,t,P,n,r,D))})):x(r)&&r.forEach((function(n,o){N.set(o,e(n,t,P,o,r,D))}));var $=R?void 0:(M?I?d:p:I?E:O)(r);return o($||r,(function(n,o){$&&(n=r[o=n]),i(N,o,e(n,t,P,o,r,D))})),N}},3118:(e,r,t)=>{var n=t(13218),o=Object.create,i=function(){function e(){}return function(r){if(!n(r))return{};if(o)return o(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();e.exports=i},20731:(e,r,t)=>{var n=t(88668),o=t(47443),i=t(1196),a=t(29932),u=t(7518),s=t(74757);e.exports=function(e,r,t,c){var l=-1,f=o,p=!0,d=e.length,v=[],m=r.length;if(!d)return v;t&&(r=a(r,u(t))),c?(f=i,p=!1):r.length>=200&&(f=s,p=!1,r=new n(r));e:for(;++l<d;){var h=e[l],y=null==t?h:t(h);if(h=c||0!==h?h:0,p&&y==y){for(var g=m;g--;)if(r[g]===y)continue e;v.push(h)}else f(r,y,c)||v.push(h)}return v}},89881:(e,r,t)=>{var n=t(47816),o=t(99291)(n);e.exports=o},41848:e=>{e.exports=function(e,r,t,n){for(var o=e.length,i=t+(n?1:-1);n?i--:++i<o;)if(r(e[i],i,e))return i;return-1}},21078:(e,r,t)=>{var n=t(62488),o=t(37285);e.exports=function e(r,t,i,a,u){var s=-1,c=r.length;for(i||(i=o),u||(u=[]);++s<c;){var l=r[s];t>0&&i(l)?t>1?e(l,t-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},28483:(e,r,t)=>{var n=t(25063)();e.exports=n},47816:(e,r,t)=>{var n=t(28483),o=t(3674);e.exports=function(e,r){return e&&n(e,r,o)}},97786:(e,r,t)=>{var n=t(71811),o=t(40327);e.exports=function(e,r){for(var t=0,i=(r=n(r,e)).length;null!=e&&t<i;)e=e[o(r[t++])];return t&&t==i?e:void 0}},68866:(e,r,t)=>{var n=t(62488),o=t(1469);e.exports=function(e,r,t){var i=r(e);return o(e)?i:n(i,t(e))}},44239:(e,r,t)=>{var n=t(62705),o=t(89607),i=t(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},13:e=>{e.exports=function(e,r){return null!=e&&r in Object(e)}},42118:(e,r,t)=>{var n=t(41848),o=t(62722),i=t(42351);e.exports=function(e,r,t){return r==r?i(e,r,t):n(e,o,t)}},74221:e=>{e.exports=function(e,r,t,n){for(var o=t-1,i=e.length;++o<i;)if(n(e[o],r))return o;return-1}},47556:(e,r,t)=>{var n=t(88668),o=t(47443),i=t(1196),a=t(29932),u=t(7518),s=t(74757),c=Math.min;e.exports=function(e,r,t){for(var l=t?i:o,f=e[0].length,p=e.length,d=p,v=Array(p),m=1/0,h=[];d--;){var y=e[d];d&&r&&(y=a(y,u(r))),m=c(y.length,m),v[d]=!t&&(r||f>=120&&y.length>=120)?new n(d&&y):void 0}y=e[0];var g=-1,b=v[0];e:for(;++g<f&&h.length<m;){var x=y[g],w=r?r(x):x;if(x=t||0!==x?x:0,!(b?s(b,w):l(h,w,t))){for(d=p;--d;){var S=v[d];if(!(S?s(S,w):l(e[d],w,t)))continue e}b&&b.push(w),h.push(x)}}return h}},9454:(e,r,t)=>{var n=t(44239),o=t(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},90939:(e,r,t)=>{var n=t(2492),o=t(37005);e.exports=function e(r,t,i,a,u){return r===t||(null==r||null==t||!o(r)&&!o(t)?r!=r&&t!=t:n(r,t,i,a,e,u))}},2492:(e,r,t)=>{var n=t(46384),o=t(67114),i=t(18351),a=t(16096),u=t(64160),s=t(1469),c=t(44144),l=t(36719),f="[object Arguments]",p="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,r,t,m,h,y){var g=s(e),b=s(r),x=g?p:u(e),w=b?p:u(r),S=(x=x==f?d:x)==d,O=(w=w==f?d:w)==d,E=x==w;if(E&&c(e)){if(!c(r))return!1;g=!0,S=!1}if(E&&!S)return y||(y=new n),g||l(e)?o(e,r,t,m,h,y):i(e,r,x,t,m,h,y);if(!(1&t)){var _=S&&v.call(e,"__wrapped__"),j=O&&v.call(r,"__wrapped__");if(_||j){var C=_?e.value():e,F=j?r.value():r;return y||(y=new n),h(C,F,t,m,y)}}return!!E&&(y||(y=new n),a(e,r,t,m,h,y))}},25588:(e,r,t)=>{var n=t(64160),o=t(37005);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},2958:(e,r,t)=>{var n=t(46384),o=t(90939);e.exports=function(e,r,t,i){var a=t.length,u=a,s=!i;if(null==e)return!u;for(e=Object(e);a--;){var c=t[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<u;){var l=(c=t[a])[0],f=e[l],p=c[1];if(s&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new n;if(i)var v=i(f,p,l,e,r,d);if(!(void 0===v?o(p,f,3,i,d):v))return!1}}return!0}},62722:e=>{e.exports=function(e){return e!=e}},28458:(e,r,t)=>{var n=t(23560),o=t(15346),i=t(13218),a=t(80346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:u).test(a(e))}},29221:(e,r,t)=>{var n=t(64160),o=t(37005);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},38749:(e,r,t)=>{var n=t(44239),o=t(41780),i=t(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},67206:(e,r,t)=>{var n=t(91573),o=t(16432),i=t(6557),a=t(1469),u=t(39601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):u(e)}},280:(e,r,t)=>{var n=t(25726),o=t(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var r=[];for(var t in Object(e))i.call(e,t)&&"constructor"!=t&&r.push(t);return r}},10313:(e,r,t)=>{var n=t(13218),o=t(25726),i=t(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var r=o(e),t=[];for(var u in e)("constructor"!=u||!r&&a.call(e,u))&&t.push(u);return t}},69199:(e,r,t)=>{var n=t(89881),o=t(98612);e.exports=function(e,r){var t=-1,i=o(e)?Array(e.length):[];return n(e,(function(e,n,o){i[++t]=r(e,n,o)})),i}},91573:(e,r,t)=>{var n=t(2958),o=t(1499),i=t(42634);e.exports=function(e){var r=o(e);return 1==r.length&&r[0][2]?i(r[0][0],r[0][1]):function(t){return t===e||n(t,e,r)}}},16432:(e,r,t)=>{var n=t(90939),o=t(27361),i=t(79095),a=t(15403),u=t(89162),s=t(42634),c=t(40327);e.exports=function(e,r){return a(e)&&u(r)?s(c(e),r):function(t){var a=o(t,e);return void 0===a&&a===r?i(t,e):n(r,a,3)}}},42980:(e,r,t)=>{var n=t(46384),o=t(86556),i=t(28483),a=t(59783),u=t(13218),s=t(81704),c=t(36390);e.exports=function e(r,t,l,f,p){r!==t&&i(t,(function(i,s){if(p||(p=new n),u(i))a(r,t,s,l,e,f,p);else{var d=f?f(c(r,s),i,s+"",r,t,p):void 0;void 0===d&&(d=i),o(r,s,d)}}),s)}},59783:(e,r,t)=>{var n=t(86556),o=t(64626),i=t(77133),a=t(278),u=t(38517),s=t(35694),c=t(1469),l=t(29246),f=t(44144),p=t(23560),d=t(13218),v=t(68630),m=t(36719),h=t(36390),y=t(59881);e.exports=function(e,r,t,g,b,x,w){var S=h(e,t),O=h(r,t),E=w.get(O);if(E)n(e,t,E);else{var _=x?x(S,O,t+"",e,r,w):void 0,j=void 0===_;if(j){var C=c(O),F=!C&&f(O),P=!C&&!F&&m(O);_=O,C||F||P?c(S)?_=S:l(S)?_=a(S):F?(j=!1,_=o(O,!0)):P?(j=!1,_=i(O,!0)):_=[]:v(O)||s(O)?(_=S,s(S)?_=y(S):d(S)&&!p(S)||(_=u(O))):j=!1}j&&(w.set(O,_),b(_,O,g,x,w),w.delete(O)),n(e,t,_)}}},82689:(e,r,t)=>{var n=t(29932),o=t(97786),i=t(67206),a=t(69199),u=t(71131),s=t(7518),c=t(85022),l=t(6557),f=t(1469);e.exports=function(e,r,t){r=r.length?n(r,(function(e){return f(e)?function(r){return o(r,1===e.length?e[0]:e)}:e})):[l];var p=-1;r=n(r,s(i));var d=a(e,(function(e,t,o){return{criteria:n(r,(function(r){return r(e)})),index:++p,value:e}}));return u(d,(function(e,r){return c(e,r,t)}))}},25970:(e,r,t)=>{var n=t(63012),o=t(79095);e.exports=function(e,r){return n(e,r,(function(r,t){return o(e,t)}))}},63012:(e,r,t)=>{var n=t(97786),o=t(10611),i=t(71811);e.exports=function(e,r,t){for(var a=-1,u=r.length,s={};++a<u;){var c=r[a],l=n(e,c);t(l,c)&&o(s,i(c,e),l)}return s}},40371:e=>{e.exports=function(e){return function(r){return null==r?void 0:r[e]}}},79152:(e,r,t)=>{var n=t(97786);e.exports=function(e){return function(r){return n(r,e)}}},65464:(e,r,t)=>{var n=t(29932),o=t(42118),i=t(74221),a=t(7518),u=t(278),s=Array.prototype.splice;e.exports=function(e,r,t,c){var l=c?i:o,f=-1,p=r.length,d=e;for(e===r&&(r=u(r)),t&&(d=n(e,a(t)));++f<p;)for(var v=0,m=r[f],h=t?t(m):m;(v=l(d,h,v,c))>-1;)d!==e&&s.call(d,v,1),s.call(e,v,1);return e}},5976:(e,r,t)=>{var n=t(6557),o=t(45357),i=t(30061);e.exports=function(e,r){return i(o(e,r,n),e+"")}},10611:(e,r,t)=>{var n=t(34865),o=t(71811),i=t(65776),a=t(13218),u=t(40327);e.exports=function(e,r,t,s){if(!a(e))return e;for(var c=-1,l=(r=o(r,e)).length,f=l-1,p=e;null!=p&&++c<l;){var d=u(r[c]),v=t;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(c!=f){var m=p[d];void 0===(v=s?s(m,d,p):void 0)&&(v=a(m)?m:i(r[c+1])?[]:{})}n(p,d,v),p=p[d]}return e}},56560:(e,r,t)=>{var n=t(75703),o=t(38777),i=t(6557),a=o?function(e,r){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(r),writable:!0})}:i;e.exports=a},71131:e=>{e.exports=function(e,r){var t=e.length;for(e.sort(r);t--;)e[t]=e[t].value;return e}},22545:e=>{e.exports=function(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}},80531:(e,r,t)=>{var n=t(62705),o=t(29932),i=t(1469),a=t(33448),u=n?n.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(r){if("string"==typeof r)return r;if(i(r))return o(r,e)+"";if(a(r))return s?s.call(r):"";var t=r+"";return"0"==t&&1/r==-1/0?"-0":t}},7518:e=>{e.exports=function(e){return function(r){return e(r)}}},45652:(e,r,t)=>{var n=t(88668),o=t(47443),i=t(1196),a=t(74757),u=t(23593),s=t(21814);e.exports=function(e,r,t){var c=-1,l=o,f=e.length,p=!0,d=[],v=d;if(t)p=!1,l=i;else if(f>=200){var m=r?null:u(e);if(m)return s(m);p=!1,l=a,v=new n}else v=r?[]:d;e:for(;++c<f;){var h=e[c],y=r?r(h):h;if(h=t||0!==h?h:0,p&&y==y){for(var g=v.length;g--;)if(v[g]===y)continue e;r&&v.push(y),d.push(h)}else l(v,y,t)||(v!==d&&v.push(y),d.push(h))}return d}},74757:e=>{e.exports=function(e,r){return e.has(r)}},24387:(e,r,t)=>{var n=t(29246);e.exports=function(e){return n(e)?e:[]}},54290:(e,r,t)=>{var n=t(6557);e.exports=function(e){return"function"==typeof e?e:n}},71811:(e,r,t)=>{var n=t(1469),o=t(15403),i=t(55514),a=t(79833);e.exports=function(e,r){return n(e)?e:o(e,r)?[e]:i(a(e))}},74318:(e,r,t)=>{var n=t(11149);e.exports=function(e){var r=new e.constructor(e.byteLength);return new n(r).set(new n(e)),r}},64626:(e,r,t)=>{e=t.nmd(e);var n=t(55639),o=r&&!r.nodeType&&r,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;e.exports=function(e,r){if(r)return e.slice();var t=e.length,n=u?u(t):new e.constructor(t);return e.copy(n),n}},57157:(e,r,t)=>{var n=t(74318);e.exports=function(e,r){var t=r?n(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}},93147:e=>{var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},40419:(e,r,t)=>{var n=t(62705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},77133:(e,r,t)=>{var n=t(74318);e.exports=function(e,r){var t=r?n(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}},26393:(e,r,t)=>{var n=t(33448);e.exports=function(e,r){if(e!==r){var t=void 0!==e,o=null===e,i=e==e,a=n(e),u=void 0!==r,s=null===r,c=r==r,l=n(r);if(!s&&!l&&!a&&e>r||a&&u&&c&&!s&&!l||o&&u&&c||!t&&c||!i)return 1;if(!o&&!a&&!l&&e<r||l&&t&&i&&!o&&!a||s&&t&&i||!u&&i||!c)return-1}return 0}},85022:(e,r,t)=>{var n=t(26393);e.exports=function(e,r,t){for(var o=-1,i=e.criteria,a=r.criteria,u=i.length,s=t.length;++o<u;){var c=n(i[o],a[o]);if(c)return o>=s?c:c*("desc"==t[o]?-1:1)}return e.index-r.index}},278:e=>{e.exports=function(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}},98363:(e,r,t)=>{var n=t(34865),o=t(89465);e.exports=function(e,r,t,i){var a=!t;t||(t={});for(var u=-1,s=r.length;++u<s;){var c=r[u],l=i?i(t[c],e[c],c,t,e):void 0;void 0===l&&(l=e[c]),a?o(t,c,l):n(t,c,l)}return t}},18805:(e,r,t)=>{var n=t(98363),o=t(99551);e.exports=function(e,r){return n(e,o(e),r)}},1911:(e,r,t)=>{var n=t(98363),o=t(51442);e.exports=function(e,r){return n(e,o(e),r)}},14429:(e,r,t)=>{var n=t(55639)["__core-js_shared__"];e.exports=n},21463:(e,r,t)=>{var n=t(5976),o=t(16612);e.exports=function(e){return n((function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(t[0],t[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++n<i;){var s=t[n];s&&e(r,s,n,a)}return r}))}},99291:(e,r,t)=>{var n=t(98612);e.exports=function(e,r){return function(t,o){if(null==t)return t;if(!n(t))return e(t,o);for(var i=t.length,a=r?i:-1,u=Object(t);(r?a--:++a<i)&&!1!==o(u[a],a,u););return t}}},25063:e=>{e.exports=function(e){return function(r,t,n){for(var o=-1,i=Object(r),a=n(r),u=a.length;u--;){var s=a[e?u:++o];if(!1===t(i[s],s,i))break}return r}}},23593:(e,r,t)=>{var n=t(58525),o=t(50308),i=t(21814),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},92052:(e,r,t)=>{var n=t(42980),o=t(13218);e.exports=function e(r,t,i,a,u,s){return o(r)&&o(t)&&(s.set(t,r),n(r,t,void 0,e,s),s.delete(t)),r}},38777:(e,r,t)=>{var n=t(10852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},67114:(e,r,t)=>{var n=t(88668),o=t(82908),i=t(74757);e.exports=function(e,r,t,a,u,s){var c=1&t,l=e.length,f=r.length;if(l!=f&&!(c&&f>l))return!1;var p=s.get(e),d=s.get(r);if(p&&d)return p==r&&d==e;var v=-1,m=!0,h=2&t?new n:void 0;for(s.set(e,r),s.set(r,e);++v<l;){var y=e[v],g=r[v];if(a)var b=c?a(g,y,v,r,e,s):a(y,g,v,e,r,s);if(void 0!==b){if(b)continue;m=!1;break}if(h){if(!o(r,(function(e,r){if(!i(h,r)&&(y===e||u(y,e,t,a,s)))return h.push(r)}))){m=!1;break}}else if(y!==g&&!u(y,g,t,a,s)){m=!1;break}}return s.delete(e),s.delete(r),m}},18351:(e,r,t)=>{var n=t(62705),o=t(11149),i=t(77813),a=t(67114),u=t(68776),s=t(21814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,r,t,n,c,f,p){switch(t){case"[object DataView]":if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=r.byteLength||!f(new o(e),new o(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+r);case"[object Error]":return e.name==r.name&&e.message==r.message;case"[object RegExp]":case"[object String]":return e==r+"";case"[object Map]":var d=u;case"[object Set]":var v=1&n;if(d||(d=s),e.size!=r.size&&!v)return!1;var m=p.get(e);if(m)return m==r;n|=2,p.set(e,r);var h=a(d(e),d(r),n,c,f,p);return p.delete(e),h;case"[object Symbol]":if(l)return l.call(e)==l.call(r)}return!1}},16096:(e,r,t)=>{var n=t(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,r,t,i,a,u){var s=1&t,c=n(e),l=c.length;if(l!=n(r).length&&!s)return!1;for(var f=l;f--;){var p=c[f];if(!(s?p in r:o.call(r,p)))return!1}var d=u.get(e),v=u.get(r);if(d&&v)return d==r&&v==e;var m=!0;u.set(e,r),u.set(r,e);for(var h=s;++f<l;){var y=e[p=c[f]],g=r[p];if(i)var b=s?i(g,y,p,r,e,u):i(y,g,p,e,r,u);if(!(void 0===b?y===g||a(y,g,t,i,u):b)){m=!1;break}h||(h="constructor"==p)}if(m&&!h){var x=e.constructor,w=r.constructor;x==w||!("constructor"in e)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return u.delete(e),u.delete(r),m}},99021:(e,r,t)=>{var n=t(85564),o=t(45357),i=t(30061);e.exports=function(e){return i(o(e,void 0,n),e+"")}},31957:(e,r,t)=>{var n="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=n},58234:(e,r,t)=>{var n=t(68866),o=t(99551),i=t(3674);e.exports=function(e){return n(e,i,o)}},46904:(e,r,t)=>{var n=t(68866),o=t(51442),i=t(81704);e.exports=function(e){return n(e,i,o)}},45050:(e,r,t)=>{var n=t(37019);e.exports=function(e,r){var t=e.__data__;return n(r)?t["string"==typeof r?"string":"hash"]:t.map}},1499:(e,r,t)=>{var n=t(89162),o=t(3674);e.exports=function(e){for(var r=o(e),t=r.length;t--;){var i=r[t],a=e[i];r[t]=[i,a,n(a)]}return r}},10852:(e,r,t)=>{var n=t(28458),o=t(47801);e.exports=function(e,r){var t=o(e,r);return n(t)?t:void 0}},85924:(e,r,t)=>{var n=t(5569)(Object.getPrototypeOf,Object);e.exports=n},89607:(e,r,t)=>{var n=t(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;e.exports=function(e){var r=i.call(e,u),t=e[u];try{e[u]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(r?e[u]=t:delete e[u]),o}},99551:(e,r,t)=>{var n=t(34963),o=t(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(r){return i.call(e,r)})))}:o;e.exports=u},51442:(e,r,t)=>{var n=t(62488),o=t(85924),i=t(99551),a=t(70479),u=Object.getOwnPropertySymbols?function(e){for(var r=[];e;)n(r,i(e)),e=o(e);return r}:a;e.exports=u},64160:(e,r,t)=>{var n=t(18552),o=t(57071),i=t(53818),a=t(58525),u=t(70577),s=t(44239),c=t(80346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",v="[object DataView]",m=c(n),h=c(o),y=c(i),g=c(a),b=c(u),x=s;(n&&x(new n(new ArrayBuffer(1)))!=v||o&&x(new o)!=l||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=d)&&(x=function(e){var r=s(e),t="[object Object]"==r?e.constructor:void 0,n=t?c(t):"";if(n)switch(n){case m:return v;case h:return l;case y:return f;case g:return p;case b:return d}return r}),e.exports=x},47801:e=>{e.exports=function(e,r){return null==e?void 0:e[r]}},222:(e,r,t)=>{var n=t(71811),o=t(35694),i=t(1469),a=t(65776),u=t(41780),s=t(40327);e.exports=function(e,r,t){for(var c=-1,l=(r=n(r,e)).length,f=!1;++c<l;){var p=s(r[c]);if(!(f=null!=e&&t(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&u(l)&&a(p,l)&&(i(e)||o(e))}},51789:(e,r,t)=>{var n=t(94536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:e=>{e.exports=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}},57667:(e,r,t)=>{var n=t(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var r=this.__data__;if(n){var t=r[e];return"__lodash_hash_undefined__"===t?void 0:t}return o.call(r,e)?r[e]:void 0}},21327:(e,r,t)=>{var n=t(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var r=this.__data__;return n?void 0!==r[e]:o.call(r,e)}},81866:(e,r,t)=>{var n=t(94536);e.exports=function(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},43824:e=>{var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},29148:(e,r,t)=>{var n=t(74318),o=t(57157),i=t(93147),a=t(40419),u=t(77133);e.exports=function(e,r,t){var s=e.constructor;switch(r){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return o(e,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(e,t);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},38517:(e,r,t)=>{var n=t(3118),o=t(85924),i=t(25726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},37285:(e,r,t)=>{var n=t(62705),o=t(35694),i=t(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},65776:e=>{var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},16612:(e,r,t)=>{var n=t(77813),o=t(98612),i=t(65776),a=t(13218);e.exports=function(e,r,t){if(!a(t))return!1;var u=typeof r;return!!("number"==u?o(t)&&i(r,t.length):"string"==u&&r in t)&&n(t[r],e)}},15403:(e,r,t)=>{var n=t(1469),o=t(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,r){if(n(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=r&&e in Object(r)}},37019:e=>{e.exports=function(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}},15346:(e,r,t)=>{var n,o=t(14429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},25726:e=>{var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},89162:(e,r,t)=>{var n=t(13218);e.exports=function(e){return e==e&&!n(e)}},27040:e=>{e.exports=function(){this.__data__=[],this.size=0}},14125:(e,r,t)=>{var n=t(18470),o=Array.prototype.splice;e.exports=function(e){var r=this.__data__,t=n(r,e);return!(t<0||(t==r.length-1?r.pop():o.call(r,t,1),--this.size,0))}},82117:(e,r,t)=>{var n=t(18470);e.exports=function(e){var r=this.__data__,t=n(r,e);return t<0?void 0:r[t][1]}},67518:(e,r,t)=>{var n=t(18470);e.exports=function(e){return n(this.__data__,e)>-1}},54705:(e,r,t)=>{var n=t(18470);e.exports=function(e,r){var t=this.__data__,o=n(t,e);return o<0?(++this.size,t.push([e,r])):t[o][1]=r,this}},24785:(e,r,t)=>{var n=t(1989),o=t(38407),i=t(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},11285:(e,r,t)=>{var n=t(45050);e.exports=function(e){var r=n(this,e).delete(e);return this.size-=r?1:0,r}},96e3:(e,r,t)=>{var n=t(45050);e.exports=function(e){return n(this,e).get(e)}},49916:(e,r,t)=>{var n=t(45050);e.exports=function(e){return n(this,e).has(e)}},95265:(e,r,t)=>{var n=t(45050);e.exports=function(e,r){var t=n(this,e),o=t.size;return t.set(e,r),this.size+=t.size==o?0:1,this}},68776:e=>{e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e,n){t[++r]=[n,e]})),t}},42634:e=>{e.exports=function(e,r){return function(t){return null!=t&&t[e]===r&&(void 0!==r||e in Object(t))}}},24523:(e,r,t)=>{var n=t(88306);e.exports=function(e){var r=n(e,(function(e){return 500===t.size&&t.clear(),e})),t=r.cache;return r}},94536:(e,r,t)=>{var n=t(10852)(Object,"create");e.exports=n},86916:(e,r,t)=>{var n=t(5569)(Object.keys,Object);e.exports=n},33498:e=>{e.exports=function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}},31167:(e,r,t)=>{e=t.nmd(e);var n=t(31957),o=r&&!r.nodeType&&r,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},2333:e=>{var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},5569:e=>{e.exports=function(e,r){return function(t){return e(r(t))}}},45357:(e,r,t)=>{var n=t(96874),o=Math.max;e.exports=function(e,r,t){return r=o(void 0===r?e.length-1:r,0),function(){for(var i=arguments,a=-1,u=o(i.length-r,0),s=Array(u);++a<u;)s[a]=i[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=i[a];return c[r]=t(s),n(e,this,c)}}},55639:(e,r,t)=>{var n=t(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},36390:e=>{e.exports=function(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:e=>{e.exports=function(e){return this.__data__.has(e)}},21814:e=>{e.exports=function(e){var r=-1,t=Array(e.size);return e.forEach((function(e){t[++r]=e})),t}},30061:(e,r,t)=>{var n=t(56560),o=t(21275)(n);e.exports=o},21275:e=>{var r=Date.now;e.exports=function(e){var t=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},37465:(e,r,t)=>{var n=t(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:e=>{e.exports=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}},67599:e=>{e.exports=function(e){return this.__data__.get(e)}},44758:e=>{e.exports=function(e){return this.__data__.has(e)}},34309:(e,r,t)=>{var n=t(38407),o=t(57071),i=t(83369);e.exports=function(e,r){var t=this.__data__;if(t instanceof n){var a=t.__data__;if(!o||a.length<199)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new i(a)}return t.set(e,r),this.size=t.size,this}},42351:e=>{e.exports=function(e,r,t){for(var n=t-1,o=e.length;++n<o;)if(e[n]===r)return n;return-1}},55514:(e,r,t)=>{var n=t(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(o,(function(e,t,n,o){r.push(n?o.replace(i,"$1"):t||e)})),r}));e.exports=a},40327:(e,r,t)=>{var n=t(33448);e.exports=function(e){if("string"==typeof e||n(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},80346:e=>{var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},50361:(e,r,t)=>{var n=t(85990);e.exports=function(e){return n(e,5)}},75703:e=>{e.exports=function(e){return function(){return e}}},91747:(e,r,t)=>{var n=t(5976),o=t(77813),i=t(16612),a=t(81704),u=Object.prototype,s=u.hasOwnProperty,c=n((function(e,r){e=Object(e);var t=-1,n=r.length,c=n>2?r[2]:void 0;for(c&&i(r[0],r[1],c)&&(n=1);++t<n;)for(var l=r[t],f=a(l),p=-1,d=f.length;++p<d;){var v=f[p],m=e[v];(void 0===m||o(m,u[v])&&!s.call(e,v))&&(e[v]=l[v])}return e}));e.exports=c},66913:(e,r,t)=>{var n=t(96874),o=t(5976),i=t(92052),a=t(30236),u=o((function(e){return e.push(void 0,i),n(a,void 0,e)}));e.exports=u},77813:e=>{e.exports=function(e,r){return e===r||e!=e&&r!=r}},85564:(e,r,t)=>{var n=t(21078);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},42348:(e,r,t)=>{var n=t(21078);e.exports=function(e){return null!=e&&e.length?n(e,1/0):[]}},84486:(e,r,t)=>{var n=t(77412),o=t(89881),i=t(54290),a=t(1469);e.exports=function(e,r){return(a(e)?n:o)(e,i(r))}},27361:(e,r,t)=>{var n=t(97786);e.exports=function(e,r,t){var o=null==e?void 0:n(e,r);return void 0===o?t:o}},79095:(e,r,t)=>{var n=t(13),o=t(222);e.exports=function(e,r){return null!=e&&o(e,r,n)}},6557:e=>{e.exports=function(e){return e}},25325:(e,r,t)=>{var n=t(29932),o=t(47556),i=t(5976),a=t(24387),u=i((function(e){var r=n(e,a);return r.length&&r[0]===e[0]?o(r):[]}));e.exports=u},33856:(e,r,t)=>{var n=t(29932),o=t(47556),i=t(5976),a=t(24387),u=t(10928),s=i((function(e){var r=u(e),t=n(e,a);return(r="function"==typeof r?r:void 0)&&t.pop(),t.length&&t[0]===e[0]?o(t,void 0,r):[]}));e.exports=s},35694:(e,r,t)=>{var n=t(9454),o=t(37005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},1469:e=>{var r=Array.isArray;e.exports=r},98612:(e,r,t)=>{var n=t(23560),o=t(41780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},29246:(e,r,t)=>{var n=t(98612),o=t(37005);e.exports=function(e){return o(e)&&n(e)}},51584:(e,r,t)=>{var n=t(44239),o=t(37005);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==n(e)}},44144:(e,r,t)=>{e=t.nmd(e);var n=t(55639),o=t(95062),i=r&&!r.nodeType&&r,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;e.exports=s},41609:(e,r,t)=>{var n=t(280),o=t(64160),i=t(35694),a=t(1469),u=t(98612),s=t(44144),c=t(25726),l=t(36719),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||l(e)||i(e)))return!e.length;var r=o(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if(c(e))return!n(e).length;for(var t in e)if(f.call(e,t))return!1;return!0}},18446:(e,r,t)=>{var n=t(90939);e.exports=function(e,r){return n(e,r)}},23560:(e,r,t)=>{var n=t(44239),o=t(13218);e.exports=function(e){if(!o(e))return!1;var r=n(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},41780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:(e,r,t)=>{var n=t(25588),o=t(7518),i=t(31167),a=i&&i.isMap,u=a?o(a):n;e.exports=u},13218:e=>{e.exports=function(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}},37005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},68630:(e,r,t)=>{var n=t(44239),o=t(85924),i=t(37005),a=Function.prototype,u=Object.prototype,s=a.toString,c=u.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var r=o(e);if(null===r)return!0;var t=c.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&s.call(t)==l}},72928:(e,r,t)=>{var n=t(29221),o=t(7518),i=t(31167),a=i&&i.isSet,u=a?o(a):n;e.exports=u},33448:(e,r,t)=>{var n=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},36719:(e,r,t)=>{var n=t(38749),o=t(7518),i=t(31167),a=i&&i.isTypedArray,u=a?o(a):n;e.exports=u},3674:(e,r,t)=>{var n=t(14636),o=t(280),i=t(98612);e.exports=function(e){return i(e)?n(e):o(e)}},81704:(e,r,t)=>{var n=t(14636),o=t(10313),i=t(98612);e.exports=function(e){return i(e)?n(e,!0):o(e)}},10928:e=>{e.exports=function(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}},88306:(e,r,t)=>{var n=t(83369);function o(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var t=function(){var n=arguments,o=r?r.apply(this,n):n[0],i=t.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return t.cache=i.set(o,a)||i,a};return t.cache=new(o.Cache||n),t}o.Cache=n,e.exports=o},30236:(e,r,t)=>{var n=t(42980),o=t(21463)((function(e,r,t,o){n(e,r,t,o)}));e.exports=o},50308:e=>{e.exports=function(){}},78718:(e,r,t)=>{var n=t(25970),o=t(99021)((function(e,r){return null==e?{}:n(e,r)}));e.exports=o},39601:(e,r,t)=>{var n=t(40371),o=t(79152),i=t(15403),a=t(40327);e.exports=function(e){return i(e)?n(a(e)):o(e)}},45604:(e,r,t)=>{var n=t(65464);e.exports=function(e,r){return e&&e.length&&r&&r.length?n(e,r):e}},89734:(e,r,t)=>{var n=t(21078),o=t(82689),i=t(5976),a=t(16612),u=i((function(e,r){if(null==e)return[];var t=r.length;return t>1&&a(e,r[0],r[1])?r=[]:t>2&&a(r[0],r[1],r[2])&&(r=[r[0]]),o(e,n(r,1),[])}));e.exports=u},70479:e=>{e.exports=function(){return[]}},95062:e=>{e.exports=function(){return!1}},30084:(e,r,t)=>{var n=t(29932),o=t(278),i=t(1469),a=t(33448),u=t(55514),s=t(40327),c=t(79833);e.exports=function(e){return i(e)?n(e,s):a(e)?[e]:o(u(c(e)))}},59881:(e,r,t)=>{var n=t(98363),o=t(81704);e.exports=function(e){return n(e,o(e))}},79833:(e,r,t)=>{var n=t(80531);e.exports=function(e){return null==e?"":n(e)}},93386:(e,r,t)=>{var n=t(21078),o=t(5976),i=t(45652),a=t(29246),u=o((function(e){return i(n(e,1,a,!0))}));e.exports=u},44908:(e,r,t)=>{var n=t(45652);e.exports=function(e){return e&&e.length?n(e):[]}},87185:(e,r,t)=>{var n=t(45652);e.exports=function(e,r){return r="function"==typeof r?r:void 0,e&&e.length?n(e,void 0,r):[]}},82569:(e,r,t)=>{var n=t(20731),o=t(5976),i=t(29246),a=o((function(e,r){return i(e)?n(e,r):[]}));e.exports=a},14670:(e,r,t)=>{"use strict";e.exports=t(95607)},79829:(e,r,t)=>{"use strict";var n,o,i,a=t(48946),u="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function s(){i=!1}function c(e){if(e){if(e!==n){if(e.length!==u.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. You submitted "+e.length+" characters: "+e);var r=e.split("").filter((function(e,r,t){return r!==t.lastIndexOf(e)}));if(r.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. These characters were not unique: "+r.join(", "));n=e,s()}}else n!==u&&(n=u,s())}function l(){return i||(i=function(){n||c(u);for(var e,r=n.split(""),t=[],o=a.nextValue();r.length>0;)o=a.nextValue(),e=Math.floor(o*r.length),t.push(r.splice(e,1)[0]);return t.join("")}())}e.exports={get:function(){return n||u},characters:function(e){return c(e),n},seed:function(e){a.seed(e),o!==e&&(s(),o=e)},lookup:function(e){return l()[e]},shuffled:l}},90480:(e,r,t)=>{"use strict";var n,o,i=t(98416);t(79829),e.exports=function(e){var r="",t=Math.floor(.001*(Date.now()-1567752802062));return t===o?n++:(n=0,o=t),r+=i(7),r+=i(e),n>0&&(r+=i(n)),r+i(t)}},98416:(e,r,t)=>{"use strict";var n=t(79829),o=t(13766),i=t(50296);e.exports=function(e){for(var r,t=0,a="";!r;)a+=i(o,n.get(),1),r=e<Math.pow(16,t+1),t++;return a}},95607:(e,r,t)=>{"use strict";var n=t(79829),o=t(90480),i=t(41082),a=t(15636)||0;function u(){return o(a)}e.exports=u,e.exports.generate=u,e.exports.seed=function(r){return n.seed(r),e.exports},e.exports.worker=function(r){return a=r,e.exports},e.exports.characters=function(e){return void 0!==e&&n.characters(e),n.shuffled()},e.exports.isValid=i},41082:(e,r,t)=>{"use strict";var n=t(79829);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+n.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},13766:e=>{"use strict";var r,t="object"==typeof window&&(window.crypto||window.msCrypto);r=t&&t.getRandomValues?function(e){return t.getRandomValues(new Uint8Array(e))}:function(e){for(var r=[],t=0;t<e;t++)r.push(Math.floor(256*Math.random()));return r},e.exports=r},48946:e=>{"use strict";var r=1;e.exports={nextValue:function(){return(r=(9301*r+49297)%233280)/233280},seed:function(e){r=e}}},15636:e=>{"use strict";e.exports=0},50296:e=>{e.exports=function(e,r,t){for(var n=(2<<Math.log(r.length-1)/Math.LN2)-1,o=-~(1.6*n*t/r.length),i="";;)for(var a=e(o),u=o;u--;)if((i+=r[a[u]&n]||"").length===+t)return i}},14653:e=>{"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},79882:e=>{"use strict";e.exports=function(e){return"function"==typeof e}},59158:(e,r,t)=>{"use strict";var n=t(14653),o=t(75647);e.exports=function(e){var r;if(!n(e))return!1;if(!(r=e.length))return!1;for(var t=0;t<r;t++)if(!o(e[t]))return!1;return!0}},75647:(e,r,t)=>{"use strict";var n=t(96953);e.exports=function(e){return n(e)&&e%1==0}},96953:e=>{"use strict";e.exports=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()}},27921:(e,r,t)=>{e.exports=t(47185)},78149:(e,r,t)=>{e.exports=t(53285)},16490:(e,r,t)=>{e.exports=t(3597)},8450:(e,r,t)=>{e.exports=t(92742)},7520:(e,r,t)=>{e.exports=t(24334)},18428:(e,r,t)=>{e.exports=t(56981)},5940:(e,r,t)=>{e.exports=t(45627)},26771:(e,r,t)=>{e.exports=t(33391)},95366:(e,r,t)=>{e.exports=t(67036)},62680:(e,r,t)=>{e.exports=t(4511)},62962:(e,r,t)=>{e.exports=t(30381)},26243:(e,r,t)=>{e.exports=t(98613)},22863:(e,r,t)=>{e.exports=t(63658)},79529:(e,r,t)=>{e.exports=t(27794)},73473:(e,r,t)=>{e.exports=t(80112)},90487:(e,r,t)=>{e.exports=t(32720)},85579:(e,r,t)=>{e.exports=t(80025)},22013:(e,r,t)=>{e.exports=t(52392)},64233:(e,r,t)=>{e.exports=t(92038)}}]);
dist/680.js ADDED
@@ -0,0 +1 @@
 
1
+ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[680],{59588:e=>{e.exports=function(e,n){var t,r,i=0;function s(){var s,a,f=t,u=arguments.length;e:for(;f;){if(f.args.length===arguments.length){for(a=0;a<u;a++)if(f.args[a]!==arguments[a]){f=f.next;continue e}return f!==t&&(f===r&&(r=f.prev),f.prev.next=f.next,f.next&&(f.next.prev=f.prev),f.next=t,f.prev=null,t.prev=f,t=f),f.val}f=f.next}for(s=new Array(u),a=0;a<u;a++)s[a]=arguments[a];return f={args:s,val:e.apply(null,s)},t?(t.prev=f,f.next=t):r=f,i===n.maxSize?(r=r.prev).next=null:i++,t=f,f.val}return n=n||{},s.clear=function(){t=null,r=null,i=0},s}},28306:(e,n,t)=>{"use strict";var r,i;function s(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function f(e,n,t){var r;if(e.length!==n.length)return!1;for(r=t;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}function u(e,n){var t,u;function l(){t=i?new WeakMap:a()}function o(){var t,r,i,s,a,l=arguments.length;for(s=new Array(l),i=0;i<l;i++)s[i]=arguments[i];for(a=n.apply(null,s),(t=u(a)).isUniqueByDependants||(t.lastDependants&&!f(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),r=t.head;r;){if(f(r.args,s,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,s)},s[0]=null,r.args=s,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return n||(n=s),u=i?function(e){var n,i,s,f,u,l=t,o=!0;for(n=0;n<e.length;n++){if(!(u=i=e[n])||"object"!=typeof u){o=!1;break}l.has(i)?l=l.get(i):(s=new WeakMap,l.set(i,s),l=s)}return l.has(r)||((f=a()).isUniqueByDependants=o,l.set(r,f)),l.get(r)}:function(){return t},o.getDependants=n,o.clear=l,l(),o}t.d(n,{Z:()=>u}),r={},i="undefined"!=typeof WeakMap},19631:function(e,n){var t,r;void 0===(r="function"==typeof(t=function(){var e={"+":!0,"#":!0,".":!0,"/":!0,";":!0,"?":!0,"&":!0},n={"*":!0};function t(e){return encodeURI(e).replace(/%25[0-9][0-9]/g,(function(e){return"%"+e.substring(3)}))}function r(e){return e=e.replace(/%../g,""),encodeURIComponent(e)===e}function i(i){var s="";e[i.charAt(0)]&&(s=i.charAt(0),i=i.substring(1));var a="",f="",u=!0,l=!1,o=!1;"+"==s?u=!1:"."==s?(f=".",a="."):"/"==s?(f="/",a="/"):"#"==s?(f="#",u=!1):";"==s?(f=";",a=";",l=!0,o=!0):"?"==s?(f="?",a="&",l=!0):"&"==s&&(f="&",a="&",l=!0);for(var c=[],g=i.split(","),h=[],p={},v=0;v<g.length;v++){var d=g[v],b=null;if(-1!=d.indexOf(":")){var y=d.split(":");d=y[0],b=parseInt(y[1])}for(var m={};n[d.charAt(d.length-1)];)m[d.charAt(d.length-1)]=!0,d=d.substring(0,d.length-1);var x={truncate:b,name:d,suffices:m};h.push(x),p[d]=x,c.push(d)}return{varNames:c,prefix:f,substitution:function(e){for(var n="",r=0,i=0;i<h.length;i++){var s=h[i],c=e(s.name);if(null==c||Array.isArray(c)&&0==c.length||"object"==typeof c&&0==Object.keys(c).length)r++;else if(n+=i==r?f:a||",",Array.isArray(c)){l&&(n+=s.name+"=");for(var g=0;g<c.length;g++)g>0&&(n+=s.suffices["*"]&&a||",",s.suffices["*"]&&l&&(n+=s.name+"=")),n+=u?encodeURIComponent(c[g]).replace(/!/g,"%21"):t(c[g])}else if("object"==typeof c){l&&!s.suffices["*"]&&(n+=s.name+"=");var p=!0;for(var v in c)p||(n+=s.suffices["*"]&&a||","),p=!1,n+=u?encodeURIComponent(v).replace(/!/g,"%21"):t(v),n+=s.suffices["*"]?"=":",",n+=u?encodeURIComponent(c[v]).replace(/!/g,"%21"):t(c[v])}else l&&(n+=s.name,o&&""==c||(n+="=")),null!=s.truncate&&(c=c.substring(0,s.truncate)),n+=u?encodeURIComponent(c).replace(/!/g,"%21"):t(c)}return n},unSubstitution:function(e,n,t){if(f&&(e=e.substring(f.length)),1==h.length&&h[0].suffices["*"]){for(var i=(I=h[0]).name,s=I.suffices["*"]?e.split(a||","):[e],o=u&&-1!=e.indexOf("="),c=1;c<s.length;c++)e=s[c],o&&-1==e.indexOf("=")&&(s[c-1]+=(a||",")+e,s.splice(c,1),c--);for(c=0;c<s.length;c++)e=s[c],u&&-1!=e.indexOf("=")&&(o=!0),1==(y=e.split(",")).length?s[c]=y[0]:s[c]=y;if(l||o){for(var g=n[i]||{},v=0;v<s.length;v++){var d=e;if(!l||d){if("string"==typeof s[v]){var b=(e=s[v]).split("=",1)[0];if(e=e.substring(b.length+1),u){if(t&&!r(e))return;e=decodeURIComponent(e)}d=e}else{if(b=(e=s[v][0]).split("=",1)[0],e=e.substring(b.length+1),u){if(t&&!r(e))return;e=decodeURIComponent(e)}s[v][0]=e,d=s[v]}if(u){if(t&&!r(b))return;b=decodeURIComponent(b)}void 0!==g[b]?Array.isArray(g[b])?g[b].push(d):g[b]=[g[b],d]:g[b]=d}}1==Object.keys(g).length&&void 0!==g[i]?n[i]=g[i]:n[i]=g}else{if(u)for(v=0;v<s.length;v++){var y=s[v];if(Array.isArray(y))for(var m=0;m<y.length;m++){if(t&&!r(y[m]))return;y[m]=decodeURIComponent(y[m])}else{if(t&&!r(y))return;s[v]=decodeURIComponent(y)}}void 0!==n[i]?Array.isArray(n[i])?n[i]=n[i].concat(s):n[i]=[n[i]].concat(s):1!=s.length||I.suffices["*"]?n[i]=s:n[i]=s[0]}}else{s=1==h.length?[e]:e.split(a||",");var x={};for(c=0;c<s.length;c++){for(var A=0;A<h.length-1&&A<c&&!h[A].suffices["*"];A++);if(A!=c){for(var U=h.length-1;U>0&&h.length-U<s.length-c&&!h[U].suffices["*"];U--);h.length-U!=s.length-c?x[c]=A:x[c]=U}else x[c]=c}for(c=0;c<s.length;c++)if((e=s[c])||!l){if(y=e.split(","),o=!1,l){i=(e=y[0]).split("=",1)[0],e=e.substring(i.length+1),y[0]=e;var I=p[i]||h[0]}else i=(I=h[x[c]]).name;for(v=0;v<y.length;v++)if(u){if(t&&!r(y[v]))return;y[v]=decodeURIComponent(y[v])}(l||I.suffices["*"])&&void 0!==n[i]?Array.isArray(n[i])?n[i]=n[i].concat(y):n[i]=[n[i]].concat(y):1!=y.length||I.suffices["*"]?n[i]=y:n[i]=y[0]}}return 1}}}function s(e){if(!(this instanceof s))return new s(e);for(var n=e.split("{"),t=[n.shift()],r=[],a=[],f=[],u=[];n.length>0;){var l=n.shift(),o=l.split("}")[0],c=l.substring(o.length+1),g=i(o);a.push(g.substitution),f.push(g.unSubstitution),r.push(g.prefix),t.push(c),u=u.concat(g.varNames)}this.fill=function(e){if(e&&"function"!=typeof e){var n=e;e=function(e){return n[e]}}for(var r=t[0],i=0;i<a.length;i++)r+=(0,a[i])(e),r+=t[i+1];return r},this.fromUri=function(e,n){n=n||{};for(var i={},s=0;s<t.length;s++){var a=t[s];if(e.substring(0,a.length)!==a)return;if(e=e.substring(a.length),s>=t.length-1){if(""==e)break;return}var u=r[s];if(!u||e.substring(0,u.length)===u){for(var l=t[s+1],o=s;;){if(o==t.length-2){var c=e.substring(e.length-l.length);if(c!==l)return;var g=e.substring(0,e.length-l.length);e=c}else if(l){var h=e.indexOf(l);g=e.substring(0,h),e=e.substring(h)}else if(r[o+1])-1===(h=e.indexOf(r[o+1]))&&(h=e.length),g=e.substring(0,h),e=e.substring(h);else{if(t.length>o+2){o++,l=t[o+1];continue}g=e,e=""}break}if(!f[s](g,i,n.strict))return}}return i},this.varNames=u,this.template=e}return s.prototype={toString:function(){return this.template},fillFromObject:function(e){return this.fill(e)},test:function(e,n){return!!this.fromUri(e,n)}},s})?t.apply(n,[]):t)||(e.exports=r)},1519:(e,n,t)=>{"use strict";function r(e,n,t){if(!n.has(e))throw new TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}t.d(n,{Z:()=>r})},86033:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var r=t(1519);function i(e,n){return function(e,n){return n.get?n.get.call(e):n.value}(e,(0,r.Z)(e,n,"get"))}},13092:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var r=t(1519);function i(e,n,t){return function(e,n,t){if(n.set)n.set.call(e,t);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=t}}(e,(0,r.Z)(e,n,"set"),t),t}},4942:(e,n,t)=>{"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.d(n,{Z:()=>r})}}]);
dist/783.js ADDED
@@ -0,0 +1 @@
 
1
+ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[783],{51783:(c,e,v)=>{"use strict";v.d(e,{gI:()=>d(),YJ:()=>p(),D5:()=>h(),CE:()=>y(),Zj:()=>l(),v5:()=>m(),dK:()=>k(),l6:()=>t,w8:()=>x(),Of:()=>M(),mz:()=>V()});const t=Object.freeze(["#e67e22","#2ecc71","#3498db","#e74c3c","#8e44ad","#1abc9c","#2c3e50"]);var a=v(55007),l=v.n(a),r=v(4248),h=v.n(r),n=v(81533),m=v.n(n),s=v(3727),y=v.n(s),E=v(70945),k=v.n(E),f=v(33031),p=v.n(f),o=v(58074),d=v.n(o),Z=(v(55613),v(91946)),M=v.n(Z),i=v(24526),x=v.n(i),H=v(58559),V=v.n(H)},58074:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("defs",{key:0},t.createElement("style",null,".a{fill:#e5eaee;}.b{fill:#e1f2fc;}.b,.f{stroke:#0083e3;}.c,.f{fill:#0083e3;}.d{fill:#fff;}.e{fill:none;}")),t.createElement("g",{transform:"translate(-221 -1346.145)",key:1},[t.createElement("ellipse",{className:"a",cx:"91.5",cy:"21.5",rx:"91.5",ry:"21.5",transform:"translate(221 1473)",key:0}),t.createElement("path",{className:"b",d:"M348.982,304.5a4.479,4.479,0,0,0-4.482,4.475v79.981a2.985,2.985,0,0,0,2.988,2.983H471.514a2.985,2.985,0,0,0,2.988-2.983V308.975a4.479,4.479,0,0,0-4.482-4.475Z",transform:"translate(-94.187 1757.656) rotate(-79)",key:1}),t.createElement("path",{className:"c",d:"M371,409.152H492.632V334H371Z",transform:"translate(-122.145 1774.41) rotate(-79)",key:2}),t.createElement("path",{className:"d",d:"M373,410.439H493.919V336H373Z",transform:"translate(-124.072 1775.71) rotate(-79)",key:3}),t.createElement("path",{className:"e",d:"M271.875,797.1a14.793,14.793,0,0,1-5.537-1.7c-.151-.073-.258-.125-.338-.16V793H423.961v2.239c-.08.037-.187.087-.338.16a14.6,14.6,0,0,1-5.494,1.7H271.875Z",transform:"translate(-476.005 1617.71) rotate(-79)",key:4}),t.createElement("path",{className:"b",d:"M424,792.5H265.5v2.694c.183,0,3.565,1.936,6.153,1.936H417.885c2.57,0,5.927-1.941,6.1-1.941.005,0,.007-.016.007-.016Z",transform:"translate(-475.523 1617.385) rotate(-79)",key:5}),t.createElement("path",{className:"c",d:"M266.348,805l-.178.356H423.953l.178-.356Z",transform:"translate(-485.714 1615.965) rotate(-79)",key:6}),t.createElement("path",{className:"c",d:"M664.768,793.781H646.735A1.749,1.749,0,0,1,645,792.018V792h21.548v.018a1.749,1.749,0,0,1-1.736,1.763",transform:"translate(-534.637 1923.65) rotate(-79)",key:7}),t.createElement("path",{className:"c",d:"M703.417,318.953a.623.623,0,1,1-.623-.623.624.624,0,0,1,.623.623",transform:"translate(-391.406 1027.815)",key:8}),t.createElement("circle",{className:"c",cx:"1.817",cy:"1.817",r:"1.817",transform:"translate(317.878 1408.665) rotate(-79)",key:9}),t.createElement("path",{className:"f",d:"M.116,2.313c.255-.49,4.387-4.951,7.662,0,0,.627-.254.874-1.159-.232-.34-.391-2.476-3.24-6.208,1.1C.056,3.166-.139,2.8.116,2.313Z",transform:"matrix(0.545, -0.839, 0.839, 0.545, 309.03, 1406.401)",key:10}),t.createElement("path",{className:"c",d:"M17.445,0C32.163-4.819,34.89,2.647,34.89,5.911S27.08,3.783,17.445,3.783,0,9.176,0,5.911,2.728,4.819,17.445,0Z",transform:"translate(334.823 1440.232) rotate(-95)",key:11}),t.createElement("ellipse",{className:"a",cx:"9",cy:"6.5",rx:"9",ry:"6.5",transform:"translate(305.491 1439.176) rotate(-73)",key:12}),t.createElement("ellipse",{className:"c",cx:"3.317",cy:"0.817",rx:"3.317",ry:"0.817",transform:"translate(316.071 1435.373) rotate(-98)",key:13}),t.createElement("path",{className:"f",d:"M-.229,7.487l.487-.6C5.733-.22,1.515,1.932,10.034-3.762a4.111,4.111,0,0,0,.424,1.48A22.715,22.715,0,0,0,3.344,3.547C1.6,4.715-.484,7.978-.229,7.487Z",transform:"matrix(0.545, -0.839, 0.839, 0.545, 306.953, 1437.137)",key:14})])])}a.defaultProps={viewBox:"0 0 183 169.855"},c.exports=a,a.default=a},33031:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("defs",{key:0},t.createElement("style",null,".cls-1{fill:#e5eaee;}.cls-2{fill:#e1f2fc;}.cls-2,.cls-6{stroke:#0083e3;}.cls-3,.cls-6{fill:#0083e3;}.cls-4{fill:#fff;}.cls-5{fill:none;}.cls-7{fill:#9ff;}")),t.createElement("g",{key:1},[t.createElement("ellipse",{className:"cls-1",cx:"91.5",cy:"109.16",rx:"91.5",ry:"21.5",key:0}),t.createElement("path",{className:"cls-2",d:"M30.55,18.35a4.47,4.47,0,0,0-4.48,4.47v80a3,3,0,0,0,3,3h124a3,3,0,0,0,3-3h0v-80a4.47,4.47,0,0,0-4.48-4.47Z",key:1}),t.createElement("path",{className:"cls-3",d:"M30.79,98.75H152.42V23.6H30.79Z",key:2}),t.createElement("path",{className:"cls-4",d:"M31.14,98.39H152.06V24H31.14Z",key:3}),t.createElement("path",{className:"cls-5",d:"M18,109.44a14.72,14.72,0,0,1-5.53-1.7l-.34-.16v-2.24h158v2.24l-.34.16a14.77,14.77,0,0,1-5.49,1.7Z",key:4}),t.createElement("path",{className:"cls-2",d:"M170.5,105.25H12V108c.18,0,3.57,1.93,6.15,1.93H164.39c2.57,0,5.92-1.94,6.1-1.94v-2.69Z",key:5}),t.createElement("path",{className:"cls-3",d:"M12.3,107.48l-.18.35H169.9l.18-.35Z",key:6}),t.createElement("path",{className:"cls-3",d:"M99.35,106.94h-18a1.75,1.75,0,0,1-1.74-1.76h0v0h21.55v0a1.74,1.74,0,0,1-1.73,1.76h0",key:7}),t.createElement("path",{className:"cls-3",d:"M91,21.43a.62.62,0,0,1-.62.62.62.62,0,0,1,0-1.24h0a.62.62,0,0,1,.62.62",key:8}),t.createElement("circle",{className:"cls-3",cx:"76.33",cy:"50.57",r:"1.82",key:9}),t.createElement("circle",{className:"cls-3",cx:"104.59",cy:"50.57",r:"1.82",key:10}),t.createElement("path",{className:"cls-6",d:"M71.66,45.83c-.06-.55,1-6.54,6.43-4.18.34.53.26.88-1.1.44-.5-.14-3.85-1.37-4.61,4.31C72.07,46.58,71.71,46.38,71.66,45.83Z",key:11}),t.createElement("path",{className:"cls-6",d:"M102.55,41.82c.42-.36,5.92-3,7.1,2.87-.23.58-.56.72-1-.65-.16-.49-1.08-3.93-6.16-1.3C102.17,42.59,102.13,42.18,102.55,41.82Z",key:12}),t.createElement("path",{className:"cls-3",d:"M91,74.58c-10.35,0-18.87-4.52-19.89-10.31A6.53,6.53,0,0,0,71,65.44c0,6.35,9,11.49,20,11.49s20-5.14,20-11.49a7.59,7.59,0,0,0-.1-1.17C109.88,70.06,101.36,74.58,91,74.58Z",key:13}),t.createElement("polygon",{className:"cls-3",points:"162.28 18.34 161.04 11.37 154.06 10.13 161.04 8.88 162.28 1.91 163.52 8.88 170.5 10.13 163.52 11.37 162.28 18.34",key:14}),t.createElement("polygon",{className:"cls-3",points:"175.93 17.99 175.5 15.56 173.06 15.13 175.5 14.69 175.93 12.26 176.36 14.69 178.8 15.13 176.36 15.56 175.93 17.99",key:15}),t.createElement("circle",{className:"cls-7",cx:"170.05",cy:"20.81",r:"2.38",key:16}),t.createElement("circle",{className:"cls-7",cx:"169.86",cy:"1.19",r:"1.19",key:17}),t.createElement("polygon",{className:"cls-3",points:"10.85 94.41 9.61 87.44 2.63 86.19 9.61 84.95 10.85 77.98 12.09 84.95 19.07 86.19 12.09 87.44 10.85 94.41",key:18}),t.createElement("circle",{className:"cls-7",cx:"15.62",cy:"96.88",r:"2.38",key:19}),t.createElement("circle",{className:"cls-7",cx:"15.43",cy:"77.26",r:"1.19",key:20})])])}a.defaultProps={viewBox:"0 0 183 130.66"},c.exports=a,a.default=a},4248:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("g",{fill:"#FCDA28",key:0},[t.createElement("path",{d:"M102.41 40.58V8h-.001c0-.95-.77-1.73-1.71-1.74 0 0-37.21-6.04-49.62-6.26 -12.41-.22-49.3 6-49.3 6v0C.8 5.97.01 6.73-.01 7.69c-.01.01-.01.02-.01.04v32.84s-1.16 27.36 17.44 48.9c16.52 19.13 30.32 23.66 33.2 24.44v0c.36.07.74.07 1.11 0 2.92-.79 16.7-5.35 33.18-24.44 18.6-21.54 17.48-48.9 17.48-48.9Zm-25 43c-11.21 13-20.79 18.57-25.67 20.8v0c-.37.13-.78.13-1.14 0 -4.84-2.29-14.43-7.88-25.6-20.85C8.49 64.45 9.15 39.45 9.16 39.19v-25 0c.01-.37.25-.68.6-.78l0-.001c13.46-3.41 27.28-5.15 41.17-5.2h.71l0 0c13.82 0 27.6 1.74 41 5.18l-.001-.001c.34.1.58.41.6.78v25.06c.03.22.68 25.22-15.78 44.3Z",key:0}),t.createElement("path",{d:"M51.1 31.87v0c-4.9-.02-8.88 3.93-8.89 8.82 -.02 4.89 3.93 8.87 8.82 8.88 4.89.01 8.87-3.94 8.88-8.83 0-.01 0-.01 0-.01l-.001-.001c0-4.89-3.95-8.86-8.83-8.88Z",key:1}),t.createElement("path",{d:"M84.1 39.41v-18 0c-.02-.35-.26-.65-.59-.73v-.001c-10.48-2.19-21.16-3.28-31.86-3.28H51h-.001c-10.76.05-21.47 1.17-32 3.34v0c-.34.08-.58.38-.59.73v18.07c0 1.33 0 22.31 13.59 38 7.53 8.82 14.14 13.76 18.7 16.46h-.001c.31.15.68.15 1 0 4.53-2.69 11.14-7.63 18.77-16.46 13.94-16.11 13.63-37.88 13.63-38.13ZM63.51 71.6c-1.09 1.28-2.16 2.45-3.2 3.54 -.24.25-.43.17-.43-.18V67.4c0-5.72 5.55-8.63 7.38-9.43v0c.33-.16.56-.49.58-.86v-5.74h0c.03-.21-.11-.41-.32-.44 -.1-.02-.19 0-.27.05l-.001 0c-10.4 4.1-21.97 4.1-32.36.01v0c-.19-.11-.43-.05-.54.14 -.04.07-.06.15-.05.23v5.74 0c.02.36.25.69.59.84 6.08 2.33 7.32 6.29 7.32 9.52v7.42c0 .35-.19.43-.43.18q-1.53-1.6-3.16-3.48c-11.44-13.26-11.37-31.84-11.37-32v-10.6 0c.01-.36.27-.66.62-.72h0c7.6-1.2 15.29-1.81 23-1.83h.69v-.001c7.59 0 15.18.58 22.69 1.76v0c.35.06.61.36.62.72v10.3c-.001.35.11 19.08-11.38 32.37Z",key:2})]),t.createElement("g",{fill:"#002338",key:1},[t.createElement("path",{d:"M121 30.15v-.001c0 .39-.08.78-.24 1.15v0c-.16.34-.38.66-.65.93v0c-.29.27-.63.48-1 .62l0-.001c-.38.15-.78.22-1.18.23v-.001c-.82.01-1.61-.3-2.18-.87v0c-.58-.54-.9-1.28-.88-2.06l-.001-.001c-.01-.4.06-.79.23-1.15v-.001c.14-.36.36-.68.65-.93v0c.29-.27.63-.49 1-.63v0c.38-.18.79-.26 1.21-.25h-.001c.4 0 .8.07 1.18.23v0c.72.29 1.29.86 1.6 1.58v0c.16.36.25.75.26 1.15Zm-5.74 18.65V35.32h5.33V48.8Z",key:0}),t.createElement("path",{d:"M135 30.53V48.8h-5.6V30.53h-6.5v-4.75h18.57v4.75Z",key:1}),t.createElement("path",{d:"M153.79 48.8V40v0c0-.44-.03-.87-.09-1.3v0c-.06-.39-.19-.76-.38-1.09v0c-.18-.31-.43-.56-.73-.74v0c-.36-.21-.77-.3-1.17-.28v0c-.84-.05-1.65.33-2.15 1v-.001c-.52.71-.78 1.58-.74 2.46v8.75h-5.34v-24.58h5.34v10.44h.06v0c.43-.72 1.03-1.32 1.76-1.74v0c.86-.54 1.87-.8 2.89-.77v0c.96-.03 1.91.17 2.78.59v0c.71.35 1.33.87 1.82 1.51v0c.47.63.81 1.36 1 2.13v-.001c.2.78.31 1.59.31 2.41v10Z",key:2}),t.createElement("path",{d:"M179.26 40.9v.65 0c.01.2.01.41 0 .62h-11.78v0c.04.43.18.86.41 1.24v0c.22.38.52.72.88 1v0c.37.26.78.46 1.23.59v0c.44.15.91.22 1.38.23v0c.74.02 1.48-.15 2.15-.48v0c.56-.3 1.04-.71 1.43-1.21l3.71 2.34v0c-.76 1.1-1.8 1.97-3 2.55l0-.001c-1.37.62-2.85.92-4.34.89h0c-1.18 0-2.34-.19-3.45-.56l-.001-.001c-1.07-.36-2.04-.93-2.88-1.66v-.001c-.84-.75-1.49-1.67-1.92-2.69v0c-.49-1.16-.73-2.4-.7-3.64v0c-.02-1.24.21-2.46.68-3.59v0c.42-1.03 1.05-1.96 1.85-2.73v0c.79-.76 1.74-1.35 2.77-1.74l-.001 0c1.1-.42 2.27-.63 3.45-.62v0c1.12-.02 2.23.19 3.28.6v-.001c.98.38 1.86.97 2.59 1.74h-.001c.73.79 1.3 1.73 1.67 2.76v-.001c.41 1.19.61 2.44.59 3.71Zm-4.91-2v0c.01-.81-.28-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.08-1.43.25l-.001 0c-.42.14-.81.37-1.14.66v-.001c-.33.27-.59.61-.78 1h-.001c-.2.36-.31.76-.33 1.18Z",key:3}),t.createElement("path",{d:"M203.25 48.8V40h-.001c0-.45-.03-.89-.09-1.32v0c-.06-.39-.18-.75-.36-1.09v0c-.18-.3-.42-.55-.7-.73v-.001c-.35-.2-.75-.3-1.15-.28h0c-.42-.02-.83.09-1.19.3l-.001 0c-.34.19-.64.45-.85.78v0c-.24.34-.4.72-.5 1.12v-.001c-.11.43-.17.87-.16 1.32v8.7h-5.34v-9.23 0c.04-.78-.15-1.55-.55-2.21v0c-.41-.56-1.08-.87-1.76-.82v0c-.8-.05-1.56.33-2 1v-.001c-.49.73-.73 1.59-.7 2.47v8.79h-5.37v-16.19h5.17v2.24h.07 -.001c.2-.36.45-.7.73-1v-.001c.31-.35.69-.63 1.1-.85l0-.001c.43-.26.89-.47 1.38-.6v-.001c.54-.16 1.1-.24 1.67-.23l0-.001c1.04-.04 2.08.21 3 .72v-.001c.81.48 1.47 1.19 1.9 2.05v0c.52-.83 1.23-1.51 2.08-2v0c.94-.53 2.01-.79 3.09-.75h0c.96-.04 1.91.17 2.78.61v0c.71.37 1.33.9 1.81 1.56v0c.45.64.79 1.37 1 2.14v-.001c.19.76.3 1.54.31 2.33v10Z",key:4}),t.createElement("path",{d:"M228.68 40.9v.65 -.001c.01.2.01.41 0 .62h-11.77 0c.04.43.18.86.41 1.24v0c.22.38.52.72.88 1v-.001c.36.28.76.49 1.2.64h0c.44.15.91.22 1.38.23v0c.74.02 1.48-.15 2.15-.48v0c.55-.3 1.04-.71 1.43-1.21l3.71 2.34v0c-.76 1.09-1.8 1.97-3 2.55v0c-1.37.61-2.85.92-4.34.89h0c-1.18 0-2.34-.19-3.45-.56v0c-1.05-.37-2.02-.93-2.85-1.66v0c-.83-.75-1.48-1.67-1.91-2.69v-.001c-.49-1.16-.73-2.4-.7-3.64v0c-.03-1.24.21-2.46.68-3.59l0 0c.42-1.03 1.05-1.96 1.85-2.73v0c.79-.76 1.73-1.36 2.77-1.74h0c1.09-.42 2.26-.63 3.44-.62v0c1.12-.02 2.24.19 3.29.6v0c.97.38 1.85.97 2.57 1.74h-.001c.73.79 1.3 1.73 1.67 2.76v0c.4 1.17.6 2.41.59 3.66Zm-4.91-2h-.001c.01-.8-.27-1.58-.79-2.18v-.001c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.08-1.43.25v0c-.42.14-.81.37-1.14.66v-.001c-.33.27-.59.61-.78 1v-.001c-.2.36-.31.76-.33 1.18Z",key:5}),t.createElement("path",{d:"M241.53 37.39v0c-.46-.42-.98-.75-1.53-1v0c-.58-.28-1.21-.43-1.85-.42h0c-.48-.01-.95.09-1.38.29v0c-.41.15-.67.56-.64 1v0c-.03.45.26.86.7 1v-.001c.73.27 1.49.49 2.26.65l0 0c.62.13 1.24.32 1.84.56v0c.6.22 1.16.54 1.67.94l-.001-.001c.49.38.9.87 1.21 1.43v-.001c.31.61.46 1.3.45 2v-.001c.02.89-.19 1.79-.62 2.58v-.001c-.41.67-.97 1.25-1.64 1.67v0c-.68.44-1.44.75-2.22.94v-.001c-.82.19-1.65.29-2.48.29l-.001-.001c-1.32-.01-2.63-.22-3.88-.63v-.001c-1.19-.38-2.28-1.02-3.17-1.87l3-3.15v0c.49.54 1.08.99 1.75 1.33v-.001c.68.34 1.44.51 2.21.52v0c.44-.01.88-.12 1.28-.31v0c.41-.2.67-.63.64-1.09l-.001-.001c0-.51-.32-.95-.79-1.11v0c-.79-.33-1.6-.58-2.43-.75h0c-.58-.14-1.15-.31-1.7-.52v0c-.55-.21-1.06-.5-1.51-.87v0c-.46-.39-.83-.85-1.09-1.37v0c-.3-.61-.44-1.28-.42-1.95v0c-.03-.88.18-1.74.62-2.49v0c.39-.67.94-1.24 1.59-1.67l-.001 0c.65-.46 1.38-.8 2.16-1v0c.76-.21 1.56-.31 2.36-.31l-.001-.001c1.2-.01 2.41.19 3.56.57h0c1.11.33 2.13.91 3 1.7Z",key:6}),t.createElement("path",{d:"M127.65 64.92h0c-.5-.63-1.14-1.13-1.87-1.45v-.001c-.7-.35-1.46-.53-2.23-.54v-.001c-.38-.01-.76.03-1.12.1l-.001 0c-.36.06-.7.19-1 .37v0c-.3.18-.56.43-.76.72v0c-.22.33-.33.72-.31 1.12v0c-.02.35.06.69.25 1h-.001c.17.27.42.51.71.68h-.001c.35.2.73.39 1.12.54 .44.16.92.33 1.47.5 .78.26 1.59.55 2.44.86v0c.82.3 1.59.72 2.3 1.25v0c.68.52 1.26 1.18 1.7 1.93v0c.47.88.71 1.87.68 2.88v0c.03 1.18-.22 2.36-.73 3.43v0c-.48.93-1.17 1.75-2 2.39v0c-.85.63-1.81 1.11-2.83 1.4v0c-1.07.3-2.18.45-3.28.45v-.001c-1.64 0-3.26-.29-4.78-.86v0c-1.46-.52-2.77-1.36-3.84-2.46l3.64-3.7h-.001c.61.72 1.37 1.31 2.23 1.74h-.001c.84.44 1.79.68 2.75.7h0c.4-.01.8-.05 1.2-.13h0c.35-.09.69-.23 1-.43v0c.29-.2.53-.47.69-.78v0c.18-.37.27-.77.26-1.17v0c.01-.4-.1-.78-.32-1.1v0c-.26-.34-.57-.62-.93-.83h0c-.47-.29-.97-.52-1.49-.68 -.6-.21-1.28-.43-2-.67h-.001c-.74-.25-1.46-.53-2.16-.85h0c-.69-.32-1.33-.74-1.88-1.25v-.001c-.57-.53-1.02-1.16-1.34-1.85v0c-.36-.84-.53-1.75-.5-2.65v0c-.04-1.15.23-2.29.78-3.29v0c.48-.89 1.17-1.66 2-2.24v0c.86-.6 1.83-1.04 2.86-1.29h-.001c1.05-.27 2.13-.41 3.22-.4v0c1.36 0 2.71.24 4 .71v-.001c1.31.45 2.52 1.17 3.56 2.12Z",key:7}),t.createElement("path",{d:"M150.48 74.05v.65 0c.01.2.01.41 0 .62H138.7v0c.04.43.18.86.41 1.24v0c.22.38.52.72.88 1v0c.36.27.76.48 1.2.63v0c.44.15.91.22 1.38.23v0c.74.02 1.48-.14 2.15-.47v-.001c.56-.3 1.05-.72 1.43-1.22l3.71 2.27v0c-.76 1.1-1.79 1.98-3 2.55v0c-1.37.62-2.85.93-4.34.9v0c-1.18 0-2.35-.19-3.45-.57v0c-1.05-.36-2.02-.93-2.84-1.66v0c-.83-.75-1.49-1.66-1.92-2.68v0c-.49-1.16-.73-2.4-.7-3.65v0c-.02-1.24.21-2.46.68-3.59v0c.85-2.07 2.52-3.69 4.62-4.47v0c1.1-.42 2.27-.63 3.45-.62v0c1.12-.02 2.23.19 3.28.6v0c.97.38 1.85.97 2.57 1.74v0c.74.79 1.3 1.74 1.67 2.77h-.001c.42 1.19.62 2.46.6 3.73Zm-4.91-2v0c.01-.81-.27-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.24l-.001 0c-.42.15-.81.37-1.14.67v0c-.33.27-.6.61-.78 1h-.001c-.19.35-.3.73-.33 1.13Z",key:8}),t.createElement("path",{d:"M165 71v-.001c-.33-.44-.76-.78-1.24-1v-.001c-.5-.23-1.05-.35-1.59-.35v0c-.53-.01-1.06.1-1.53.34v0c-.45.22-.85.53-1.17.91v0c-.33.39-.59.83-.76 1.32v-.001c-.2.5-.29 1.04-.28 1.59v0c-.01.54.08 1.07.26 1.59v-.001c.16.48.42.93.76 1.32v0c.33.37.74.68 1.21.89l-.001-.001c.49.22 1.03.33 1.58.33v0c.55-.01 1.09-.11 1.61-.31v0c.49-.19.93-.5 1.28-.89l3 3.61v-.001c-.75.69-1.64 1.21-2.6 1.52v0c-1.09.37-2.23.56-3.38.56v0c-1.23 0-2.44-.2-3.59-.59v0c-1.07-.37-2.06-.95-2.89-1.71v0c-.83-.76-1.49-1.69-1.93-2.71v0c-.94-2.31-.94-4.89 0-7.19v0c.44-1.03 1.1-1.96 1.93-2.71v0c.83-.77 1.82-1.36 2.89-1.73v0c1.13-.41 2.34-.61 3.55-.6h0c.58 0 1.16.05 1.74.16v0c.56.1 1.11.25 1.66.44v0c.5.17.99.41 1.46.69v0c.42.24.81.54 1.16.89Z",key:9}),t.createElement("path",{d:"M180.82 82v-2.29h-.07v0c-.21.36-.47.7-.76 1v0c-.33.33-.71.62-1.11.85v0c-.45.24-.92.44-1.4.58h-.001c-.53.15-1.07.23-1.61.23v0c-.95.03-1.89-.17-2.74-.58v0c-.72-.37-1.35-.89-1.83-1.52v0c-.48-.63-.82-1.35-1-2.11v0c-.21-.79-.32-1.61-.31-2.42v-10h5.36v8.78l0 0c0 .43.03.86.1 1.3v0c.05.38.18.76.37 1.11v0c.17.31.43.57.74.76v0c.36.2.78.3 1.2.28v0c.83.05 1.63-.33 2.13-1l0 0c.49-.72.75-1.57.73-2.44v-8.77h5.38V82Z",key:10}),t.createElement("path",{d:"M200.62 70.15v0c-.23-.07-.47-.11-.7-.13h-.67v0c-.63-.02-1.25.11-1.8.39v-.001c-.46.22-.86.54-1.17.94v0c-.29.35-.5.76-.63 1.2v0c-.13.36-.2.74-.2 1.13v8.32h-5.33v-16.22h5.14v2.34h.06v0c.4-.81 1.01-1.5 1.76-2v0c.77-.53 1.69-.8 2.63-.78q.33 0 .63 0v0c.17.01.34.04.51.1Z",key:11}),t.createElement("path",{d:"M218.41 69.73v6.2 0c-.05.6.1 1.21.44 1.72l-.001-.001c.4.42.98.63 1.57.57h0c.27-.01.55-.03.83-.07v0c.25-.02.5-.07.75-.15l.06 3.9v0c-.46.15-.93.26-1.4.34v0c-.56.09-1.13.14-1.69.15v0c-.93.02-1.86-.12-2.73-.41v-.001c-.69-.24-1.3-.64-1.77-1.17h-.001c-.48-.53-.82-1.16-1-1.83v0c-.21-.77-.31-1.57-.29-2.36v-6.89h-2.58v-4h2.57v-4.23h5.24v4.26h3.8v4Z",key:12}),t.createElement("path",{d:"M233.85 84.4l-.001-.001c-.3.78-.66 1.53-1.08 2.26h0c-.39.63-.88 1.2-1.44 1.69v0c-.6.47-1.28.83-2 1.05v0c-.86.25-1.76.37-2.65.36h0c-.52 0-1.03-.04-1.54-.1v0c-.47-.05-.93-.14-1.38-.26l.58-4.48v0c.28.08.56.15.86.21h0c.28.04.57.07.87.08h0c.64.05 1.28-.15 1.78-.57v0c.42-.47.74-1.02.95-1.61l.52-1.33 -6.72-15.94h5.92l3.61 10.41h.1l3.22-10.41h5.66Z",key:13}),t.createElement("path",{d:"M208.78 63.5v0c0 .39-.08.78-.24 1.15v-.001c-.16.34-.38.66-.65.93v-.001c-.29.27-.63.48-1 .62v0c-.38.15-.78.22-1.18.23h-.001c-.82.01-1.61-.3-2.18-.87v0c-.58-.54-.9-1.28-.88-2.06v0c-.01-.39.07-.77.23-1.12v0c.14-.36.36-.68.65-.93v0c.29-.27.63-.49 1-.63h0c.38-.18.79-.26 1.21-.25l-.001-.001c.4 0 .8.07 1.18.23v0c.37.13.71.34 1 .62v0c.27.26.49.58.65.93v0c.15.36.22.75.21 1.15Zm-5.72 18.66V68.67h5.33v13.49Z",key:14})])])}a.defaultProps={viewBox:"0 0 244.46 113.98"},c.exports=a,a.default=a},3727:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,t.createElement("g",{fill:"#FFF"},[t.createElement("path",{d:"M102.41 40.58V8h-.001c0-.95-.77-1.73-1.71-1.74 0 0-37.21-6.04-49.62-6.26 -12.41-.22-49.3 6-49.3 6v0C.8 5.97.01 6.73-.01 7.69c-.01.01-.01.02-.01.04v32.84s-1.16 27.36 17.44 48.9c16.52 19.13 30.32 23.66 33.2 24.44v0c.36.07.74.07 1.11 0 2.92-.79 16.7-5.35 33.18-24.44 18.6-21.54 17.48-48.9 17.48-48.9Zm-25 43c-11.21 13-20.79 18.57-25.67 20.8v0c-.37.13-.78.13-1.14 0 -4.84-2.29-14.43-7.88-25.6-20.85C8.49 64.45 9.15 39.45 9.16 39.19v-25 0c.01-.37.25-.68.6-.78l0-.001c13.46-3.41 27.28-5.15 41.17-5.2h.71l0 0c13.82 0 27.6 1.74 41 5.18l-.001-.001c.34.1.58.41.6.78v25.06c.03.22.68 25.22-15.78 44.3Z",key:0}),t.createElement("path",{d:"M51.1 31.87v0c-4.9-.02-8.88 3.93-8.89 8.82 -.02 4.89 3.93 8.87 8.82 8.88 4.89.01 8.87-3.94 8.88-8.83 0-.01 0-.01 0-.01l-.001-.001c0-4.89-3.95-8.86-8.83-8.88Z",key:1}),t.createElement("path",{d:"M84.1 39.41v-18 0c-.02-.35-.26-.65-.59-.73v-.001c-10.48-2.19-21.16-3.28-31.86-3.28H51h-.001c-10.76.05-21.47 1.17-32 3.34v0c-.34.08-.58.38-.59.73v18.07c0 1.33 0 22.31 13.59 38 7.53 8.82 14.14 13.76 18.7 16.46h-.001c.31.15.68.15 1 0 4.53-2.69 11.14-7.63 18.77-16.46 13.94-16.11 13.63-37.88 13.63-38.13ZM63.51 71.6c-1.09 1.28-2.16 2.45-3.2 3.54 -.24.25-.43.17-.43-.18V67.4c0-5.72 5.55-8.63 7.38-9.43v0c.33-.16.56-.49.58-.86v-5.74h0c.03-.21-.11-.41-.32-.44 -.1-.02-.19 0-.27.05l-.001 0c-10.4 4.1-21.97 4.1-32.36.01v0c-.19-.11-.43-.05-.54.14 -.04.07-.06.15-.05.23v5.74 0c.02.36.25.69.59.84 6.08 2.33 7.32 6.29 7.32 9.52v7.42c0 .35-.19.43-.43.18q-1.53-1.6-3.16-3.48c-11.44-13.26-11.37-31.84-11.37-32v-10.6 0c.01-.36.27-.66.62-.72h0c7.6-1.2 15.29-1.81 23-1.83h.69v-.001c7.59 0 15.18.58 22.69 1.76v0c.35.06.61.36.62.72v10.3c-.001.35.11 19.08-11.38 32.37Z",key:2}),t.createElement("path",{d:"M121 30.15v-.001c0 .39-.08.78-.24 1.15v0c-.16.34-.38.66-.65.93v0c-.29.27-.63.48-1 .62l0-.001c-.38.15-.78.22-1.18.23v-.001c-.82.01-1.61-.3-2.18-.87v0c-.58-.54-.9-1.28-.88-2.06l-.001-.001c-.01-.4.06-.79.23-1.15v-.001c.14-.36.36-.68.65-.93v0c.29-.27.63-.49 1-.63v0c.38-.18.79-.26 1.21-.25h-.001c.4 0 .8.07 1.18.23v0c.72.29 1.29.86 1.6 1.58v0c.16.36.25.75.26 1.15Zm-5.74 18.65V35.32h5.33V48.8Z",key:3}),t.createElement("path",{d:"M135 30.53V48.8h-5.6V30.53h-6.5v-4.75h18.57v4.75Z",key:4}),t.createElement("path",{d:"M153.79 48.8V40v0c0-.44-.03-.87-.09-1.3v0c-.06-.39-.19-.76-.38-1.09v0c-.18-.31-.43-.56-.73-.74v0c-.36-.21-.77-.3-1.17-.28v0c-.84-.05-1.65.33-2.15 1v-.001c-.52.71-.78 1.58-.74 2.46v8.75h-5.34v-24.58h5.34v10.44h.06v0c.43-.72 1.03-1.32 1.76-1.74v0c.86-.54 1.87-.8 2.89-.77v0c.96-.03 1.91.17 2.78.59v0c.71.35 1.33.87 1.82 1.51v0c.47.63.81 1.36 1 2.13v-.001c.2.78.31 1.59.31 2.41v10Z",key:5}),t.createElement("path",{d:"M179.26 40.9v.65 0c.01.2.01.41 0 .62h-11.78v0c.04.43.18.86.41 1.24v0c.22.38.52.72.88 1v0c.37.26.78.46 1.23.59v0c.44.15.91.22 1.38.23v0c.74.02 1.48-.15 2.15-.48v0c.56-.3 1.04-.71 1.43-1.21l3.71 2.34v0c-.76 1.1-1.8 1.97-3 2.55l0-.001c-1.37.62-2.85.92-4.34.89h0c-1.18 0-2.34-.19-3.45-.56l-.001-.001c-1.07-.36-2.04-.93-2.88-1.66v-.001c-.84-.75-1.49-1.67-1.92-2.69v0c-.49-1.16-.73-2.4-.7-3.64v0c-.02-1.24.21-2.46.68-3.59v0c.42-1.03 1.05-1.96 1.85-2.73v0c.79-.76 1.74-1.35 2.77-1.74l-.001 0c1.1-.42 2.27-.63 3.45-.62v0c1.12-.02 2.23.19 3.28.6v-.001c.98.38 1.86.97 2.59 1.74h-.001c.73.79 1.3 1.73 1.67 2.76v-.001c.41 1.19.61 2.44.59 3.71Zm-4.91-2v0c.01-.81-.28-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.08-1.43.25l-.001 0c-.42.14-.81.37-1.14.66v-.001c-.33.27-.59.61-.78 1h-.001c-.2.36-.31.76-.33 1.18Z",key:6}),t.createElement("path",{d:"M203.25 48.8V40h-.001c0-.45-.03-.89-.09-1.32v0c-.06-.39-.18-.75-.36-1.09v0c-.18-.3-.42-.55-.7-.73v-.001c-.35-.2-.75-.3-1.15-.28h0c-.42-.02-.83.09-1.19.3l-.001 0c-.34.19-.64.45-.85.78v0c-.24.34-.4.72-.5 1.12v-.001c-.11.43-.17.87-.16 1.32v8.7h-5.34v-9.23 0c.04-.78-.15-1.55-.55-2.21v0c-.41-.56-1.08-.87-1.76-.82v0c-.8-.05-1.56.33-2 1v-.001c-.49.73-.73 1.59-.7 2.47v8.79h-5.37v-16.19h5.17v2.24h.07 -.001c.2-.36.45-.7.73-1v-.001c.31-.35.69-.63 1.1-.85l0-.001c.43-.26.89-.47 1.38-.6v-.001c.54-.16 1.1-.24 1.67-.23l0-.001c1.04-.04 2.08.21 3 .72v-.001c.81.48 1.47 1.19 1.9 2.05v0c.52-.83 1.23-1.51 2.08-2v0c.94-.53 2.01-.79 3.09-.75h0c.96-.04 1.91.17 2.78.61v0c.71.37 1.33.9 1.81 1.56v0c.45.64.79 1.37 1 2.14v-.001c.19.76.3 1.54.31 2.33v10Z",key:7}),t.createElement("path",{d:"M228.68 40.9v.65 -.001c.01.2.01.41 0 .62h-11.77 0c.04.43.18.86.41 1.24v0c.22.38.52.72.88 1v-.001c.36.28.76.49 1.2.64h0c.44.15.91.22 1.38.23v0c.74.02 1.48-.15 2.15-.48v0c.55-.3 1.04-.71 1.43-1.21l3.71 2.34v0c-.76 1.09-1.8 1.97-3 2.55v0c-1.37.61-2.85.92-4.34.89h0c-1.18 0-2.34-.19-3.45-.56v0c-1.05-.37-2.02-.93-2.85-1.66v0c-.83-.75-1.48-1.67-1.91-2.69v-.001c-.49-1.16-.73-2.4-.7-3.64v0c-.03-1.24.21-2.46.68-3.59l0 0c.42-1.03 1.05-1.96 1.85-2.73v0c.79-.76 1.73-1.36 2.77-1.74h0c1.09-.42 2.26-.63 3.44-.62v0c1.12-.02 2.24.19 3.29.6v0c.97.38 1.85.97 2.57 1.74h-.001c.73.79 1.3 1.73 1.67 2.76v0c.4 1.17.6 2.41.59 3.66Zm-4.91-2h-.001c.01-.8-.27-1.58-.79-2.18v-.001c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.08-1.43.25v0c-.42.14-.81.37-1.14.66v-.001c-.33.27-.59.61-.78 1v-.001c-.2.36-.31.76-.33 1.18Z",key:8}),t.createElement("path",{d:"M241.53 37.39v0c-.46-.42-.98-.75-1.53-1v0c-.58-.28-1.21-.43-1.85-.42h0c-.48-.01-.95.09-1.38.29v0c-.41.15-.67.56-.64 1v0c-.03.45.26.86.7 1v-.001c.73.27 1.49.49 2.26.65l0 0c.62.13 1.24.32 1.84.56v0c.6.22 1.16.54 1.67.94l-.001-.001c.49.38.9.87 1.21 1.43v-.001c.31.61.46 1.3.45 2v-.001c.02.89-.19 1.79-.62 2.58v-.001c-.41.67-.97 1.25-1.64 1.67v0c-.68.44-1.44.75-2.22.94v-.001c-.82.19-1.65.29-2.48.29l-.001-.001c-1.32-.01-2.63-.22-3.88-.63v-.001c-1.19-.38-2.28-1.02-3.17-1.87l3-3.15v0c.49.54 1.08.99 1.75 1.33v-.001c.68.34 1.44.51 2.21.52v0c.44-.01.88-.12 1.28-.31v0c.41-.2.67-.63.64-1.09l-.001-.001c0-.51-.32-.95-.79-1.11v0c-.79-.33-1.6-.58-2.43-.75h0c-.58-.14-1.15-.31-1.7-.52v0c-.55-.21-1.06-.5-1.51-.87v0c-.46-.39-.83-.85-1.09-1.37v0c-.3-.61-.44-1.28-.42-1.95v0c-.03-.88.18-1.74.62-2.49v0c.39-.67.94-1.24 1.59-1.67l-.001 0c.65-.46 1.38-.8 2.16-1v0c.76-.21 1.56-.31 2.36-.31l-.001-.001c1.2-.01 2.41.19 3.56.57h0c1.11.33 2.13.91 3 1.7Z",key:9}),t.createElement("path",{d:"M127.65 64.92h0c-.5-.63-1.14-1.13-1.87-1.45v-.001c-.7-.35-1.46-.53-2.23-.54v-.001c-.38-.01-.76.03-1.12.1l-.001 0c-.36.06-.7.19-1 .37v0c-.3.18-.56.43-.76.72v0c-.22.33-.33.72-.31 1.12v0c-.02.35.06.69.25 1h-.001c.17.27.42.51.71.68h-.001c.35.2.73.39 1.12.54 .44.16.92.33 1.47.5 .78.26 1.59.55 2.44.86v0c.82.3 1.59.72 2.3 1.25v0c.68.52 1.26 1.18 1.7 1.93v0c.47.88.71 1.87.68 2.88v0c.03 1.18-.22 2.36-.73 3.43v0c-.48.93-1.17 1.75-2 2.39v0c-.85.63-1.81 1.11-2.83 1.4v0c-1.07.3-2.18.45-3.28.45v-.001c-1.64 0-3.26-.29-4.78-.86v0c-1.46-.52-2.77-1.36-3.84-2.46l3.64-3.7h-.001c.61.72 1.37 1.31 2.23 1.74h-.001c.84.44 1.79.68 2.75.7h0c.4-.01.8-.05 1.2-.13h0c.35-.09.69-.23 1-.43v0c.29-.2.53-.47.69-.78v0c.18-.37.27-.77.26-1.17v0c.01-.4-.1-.78-.32-1.1v0c-.26-.34-.57-.62-.93-.83h0c-.47-.29-.97-.52-1.49-.68 -.6-.21-1.28-.43-2-.67h-.001c-.74-.25-1.46-.53-2.16-.85h0c-.69-.32-1.33-.74-1.88-1.25v-.001c-.57-.53-1.02-1.16-1.34-1.85v0c-.36-.84-.53-1.75-.5-2.65v0c-.04-1.15.23-2.29.78-3.29v0c.48-.89 1.17-1.66 2-2.24v0c.86-.6 1.83-1.04 2.86-1.29h-.001c1.05-.27 2.13-.41 3.22-.4v0c1.36 0 2.71.24 4 .71v-.001c1.31.45 2.52 1.17 3.56 2.12Z",key:10}),t.createElement("path",{d:"M150.48 74.05v.65 0c.01.2.01.41 0 .62H138.7v0c.04.43.18.86.41 1.24v0c.22.38.52.72.88 1v0c.36.27.76.48 1.2.63v0c.44.15.91.22 1.38.23v0c.74.02 1.48-.14 2.15-.47v-.001c.56-.3 1.05-.72 1.43-1.22l3.71 2.27v0c-.76 1.1-1.79 1.98-3 2.55v0c-1.37.62-2.85.93-4.34.9v0c-1.18 0-2.35-.19-3.45-.57v0c-1.05-.36-2.02-.93-2.84-1.66v0c-.83-.75-1.49-1.66-1.92-2.68v0c-.49-1.16-.73-2.4-.7-3.65v0c-.02-1.24.21-2.46.68-3.59v0c.85-2.07 2.52-3.69 4.62-4.47v0c1.1-.42 2.27-.63 3.45-.62v0c1.12-.02 2.23.19 3.28.6v0c.97.38 1.85.97 2.57 1.74v0c.74.79 1.3 1.74 1.67 2.77h-.001c.42 1.19.62 2.46.6 3.73Zm-4.91-2v0c.01-.81-.27-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.24l-.001 0c-.42.15-.81.37-1.14.67v0c-.33.27-.6.61-.78 1h-.001c-.19.35-.3.73-.33 1.13Z",key:11}),t.createElement("path",{d:"M165 71v-.001c-.33-.44-.76-.78-1.24-1v-.001c-.5-.23-1.05-.35-1.59-.35v0c-.53-.01-1.06.1-1.53.34v0c-.45.22-.85.53-1.17.91v0c-.33.39-.59.83-.76 1.32v-.001c-.2.5-.29 1.04-.28 1.59v0c-.01.54.08 1.07.26 1.59v-.001c.16.48.42.93.76 1.32v0c.33.37.74.68 1.21.89l-.001-.001c.49.22 1.03.33 1.58.33v0c.55-.01 1.09-.11 1.61-.31v0c.49-.19.93-.5 1.28-.89l3 3.61v-.001c-.75.69-1.64 1.21-2.6 1.52v0c-1.09.37-2.23.56-3.38.56v0c-1.23 0-2.44-.2-3.59-.59v0c-1.07-.37-2.06-.95-2.89-1.71v0c-.83-.76-1.49-1.69-1.93-2.71v0c-.94-2.31-.94-4.89 0-7.19v0c.44-1.03 1.1-1.96 1.93-2.71v0c.83-.77 1.82-1.36 2.89-1.73v0c1.13-.41 2.34-.61 3.55-.6h0c.58 0 1.16.05 1.74.16v0c.56.1 1.11.25 1.66.44v0c.5.17.99.41 1.46.69v0c.42.24.81.54 1.16.89Z",key:12}),t.createElement("path",{d:"M180.82 82v-2.29h-.07v0c-.21.36-.47.7-.76 1v0c-.33.33-.71.62-1.11.85v0c-.45.24-.92.44-1.4.58h-.001c-.53.15-1.07.23-1.61.23v0c-.95.03-1.89-.17-2.74-.58v0c-.72-.37-1.35-.89-1.83-1.52v0c-.48-.63-.82-1.35-1-2.11v0c-.21-.79-.32-1.61-.31-2.42v-10h5.36v8.78l0 0c0 .43.03.86.1 1.3v0c.05.38.18.76.37 1.11v0c.17.31.43.57.74.76v0c.36.2.78.3 1.2.28v0c.83.05 1.63-.33 2.13-1l0 0c.49-.72.75-1.57.73-2.44v-8.77h5.38V82Z",key:13}),t.createElement("path",{d:"M200.62 70.15v0c-.23-.07-.47-.11-.7-.13h-.67v0c-.63-.02-1.25.11-1.8.39v-.001c-.46.22-.86.54-1.17.94v0c-.29.35-.5.76-.63 1.2v0c-.13.36-.2.74-.2 1.13v8.32h-5.33v-16.22h5.14v2.34h.06v0c.4-.81 1.01-1.5 1.76-2v0c.77-.53 1.69-.8 2.63-.78q.33 0 .63 0v0c.17.01.34.04.51.1Z",key:14}),t.createElement("path",{d:"M218.41 69.73v6.2 0c-.05.6.1 1.21.44 1.72l-.001-.001c.4.42.98.63 1.57.57h0c.27-.01.55-.03.83-.07v0c.25-.02.5-.07.75-.15l.06 3.9v0c-.46.15-.93.26-1.4.34v0c-.56.09-1.13.14-1.69.15v0c-.93.02-1.86-.12-2.73-.41v-.001c-.69-.24-1.3-.64-1.77-1.17h-.001c-.48-.53-.82-1.16-1-1.83v0c-.21-.77-.31-1.57-.29-2.36v-6.89h-2.58v-4h2.57v-4.23h5.24v4.26h3.8v4Z",key:15}),t.createElement("path",{d:"M233.85 84.4l-.001-.001c-.3.78-.66 1.53-1.08 2.26h0c-.39.63-.88 1.2-1.44 1.69v0c-.6.47-1.28.83-2 1.05v0c-.86.25-1.76.37-2.65.36h0c-.52 0-1.03-.04-1.54-.1v0c-.47-.05-.93-.14-1.38-.26l.58-4.48v0c.28.08.56.15.86.21h0c.28.04.57.07.87.08h0c.64.05 1.28-.15 1.78-.57v0c.42-.47.74-1.02.95-1.61l.52-1.33 -6.72-15.94h5.92l3.61 10.41h.1l3.22-10.41h5.66Z",key:16}),t.createElement("path",{d:"M208.78 63.5v0c0 .39-.08.78-.24 1.15v-.001c-.16.34-.38.66-.65.93v-.001c-.29.27-.63.48-1 .62v0c-.38.15-.78.22-1.18.23h-.001c-.82.01-1.61-.3-2.18-.87v0c-.58-.54-.9-1.28-.88-2.06v0c-.01-.39.07-.77.23-1.12v0c.14-.36.36-.68.65-.93v0c.29-.27.63-.49 1-.63h0c.38-.18.79-.26 1.21-.25l-.001-.001c.4 0 .8.07 1.18.23v0c.37.13.71.34 1 .62v0c.27.26.49.58.65.93v0c.15.36.22.75.21 1.15Zm-5.72 18.66V68.67h5.33v13.49Z",key:17})]))}a.defaultProps={viewBox:"0 0 244.46 113.98"},c.exports=a,a.default=a},55007:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("g",{fill:"#0083E3",key:0},[t.createElement("path",{d:"M102.41 40.58V8h-.001c0-.95-.77-1.73-1.71-1.74 0 0-37.21-6.04-49.62-6.26 -12.41-.22-49.3 6-49.3 6v0C.8 5.97.01 6.73-.01 7.69c-.01.01-.01.02-.01.04v32.84s-1.16 27.36 17.44 48.9c16.52 19.13 30.32 23.66 33.2 24.44v0c.36.07.74.07 1.11 0 2.92-.79 16.7-5.35 33.18-24.44 18.6-21.54 17.48-48.9 17.48-48.9Zm-25 43c-11.21 13-20.79 18.57-25.67 20.8v0c-.37.13-.78.13-1.14 0 -4.84-2.29-14.43-7.88-25.6-20.85C8.49 64.45 9.15 39.45 9.16 39.19v-25 0c.01-.37.25-.68.6-.78l0-.001c13.46-3.41 27.28-5.15 41.17-5.2h.71l0 0c13.82 0 27.6 1.74 41 5.18l-.001-.001c.34.1.58.41.6.78v25.06c.03.22.68 25.22-15.78 44.3Z",key:0}),t.createElement("path",{d:"M51.1 31.87v0c-4.9-.02-8.88 3.93-8.89 8.82 -.02 4.89 3.93 8.87 8.82 8.88 4.89.01 8.87-3.94 8.88-8.83 0-.01 0-.01 0-.01l-.001-.001c0-4.89-3.95-8.86-8.83-8.88Z",key:1}),t.createElement("path",{d:"M84.1 39.41v-18 0c-.02-.35-.26-.65-.59-.73v-.001c-10.48-2.19-21.16-3.28-31.86-3.28H51h-.001c-10.76.05-21.47 1.17-32 3.34v0c-.34.08-.58.38-.59.73v18.07c0 1.33 0 22.31 13.59 38 7.53 8.82 14.14 13.76 18.7 16.46h-.001c.31.15.68.15 1 0 4.53-2.69 11.14-7.63 18.77-16.46 13.94-16.11 13.63-37.88 13.63-38.13ZM63.51 71.6c-1.09 1.28-2.16 2.45-3.2 3.54 -.24.25-.43.17-.43-.18V67.4c0-5.72 5.55-8.63 7.38-9.43v0c.33-.16.56-.49.58-.86v-5.74h0c.03-.21-.11-.41-.32-.44 -.1-.02-.19 0-.27.05l-.001 0c-10.4 4.1-21.97 4.1-32.36.01v0c-.19-.11-.43-.05-.54.14 -.04.07-.06.15-.05.23v5.74 0c.02.36.25.69.59.84 6.08 2.33 7.32 6.29 7.32 9.52v7.42c0 .35-.19.43-.43.18q-1.53-1.6-3.16-3.48c-11.44-13.26-11.37-31.84-11.37-32v-10.6 0c.01-.36.27-.66.62-.72h0c7.6-1.2 15.29-1.81 23-1.83h.69v-.001c7.59 0 15.18.58 22.69 1.76v0c.35.06.61.36.62.72v10.3c-.001.35.11 19.08-11.38 32.37Z",key:2}),t.createElement("path",{d:"M133 86.24v0c.03 1.17-.23 2.34-.75 3.4v0c-.48.89-1.17 1.66-2 2.23v0c-.9.58-1.89.99-2.92 1.23v0c-1.14.26-2.29.39-3.45.39h-2.76v8.68h-5.56v-23h8.45v0c1.18-.01 2.37.11 3.53.37v-.001c1.02.21 1.99.62 2.86 1.21l0-.001c.81.55 1.47 1.3 1.92 2.18v0c.48 1.03.72 2.16.68 3.31Zm-5.56 0h0c.01-.47-.1-.93-.33-1.33v0c-.21-.35-.52-.63-.87-.81v0c-.4-.21-.82-.34-1.26-.39v0c-.48-.07-.96-.11-1.44-.1h-2.44v5.43h2.34v0c.49 0 .99-.05 1.49-.13v0c.45-.08.88-.24 1.29-.46v0c.36-.2.67-.5.89-.86v0c.21-.41.3-.87.28-1.32Z",key:3}),t.createElement("path",{d:"M145.11 90.37v0c-.23-.07-.47-.12-.7-.13h-.66l0-.001c-.63-.03-1.25.11-1.81.39v0c-.46.22-.86.54-1.17.94v-.001c-.29.35-.51.76-.63 1.2v0c-.13.36-.19.74-.2 1.13v8.3h-5.33v-16.2h5.14v2.34h.06v0c.4-.81 1.01-1.5 1.76-2v0c.77-.53 1.69-.81 2.63-.79v0c.21-.02.42-.02.64 0v0c.16.01.33.04.5.09Z",key:4}),t.createElement("path",{d:"M164.07 94v0c.01 1.23-.23 2.46-.72 3.6v0c-.45 1.03-1.12 1.96-1.95 2.73v-.001c-.84.75-1.81 1.34-2.86 1.74h-.001c-2.25.81-4.7.81-6.94-.001v-.001c-1.06-.4-2.03-.99-2.86-1.74v0c-.83-.77-1.49-1.7-1.94-2.73v0c-.49-1.14-.73-2.37-.71-3.6v0c-.02-1.23.22-2.45.71-3.58v0c.45-1.03 1.11-1.95 1.94-2.7v0c.82-.76 1.8-1.35 2.86-1.72v0c2.24-.78 4.69-.78 6.94-.001v0c1.05.37 2.02.94 2.86 1.69h0c.83.74 1.5 1.67 1.95 2.7v0c.49 1.13.74 2.36.72 3.61Zm-5.14 0v0c0-.53-.09-1.04-.26-1.53v0c-.17-.49-.42-.93-.75-1.31v0c-.34-.39-.75-.71-1.2-.93v0c-1.54-.77-3.4-.39-4.5.93h-.001c-.33.38-.57.82-.72 1.31v0c-.32.99-.32 2.06 0 3.06v0c.15.49.4.94.73 1.35v0c.32.41.73.75 1.21 1v0c1.05.47 2.25.47 3.31 0v0c.47-.25.88-.59 1.21-1v0c.32-.41.57-.86.73-1.35v0c.15-.5.23-1.02.24-1.53Z",key:5})]),t.createElement("g",{fill:"#002338",key:1},[t.createElement("path",{d:"M121 17.21v0c0 .39-.08.79-.24 1.16v0c-.32.71-.9 1.27-1.63 1.54l-.001 0c-1.15.46-2.46.21-3.36-.63v-.001c-.58-.54-.9-1.29-.88-2.07v0c-.01-.39.07-.77.23-1.12v-.001c.14-.36.36-.67.65-.92v-.001c.29-.28.63-.49 1-.64v0c.76-.32 1.62-.32 2.39 0v0c.73.26 1.31.82 1.63 1.54v0c.14.36.22.74.21 1.14Zm-5.72 18.66V22.39h5.33v13.48Z",key:0}),t.createElement("path",{d:"M135 17.59v18.28h-5.6V17.59h-6.5v-4.74h18.57v4.74Z",key:1}),t.createElement("path",{d:"M153.79 35.87v-8.78 0c0-.44-.03-.87-.09-1.3v0c-.06-.39-.19-.76-.38-1.09v0c-.18-.31-.43-.57-.73-.75v0c-.36-.2-.77-.29-1.17-.27v-.001c-.84-.05-1.65.33-2.15 1v-.001c-.52.71-.78 1.57-.74 2.45v8.75h-5.34V11.28h5.34v10.43h.06v0c.43-.72 1.03-1.31 1.76-1.72v0c.87-.53 1.87-.79 2.89-.76v0c.96-.03 1.91.17 2.78.59v0c.71.35 1.33.87 1.82 1.51v0c.47.63.81 1.36 1 2.13v-.001c.2.78.31 1.58.31 2.4v10Z",key:2}),t.createElement("path",{d:"M179.26 28v.65 -.001c.01.2.01.41 0 .62h-11.78v-.001c.04.43.18.85.41 1.23v-.001c.22.38.52.72.88 1v-.001c.36.27.77.48 1.2.64l-.001-.001c.44.14.91.22 1.38.22v0c.74.02 1.48-.14 2.15-.47v0c.56-.3 1.05-.71 1.43-1.22l3.71 2.34v0c-.76 1.1-1.79 1.98-3 2.56v-.001c-1.37.61-2.85.92-4.34.89h-.001c-1.18 0-2.35-.19-3.45-.57v-.001c-1.06-.38-2.03-.97-2.85-1.73l0 0c-.84-.74-1.49-1.66-1.92-2.68v0c-.49-1.16-.73-2.4-.7-3.64l-.001-.001c-.02-1.24.21-2.46.68-3.6l0 0c.42-1.03 1.05-1.96 1.85-2.73l0 0c.8-.76 1.74-1.35 2.77-1.74v0c1.1-.42 2.27-.63 3.45-.61v0c1.12-.02 2.23.19 3.28.6v0c.98.38 1.86.97 2.59 1.74l-.001-.001c.73.79 1.3 1.73 1.67 2.76v0c.42 1.2.62 2.46.59 3.74Zm-4.91-2v0c.01-.81-.28-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.24l0-.001c-.42.15-.81.38-1.14.67v-.001c-.33.27-.6.61-.78 1v0c-.2.36-.31.77-.33 1.19Z",key:3}),t.createElement("path",{d:"M203.25 35.87V27h-.001c0-.45-.03-.89-.09-1.32v0c-.06-.39-.18-.76-.36-1.09v0c-.17-.3-.41-.56-.7-.73v0c-.35-.21-.75-.31-1.15-.28v0c-.42-.01-.83.09-1.19.29v0c-.34.19-.63.46-.85.78v0c-.24.34-.4.72-.5 1.13h0c-.11.42-.17.86-.16 1.31v8.75h-5.34v-9.2 0c.04-.78-.15-1.56-.55-2.22v0c-.41-.56-1.08-.87-1.76-.81v0c-.8-.05-1.56.33-2 1V24.6c-.49.72-.74 1.59-.7 2.47v8.78h-5.37V19.67h5.17v2.24h.07v0c.2-.36.45-.7.73-1v-.001c.3-.34.66-.63 1.06-.86l-.001 0c.43-.26.89-.47 1.38-.6l-.001 0c.54-.16 1.1-.24 1.67-.23h0c1.04-.04 2.08.21 3 .72v0c.81.46 1.47 1.16 1.9 2l-.001-.001c.52-.83 1.23-1.51 2.08-2l0-.001c.94-.53 2.01-.79 3.09-.75v0c.96-.04 1.91.17 2.78.6v0c.71.37 1.33.9 1.81 1.56v0c.45.65.79 1.37 1 2.15V23.5c.19.75.3 1.53.31 2.32v10Z",key:4}),t.createElement("path",{d:"M228.68 28v.65 0c.01.2.01.41 0 .62h-11.77l0-.001c.04.43.18.85.41 1.23v-.001c.22.38.52.72.88 1v0c.36.27.76.48 1.2.64v0c.44.14.91.22 1.38.22v0c.74.02 1.48-.14 2.15-.47v0c.56-.3 1.05-.72 1.43-1.22l3.71 2.34v0c-.76 1.1-1.8 1.98-3 2.56h-.001c-1.37.61-2.85.91-4.34.89v0c-1.18 0-2.35-.19-3.45-.57l-.001-.001c-1.05-.37-2.02-.93-2.85-1.66l0-.001c-.83-.75-1.48-1.66-1.91-2.68v0c-.49-1.16-.73-2.4-.7-3.64v0c-.02-1.24.21-2.46.68-3.6l0 0c.42-1.03 1.05-1.96 1.85-2.73v0c.8-.76 1.74-1.35 2.77-1.74v0c1.09-.42 2.26-.63 3.44-.61v0c1.12-.02 2.24.19 3.29.6v0c.97.38 1.85.97 2.57 1.74l-.001-.001c.73.79 1.3 1.73 1.67 2.76v0c.4 1.17.6 2.42.59 3.67Zm-4.91-2v-.001c.01-.8-.27-1.58-.79-2.18v-.001c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.24v0c-.42.15-.81.38-1.14.67l-.001-.001c-.33.27-.6.61-.78 1v0c-.2.36-.31.77-.33 1.19Z",key:5}),t.createElement("path",{d:"M241.53 24.46l-.001-.001c-.46-.42-.97-.76-1.53-1v-.001c-.58-.29-1.21-.44-1.85-.43h0c-.48-.01-.95.09-1.38.3v-.001c-.55.22-.81.85-.58 1.39 .11.28.34.5.63.6v0c.73.27 1.49.48 2.26.65v0c.62.13 1.24.31 1.84.55l-.001-.001c.59.23 1.16.54 1.67.94v0c.49.39.9.88 1.21 1.44v0c.31.61.46 1.3.45 2v0c.05 1.71-.81 3.32-2.26 4.24v-.001c-.68.46-1.43.8-2.22 1v0c-.82.19-1.65.28-2.48.29h0c-1.32-.01-2.63-.22-3.88-.63v-.001c-1.19-.38-2.27-1.02-3.17-1.87l3-3.16v-.001c.5.51 1.09.92 1.75 1.22v0c.68.34 1.44.52 2.21.52v0c.44-.01.88-.11 1.28-.31v-.001c.41-.2.67-.63.64-1.08v0c0-.51-.32-.95-.79-1.11v0c-.79-.33-1.6-.58-2.43-.75h0c-.58-.14-1.15-.31-1.7-.52l-.001-.001c-.55-.22-1.06-.51-1.51-.88v-.001c-.45-.38-.83-.84-1.09-1.36v0c-.3-.61-.44-1.28-.42-1.95v0c-.03-.88.18-1.74.62-2.49v0c.4-.67.94-1.25 1.59-1.68v0c.66-.45 1.38-.79 2.16-1v0c.77-.2 1.56-.3 2.36-.3h0c1.2 0 2.4.18 3.56.56v-.001c1.11.33 2.14.92 3 1.71Z",key:6}),t.createElement("path",{d:"M127.65 52v0c-.5-.63-1.15-1.12-1.87-1.44v0c-.7-.35-1.46-.53-2.23-.54v0c-.38-.01-.76.03-1.12.1v0c-.36.06-.7.18-1 .37v-.001c-.31.18-.57.42-.76.72h0c-.23.33-.33.72-.31 1.12v0c-.03.35.06.69.25 1h-.001c.18.28.42.51.71.69v0c.35.2.73.38 1.12.53 .44.17.92.33 1.47.51 .78.26 1.59.55 2.44.86v0c.82.3 1.59.72 2.3 1.25v0c.69.52 1.28 1.18 1.73 1.94v0c.47.87.71 1.86.68 2.87v0c.03 1.18-.22 2.36-.73 3.43v0c-.48.94-1.16 1.75-2 2.39v0c-.85.64-1.81 1.11-2.83 1.4v0c-1.07.3-2.18.46-3.28.46v-.001c-1.64 0-3.26-.29-4.78-.86v0c-1.45-.53-2.77-1.37-3.84-2.46l3.64-3.71v0c.61.73 1.37 1.32 2.23 1.74v0c.84.44 1.79.68 2.75.7v0c.4 0 .8-.05 1.2-.13l-.001-.001c.35-.08.69-.22 1-.42v0c.29-.2.52-.47.69-.78v0c.18-.37.27-.77.26-1.17v0c.01-.4-.1-.79-.32-1.11v0c-.26-.34-.58-.62-.93-.83v0c-.48-.28-.98-.51-1.49-.68l-2-.67v0c-.74-.24-1.46-.52-2.16-.84l-.001-.001c-.69-.32-1.33-.74-1.88-1.25v0c-.57-.53-1.03-1.16-1.34-1.86v0c-.36-.84-.53-1.75-.5-2.65v0c-.04-1.15.23-2.28.78-3.28v-.001c.48-.89 1.17-1.66 2-2.24v-.001c.86-.61 1.83-1.04 2.86-1.29v0c1.05-.28 2.13-.41 3.22-.41h-.001c1.36 0 2.71.25 4 .72v0c1.31.45 2.52 1.17 3.56 2.11Z",key:7}),t.createElement("path",{d:"M150.48 61.12v.65 0c.01.2.01.41 0 .62H138.7v0c.04.43.18.86.41 1.24v0c.23.36.53.68.88.95v0c.36.27.76.49 1.2.64v0c.44.15.91.22 1.38.23v0c.74.02 1.48-.15 2.15-.48v0c.56-.3 1.05-.71 1.43-1.22l3.71 2.35v0c-.76 1.1-1.8 1.97-3 2.55v0c-1.37.62-2.85.92-4.34.89v0c-1.18 0-2.35-.19-3.45-.57v0c-1.05-.36-2.02-.92-2.84-1.65v-.001c-.84-.75-1.49-1.67-1.92-2.69v0c-.49-1.16-.73-2.4-.7-3.64v0c-.02-1.24.21-2.46.68-3.59v0c.42-1.03 1.05-1.96 1.86-2.73v0c.79-.76 1.73-1.36 2.76-1.74v0c1.1-.43 2.27-.64 3.45-.62v0c1.12-.02 2.23.19 3.28.6v0c.97.38 1.85.97 2.57 1.74v0c.73.79 1.3 1.73 1.67 2.76v0c.42 1.19.62 2.44.6 3.71Zm-4.91-2v0c.01-.81-.28-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.25v0c-.42.14-.81.37-1.14.66v-.001c-.33.27-.59.61-.78 1l-.001-.001c-.2.36-.31.77-.33 1.19Z",key:8}),t.createElement("path",{d:"M165 58.06v0c-.34-.41-.76-.74-1.24-.94v0c-.5-.24-1.05-.36-1.59-.36v0c-.53-.01-1.06.11-1.53.34v0c-.45.22-.85.54-1.17.92v0c-.34.38-.59.83-.76 1.31l-.001-.001c-.2.51-.29 1.05-.28 1.6v0c-.01.54.08 1.07.26 1.59v0c.16.48.42.93.76 1.32l-.001 0c.33.37.74.67 1.21.89v0c.49.22 1.03.33 1.58.33v0c.55-.01 1.09-.12 1.61-.31v0c.49-.19.93-.5 1.28-.9l3 3.61v0c-.75.69-1.64 1.21-2.6 1.53v0c-1.09.37-2.24.55-3.38.55v0c-1.24.03-2.48-.16-3.65-.54v-.001c-1.07-.37-2.06-.95-2.89-1.71v0c-.83-.77-1.48-1.69-1.93-2.71v-.001c-.49-1.15-.73-2.38-.7-3.61l0-.001c-.03-1.23.21-2.45.7-3.58v0c.45-1.03 1.1-1.96 1.93-2.72v-.001c.84-.76 1.82-1.35 2.89-1.72v-.001c1.13-.41 2.34-.61 3.55-.6h0c.58-.01 1.16.05 1.74.16v0c.56.1 1.11.25 1.66.44v-.001c.51.17 1 .39 1.46.68v0c.42.25.81.55 1.16.9Z",key:9}),t.createElement("path",{d:"M180.82 69v-2.22h-.07 0c-.43.79-1.08 1.44-1.87 1.88v0c-.45.25-.92.44-1.4.59v-.001c-.53.15-1.07.23-1.61.23v0c-.95.02-1.89-.18-2.74-.59v0c-.72-.36-1.35-.88-1.83-1.51v0c-.47-.64-.81-1.35-1-2.11v0c-.21-.8-.32-1.61-.31-2.43v-10h5.36v8.78 0c0 .43.03.86.1 1.3v0c.05.38.18.75.37 1.1v0c.17.31.42.58.74.77v-.001c.36.2.78.29 1.2.28v0c.83.05 1.63-.33 2.13-1v0c.49-.72.75-1.57.73-2.43v-8.81H186v16.17Z",key:10}),t.createElement("path",{d:"M200.62 57.22h0c-.23-.07-.47-.12-.7-.13h-.67v0c-.63-.02-1.24.11-1.8.38v-.001c-.46.24-.86.58-1.17 1v0c-.29.35-.51.76-.63 1.2v0c-.13.36-.2.74-.2 1.13v8.2h-5.33V52.84h5.14v2.34h.06v0c.4-.81 1.01-1.5 1.76-2v0c.77-.54 1.69-.81 2.63-.79v0c.2-.02.42-.02.63 0v0c.17.01.34.04.51.09Z",key:11}),t.createElement("path",{d:"M218.41 56.8V63v0c-.05.6.1 1.2.44 1.71v0c.4.42.98.63 1.57.57h-.001c.27-.01.55-.03.83-.06l0-.001c.25-.05.51-.12.75-.22l.06 3.9h-.001c-.46.15-.93.27-1.4.35v0c-.56.09-1.13.13-1.69.14v0c-.93.02-1.86-.11-2.73-.4h0c-.68-.24-1.29-.65-1.77-1.18v0c-.48-.53-.82-1.15-1-1.82h-.001c-.21-.78-.31-1.58-.29-2.37v-6.82h-2.58v-4h2.57v-4.23h5.24v4.26h3.8v4Z",key:12}),t.createElement("path",{d:"M233.85 71.46h-.001c-.29.78-.66 1.54-1.08 2.26v0c-.39.63-.88 1.2-1.44 1.69v0c-.59.48-1.27.84-2 1.06v-.001c-.86.25-1.76.37-2.65.36v0c-.52-.01-1.03-.04-1.54-.1l0 0c-.47-.06-.93-.15-1.38-.26l.58-4.49v0c.28.09.56.16.86.21l-.001-.001c.28.05.57.08.87.08h-.001c.64.05 1.28-.15 1.78-.56v0c.42-.47.74-1.02.95-1.61l.52-1.34 -6.72-15.93h5.92l3.61 10.4h.1l3.22-10.4h5.66Z",key:13}),t.createElement("path",{d:"M208.78 50.57v-.001c0 .39-.08.78-.24 1.15v-.001c-.16.34-.38.66-.65.93l0-.001c-.59.54-1.36.84-2.16.84v0c-.82.02-1.6-.29-2.18-.86v-.001c-.58-.54-.9-1.28-.88-2.06v0c.01-.76.32-1.48.88-2v-.001c.29-.27.63-.49 1-.64v0c.38-.17.79-.25 1.21-.24l0-.001c.4 0 .8.07 1.18.23v0c.37.13.71.34 1 .62v0c.27.26.49.57.65.92v-.001c.13.35.2.73.19 1.11Zm-5.72 18.65V55.74h5.33v13.48Z",key:14})])])}a.defaultProps={viewBox:"0 0 244.46 113.98"},c.exports=a,a.default=a},70945:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,t.createElement("g",{fill:"#0083E3"},[t.createElement("path",{d:"M102.41 40.58V8h-.001c0-.95-.77-1.73-1.71-1.74 0 0-37.21-6.04-49.62-6.26 -12.41-.22-49.3 6-49.3 6v0C.8 5.97.01 6.73-.01 7.69c-.01.01-.01.02-.01.04v32.84s-1.16 27.36 17.44 48.9c16.52 19.13 30.32 23.66 33.2 24.44v0c.36.07.74.07 1.11 0 2.92-.79 16.7-5.35 33.18-24.44 18.6-21.54 17.48-48.9 17.48-48.9Zm-25 43c-11.21 13-20.79 18.57-25.67 20.8v0c-.37.13-.78.13-1.14 0 -4.84-2.29-14.43-7.88-25.6-20.85C8.49 64.45 9.15 39.45 9.16 39.19v-25 0c.01-.37.25-.68.6-.78l0-.001c13.46-3.41 27.28-5.15 41.17-5.2h.71l0 0c13.82 0 27.6 1.74 41 5.18l-.001-.001c.34.1.58.41.6.78v25.06c.03.22.68 25.22-15.78 44.3Z",key:0}),t.createElement("path",{d:"M51.1 31.87v0c-4.9-.02-8.88 3.93-8.89 8.82 -.02 4.89 3.93 8.87 8.82 8.88 4.89.01 8.87-3.94 8.88-8.83 0-.01 0-.01 0-.01l-.001-.001c0-4.89-3.95-8.86-8.83-8.88Z",key:1}),t.createElement("path",{d:"M84.1 39.41v-18 0c-.02-.35-.26-.65-.59-.73v-.001c-10.48-2.19-21.16-3.28-31.86-3.28H51h-.001c-10.76.05-21.47 1.17-32 3.34v0c-.34.08-.58.38-.59.73v18.07c0 1.33 0 22.31 13.59 38 7.53 8.82 14.14 13.76 18.7 16.46h-.001c.31.15.68.15 1 0 4.53-2.69 11.14-7.63 18.77-16.46 13.94-16.11 13.63-37.88 13.63-38.13ZM63.51 71.6c-1.09 1.28-2.16 2.45-3.2 3.54 -.24.25-.43.17-.43-.18V67.4c0-5.72 5.55-8.63 7.38-9.43v0c.33-.16.56-.49.58-.86v-5.74h0c.03-.21-.11-.41-.32-.44 -.1-.02-.19 0-.27.05l-.001 0c-10.4 4.1-21.97 4.1-32.36.01v0c-.19-.11-.43-.05-.54.14 -.04.07-.06.15-.05.23v5.74 0c.02.36.25.69.59.84 6.08 2.33 7.32 6.29 7.32 9.52v7.42c0 .35-.19.43-.43.18q-1.53-1.6-3.16-3.48c-11.44-13.26-11.37-31.84-11.37-32v-10.6 0c.01-.36.27-.66.62-.72h0c7.6-1.2 15.29-1.81 23-1.83h.69v-.001c7.59 0 15.18.58 22.69 1.76v0c.35.06.61.36.62.72v10.3c-.001.35.11 19.08-11.38 32.37Z",key:2})]))}a.defaultProps={viewBox:"0 0 102.43 113.98"},c.exports=a,a.default=a},81533:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,t.createElement("g",{fill:"#FFF"},[t.createElement("path",{d:"M102.41 40.58V8h-.001c0-.95-.77-1.73-1.71-1.74 0 0-37.21-6.04-49.62-6.26 -12.41-.22-49.3 6-49.3 6v0C.8 5.97.01 6.73-.01 7.69c-.01.01-.01.02-.01.04v32.84s-1.16 27.36 17.44 48.9c16.52 19.13 30.32 23.66 33.2 24.44v0c.36.07.74.07 1.11 0 2.92-.79 16.7-5.35 33.18-24.44 18.6-21.54 17.48-48.9 17.48-48.9Zm-25 43c-11.21 13-20.79 18.57-25.67 20.8v0c-.37.13-.78.13-1.14 0 -4.84-2.29-14.43-7.88-25.6-20.85C8.49 64.45 9.15 39.45 9.16 39.19v-25 0c.01-.37.25-.68.6-.78l0-.001c13.46-3.41 27.28-5.15 41.17-5.2h.71l0 0c13.82 0 27.6 1.74 41 5.18l-.001-.001c.34.1.58.41.6.78v25.06c.03.22.68 25.22-15.78 44.3Z",key:0}),t.createElement("path",{d:"M51.1 31.87v0c-4.9-.02-8.88 3.93-8.89 8.82 -.02 4.89 3.93 8.87 8.82 8.88 4.89.01 8.87-3.94 8.88-8.83 0-.01 0-.01 0-.01l-.001-.001c0-4.89-3.95-8.86-8.83-8.88Z",key:1}),t.createElement("path",{d:"M84.1 39.41v-18 0c-.02-.35-.26-.65-.59-.73v-.001c-10.48-2.19-21.16-3.28-31.86-3.28H51h-.001c-10.76.05-21.47 1.17-32 3.34v0c-.34.08-.58.38-.59.73v18.07c0 1.33 0 22.31 13.59 38 7.53 8.82 14.14 13.76 18.7 16.46h-.001c.31.15.68.15 1 0 4.53-2.69 11.14-7.63 18.77-16.46 13.94-16.11 13.63-37.88 13.63-38.13ZM63.51 71.6c-1.09 1.28-2.16 2.45-3.2 3.54 -.24.25-.43.17-.43-.18V67.4c0-5.72 5.55-8.63 7.38-9.43v0c.33-.16.56-.49.58-.86v-5.74h0c.03-.21-.11-.41-.32-.44 -.1-.02-.19 0-.27.05l-.001 0c-10.4 4.1-21.97 4.1-32.36.01v0c-.19-.11-.43-.05-.54.14 -.04.07-.06.15-.05.23v5.74 0c.02.36.25.69.59.84 6.08 2.33 7.32 6.29 7.32 9.52v7.42c0 .35-.19.43-.43.18q-1.53-1.6-3.16-3.48c-11.44-13.26-11.37-31.84-11.37-32v-10.6 0c.01-.36.27-.66.62-.72h0c7.6-1.2 15.29-1.81 23-1.83h.69v-.001c7.59 0 15.18.58 22.69 1.76v0c.35.06.61.36.62.72v10.3c-.001.35.11 19.08-11.38 32.37Z",key:2}),t.createElement("path",{d:"M133 86.24v0c.03 1.17-.23 2.34-.75 3.4v0c-.48.89-1.17 1.66-2 2.23v0c-.9.58-1.89.99-2.92 1.23v0c-1.14.26-2.29.39-3.45.39h-2.76v8.68h-5.56v-23h8.45v0c1.18-.01 2.37.11 3.53.37v-.001c1.02.21 1.99.62 2.86 1.21l0-.001c.81.55 1.47 1.3 1.92 2.18v0c.48 1.03.72 2.16.68 3.31Zm-5.56 0h0c.01-.47-.1-.93-.33-1.33v0c-.21-.35-.52-.63-.87-.81v0c-.4-.21-.82-.34-1.26-.39v0c-.48-.07-.96-.11-1.44-.1h-2.44v5.43h2.34v0c.49 0 .99-.05 1.49-.13v0c.45-.08.88-.24 1.29-.46v0c.36-.2.67-.5.89-.86v0c.21-.41.3-.87.28-1.32Z",key:3}),t.createElement("path",{d:"M145.11 90.37v0c-.23-.07-.47-.12-.7-.13h-.66l0-.001c-.63-.03-1.25.11-1.81.39v0c-.46.22-.86.54-1.17.94v-.001c-.29.35-.51.76-.63 1.2v0c-.13.36-.19.74-.2 1.13v8.3h-5.33v-16.2h5.14v2.34h.06v0c.4-.81 1.01-1.5 1.76-2v0c.77-.53 1.69-.81 2.63-.79v0c.21-.02.42-.02.64 0v0c.16.01.33.04.5.09Z",key:4}),t.createElement("path",{d:"M164.07 94v0c.01 1.23-.23 2.46-.72 3.6v0c-.45 1.03-1.12 1.96-1.95 2.73v-.001c-.84.75-1.81 1.34-2.86 1.74h-.001c-2.25.81-4.7.81-6.94-.001v-.001c-1.06-.4-2.03-.99-2.86-1.74v0c-.83-.77-1.49-1.7-1.94-2.73v0c-.49-1.14-.73-2.37-.71-3.6v0c-.02-1.23.22-2.45.71-3.58v0c.45-1.03 1.11-1.95 1.94-2.7v0c.82-.76 1.8-1.35 2.86-1.72v0c2.24-.78 4.69-.78 6.94-.001v0c1.05.37 2.02.94 2.86 1.69h0c.83.74 1.5 1.67 1.95 2.7v0c.49 1.13.74 2.36.72 3.61Zm-5.14 0v0c0-.53-.09-1.04-.26-1.53v0c-.17-.49-.42-.93-.75-1.31v0c-.34-.39-.75-.71-1.2-.93v0c-1.54-.77-3.4-.39-4.5.93h-.001c-.33.38-.57.82-.72 1.31v0c-.32.99-.32 2.06 0 3.06v0c.15.49.4.94.73 1.35v0c.32.41.73.75 1.21 1v0c1.05.47 2.25.47 3.31 0v0c.47-.25.88-.59 1.21-1v0c.32-.41.57-.86.73-1.35v0c.15-.5.23-1.02.24-1.53Z",key:5}),t.createElement("path",{d:"M121 17.21v0c0 .39-.08.79-.24 1.16v0c-.32.71-.9 1.27-1.63 1.54l-.001 0c-1.15.46-2.46.21-3.36-.63v-.001c-.58-.54-.9-1.29-.88-2.07v0c-.01-.39.07-.77.23-1.12v-.001c.14-.36.36-.67.65-.92v-.001c.29-.28.63-.49 1-.64v0c.76-.32 1.62-.32 2.39 0v0c.73.26 1.31.82 1.63 1.54v0c.14.36.22.74.21 1.14Zm-5.72 18.66V22.39h5.33v13.48Z",key:6}),t.createElement("path",{d:"M135 17.59v18.28h-5.6V17.59h-6.5v-4.74h18.57v4.74Z",key:7}),t.createElement("path",{d:"M153.79 35.87v-8.78 0c0-.44-.03-.87-.09-1.3v0c-.06-.39-.19-.76-.38-1.09v0c-.18-.31-.43-.57-.73-.75v0c-.36-.2-.77-.29-1.17-.27v-.001c-.84-.05-1.65.33-2.15 1v-.001c-.52.71-.78 1.57-.74 2.45v8.75h-5.34V11.28h5.34v10.43h.06v0c.43-.72 1.03-1.31 1.76-1.72v0c.87-.53 1.87-.79 2.89-.76v0c.96-.03 1.91.17 2.78.59v0c.71.35 1.33.87 1.82 1.51v0c.47.63.81 1.36 1 2.13v-.001c.2.78.31 1.58.31 2.4v10Z",key:8}),t.createElement("path",{d:"M179.26 28v.65 -.001c.01.2.01.41 0 .62h-11.78v-.001c.04.43.18.85.41 1.23v-.001c.22.38.52.72.88 1v-.001c.36.27.77.48 1.2.64l-.001-.001c.44.14.91.22 1.38.22v0c.74.02 1.48-.14 2.15-.47v0c.56-.3 1.05-.71 1.43-1.22l3.71 2.34v0c-.76 1.1-1.79 1.98-3 2.56v-.001c-1.37.61-2.85.92-4.34.89h-.001c-1.18 0-2.35-.19-3.45-.57v-.001c-1.06-.38-2.03-.97-2.85-1.73l0 0c-.84-.74-1.49-1.66-1.92-2.68v0c-.49-1.16-.73-2.4-.7-3.64l-.001-.001c-.02-1.24.21-2.46.68-3.6l0 0c.42-1.03 1.05-1.96 1.85-2.73l0 0c.8-.76 1.74-1.35 2.77-1.74v0c1.1-.42 2.27-.63 3.45-.61v0c1.12-.02 2.23.19 3.28.6v0c.98.38 1.86.97 2.59 1.74l-.001-.001c.73.79 1.3 1.73 1.67 2.76v0c.42 1.2.62 2.46.59 3.74Zm-4.91-2v0c.01-.81-.28-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.24l0-.001c-.42.15-.81.38-1.14.67v-.001c-.33.27-.6.61-.78 1v0c-.2.36-.31.77-.33 1.19Z",key:9}),t.createElement("path",{d:"M203.25 35.87V27h-.001c0-.45-.03-.89-.09-1.32v0c-.06-.39-.18-.76-.36-1.09v0c-.17-.3-.41-.56-.7-.73v0c-.35-.21-.75-.31-1.15-.28v0c-.42-.01-.83.09-1.19.29v0c-.34.19-.63.46-.85.78v0c-.24.34-.4.72-.5 1.13h0c-.11.42-.17.86-.16 1.31v8.75h-5.34v-9.2 0c.04-.78-.15-1.56-.55-2.22v0c-.41-.56-1.08-.87-1.76-.81v0c-.8-.05-1.56.33-2 1V24.6c-.49.72-.74 1.59-.7 2.47v8.78h-5.37V19.67h5.17v2.24h.07v0c.2-.36.45-.7.73-1v-.001c.3-.34.66-.63 1.06-.86l-.001 0c.43-.26.89-.47 1.38-.6l-.001 0c.54-.16 1.1-.24 1.67-.23h0c1.04-.04 2.08.21 3 .72v0c.81.46 1.47 1.16 1.9 2l-.001-.001c.52-.83 1.23-1.51 2.08-2l0-.001c.94-.53 2.01-.79 3.09-.75v0c.96-.04 1.91.17 2.78.6v0c.71.37 1.33.9 1.81 1.56v0c.45.65.79 1.37 1 2.15V23.5c.19.75.3 1.53.31 2.32v10Z",key:10}),t.createElement("path",{d:"M228.68 28v.65 0c.01.2.01.41 0 .62h-11.77l0-.001c.04.43.18.85.41 1.23v-.001c.22.38.52.72.88 1v0c.36.27.76.48 1.2.64v0c.44.14.91.22 1.38.22v0c.74.02 1.48-.14 2.15-.47v0c.56-.3 1.05-.72 1.43-1.22l3.71 2.34v0c-.76 1.1-1.8 1.98-3 2.56h-.001c-1.37.61-2.85.91-4.34.89v0c-1.18 0-2.35-.19-3.45-.57l-.001-.001c-1.05-.37-2.02-.93-2.85-1.66l0-.001c-.83-.75-1.48-1.66-1.91-2.68v0c-.49-1.16-.73-2.4-.7-3.64v0c-.02-1.24.21-2.46.68-3.6l0 0c.42-1.03 1.05-1.96 1.85-2.73v0c.8-.76 1.74-1.35 2.77-1.74v0c1.09-.42 2.26-.63 3.44-.61v0c1.12-.02 2.24.19 3.29.6v0c.97.38 1.85.97 2.57 1.74l-.001-.001c.73.79 1.3 1.73 1.67 2.76v0c.4 1.17.6 2.42.59 3.67Zm-4.91-2v-.001c.01-.8-.27-1.58-.79-2.18v-.001c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.24v0c-.42.15-.81.38-1.14.67l-.001-.001c-.33.27-.6.61-.78 1v0c-.2.36-.31.77-.33 1.19Z",key:11}),t.createElement("path",{d:"M241.53 24.46l-.001-.001c-.46-.42-.97-.76-1.53-1v-.001c-.58-.29-1.21-.44-1.85-.43h0c-.48-.01-.95.09-1.38.3v-.001c-.55.22-.81.85-.58 1.39 .11.28.34.5.63.6v0c.73.27 1.49.48 2.26.65v0c.62.13 1.24.31 1.84.55l-.001-.001c.59.23 1.16.54 1.67.94v0c.49.39.9.88 1.21 1.44v0c.31.61.46 1.3.45 2v0c.05 1.71-.81 3.32-2.26 4.24v-.001c-.68.46-1.43.8-2.22 1v0c-.82.19-1.65.28-2.48.29h0c-1.32-.01-2.63-.22-3.88-.63v-.001c-1.19-.38-2.27-1.02-3.17-1.87l3-3.16v-.001c.5.51 1.09.92 1.75 1.22v0c.68.34 1.44.52 2.21.52v0c.44-.01.88-.11 1.28-.31v-.001c.41-.2.67-.63.64-1.08v0c0-.51-.32-.95-.79-1.11v0c-.79-.33-1.6-.58-2.43-.75h0c-.58-.14-1.15-.31-1.7-.52l-.001-.001c-.55-.22-1.06-.51-1.51-.88v-.001c-.45-.38-.83-.84-1.09-1.36v0c-.3-.61-.44-1.28-.42-1.95v0c-.03-.88.18-1.74.62-2.49v0c.4-.67.94-1.25 1.59-1.68v0c.66-.45 1.38-.79 2.16-1v0c.77-.2 1.56-.3 2.36-.3h0c1.2 0 2.4.18 3.56.56v-.001c1.11.33 2.14.92 3 1.71Z",key:12}),t.createElement("path",{d:"M127.65 52v0c-.5-.63-1.15-1.12-1.87-1.44v0c-.7-.35-1.46-.53-2.23-.54v0c-.38-.01-.76.03-1.12.1v0c-.36.06-.7.18-1 .37v-.001c-.31.18-.57.42-.76.72h0c-.23.33-.33.72-.31 1.12v0c-.03.35.06.69.25 1h-.001c.18.28.42.51.71.69v0c.35.2.73.38 1.12.53 .44.17.92.33 1.47.51 .78.26 1.59.55 2.44.86v0c.82.3 1.59.72 2.3 1.25v0c.69.52 1.28 1.18 1.73 1.94v0c.47.87.71 1.86.68 2.87v0c.03 1.18-.22 2.36-.73 3.43v0c-.48.94-1.16 1.75-2 2.39v0c-.85.64-1.81 1.11-2.83 1.4v0c-1.07.3-2.18.46-3.28.46v-.001c-1.64 0-3.26-.29-4.78-.86v0c-1.45-.53-2.77-1.37-3.84-2.46l3.64-3.71v0c.61.73 1.37 1.32 2.23 1.74v0c.84.44 1.79.68 2.75.7v0c.4 0 .8-.05 1.2-.13l-.001-.001c.35-.08.69-.22 1-.42v0c.29-.2.52-.47.69-.78v0c.18-.37.27-.77.26-1.17v0c.01-.4-.1-.79-.32-1.11v0c-.26-.34-.58-.62-.93-.83v0c-.48-.28-.98-.51-1.49-.68l-2-.67v0c-.74-.24-1.46-.52-2.16-.84l-.001-.001c-.69-.32-1.33-.74-1.88-1.25v0c-.57-.53-1.03-1.16-1.34-1.86v0c-.36-.84-.53-1.75-.5-2.65v0c-.04-1.15.23-2.28.78-3.28v-.001c.48-.89 1.17-1.66 2-2.24v-.001c.86-.61 1.83-1.04 2.86-1.29v0c1.05-.28 2.13-.41 3.22-.41h-.001c1.36 0 2.71.25 4 .72v0c1.31.45 2.52 1.17 3.56 2.11Z",key:13}),t.createElement("path",{d:"M150.48 61.12v.65 0c.01.2.01.41 0 .62H138.7v0c.04.43.18.86.41 1.24v0c.23.36.53.68.88.95v0c.36.27.76.49 1.2.64v0c.44.15.91.22 1.38.23v0c.74.02 1.48-.15 2.15-.48v0c.56-.3 1.05-.71 1.43-1.22l3.71 2.35v0c-.76 1.1-1.8 1.97-3 2.55v0c-1.37.62-2.85.92-4.34.89v0c-1.18 0-2.35-.19-3.45-.57v0c-1.05-.36-2.02-.92-2.84-1.65v-.001c-.84-.75-1.49-1.67-1.92-2.69v0c-.49-1.16-.73-2.4-.7-3.64v0c-.02-1.24.21-2.46.68-3.59v0c.42-1.03 1.05-1.96 1.86-2.73v0c.79-.76 1.73-1.36 2.76-1.74v0c1.1-.43 2.27-.64 3.45-.62v0c1.12-.02 2.23.19 3.28.6v0c.97.38 1.85.97 2.57 1.74v0c.73.79 1.3 1.73 1.67 2.76v0c.42 1.19.62 2.44.6 3.71Zm-4.91-2v0c.01-.81-.28-1.58-.8-2.18v0c-.63-.65-1.5-.98-2.39-.91v0c-.49-.01-.98.07-1.43.25v0c-.42.14-.81.37-1.14.66v-.001c-.33.27-.59.61-.78 1l-.001-.001c-.2.36-.31.77-.33 1.19Z",key:14}),t.createElement("path",{d:"M165 58.06v0c-.34-.41-.76-.74-1.24-.94v0c-.5-.24-1.05-.36-1.59-.36v0c-.53-.01-1.06.11-1.53.34v0c-.45.22-.85.54-1.17.92v0c-.34.38-.59.83-.76 1.31l-.001-.001c-.2.51-.29 1.05-.28 1.6v0c-.01.54.08 1.07.26 1.59v0c.16.48.42.93.76 1.32l-.001 0c.33.37.74.67 1.21.89v0c.49.22 1.03.33 1.58.33v0c.55-.01 1.09-.12 1.61-.31v0c.49-.19.93-.5 1.28-.9l3 3.61v0c-.75.69-1.64 1.21-2.6 1.53v0c-1.09.37-2.24.55-3.38.55v0c-1.24.03-2.48-.16-3.65-.54v-.001c-1.07-.37-2.06-.95-2.89-1.71v0c-.83-.77-1.48-1.69-1.93-2.71v-.001c-.49-1.15-.73-2.38-.7-3.61l0-.001c-.03-1.23.21-2.45.7-3.58v0c.45-1.03 1.1-1.96 1.93-2.72v-.001c.84-.76 1.82-1.35 2.89-1.72v-.001c1.13-.41 2.34-.61 3.55-.6h0c.58-.01 1.16.05 1.74.16v0c.56.1 1.11.25 1.66.44v-.001c.51.17 1 .39 1.46.68v0c.42.25.81.55 1.16.9Z",key:15}),t.createElement("path",{d:"M180.82 69v-2.22h-.07 0c-.43.79-1.08 1.44-1.87 1.88v0c-.45.25-.92.44-1.4.59v-.001c-.53.15-1.07.23-1.61.23v0c-.95.02-1.89-.18-2.74-.59v0c-.72-.36-1.35-.88-1.83-1.51v0c-.47-.64-.81-1.35-1-2.11v0c-.21-.8-.32-1.61-.31-2.43v-10h5.36v8.78 0c0 .43.03.86.1 1.3v0c.05.38.18.75.37 1.1v0c.17.31.42.58.74.77v-.001c.36.2.78.29 1.2.28v0c.83.05 1.63-.33 2.13-1v0c.49-.72.75-1.57.73-2.43v-8.81H186v16.17Z",key:16}),t.createElement("path",{d:"M200.62 57.22h0c-.23-.07-.47-.12-.7-.13h-.67v0c-.63-.02-1.24.11-1.8.38v-.001c-.46.24-.86.58-1.17 1v0c-.29.35-.51.76-.63 1.2v0c-.13.36-.2.74-.2 1.13v8.2h-5.33V52.84h5.14v2.34h.06v0c.4-.81 1.01-1.5 1.76-2v0c.77-.54 1.69-.81 2.63-.79v0c.2-.02.42-.02.63 0v0c.17.01.34.04.51.09Z",key:17}),t.createElement("path",{d:"M218.41 56.8V63v0c-.05.6.1 1.2.44 1.71v0c.4.42.98.63 1.57.57h-.001c.27-.01.55-.03.83-.06l0-.001c.25-.05.51-.12.75-.22l.06 3.9h-.001c-.46.15-.93.27-1.4.35v0c-.56.09-1.13.13-1.69.14v0c-.93.02-1.86-.11-2.73-.4h0c-.68-.24-1.29-.65-1.77-1.18v0c-.48-.53-.82-1.15-1-1.82h-.001c-.21-.78-.31-1.58-.29-2.37v-6.82h-2.58v-4h2.57v-4.23h5.24v4.26h3.8v4Z",key:18}),t.createElement("path",{d:"M233.85 71.46h-.001c-.29.78-.66 1.54-1.08 2.26v0c-.39.63-.88 1.2-1.44 1.69v0c-.59.48-1.27.84-2 1.06v-.001c-.86.25-1.76.37-2.65.36v0c-.52-.01-1.03-.04-1.54-.1l0 0c-.47-.06-.93-.15-1.38-.26l.58-4.49v0c.28.09.56.16.86.21l-.001-.001c.28.05.57.08.87.08h-.001c.64.05 1.28-.15 1.78-.56v0c.42-.47.74-1.02.95-1.61l.52-1.34 -6.72-15.93h5.92l3.61 10.4h.1l3.22-10.4h5.66Z",key:19}),t.createElement("path",{d:"M208.78 50.57v-.001c0 .39-.08.78-.24 1.15v-.001c-.16.34-.38.66-.65.93l0-.001c-.59.54-1.36.84-2.16.84v0c-.82.02-1.6-.29-2.18-.86v-.001c-.58-.54-.9-1.28-.88-2.06v0c.01-.76.32-1.48.88-2v-.001c.29-.27.63-.49 1-.64v0c.38-.17.79-.25 1.21-.24l0-.001c.4 0 .8.07 1.18.23v0c.37.13.71.34 1 .62v0c.27.26.49.57.65.92v-.001c.13.35.2.73.19 1.11Zm-5.72 18.65V55.74h5.33v13.48Z",key:20})]))}a.defaultProps={viewBox:"0 0 244.46 113.98"},c.exports=a,a.default=a},55613:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("defs",{key:0},t.createElement("style",null,".a{fill:#e5eaee;}.b{fill:#e1f2fc;}.b,.f,.h{stroke:#0083e3;}.c,.f,.g{fill:#0083e3;}.d{fill:#fff;}.e,.h{fill:none;}.g{font-size:46px;font-family:Quicksand-Bold, Quicksand;font-weight:700;}.h{stroke-linecap:round;stroke-width:2px;}")),t.createElement("g",{transform:"translate(-1004 -1753.023)",key:1},[t.createElement("ellipse",{className:"a",cx:"91.5",cy:"21.5",rx:"91.5",ry:"21.5",transform:"translate(1004 1858)",key:0}),t.createElement("path",{className:"b",d:"M348.982,304.5a4.479,4.479,0,0,0-4.482,4.475v79.981a2.985,2.985,0,0,0,2.988,2.983H471.514a2.985,2.985,0,0,0,2.988-2.983V308.975a4.479,4.479,0,0,0-4.482-4.475Z",transform:"translate(685.569 1484.182)",key:1}),t.createElement("path",{className:"c",d:"M371,409.152H492.632V334H371Z",transform:"translate(663.788 1459.936)",key:2}),t.createElement("path",{className:"d",d:"M373,410.439H493.919V336H373Z",transform:"translate(662.144 1458.292)",key:3}),t.createElement("path",{className:"e",d:"M271.875,797.1a14.793,14.793,0,0,1-5.537-1.7c-.151-.073-.258-.125-.338-.16V793H423.961v2.239c-.08.037-.187.087-.338.16a14.6,14.6,0,0,1-5.494,1.7H271.875Z",transform:"translate(750.089 1082.677)",key:4}),t.createElement("path",{className:"b",d:"M424,792.5H265.5v2.694c.183,0,3.565,1.936,6.153,1.936H417.885c2.57,0,5.927-1.941,6.1-1.941.005,0,.007-.016.007-.016Z",transform:"translate(750.5 1083.088)",key:5}),t.createElement("path",{className:"c",d:"M266.348,805l-.178.356H423.953l.178-.356Z",transform:"translate(749.949 1072.814)",key:6}),t.createElement("path",{className:"c",d:"M664.768,793.781H646.735A1.749,1.749,0,0,1,645,792.018V792h21.548v.018a1.749,1.749,0,0,1-1.736,1.763",transform:"translate(438.583 1083.499)",key:7}),t.createElement("path",{className:"c",d:"M703.417,318.953a.623.623,0,1,1-.623-.623.624.624,0,0,1,.623.623",transform:"translate(391.594 1472.815)",key:8}),t.createElement("circle",{className:"c",cx:"1.817",cy:"1.817",r:"1.817",transform:"translate(1078.516 1828.086)",key:9}),t.createElement("circle",{className:"c",cx:"1.817",cy:"1.817",r:"1.817",transform:"translate(1106.774 1828.086)",key:10}),t.createElement("path",{className:"f",d:"M.116,2.313c.255-.49,4.387-4.951,7.662,0,0,.627-.254.874-1.159-.232-.34-.391-2.476-3.24-6.208,1.1C.056,3.166-.139,2.8.116,2.313Z",transform:"matrix(0.839, -0.545, 0.545, 0.839, 1074.299, 1823.29)",key:11}),t.createElement("path",{className:"f",d:"M.116,2.313c.255-.49,4.387-4.951,7.662,0,0,.627-.254.874-1.159-.232-.34-.391-2.476-3.24-6.208,1.1C.056,3.166-.139,2.8.116,2.313Z",transform:"translate(1107.307 1818.969) rotate(22)",key:12}),t.createElement("text",{className:"g",transform:"matrix(0.799, 0.602, -0.602, 0.799, 1159.274, 1756.396)",key:13},t.createElement("tspan",{x:"8.879",y:"46"},"?")),t.createElement("text",{className:"g",transform:"translate(1111.348 1759.593) rotate(-9)",key:14},t.createElement("tspan",{x:"8.879",y:"46"},"?")),t.createElement("line",{className:"h",y1:"4",x2:"25",transform:"translate(1083.5 1842.5)",key:15})])])}a.defaultProps={viewBox:"0 0 188.817 147.977"},c.exports=a,a.default=a},24526:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("defs",{key:0},[t.createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"100%",y2:"0%",key:0},[t.createElement("stop",{offset:"0%",stopColor:"#808080",stopOpacity:".251",key:0}),t.createElement("stop",{offset:"54%",stopColor:"#808080",stopOpacity:".122",key:1}),t.createElement("stop",{offset:"100%",stopColor:"#808080",stopOpacity:".102",key:2})]),t.createElement("linearGradient",{id:"b",x1:"50%",x2:"50%",y1:"100%",y2:"0%",xlinkHref:"#a",key:1}),t.createElement("linearGradient",{id:"c",x1:"50%",x2:"50%",y1:"100%",y2:"0%",xlinkHref:"#a",key:2}),t.createElement("linearGradient",{id:"d",x1:"50%",x2:"50%",y1:"0%",y2:"100%",key:3},[t.createElement("stop",{offset:"0%",stopColor:"#E0E0E0",key:0}),t.createElement("stop",{offset:"31%",stopColor:"#FCCC63",key:1}),t.createElement("stop",{offset:"77%",stopColor:"#F55F44",key:2})]),t.createElement("linearGradient",{id:"e",x1:"50%",x2:"50%",y1:"0%",y2:"100%",xlinkHref:"#d",key:4}),t.createElement("linearGradient",{id:"f",x1:"50%",x2:"50%",y1:"0%",y2:"100%",xlinkHref:"#d",key:5}),t.createElement("linearGradient",{id:"g",x1:"50%",x2:"50%",y1:"0%",y2:"100%",xlinkHref:"#d",key:6}),t.createElement("linearGradient",{id:"h",x1:"50%",x2:"50%",y1:"99.9%",y2:"-.1%",xlinkHref:"#a",key:7}),t.createElement("linearGradient",{id:"i",x1:"50.3%",x2:"50.3%",y1:"100%",y2:".2%",xlinkHref:"#a",key:8}),t.createElement("path",{id:"k",d:"M.55 0a.55.55 0 1 0 0 1.1 .55.55 0 1 0 0-1.11Z",key:9}),t.createElement("path",{id:"j",d:"M.99 0a.99.99 0 1 0 0 1.98A.99.99 0 1 0 .99 0Z",key:10})]),t.createElement("g",{transform:"translate(-12.602-.014)",key:1},[t.createElement("path",{opacity:".194",fill:"#DCEBF3",d:"M205.51 249.8v0c-1.62.15-3.24.12-4.84-.08 -17.67-2.17-41.72-1.56-61.33 11.94 -27.119 18.67-69.62 2.68-88.367-6.01l0-.001c-14.4-6.72-21.74-22.93-17.3-38.18 .06-.22.12-.44.2-.65 2.811-9.08 8.35-16.18 15.23-19.94H49.1c9.08-4.96 15.79-13.35 18.62-23.3h0c1.5-5.3 3.75-10.35 6.67-15.01 7.66-11.94 23.71-29.714 51.322-29.6v0c4.86.03 9.68.93 14.22 2.67 10.08 3.81 19.19 11.58 26.13 22.345 4.43 6.86 11.07 13.24 20.58 13.76 13.2.72 25.79 7.55 35.23 19.7 .27.34.54.7.81 1.05 16.82 22.27 5.13 59.08-17.21 61.25Z",transform:"translate(-10.337-112.27)",key:0}),t.createElement("path",{opacity:".7",fill:"url(#a)",d:"M2.67 0a2.67 2.67 0 1 0 0 5.35 2.67 2.67 0 1 0 0-5.36Z",transform:"translate(51.171 129.987)",key:1}),t.createElement("path",{opacity:".2",d:"M2.55 0a2.55 2.55 0 1 0 0 5.11 2.55 2.55 0 1 0 0-5.12Z",transform:"translate(51.291 130.106)",key:2}),t.createElement("g",{fill:"#FFF",key:3},[t.createElement("use",{xlinkHref:"#j",x:"38.426",y:"79.42",key:0}),t.createElement("use",{xlinkHref:"#j",x:"109.091",y:"136.884",key:1}),t.createElement("use",{xlinkHref:"#k",x:"67.789",y:"142.369",key:2}),t.createElement("use",{xlinkHref:"#k",x:"190.288",y:"115.577",key:3}),t.createElement("use",{xlinkHref:"#k",x:"158.644",y:"65.878",key:4}),t.createElement("use",{xlinkHref:"#k",x:"203.489",y:"90.146",key:5}),t.createElement("use",{xlinkHref:"#j",x:"55.898",y:"47",key:6}),t.createElement("path",{d:"M144.132 588.55h-.89v-.89h-.36v.88h-.89v.35h.88v.87h.35v-.88h.88Z",transform:"translate(-114.456-473.572)",key:7}),t.createElement("path",{d:"M258.132 586.55h-.89v-.89h-.36v.88h-.89v.35h.88v.87h.35v-.88h.88Z",transform:"translate(-206.324-471.96)",key:8}),t.createElement("path",{d:"M421.132 678.55h-.89v-.89h-.36v.88h-.89v.35h.88v.87h.35v-.88h.88Z",transform:"translate(-337.68-546.099)",key:9}),t.createElement("path",{d:"M652.95 129.042h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-525.431-103.655)",key:10}),t.createElement("path",{d:"M947.95 319.04h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-763.161-256.77)",key:11}),t.createElement("path",{d:"M773.95 443.04h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-622.94-356.697)",key:12}),t.createElement("path",{d:"M65.95 521.04h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-52.388-419.554)",key:13}),t.createElement("path",{d:"M150.95 691.04h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-120.886-556.551)",key:14}),t.createElement("path",{d:"M417.957 154.042h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-336.053-123.802)",key:15}),t.createElement("path",{d:"M291.957 453.04h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-234.514-364.756)",key:16}),t.createElement("path",{d:"M318.957 367.04h-.4v-.4h-.17v.4h-.4v.16h.4v.4h.16v-.4h.4Z",transform:"translate(-256.272-295.451)",key:17})]),t.createElement("path",{opacity:".7",fill:"url(#b)",d:"M2.23 0a2.23 2.23 0 1 0 0 4.47 2.23 2.23 0 1 0 0-4.48Z",transform:"translate(142.991 105.646)",key:4}),t.createElement("g",{key:5},[t.createElement("path",{opacity:".2",d:"M2.07 0a2.07 2.07 0 1 0 0 4.14 2.07 2.07 0 1 0 0-4.15Z",transform:"translate(143.156 105.811)",key:0}),t.createElement("path",{opacity:".2",d:"M2.31 0a2.31 2.31 0 1 0 0 4.63 2.31 2.31 0 1 0 0-4.64Z",transform:"translate(148.489 120.148)",key:1})]),t.createElement("g",{opacity:".7",transform:"translate(73.584.014)",key:6},t.createElement("path",{fill:"url(#c)",d:"M467.98 102.507v0c.01-4.87-1.16-9.67-3.4-13.98v0c-.74-1.48-1.68-2.85-2.79-4.06v0c-.59-.63-1.51-.8-2.28-.44v-.001c-.31.1-.58.28-.8.51l-.001-.001c-1.08 1.17-1.99 2.49-2.72 3.9v-.001c-2.37 4.41-3.59 9.35-3.57 14.36v3h-1.93v-34.95 0c.03-7.27-1.64-14.45-4.86-20.96v-.001c-1.04-2.21-2.38-4.25-3.98-6.09v0c-1.01-1.15-2.75-1.26-3.9-.26 -.1.07-.18.16-.26.25v-.001c-1.55 1.77-2.85 3.74-3.89 5.85l0 0c-3.39 6.66-5.13 14.04-5.09 21.51v34.6h-1.66v-3.16h0c.02-5.01-1.21-9.95-3.57-14.36l-.001 0c-.74-1.42-1.65-2.73-2.72-3.91v-.001c-.6-.64-1.55-.81-2.33-.43l.07.03 -.001 0c-.25.1-.47.26-.65.45v-.001c-1.12 1.21-2.06 2.58-2.79 4.05v0c-2.25 4.31-3.42 9.11-3.4 13.97v52.22h5.94l-.66 4.29v12.83h4.86v-12.84l-.65-4.3h5.86v-47.57h1.66v47.357h4.75l-.69 4.5v12.83h4.86v-12.84l-.69-4.506h6.4l-.69 4.506v12.83h4.86v-12.84l-.69-4.506h3.79v-47.35h1.92v47.63h1.56v-.08H459l-.65 4.28v12.83h4.86v-12.84l-.65-4.3h5.25Z",transform:"translate(-411.519-42.904)"})),t.createElement("path",{fill:"#535461",d:"M417.277 562.033h-4.61l.82-5.6h2.96Z",transform:"translate(-332.571-448.404)",key:7}),t.createElement("g",{opacity:".1",transform:"translate(80.693 108.694)",key:8},t.createElement("path",{d:"M415.73 561.393h3.41l-.23-1.57h-2.97Z",transform:"translate(-415.73-559.83)"})),t.createElement("path",{fill:"#535461",d:"M620.635 562.033h-4.6l.82-5.6h2.96Z",transform:"translate(-496.452-448.404)",key:9}),t.createElement("g",{opacity:".1",transform:"translate(120.169 108.694)",key:10},t.createElement("path",{d:"M619.08 561.393h3.42l-.23-1.57h-2.97Z",transform:"translate(-619.08-559.83)"})),t.createElement("path",{fill:"#535461",d:"M494.385 562.033h-4.6l.82-5.6h2.96Z",transform:"translate(-394.711-448.404)",key:11}),t.createElement("g",{opacity:".1",transform:"translate(95.661 108.694)",key:12},t.createElement("path",{d:"M492.83 561.393h3.42l-.23-1.57h-2.97Z",transform:"translate(-492.83-559.83)"})),t.createElement("path",{fill:"#535461",d:"M542.68 562.033h-4.6l.82-5.6h2.96Z",transform:"translate(-433.635-448.404)",key:13}),t.createElement("g",{opacity:".1",transform:"translate(105.038 108.694)",key:14},t.createElement("path",{d:"M541.13 561.393h3.42l-.24-1.57h-2.97Z",transform:"translate(-541.13-559.83)"})),t.createElement("path",{fill:"#535461",d:"M0 0h32.89v1.31H-.01Z",transform:"translate(84.706 61.813)",key:15}),t.createElement("g",{fill:"#E0E0E0",key:16},[t.createElement("path",{d:"M628.33 251.629v-.001c-.69-.76-1.86-.82-2.62-.14 -.05.04-.09.08-.14.13v0c-1.03 1.15-1.9 2.42-2.59 3.8v0c-2.25 4.31-3.4 9.11-3.38 13.97v50.63h14.56v-50.85h-.001c.01-4.73-1.09-9.4-3.22-13.62v0c-.69-1.44-1.58-2.77-2.64-3.96Z",transform:"translate(-505.643-210.603)",key:0}),t.createElement("path",{d:"M425.084 251.629v-.001c.68-.76 1.85-.82 2.61-.14 .04.04.08.08.13.13v-.001c1.02 1.15 1.88 2.42 2.58 3.8v0c2.23 4.31 3.39 9.11 3.37 13.97v50.63h-14.56v-50.85 -.001c-.02-4.73 1.08-9.4 3.21-13.62v0c.68-1.44 1.57-2.77 2.63-3.96Z",transform:"translate(-344.15-210.603)",key:1})]),t.createElement("g",{fill:"#535461",key:17},[t.createElement("path",{d:"M387.25 307.33l3.45.01v4.25h-3.46Z",transform:"translate(-312.086-247.655)",key:0}),t.createElement("path",{d:"M444.02 307.33l3.45.01v4.25h-3.46Z",transform:"translate(-357.835-247.655)",key:1}),t.createElement("path",{d:"M587.22 307.33l3.45.01v4.25h-3.46Z",transform:"translate(-473.235-247.655)",key:2}),t.createElement("path",{d:"M643.99 307.33l3.45.01v4.25h-3.46Z",transform:"translate(-518.984-247.655)",key:3})]),t.createElement("g",{opacity:".1",transform:"translate(81.485 40.349)",key:18},t.createElement("path",{d:"M457 255.093v0c-.7-1.38-1.56-2.66-2.58-3.81v0c-.56-.62-1.46-.79-2.2-.42v0c.2.1.39.24.55.41v0c1.02 1.15 1.88 2.43 2.57 3.8v0c2.24 4.31 3.39 9.11 3.37 13.97v50.63h1.64v-50.64 0c.02-4.87-1.14-9.67-3.38-13.98Z",transform:"translate(-452.22-250.678)"})),t.createElement("g",{opacity:".1",transform:"translate(113.82 40.49)",key:19},t.createElement("path",{d:"M623.636 255.814v0c.69-1.38 1.55-2.66 2.57-3.81v-.001c.17-.2.39-.35.63-.46v0c-.73-.32-1.59-.14-2.12.45l0 0c-1.03 1.15-1.89 2.42-2.58 3.8v0c-2.24 4.31-3.4 9.11-3.38 13.97v50.64h1.48v-50.64 0c-.03-4.87 1.13-9.67 3.37-13.99Z",transform:"translate(-618.778-251.399)"})),t.createElement("path",{fill:"url(#d)",d:"M447.447 640.64h-.13v0c-1.24 0-2.24-1.01-2.24-2.24v-10.27h4.6v10.26 -.001c0 1.23-1.01 2.24-2.24 2.24 -.01 0-.01 0-.01 0Z",transform:"translate(-364.981-514.511)",key:20}),t.createElement("path",{fill:"url(#e)",d:"M524.55 640.64h-.13v0c-1.24-.01-2.24-1.01-2.24-2.24v-10.27h4.6v10.26 -.001c0 1.23-1 2.23-2.24 2.24Z",transform:"translate(-427.122-514.511)",key:21}),t.createElement("path",{fill:"url(#f)",d:"M572.85 640.64h-.13v0c-1.24-.01-2.24-1.01-2.24-2.24v-10.27h4.6v10.26 -.001c0 1.23-1 2.23-2.24 2.24Z",transform:"translate(-466.045-514.511)",key:22}),t.createElement("path",{fill:"url(#g)",d:"M650.8 640.64h-.13v0c-1.24 0-2.25-1-2.25-2.24 -.01-.01-.01-.01-.01-.01v-10.27h4.6v10.26 0c0 1.23-1.01 2.23-2.24 2.24Z",transform:"translate(-528.862-514.511)",key:23}),t.createElement("path",{fill:"#EEE",d:"M514.741 45.84v-.001c-.92-1.09-2.53-1.23-3.62-.32 -.12.09-.22.19-.32.31v0c-1.47 1.73-2.71 3.65-3.69 5.7v0c-3.21 6.51-4.86 13.68-4.82 20.95v81.26h20.77v-81.6 0c.03-7.06-1.54-14.04-4.59-20.4v-.001c-.97-2.14-2.24-4.14-3.76-5.93Z",transform:"translate(-411.101-44.526)",key:24}),t.createElement("rect",{width:"10.841",height:"4.968",rx:"2.484",ry:"2.484",fill:"#535461",transform:"translate(96.041 10.349)",key:25}),t.createElement("path",{opacity:".1",d:"M0 0h20.56v.79H-.01Z",transform:"translate(91.321 30.753)",key:26}),t.createElement("path",{fill:"url(#h)",d:"M743.72 343.268v0 0c-.54-.71-1.22-1.31-1.99-1.75v0 -.001c-3.19-1.84-7.27-.75-9.11 2.44 -1.84 3.18-.75 7.26 2.44 9.1 1.01.58 2.16.89 3.32.89v0c.14 0 .28-.01.42-.02v0c3.67-.24 6.46-3.4 6.23-7.07 -.09-1.31-.55-2.56-1.34-3.6Z",transform:"translate(-595.998-282.817)",key:27}),t.createElement("g",{key:28},[t.createElement("path",{opacity:".2",d:"M746.17 348.734v0c-.01 3.32-2.59 6.07-5.9 6.28 -.14 0-.27.01-.4.01v0c-3.48-.01-6.3-2.83-6.3-6.31 0-3.48 2.82-6.3 6.3-6.3 1.1 0 2.18.29 3.14.84v0 0c.72.42 1.36.98 1.875 1.66v0 0c.82 1.09 1.27 2.42 1.27 3.79Z",transform:"translate(-597.464-284.267)",key:0}),t.createElement("path",{opacity:".1",d:"M751.64 354.04v0c-.33.14-.65.3-.94.49v0c-.2.1-.38.26-.5.45v0c-.14.19-.14.44-.02.64v0c.18.18.44.27.7.25v0c.27.03.55 0 .81-.09v-.001c.17-.09.33-.21.47-.35l.54-.5c.19-.18.38-.41.31-.65v0c-.1-.18-.27-.3-.46-.32v0c-.47-.1-.96-.01-1.36.23",transform:"translate(-610.787-293.573)",key:1}),t.createElement("path",{opacity:".1",d:"M.33 0a.33.33 0 1 0 0 .66 .33.33 0 1 0 0-.67Z",transform:"translate(138.266 66.62)",key:2}),t.createElement("path",{opacity:".1",d:"M1.21 0a1.21 1.21 0 1 0 0 2.43 1.21 1.21 0 1 0 0-2.43Z",transform:"translate(144.122 63.637)",key:3})]),t.createElement("g",{opacity:".1",transform:"translate(144.132 59.009)",key:29},t.createElement("path",{d:"M778.236 348.452v0 0c-.02.91-.77 1.64-1.68 1.63 -.92-.02-1.65-.77-1.64-1.68 0-.83.62-1.52 1.43-1.63v0 -.001c.73.42 1.36.98 1.87 1.66Z",transform:"translate(-774.92-346.79)"})),t.createElement("g",{opacity:".1",transform:"translate(142.797 67.505)",key:30},t.createElement("path",{d:"M772.8 391.14v0c-1.1 1.56-2.85 2.54-4.76 2.66 0-.09-.02-.18-.02-.27v-.001c-.01-1.65 1.33-2.99 2.98-2.99 .64-.01 1.26.2 1.77.58Z",transform:"translate(-768.04-390.555)"})),t.createElement("path",{fill:"url(#i)",d:"M315.28 531.71v0h-.001c-.38-.5-.85-.92-1.39-1.23v0 0c-2.22-1.31-5.08-.56-6.38 1.66 -1.31 2.21-.56 5.07 1.66 6.37 .72.42 1.54.64 2.38.63 .1 0 .19 0 .3-.01v0c2.56-.18 4.5-2.4 4.33-4.97 -.07-.9-.38-1.76-.92-2.49Z",transform:"translate(-253.614-435.303)",key:31}),t.createElement("g",{key:32},[t.createElement("path",{opacity:".2",d:"M317.2 535.615v0c-.01 2.31-1.81 4.23-4.12 4.38h-.28v0c-2.44 0-4.41-1.96-4.42-4.39 -.01-2.44 1.95-4.41 4.38-4.42 .78-.01 1.55.2 2.23.59v0h-.001c.5.29.95.69 1.3 1.16v0 0c.57.76.88 1.69.88 2.65Z",transform:"translate(-254.847-436.399)",key:0}),t.createElement("path",{opacity:".1",d:"M321.02 539.348h-.001c-.23.09-.45.21-.66.34v0c-.14.07-.26.18-.36.31h-.001c-.09.13-.09.31 0 .44v-.001c.13.12.31.19.49.17v0c.19.02.38 0 .56-.06v0c.12-.07.23-.15.33-.25l.37-.35c.13-.12.27-.29.21-.45v0c-.07-.13-.19-.21-.32-.22h-.001c-.33-.07-.67-.01-.95.16",transform:"translate(-264.143-442.92)",key:1}),t.createElement("path",{opacity:".1",d:"M.23 0a.23.23 0 1 0 0 .46 .23.23 0 1 0 0-.47Z",transform:"translate(55.069 100.719)",key:2}),t.createElement("path",{opacity:".1",d:"M.84 0a.84.84 0 1 0 0 1.69 .84.84 0 1 0 0-1.7Z",transform:"translate(59.156 98.638)",key:3})]),t.createElement("g",{opacity:".1",transform:"translate(59.14 95.403)",key:33},t.createElement("path",{d:"M339.45 535.425v0 0c-.01.64-.54 1.16-1.18 1.15 -.65-.01-1.17-.54-1.16-1.18 0-.59.44-1.08 1.01-1.15v0 0c.51.29.95.69 1.31 1.16Z",transform:"translate(-337.12-534.26)"})),t.createElement("g",{opacity:".1",transform:"translate(58.239 101.326)",key:34},t.createElement("path",{d:"M335.8 565.18v0c-.77 1.09-1.99 1.77-3.32 1.85v-.2 0c0-1.16.93-2.09 2.08-2.09 .44 0 .88.14 1.24.41Z",transform:"translate(-332.48-564.77)"})),t.createElement("path",{fill:"none",d:"M837.69 539.42l4.23 2.25 -3.3 3.7",transform:"translate(-675.08-434.688)",key:35}),t.createElement("path",{fill:"#FFF",d:"M.35 0a.35.35 0 1 0 0 .71 .35.35 0 1 0 0-.72Z",transform:"translate(185.008 82.789)",key:36})])])}a.defaultProps={viewBox:"0 0 207.762 158.066"},c.exports=a,a.default=a},91946:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("defs",{key:0},t.createElement("style",null,".a{fill:#e5eaee;}.b{fill:#e1f2fc;}.b,.f{stroke:#0083e3;}.c,.f{fill:#0083e3;}.d{fill:#fff;}.e{fill:none;}")),t.createElement("g",{transform:"translate(-1004 -1748.182)",key:1},[t.createElement("ellipse",{className:"a",cx:"91.5",cy:"21.5",rx:"91.5",ry:"21.5",transform:"translate(1004 1818)",key:0}),t.createElement("g",{transform:"translate(0 -38)",key:1},t.createElement("g",{transform:"translate(-1349.994 -1592.818)"},[t.createElement("path",{className:"b",d:"M348.982,304.5a4.479,4.479,0,0,0-4.482,4.475v79.981a2.985,2.985,0,0,0,2.988,2.983H471.514a2.985,2.985,0,0,0,2.988-2.983V308.975a4.479,4.479,0,0,0-4.482-4.475Z",transform:"translate(2035.563 3075)",key:0}),t.createElement("path",{className:"c",d:"M371,409.152H492.632V334H371Z",transform:"translate(2013.782 3050.753)",key:1}),t.createElement("path",{className:"d",d:"M373,410.439H493.919V336H373Z",transform:"translate(2012.138 3049.11)",key:2}),t.createElement("path",{className:"e",d:"M271.875,797.1a14.793,14.793,0,0,1-5.537-1.7c-.151-.073-.258-.125-.338-.16V793H423.961v2.239c-.08.037-.187.087-.338.16a14.6,14.6,0,0,1-5.494,1.7H271.875Z",transform:"translate(2100.083 2673.494)",key:3}),t.createElement("path",{className:"b",d:"M424,792.5H265.5v2.694c.183,0,3.565,1.936,6.153,1.936H417.885c2.57,0,5.927-1.941,6.1-1.941.005,0,.007-.016.007-.016Z",transform:"translate(2100.494 2673.906)",key:4}),t.createElement("path",{className:"c",d:"M266.348,805l-.178.356H423.953l.178-.356Z",transform:"translate(2099.944 2663.631)",key:5}),t.createElement("path",{className:"c",d:"M664.768,793.781H646.735A1.749,1.749,0,0,1,645,792.018V792h21.548v.018a1.749,1.749,0,0,1-1.736,1.763",transform:"translate(1788.577 2674.316)",key:6}),t.createElement("path",{className:"c",d:"M703.417,318.953a.623.623,0,1,1-.623-.623.624.624,0,0,1,.623.623",transform:"translate(1741.588 3063.633)",key:7}),t.createElement("g",{transform:"translate(2424.293 3403.787)",key:8},[t.createElement("circle",{className:"c",cx:"1.817",cy:"1.817",r:"1.817",transform:"translate(4.217 9.117)",key:0}),t.createElement("circle",{className:"c",cx:"1.817",cy:"1.817",r:"1.817",transform:"translate(32.475 9.117)",key:1}),t.createElement("path",{className:"f",d:"M.116,2.313c.255-.49,4.387-4.951,7.662,0,0,.627-.254.874-1.159-.232-.34-.391-2.476-3.24-6.208,1.1C.056,3.166-.139,2.8.116,2.313Z",transform:"matrix(0.839, -0.545, 0.545, 0.839, 0, 4.321)",key:2}),t.createElement("path",{className:"f",d:"M.116,2.313c.255-.49,4.387-4.951,7.662,0,0,.627-.254.874-1.159-.232-.34-.391-2.476-3.24-6.208,1.1C.056,3.166-.139,2.8.116,2.313Z",transform:"translate(33.008 0) rotate(22)",key:3}),t.createElement("path",{className:"c",d:"M10.867,0c6,0,10.867,4.609,10.867,10.294S16.869,6.587,10.867,6.587,0,15.979,0,10.294,4.865,0,10.867,0Z",transform:"translate(10.309 19.787)",key:4})])]))])])}a.defaultProps={viewBox:"0 0 183 112.818"},c.exports=a,a.default=a},58559:(c,e,v)=>{var t=v(99196);function a(c){return t.createElement("svg",c,[t.createElement("g",{key:0},[t.createElement("path",{d:"M635.56 224.66v4.68h-4.46l7 24.47h.11l6.72-24.47h-4.46v-4.68h17.19v4.68h-4.41l6.84 24.47h.11l6.89-24.47h-4.47v-4.68h13.73v4.68h-4.41l-9.32 33.13h-5.34l-8.38-29.6h-.11l-8.32 29.6h-5.18l-9.54-33.13h-4.52v-4.68Z",transform:"translate(-409.3-197)",key:0}),t.createElement("path",{d:"M687.21 235.29v0c7.61-.04 13.8 6.1 13.83 13.71 .03 7.61-6.11 13.8-13.72 13.83 -7.62.03-13.81-6.11-13.84-13.72 -.01-.02-.01-.04-.01-.06v0c-.22-7.4 5.59-13.57 12.98-13.78 .24-.01.48-.01.73-.01ZM679 249.07c0 5.07 3.53 8.82 8.16 8.82 4.63 0 8.21-3.75 8.21-8.82 0-4.9-3.42-8.82-8.27-8.82 -4.68 0-8.1 3.97-8.1 8.82Z",transform:"translate(-409.3-197)",key:1}),t.createElement("path",{d:"M725.19 235.62v5.19h-3c-5.34 0-7.6 3-7.6 9v7.72h5.62v4.52H704.3v-4.52h5.13v-17h-5.24v-4.52h9.32v5.84h.11c1.92-4.91 5.62-6.29 8-6.29Z",transform:"translate(-409.3-197)",key:2}),t.createElement("path",{d:"M753.36 224.66v32.9h4.74v4.52h-9.92v-3.86c-2.54 2.65-5.3 4.3-9.26 4.3 -6.18 0-12.79-4.3-12.79-13.34 0-7.93 5.57-13.89 12.9-13.89v0c3.5.04 6.82 1.56 9.15 4.19v-10.3h-5v-4.52ZM731.64 249c0 5.34 3.36 9 8.21 9 4.85 0 8.33-3.91 8.33-9.2 0-5.13-3.31-8.82-8.44-8.82 -4.74.02-8.1 4.02-8.1 9.02Z",transform:"translate(-409.3-197)",key:3}),t.createElement("path",{d:"M776.18 224.66c7.66 0 12.24 4.3 12.24 11.57 0 3.31-1.27 7-3.86 9 -2.21 1.71-5.35 2.54-9.43 2.54h-5.51v9.65h4.91v4.68h-15.22v-4.7H764v-28.06h-4.69v-4.68Zm-1.6 18.57c5.46 0 8.1-2.2 8.1-7s-3.08-6.84-6.45-6.84h-6.61v13.89Z",transform:"translate(-409.3-197)",key:4}),t.createElement("path",{d:"M812 235.62v5.19h-3c-5.34 0-7.6 3-7.6 9v7.72h5.62v4.52h-15.9v-4.52h5.13v-17H791v-4.52h9.31v5.84h.11c1.93-4.91 5.63-6.29 8.05-6.29Z",transform:"translate(-409.3-197)",key:5}),t.createElement("path",{d:"M825.68 235.29c7.22 0 13.89 5.52 13.89 15.05h-21.88c.71 4.52 3.47 8 8.93 8h-.001c3.33.04 6.47-1.54 8.43-4.24l4.52 2v0c-2.87 4.38-7.83 6.95-13.06 6.78 -8.44 0-14.5-5.73-14.5-13.78v0c-.05-7.58 6.05-13.77 13.62-13.81 .01-.01.02-.01.04-.01Zm-7.83 11.3h16.48l-.001 0c-.81-4.13-4.4-7.12-8.6-7.16 -4.19 0-7.11 2.92-7.88 7.16Z",transform:"translate(-409.3-197)",key:6}),t.createElement("path",{d:"M853 235.62v0c2.2-.01 4.37.5 6.34 1.49v-1h4.52v8.59h-4.52v-1.59 0c-1.29-2.1-3.61-3.32-6.06-3.2 -2.82 0-4.58 1.32-4.58 3.2 0 2.2 2.43 2.64 5.95 3.14 3 .44 6.56 1 8.66 3.25v-.001c1.23 1.42 1.92 3.23 1.93 5.12 0 4.69-4 7.94-10 7.94 -4.52 0-6.78-1.82-6.83-1.87v1.43h-4.58v-8.93h4.58v.81c.44 2.65 2.86 4.19 6.22 4.19 3.2 0 5.35-1.21 5.35-3.25 0-2.48-2.31-2.87-5.9-3.42 -2.75-.44-5.29-1-7.27-2.48v0c-1.87-1.34-2.99-3.49-3-5.78 .06-4.38 3.86-7.64 9.19-7.64Z",transform:"translate(-409.3-197)",key:7}),t.createElement("path",{d:"M878.27 235.62v0c2.19-.01 4.36.5 6.33 1.49v-1h4.52v8.59h-4.52v-1.59 -.001c-1.29-2.1-3.61-3.32-6.06-3.2 -2.81 0-4.57 1.32-4.57 3.2 0 2.2 2.42 2.64 5.95 3.14 3 .44 6.56 1 8.65 3.25v-.001c1.23 1.41 1.92 3.23 1.93 5.12 0 4.69-4 7.94-10 7.94 -4.52 0-6.78-1.82-6.84-1.87v1.43h-4.57v-8.93h4.57v.81c.44 2.65 2.87 4.19 6.23 4.19 3.2 0 5.35-1.21 5.35-3.25 0-2.48-2.32-2.87-5.9-3.42v0c-2.59-.25-5.08-1.1-7.28-2.48v-.001c-1.87-1.34-2.98-3.49-3-5.78 .06-4.38 3.86-7.64 9.21-7.64Z",transform:"translate(-409.3-197)",key:8}),t.createElement("path",{d:"M635.89 275.84v4.69h-4.35l9.53 25.13 9.32-25.13H646v-4.69h14.39v4.69h-4.58l-12.31 33.12h-5.24l-12.51-33.12h-4.63v-4.69Z",transform:"translate(-409.3-197)",key:9}),t.createElement("path",{d:"M667.81 287.25v18.3c0 2.37 1.05 3.64 3.09 3.64v0c2.77-.25 5.39-1.42 7.44-3.31v-14.11h-4.47v-4.52h9.65v21.5H688v4.52h-9.64v-3c-3.14 2.48-6 3.42-8.49 3.42 -4.74 0-7.22-2.7-7.22-7.83v-14.09h-3.69v-4.52Z",transform:"translate(-409.3-197)",key:10}),t.createElement("path",{d:"M699.78 275.84v32.91h4v4.52h-13.92v-4.52h4.74v-28.39H690v-4.52Z",transform:"translate(-409.3-197)",key:11}),t.createElement("path",{d:"M724.75 286.81c4.63 0 6.83 3.31 6.83 7.22v14.72h4.47v4.52h-9.65V296c0-4.13-1.87-4.51-3-4.51 -2 0-4.79 1.15-7.49 3.3v13.95h4.46v4.52h-14.14v-4.52h4.46v-17h-4.57v-4.52h9.76v3.14c3.41-2.45 6.06-3.55 8.87-3.55Z",transform:"translate(-409.3-197)",key:12}),t.createElement("path",{d:"M751.87 286.48c7.22 0 13.89 5.51 13.89 15h-21.88c.71 4.52 3.47 8 8.93 8v0c3.33.04 6.48-1.55 8.43-4.25l4.52 2v0c-2.88 4.38-7.83 6.94-13.06 6.77 -8.44 0-14.5-5.73-14.5-13.78v0c-.02-7.57 6.1-13.72 13.67-13.74Zm-7.87 11.3h16.48v0c-.81-4.13-4.4-7.12-8.6-7.17 -4.14 0-7.07 2.92-7.88 7.17Z",transform:"translate(-409.3-197)",key:13}),t.createElement("path",{d:"M790 286.81V292h-3c-5.35 0-7.61 3-7.61 9v7.72h5.62v4.52h-15.89v-4.52h5.13v-17H769v-4.52h9.32v5.84h.11c1.93-4.9 5.62-6.28 8-6.28Z",transform:"translate(-409.3-197)",key:14}),t.createElement("path",{d:"M803.41 286.48c8.32 0 10.19 4.63 10.19 7.83v14.44h4.47v4.52h-9v-3.2c-2.92 2.48-5.51 3.64-8.38 3.64 -5 0-8.82-3.7-8.82-8.27 0-4.74 4.14-8.43 9.48-8.43v-.001c2.52.06 4.98.82 7.11 2.2v-3.58c0-2.37-1.48-4.85-5.78-4.85h-.001c-2.3-.13-4.46 1.07-5.57 3.09l-4.9-1.33c2.21-4.08 5.96-6.06 11.2-6.06Zm-6.67 19c0 2.48 1.87 4.3 4.68 4.3v0c2.62-.16 5.11-1.25 7-3.09v-3.08 0c-1.9-1.62-4.29-2.54-6.78-2.59 -2.97-.02-4.9 1.98-4.9 4.42Z",transform:"translate(-409.3-197)",key:15}),t.createElement("path",{d:"M829.81 275.84v15.05c2.87-3.09 5.68-4.41 9.48-4.41 7.39 0 12.68 5.62 12.68 13.5s-5.4 13.73-12.73 13.73v0c-3.63.09-7.08-1.52-9.32-4.36h-.11v3.92h-9.75v-4.52h4.63v-28.39h-4.52v-4.52Zm.17 24.47c0 5.07 3.41 8.88 8.15 8.88s8.33-3.92 8.33-9.32c0-6-4.3-8.71-8.27-8.71 -4.96-.001-8.19 3.97-8.19 9.15Z",transform:"translate(-409.3-197)",key:16}),t.createElement("path",{d:"M864.92 287.25v21.5h4.14v4.52h-13.45v-4.52h4.13v-17h-4.13v-4.52Zm-2.7-12v-.001c1.7-.01 3.09 1.37 3.09 3.07 0 1.7-1.38 3.09-3.08 3.09 -1.71 0-3.1-1.38-3.1-3.08 -.01-.01-.01-.01-.01-.01v0c.02-1.69 1.39-3.05 3.08-3.05Z",transform:"translate(-409.3-197)",key:17}),t.createElement("path",{d:"M881.63 275.84v32.91h4v4.52h-13.92v-4.52h4.74v-28.39h-4.63v-4.52Z",transform:"translate(-409.3-197)",key:18}),t.createElement("path",{d:"M897.12 287.25v21.5h4.13v4.52H887.8v-4.52h4.13v-17h-4.13v-4.52Zm-2.7-12v0c1.7 0 3.09 1.38 3.09 3.09 0 1.7-1.39 3.09-3.09 3.09 -1.71 0-3.09-1.39-3.09-3.09h0c.01-1.7 1.39-3.06 3.09-3.05Z",transform:"translate(-409.3-197)",key:19}),t.createElement("path",{d:"M912.77 278.54v8.71h4.79v4.52h-4.79v15.16 0c-.11 1 .62 1.9 1.63 2.01 .15.01.3.01.45-.02v0c.92-.04 1.83-.23 2.7-.55v4.62 0c-1.23.41-2.51.65-3.8.72 -4 0-6.17-2.1-6.17-6v-15.95h-3.36v-4.52h3.36v-4Z",transform:"translate(-409.3-197)",key:20}),t.createElement("path",{d:"M932.56 287.25v4.52h-3.09l5.62 14.39 5.51-14.39h-3.47v-4.52h12.62v4.52h-3.85L933 325h-8.71v-4.52h5.13l3.14-7.61 -8.56-21.1h-4.35v-4.52Z",transform:"translate(-409.3-197)",key:21}),t.createElement("path",{d:"M639.53 327c6 0 11.63 2.48 11.63 9.75 0 4.3-2.2 7.94-7.72 9.37l6.62 13.62h4.57v4.68h-8.1l-8.53-17.5h-5.3v12.85h4.85v4.68H622v-4.68h5.12v-28.06H622V327Zm-.28 15.21c3.59 0 6.18-1.65 6.18-5.46 0-3.14-2.15-5.07-5.73-5.07h-7v10.53Z",transform:"translate(-409.3-197)",key:22}),t.createElement("path",{d:"M670.18 337.67c7.22 0 13.89 5.51 13.89 15h-21.88c.71 4.52 3.47 8 8.93 8v0c3.33.04 6.47-1.54 8.43-4.24l4.52 2 0 0c-2.87 4.39-7.83 6.96-13.07 6.79 -8.44 0-14.5-5.73-14.5-13.78h0c-.04-7.57 6.06-13.74 13.62-13.77 .01-.01.03-.01.05-.01ZM662.35 349h16.48v0c-.81-4.13-4.4-7.12-8.6-7.16 -4.23-.04-7.11 2.88-7.88 7.16Z",transform:"translate(-409.3-197)",key:23}),t.createElement("path",{d:"M705.57 338c7.38 0 12.73 5.62 12.73 13.55 0 7.93-5.62 13.67-12.79 13.67v0c-3.44-.09-6.71-1.53-9.09-4v10.37h5v4.52H686.5v-4.52h4.74V343h-4.36v-4.52h9.54v4.08h.11v0c2.13-2.86 5.47-4.55 9.04-4.56Zm-9.26 13.77c0 5.08 3.41 8.77 8.21 8.77 5 0 8.43-3.75 8.43-9.21 0-5-3.36-8.81-8.21-8.81 -4.85 0-8.43 4.13-8.43 9.25Z",transform:"translate(-409.3-197)",key:24}),t.createElement("path",{d:"M736.38 337.67v0c7.61-.04 13.8 6.1 13.83 13.71 .03 7.61-6.11 13.8-13.72 13.83 -7.62.03-13.81-6.11-13.84-13.72 -.01-.03-.01-.05-.01-.07v0c-.22-7.39 5.59-13.56 12.97-13.77 .24-.01.49-.01.74-.01Zm-8.21 13.77c0 5.07 3.53 8.82 8.16 8.82 4.63 0 8.21-3.75 8.21-8.82 0-4.9-3.42-8.81-8.27-8.81 -4.68 0-8.1 3.96-8.1 8.81Z",transform:"translate(-409.3-197)",key:25}),t.createElement("path",{d:"M774.36 338v5.18h-3c-5.34 0-7.6 3-7.6 9v7.71h5.62v4.52h-15.91v-4.52h5.13V343h-5.24v-4.52h9.31v5.84h.11c1.93-4.91 5.63-6.28 8.05-6.28Z",transform:"translate(-409.3-197)",key:26}),t.createElement("path",{d:"M786.16 329.73v8.71H791V343h-4.79v15.15l0-.001c-.11 1 .62 1.9 1.63 2.01 .15.01.3.01.45-.02v-.001c.92-.05 1.83-.24 2.7-.55v4.63 0c-1.23.41-2.51.65-3.8.71 -4 0-6.18-2.09-6.18-6v-15.94h-3.36v-4.52h3.34v-4Z",transform:"translate(-409.3-197)",key:27})]),t.createElement("g",{fill:"#FDA129",key:1},[t.createElement("path",{d:"M497.36 242.22v0c28.6.27 51.56 23.68 51.28 52.29 -.28 28.6-23.69 51.56-52.3 51.28 -28.61-.28-51.57-23.69-51.29-52.3 0-.01 0-.01 0-.01 0-.32 0-.65 0-1v0c.82-28.21 24.07-50.57 52.29-50.28Zm-12.42 80.46c.24-.54.39-.79.48-1.07q4.95-14.36 9.87-28.71v0c.17-.56.17-1.14 0-1.69 -2.12-6.1-4.31-12.18-6.42-18.28h0c-.17-.72-.85-1.2-1.58-1.12v0c-1.21-.07-2.41-.21-3.59-.4 -1.38-.22-1.84-.83-1.68-2.08v0c.13-.97 1.03-1.64 2-1.5h.09c2.36.16 4.75.43 7.13.46 4.55.06 9.1 0 13.65 0 1.21 0 2.41-.15 3.62-.17h-.001c1-.07 1.87.68 1.94 1.69v.06 0c.03.94-.7 1.74-1.64 1.8 -1.33.16-2.67.29-4 .35 -1.5.07-1.52.05-1.07 1.46q7.78 24 15.59 48v0c.16.42.34.84.56 1.25l.62-1.86c1.78-5.52 3.52-11.06 5.35-16.54v-.001c1.25-3.41 2.1-6.95 2.55-10.54v0c.41-4.09-.37-8.21-2.22-11.86 -1.26-2.5-2.76-4.88-4.06-7.35v0c-1.45-2.35-2.05-5.11-1.7-7.84l0 0c.53-3.31 3.09-5.91 6.38-6.52l1.74-.28v-.001c-18.7-17.6-48.12-16.7-65.71 2 -.4.42-.78.85-1.16 1.28h-.001c-1.42 1.49-2.66 3.15-3.68 4.94 2.69 0 5.12.12 7.58.06 2.69-.07 5.37-.31 8.06-.4v0c.91-.04 1.69.67 1.74 1.59v0c0 .02 0 .06 0 .09h0c.13.88-.49 1.7-1.37 1.83 -.01 0-.01 0-.01 0h-.16c-1.4.17-2.81.3-4.22.37 -1.41.07-1.34.1-1 1.31q2.93 9.06 5.88 18.14 4.91 15.12 9.84 30.24c.1.35.26.7.5 1.32Zm12.8-24.42h-.28c-.36 1-.73 2-1.08 2.95q-6.48 18.26-13 36.49c-.29.82-.19 1.22.71 1.37 3.29.56 6.55 1.39 9.87 1.67v0c5.52.41 11.07-.22 16.36-1.88 1.65-.49 1.65-.51 1.08-2.12q-6.65-18.75-13.27-37.5c-.13-.34-.27-.67-.41-1Zm-22 37.59l.36-.22 -21.52-60.93 -.39.07v0c-10.29 22.85-.78 49.75 21.59 61.08Zm44-1.25v0c22.14-12.2 30.34-39.94 18.4-62.21h0c-.13.16-.19.37-.17.58 -.11 3.15-.06 6.36-.4 9.51v0c-.64 3.95-1.75 7.81-3.33 11.5 -4.13 11.39-8.18 22.84-12.26 34.23 -.71 2-1.43 4.08-2.24 6.38Z",transform:"translate(-409.3-197)",key:0}),t.createElement("path",{d:"M472.66 220.27h48.02v4.31h-48.02Z",transform:"matrix(.01-1 .999.01-140.09 519.81)",key:1}),t.createElement("path",{d:"M463.78 374.2h63.67v4.31h-63.67Z",transform:"matrix(.011-1 .999.011-295.63 670.67)",key:2}),t.createElement("path",{d:"M429.32 278.44h4.31v31.59h-4.31Z",transform:"matrix(.008-1 .999.008-275.77 526.16)",key:3}),t.createElement("path",{d:"M560.64 280.07h4.31v30.85h-4.31Z",transform:"matrix(.008-1 .999.008-146.63 658.86)",key:4}),t.createElement("path",{d:"M495.18 411.2h-.05c-5.62-.06-19.56-10.1-41.43-29.86 -17.18-15.52-33.51-32.08-37.17-37.7 -7.18-11-7.27-107.62-7.22-126.87v-2l1.8-.79 -.001 0c10.12-4.34 20.6-7.81 31.31-10.37l3.73-.92v18.15 0c8.93-2.18 18.01-3.71 27.17-4.6v-18l2.76-.26c7.08-.66 14.25-1 21.32-1s14.25.33 21.32 1l2.76.26v18.48 0c8.62.98 17.16 2.53 25.59 4.62v-18.61l3.74.92v0c10.7 2.56 21.18 6.02 31.31 10.35l1.8.79v2c0 19.51-.6 117.38-8 128.26 -4.19 6.15-22.78 23.67-38.33 37 -22.5 19.36-36.76 29.15-42.41 29.15Zm-79.84-192.43c-.08 44 1.53 114.36 6.24 121.58 3.37 5.15 19.59 21.54 36.17 36.52 24.72 22.33 35.3 28.28 37.44 28.3v0c2.18 0 13-5.77 38.4-27.65 17.11-14.72 33.84-30.82 37.28-35.88 4.84-7.1 6.82-78.27 7-122.88v-.001c-8.06-3.34-16.34-6.11-24.77-8.31v18.75l-3.81-1v0c-10.21-2.76-20.63-4.67-31.14-5.73l-2.71-.28v-18.4 0c-12.01-.97-24.06-.97-36.06 0v18l-2.75.24v-.001c-11.04.91-21.98 2.79-32.68 5.64l-3.8 1v-18.22h-.001c-8.46 2.19-16.75 4.97-24.81 8.32Z",transform:"translate(-409.3-197)",key:5})])])}a.defaultProps={viewBox:"0 0 540.45 214.2"},c.exports=a,a.default=a}}]);
dist/904.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! For license information please see 904.js.LICENSE.txt */
2
+ (globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[904],{83996:(t,e,n)=>{"use strict";n.d(e,{S:()=>o});var r=n(99196);const o=(t,e=100,n=!1)=>{const o=(t=>{const e=r.useRef(t);return r.useEffect((()=>{e.current=t})),e})(t),i=r.useRef(),a=[e,n,o];function s(){i.current&&clearTimeout(i.current),i.current=void 0}function u(){i.current=void 0}return r.useEffect((()=>s),a),r.useCallback((function(){const t=arguments,{current:r}=i;if(void 0===r&&n)return i.current=setTimeout(u,e),o.current.apply(null,t);r&&clearTimeout(r),i.current=setTimeout((()=>{i.current=void 0,o.current.apply(null,t)}),e)}),a)}},86010:(t,e,n)=>{"use strict";function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}function o(){for(var t,e,n=0,o="";n<arguments.length;)(t=arguments[n++])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o}n.r(e),n.d(e,{default:()=>o})},33258:t=>{var e={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};t.exports=function(t,n,r,o){if(!e.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!e[r].hasOwnProperty(n))throw new Error("Cannot convert from "+n+" to "+r);var i=e[r][n]*t;return!1!==o?(o=Math.pow(10,parseInt(o)||5),Math.round(i*o)/o):i}},91077:(t,e,n)=>{"use strict";function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{Z:()=>r})},44355:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>u});var r=n(91077),o=n(29173),i=n(62921);const a=(0,o.Z)(r.Z),s=a.right,u=(a.left,(0,o.Z)(i.Z).center,s)},29173:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(91077);function o(t){let e=t,n=t;function o(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){const i=r+o>>>1;n(t[i],e)<0?r=i+1:o=i}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>(0,r.Z)(t(e),n)}(t)),{left:o,center:function(t,n,r,i){null==r&&(r=0),null==i&&(i=t.length);const a=o(t,n,r,i-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){const i=r+o>>>1;n(t[i],e)>0?o=i:r=i+1}return r}}}},62921:(t,e,n)=>{"use strict";function r(t){return null===t?NaN:+t}function*o(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}n.d(e,{K:()=>o,Z:()=>r})},67614:(t,e,n)=>{"use strict";n.d(e,{G9:()=>s,ZP:()=>a,ly:()=>u});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(t,e,n){var r,o,i,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=s(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)/a}return r&&i.reverse(),i}function s(t,e,n){var a=(e-t)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,s);return s>=0?(u>=r?10:u>=o?5:u>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=o?5:u>=i?2:1)}function u(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/s;return u>=r?s*=10:u>=o?s*=5:u>=i&&(s*=2),e<t?-s:s}},28602:(t,e,n)=>{"use strict";n.d(e,{WU:()=>f,jH:()=>p});var r,o=n(33085),i=n(46196),a=n(38885);function s(t,e){var n=(0,a.V)(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const u={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:a.Z,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>s(100*t,e),r:s,s:function(t,e){var n=(0,a.V)(t,e);if(!n)return t+"";var o=n[0],i=n[1],s=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=o.length;return s===u?o:s>u?o+new Array(s-u+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+(0,a.V)(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function l(t){return t}var c,f,p,h=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];c=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?l:(e=h.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(t.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",c=void 0===t.currency?"":t.currency[1]+"",f=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?l:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(h.call(t.numerals,String)),y=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"−":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function m(t){var e=(t=(0,i.Z)(t)).fill,n=t.align,o=t.sign,l=t.symbol,h=t.zero,m=t.width,b=t.comma,_=t.precision,x=t.trim,w=t.type;"n"===w?(b=!0,w="g"):u[w]||(void 0===_&&(_=12),x=!0,w="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var S="$"===l?s:"#"===l&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",O="$"===l?c:/[%p]/.test(w)?y:"",M=u[w],E=/[defgprs%]/.test(w);function P(t){var i,s,u,l=S,c=O;if("c"===w)c=M(t)+c,t="";else{var y=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:M(Math.abs(t),_),x&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),y&&0==+t&&"+"!==o&&(y=!1),l=(y?"("===o?o:g:"-"===o||"("===o?"":o)+l,c=("s"===w?d[8+r/3]:"")+c+(y&&"("===o?")":""),E)for(i=-1,s=t.length;++i<s;)if(48>(u=t.charCodeAt(i))||u>57){c=(46===u?f+t.slice(i+1):t.slice(i))+c,t=t.slice(0,i);break}}b&&!h&&(t=a(t,1/0));var P=l.length+t.length+c.length,D=P<m?new Array(m-P+1).join(e):"";switch(b&&h&&(t=a(D+t,D.length?m-c.length:1/0),D=""),n){case"<":t=l+t+c+D;break;case"=":t=l+D+t+c;break;case"^":t=D.slice(0,P=D.length>>1)+l+t+c+D.slice(P);break;default:t=D+l+t+c}return p(t)}return _=void 0===_?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),P.toString=function(){return t+""},P}return{format:m,formatPrefix:function(t,e){var n=m(((t=(0,i.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(e)/3))),a=Math.pow(10,-r),s=d[8+r/3];return function(t){return n(a*t)+s}}}}({thousands:",",grouping:[3],currency:["$",""]}),f=c.format,p=c.formatPrefix},33085:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(38885);function o(t){return(t=(0,r.V)(Math.abs(t)))?t[1]:NaN}},38885:(t,e,n)=>{"use strict";function r(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function o(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{V:()=>o,Z:()=>r})},46196:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new i({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function i(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}o.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},73626:(t,e,n)=>{"use strict";function r(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.d(e,{Z:()=>r})},55720:(t,e,n)=>{"use strict";function r(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}n.d(e,{Z:()=>r})},83924:(t,e,n)=>{"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function o(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function i(){}n.d(e,{Z:()=>X});var a=.7,s=1/a,u="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),y=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),g=new RegExp("^hsl\\("+[l,c,c]+"\\)$"),v=new RegExp("^hsla\\("+[l,c,c,l]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function _(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new E(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?S(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?S(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=p.exec(t))?new E(e[1],e[2],e[3],1):(e=h.exec(t))?new E(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?S(e[1],e[2],e[3],e[4]):(e=y.exec(t))?S(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?w(m[t]):"transparent"===t?new E(NaN,NaN,NaN,0):null}function w(t){return new E(t>>16&255,t>>8&255,255&t,1)}function S(t,e,n,r){return r<=0&&(t=e=n=NaN),new E(t,e,n,r)}function O(t){return t instanceof i||(t=x(t)),t?new E((t=t.rgb()).r,t.g,t.b,t.opacity):new E}function M(t,e,n,r){return 1===arguments.length?O(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+j(this.r)+j(this.g)+j(this.b)}function D(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function j(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new T(t,e,n,r)}function C(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=x(t)),!t)return new T;if(t instanceof T)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,l=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=l<.5?a+o:2-a-o,s*=60):u=l>0&&l<1?0:s,new T(s,u,l,t.opacity)}function T(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function N(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function R(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}r(i,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return C(this).formatHsl()},formatRgb:_,toString:_}),r(E,M,o(i,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:D,toString:D})),r(T,(function(t,e,n,r){return 1===arguments.length?C(t):new T(t,e,n,null==r?1:r)}),o(i,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new E(N(t>=240?t-240:t+120,o,r),N(t,o,r),N(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const A=t=>()=>t;function L(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):A(isNaN(t)?e:t)}const z=function t(e){var n=function(t){return 1==(t=+t)?L:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):A(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=M(t)).r,(e=M(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=L(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function I(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=M(e[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=t(i),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=s(t),r+""}}}function U(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=X(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function Z(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}I((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,s=r<e-1?t[r+2]:2*i-o;return R((n-r/e)*e,a,o,i,s)}})),I((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return R((n-r/e)*e,o,i,a,s)}}));var H=n(73626);function F(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=X(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}var W=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,V=new RegExp(W.source,"g");function q(t,e){var n,r,o,i=W.lastIndex=V.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=W.exec(t))&&(r=V.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:(0,H.Z)(n,r)})),i=V.lastIndex;return i<e.length&&(o=e.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Y(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function X(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?A(e):("number"===o?H.Z:"string"===o?(n=x(e))?(e=n,z):q:e instanceof x?z:e instanceof Date?Z:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?U:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?F:H.Z:Y))(t,e)}},11108:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});const r=Math.PI,o=2*r,i=1e-6,a=o-i;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new s}s.prototype=u.prototype={constructor:s,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,o,a){t=+t,e=+e,n=+n,o=+o,a=+a;var s=this._x1,u=this._y1,l=n-t,c=o-e,f=s-t,p=u-e,h=f*f+p*p;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>i)if(Math.abs(p*l-c*f)>i&&a){var d=n-s,y=o-u,g=l*l+c*c,v=d*d+y*y,m=Math.sqrt(g),b=Math.sqrt(h),_=a*Math.tan((r-Math.acos((g+h-v)/(2*m*b)))/2),x=_/b,w=_/m;Math.abs(x-1)>i&&(this._+="L"+(t+x*f)+","+(e+x*p)),this._+="A"+a+","+a+",0,0,"+ +(p*d>f*y)+","+(this._x1=t+w*l)+","+(this._y1=e+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,s,u,l){t=+t,e=+e,l=!!l;var c=(n=+n)*Math.cos(s),f=n*Math.sin(s),p=t+c,h=e+f,d=1^l,y=l?s-u:u-s;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+p+","+h:(Math.abs(this._x1-p)>i||Math.abs(this._y1-h)>i)&&(this._+="L"+p+","+h),n&&(y<0&&(y=y%o+o),y>a?this._+="A"+n+","+n+",0,1,"+d+","+(t-c)+","+(e-f)+"A"+n+","+n+",0,1,"+d+","+(this._x1=p)+","+(this._y1=h):y>i&&(this._+="A"+n+","+n+",0,"+ +(y>=r)+","+d+","+(this._x1=t+n*Math.cos(u))+","+(this._y1=e+n*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const l=u},14860:(t,e,n)=>{"use strict";function r(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}n.d(e,{Z:()=>a,x:()=>u});var o=n(48348),i=n(57603);function a(){var t,e,n=(0,i.Z)().unknown(void 0),s=n.domain,u=n.range,l=0,c=1,f=!1,p=0,h=0,d=.5;function y(){var n=s().length,o=c<l,i=o?c:l,a=o?l:c;t=(a-i)/Math.max(1,n-p+2*h),f&&(t=Math.floor(t)),i+=(a-i-t*(n-p))*d,e=t*(1-p),f&&(i=Math.round(i),e=Math.round(e));var y=r(n).map((function(e){return i+t*e}));return u(o?y.reverse():y)}return delete n.unknown,n.domain=function(t){return arguments.length?(s(t),y()):s()},n.range=function(t){return arguments.length?([l,c]=t,l=+l,c=+c,y()):[l,c]},n.rangeRound=function(t){return[l,c]=t,l=+l,c=+c,f=!0,y()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(f=!!t,y()):f},n.padding=function(t){return arguments.length?(p=Math.min(1,h=+t),y()):p},n.paddingInner=function(t){return arguments.length?(p=Math.min(1,t),y()):p},n.paddingOuter=function(t){return arguments.length?(h=+t,y()):h},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),y()):d},n.copy=function(){return a(s(),[l,c]).round(f).paddingInner(p).paddingOuter(h).align(d)},o.o.apply(y(),arguments)}function s(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return s(e())},t}function u(){return s(a.apply(null,arguments).paddingInner(1))}},17693:(t,e,n)=>{"use strict";n.d(e,{JG:()=>h,ZP:()=>y,yR:()=>l,l4:()=>d});var r=n(44355),o=n(83924),i=n(73626),a=n(55720),s=n(34299),u=[0,1];function l(t){return t}function c(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function f(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=c(o,r),i=n(a,i)):(r=c(r,o),i=n(i,a)),function(t){return i(r(t))}}function p(t,e,n){var o=Math.min(t.length,e.length)-1,i=new Array(o),a=new Array(o),s=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<o;)i[s]=c(t[s],t[s+1]),a[s]=n(e[s],e[s+1]);return function(e){var n=(0,r.ZP)(t,e,1,o)-1;return a[n](i[n](e))}}function h(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function d(){var t,e,n,r,c,h,d=u,y=u,g=o.Z,v=l;function m(){var t,e,n,o=Math.min(d.length,y.length);return v!==l&&(t=d[0],e=d[o-1],t>e&&(n=t,t=e,e=n),v=function(n){return Math.max(t,Math.min(e,n))}),r=o>2?p:f,c=h=null,b}function b(e){return null==e||isNaN(e=+e)?n:(c||(c=r(d.map(t),y,g)))(t(v(e)))}return b.invert=function(n){return v(e((h||(h=r(y,d.map(t),i.Z)))(n)))},b.domain=function(t){return arguments.length?(d=Array.from(t,s.Z),m()):d.slice()},b.range=function(t){return arguments.length?(y=Array.from(t),m()):y.slice()},b.rangeRound=function(t){return y=Array.from(t),g=a.Z,m()},b.clamp=function(t){return arguments.length?(v=!!t||l,m()):v!==l},b.interpolate=function(t){return arguments.length?(g=t,m()):g},b.unknown=function(t){return arguments.length?(n=t,b):n},function(n,r){return t=n,e=r,m()}}function y(){return d()(l,l)}},36695:(t,e,n)=>{"use strict";n.r(e),n.d(e,{scaleBand:()=>r.Z,scaleDiverging:()=>Rn,scaleDivergingLog:()=>An,scaleDivergingPow:()=>zn,scaleDivergingSqrt:()=>In,scaleDivergingSymlog:()=>Ln,scaleIdentity:()=>a,scaleImplicit:()=>O.O,scaleLinear:()=>o.Z,scaleLog:()=>b,scaleOrdinal:()=>O.Z,scalePoint:()=>r.x,scalePow:()=>j,scaleQuantile:()=>W,scaleQuantize:()=>V,scaleRadial:()=>N,scaleSequential:()=>En,scaleSequentialLog:()=>Pn,scaleSequentialPow:()=>jn,scaleSequentialQuantile:()=>Cn,scaleSequentialSqrt:()=>kn,scaleSequentialSymlog:()=>Dn,scaleSqrt:()=>k,scaleSymlog:()=>S,scaleThreshold:()=>q,scaleTime:()=>_n,scaleUtc:()=>xn,tickFormat:()=>Un.Z});var r=n(14860),o=n(50289),i=n(34299);function a(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,i.Z),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return a(t).unknown(e)},t=arguments.length?Array.from(t,i.Z):[0,1],(0,o.Q)(n)}var s=n(67614),u=n(28602);function l(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}var c=n(17693),f=n(48348);function p(t){return Math.log(t)}function h(t){return Math.exp(t)}function d(t){return-Math.log(-t)}function y(t){return-Math.exp(-t)}function g(t){return isFinite(t)?+("1e"+t):t<0?0:t}function v(t){return function(e){return-t(-e)}}function m(t){var e,n,r=t(p,h),o=r.domain,i=10;function a(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(i),n=function(t){return 10===t?g:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(i),o()[0]<0?(e=v(e),n=v(n),t(d,y)):t(p,h),r}return r.base=function(t){return arguments.length?(i=+t,a()):i},r.domain=function(t){return arguments.length?(o(t),a()):o()},r.ticks=function(t){var r,a=o(),u=a[0],l=a[a.length-1];(r=l<u)&&(h=u,u=l,l=h);var c,f,p,h=e(u),d=e(l),y=null==t?10:+t,g=[];if(!(i%1)&&d-h<y){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(f=1,c=n(h);f<i;++f)if(!((p=c*f)<u)){if(p>l)break;g.push(p)}}else for(;h<=d;++h)for(f=i-1,c=n(h);f>=1;--f)if(!((p=c*f)<u)){if(p>l)break;g.push(p)}2*g.length<y&&(g=(0,s.ZP)(u,l,y))}else g=(0,s.ZP)(h,d,Math.min(d-h,y)).map(n);return r?g.reverse():g},r.tickFormat=function(t,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=(0,u.WU)(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,i*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*i<i-.5&&(r*=i),r<=a?o(t):""}},r.nice=function(){return o(l(o(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function b(){var t=m((0,c.l4)()).domain([1,10]);return t.copy=function(){return(0,c.JG)(t,b()).base(t.base())},f.o.apply(t,arguments),t}function _(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function x(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function w(t){var e=1,n=t(_(e),x(e));return n.constant=function(n){return arguments.length?t(_(e=+n),x(e)):e},(0,o.Q)(n)}function S(){var t=w((0,c.l4)());return t.copy=function(){return(0,c.JG)(t,S()).constant(t.constant())},f.o.apply(t,arguments)}var O=n(57603);function M(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function E(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function P(t){return t<0?-t*t:t*t}function D(t){var e=t(c.yR,c.yR),n=1;function r(){return 1===n?t(c.yR,c.yR):.5===n?t(E,P):t(M(n),M(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},(0,o.Q)(e)}function j(){var t=D((0,c.l4)());return t.copy=function(){return(0,c.JG)(t,j()).exponent(t.exponent())},f.o.apply(t,arguments),t}function k(){return j.apply(null,arguments).exponent(.5)}function C(t){return Math.sign(t)*t*t}function T(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function N(){var t,e=(0,c.ZP)(),n=[0,1],r=!1;function a(n){var o=T(e(n));return isNaN(o)?t:r?Math.round(o):o}return a.invert=function(t){return e.invert(C(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain()},a.range=function(t){return arguments.length?(e.range((n=Array.from(t,i.Z)).map(C)),a):n.slice()},a.rangeRound=function(t){return a.range(t).round(!0)},a.round=function(t){return arguments.length?(r=!!t,a):r},a.clamp=function(t){return arguments.length?(e.clamp(t),a):e.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return N(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},f.o.apply(a,arguments),(0,o.Q)(a)}function R(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function A(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}var L=n(91077);function z(t,e,n=0,r=t.length-1,o=L.Z){for(;r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);z(t,e,Math.max(n,Math.floor(e-a*u/i+l)),Math.min(r,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=n,s=r;for(I(t,n,e),o(t[r],i)>0&&I(t,n,r);a<s;){for(I(t,a,s),++a,--s;o(t[a],i)<0;)++a;for(;o(t[s],i)>0;)--s}0===o(t[n],i)?I(t,n,s):(++s,I(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function I(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}var U=n(62921);function Z(t,e,n){if(r=(t=Float64Array.from((0,U.K)(t,n))).length){if((e=+e)<=0||r<2)return A(t);if(e>=1)return R(t);var r,o=(r-1)*e,i=Math.floor(o),a=R(z(t,i).subarray(0,i+1));return a+(A(t.subarray(i+1))-a)*(o-i)}}function H(t,e,n=U.Z){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}var F=n(44355);function W(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=H(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[(0,F.ZP)(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(L.Z),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return W().domain(e).range(n).unknown(t)},f.o.apply(i,arguments)}function V(){var t,e=0,n=1,r=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[(0,F.ZP)(i,e,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return s}return s.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},s.range=function(t){return arguments.length?(r=(a=Array.from(t)).length-1,u()):a.slice()},s.invertExtent=function(t){var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=r?[i[r-1],n]:[i[o-1],i[o]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return V().domain([e,n]).range(a).unknown(t)},f.o.apply((0,o.Q)(s),arguments)}function q(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[(0,F.ZP)(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return q().domain(e).range(n).unknown(t)},f.o.apply(o,arguments)}var Y=n(29173);const X=1e3,B=6e4,G=36e5,$=864e5,J=6048e5,Q=31536e6;var K=new Date,tt=new Date;function et(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return s},o.filter=function(n){return et((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return K.setTime(+e),tt.setTime(+r),t(K),t(tt),Math.floor(n(K,tt))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var nt=et((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));nt.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?et((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):nt:null};const rt=nt;nt.range;var ot=et((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*X)}),(function(t,e){return(e-t)/X}),(function(t){return t.getUTCSeconds()}));const it=ot;ot.range;var at=et((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*X)}),(function(t,e){t.setTime(+t+e*B)}),(function(t,e){return(e-t)/B}),(function(t){return t.getMinutes()}));const st=at;at.range;var ut=et((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*X-t.getMinutes()*B)}),(function(t,e){t.setTime(+t+e*G)}),(function(t,e){return(e-t)/G}),(function(t){return t.getHours()}));const lt=ut;ut.range;var ct=et((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*B)/$),(t=>t.getDate()-1));const ft=ct;function pt(t){return et((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*B)/J}))}ct.range;var ht=pt(0),dt=pt(1),yt=pt(2),gt=pt(3),vt=pt(4),mt=pt(5),bt=pt(6),_t=(ht.range,dt.range,yt.range,gt.range,vt.range,mt.range,bt.range,et((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const xt=_t;_t.range;var wt=et((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));wt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?et((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const St=wt;wt.range;var Ot=et((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*B)}),(function(t,e){return(e-t)/B}),(function(t){return t.getUTCMinutes()}));const Mt=Ot;Ot.range;var Et=et((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*G)}),(function(t,e){return(e-t)/G}),(function(t){return t.getUTCHours()}));const Pt=Et;Et.range;var Dt=et((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/$}),(function(t){return t.getUTCDate()-1}));const jt=Dt;function kt(t){return et((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/J}))}Dt.range;var Ct=kt(0),Tt=kt(1),Nt=kt(2),Rt=kt(3),At=kt(4),Lt=kt(5),zt=kt(6),It=(Ct.range,Tt.range,Nt.range,Rt.range,At.range,Lt.range,zt.range,et((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const Ut=It;It.range;var Zt=et((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Zt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?et((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Ht=Zt;function Ft(t,e,n,r,o,i){const a=[[it,1,X],[it,5,5e3],[it,15,15e3],[it,30,3e4],[i,1,B],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,G],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,$],[r,2,1728e5],[n,1,J],[e,1,2592e6],[e,3,7776e6],[t,1,Q]];function u(e,n,r){const o=Math.abs(n-e)/r,i=(0,Y.Z)((([,,t])=>t)).right(a,o);if(i===a.length)return t.every((0,s.ly)(e/Q,n/Q,r));if(0===i)return rt.every(Math.max((0,s.ly)(e,n,r),1));const[u,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:u(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},u]}Zt.range;const[Wt,Vt]=Ft(Ht,Ut,Ct,jt,Pt,Mt),[qt,Yt]=Ft(St,xt,ht,ft,lt,st);function Xt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Bt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Gt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var $t,Jt,Qt,Kt={"-":"",_:" ",0:"0"},te=/^\s*\d+/,ee=/^%/,ne=/[\\^$*+?|[\]().{}]/g;function re(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function oe(t){return t.replace(ne,"\\$&")}function ie(t){return new RegExp("^(?:"+t.map(oe).join("|")+")","i")}function ae(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function se(t,e,n){var r=te.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ue(t,e,n){var r=te.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function le(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ce(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function fe(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=te.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function he(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function de(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ye(t,e,n){var r=te.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ge(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ve(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function me(t,e,n){var r=te.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function be(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function _e(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function xe(t,e,n){var r=te.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function we(t,e,n){var r=te.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Se(t,e,n){var r=te.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Oe(t,e,n){var r=ee.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Me(t,e,n){var r=te.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=te.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Pe(t,e){return re(t.getDate(),e,2)}function De(t,e){return re(t.getHours(),e,2)}function je(t,e){return re(t.getHours()%12||12,e,2)}function ke(t,e){return re(1+ft.count(St(t),t),e,3)}function Ce(t,e){return re(t.getMilliseconds(),e,3)}function Te(t,e){return Ce(t,e)+"000"}function Ne(t,e){return re(t.getMonth()+1,e,2)}function Re(t,e){return re(t.getMinutes(),e,2)}function Ae(t,e){return re(t.getSeconds(),e,2)}function Le(t){var e=t.getDay();return 0===e?7:e}function ze(t,e){return re(ht.count(St(t)-1,t),e,2)}function Ie(t){var e=t.getDay();return e>=4||0===e?vt(t):vt.ceil(t)}function Ue(t,e){return t=Ie(t),re(vt.count(St(t),t)+(4===St(t).getDay()),e,2)}function Ze(t){return t.getDay()}function He(t,e){return re(dt.count(St(t)-1,t),e,2)}function Fe(t,e){return re(t.getFullYear()%100,e,2)}function We(t,e){return re((t=Ie(t)).getFullYear()%100,e,2)}function Ve(t,e){return re(t.getFullYear()%1e4,e,4)}function qe(t,e){var n=t.getDay();return re((t=n>=4||0===n?vt(t):vt.ceil(t)).getFullYear()%1e4,e,4)}function Ye(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+re(e/60|0,"0",2)+re(e%60,"0",2)}function Xe(t,e){return re(t.getUTCDate(),e,2)}function Be(t,e){return re(t.getUTCHours(),e,2)}function Ge(t,e){return re(t.getUTCHours()%12||12,e,2)}function $e(t,e){return re(1+jt.count(Ht(t),t),e,3)}function Je(t,e){return re(t.getUTCMilliseconds(),e,3)}function Qe(t,e){return Je(t,e)+"000"}function Ke(t,e){return re(t.getUTCMonth()+1,e,2)}function tn(t,e){return re(t.getUTCMinutes(),e,2)}function en(t,e){return re(t.getUTCSeconds(),e,2)}function nn(t){var e=t.getUTCDay();return 0===e?7:e}function rn(t,e){return re(Ct.count(Ht(t)-1,t),e,2)}function on(t){var e=t.getUTCDay();return e>=4||0===e?At(t):At.ceil(t)}function an(t,e){return t=on(t),re(At.count(Ht(t),t)+(4===Ht(t).getUTCDay()),e,2)}function sn(t){return t.getUTCDay()}function un(t,e){return re(Tt.count(Ht(t)-1,t),e,2)}function ln(t,e){return re(t.getUTCFullYear()%100,e,2)}function cn(t,e){return re((t=on(t)).getUTCFullYear()%100,e,2)}function fn(t,e){return re(t.getUTCFullYear()%1e4,e,4)}function pn(t,e){var n=t.getUTCDay();return re((t=n>=4||0===n?At(t):At.ceil(t)).getUTCFullYear()%1e4,e,4)}function hn(){return"+0000"}function dn(){return"%"}function yn(t){return+t}function gn(t){return Math.floor(+t/1e3)}function vn(t){return new Date(t)}function mn(t){return t instanceof Date?+t:+new Date(+t)}function bn(t,e,n,r,o,i,a,s,u,f){var p=(0,c.ZP)(),h=p.invert,d=p.domain,y=f(".%L"),g=f(":%S"),v=f("%I:%M"),m=f("%I %p"),b=f("%a %d"),_=f("%b %d"),x=f("%B"),w=f("%Y");function S(t){return(u(t)<t?y:s(t)<t?g:a(t)<t?v:i(t)<t?m:r(t)<t?o(t)<t?b:_:n(t)<t?x:w)(t)}return p.invert=function(t){return new Date(h(t))},p.domain=function(t){return arguments.length?d(Array.from(t,mn)):d().map(vn)},p.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},p.tickFormat=function(t,e){return null==e?S:f(e)},p.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(l(n,t)):p},p.copy=function(){return(0,c.JG)(p,bn(t,e,n,r,o,i,a,s,u,f))},p}function _n(){return f.o.apply(bn(qt,Yt,St,xt,ht,ft,lt,st,it,Jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xn(){return f.o.apply(bn(Wt,Vt,Ht,Ut,Ct,jt,Pt,Mt,it,Qt).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}$t=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,l=ie(o),c=ae(o),f=ie(i),p=ae(i),h=ie(a),d=ae(a),y=ie(s),g=ae(s),v=ie(u),m=ae(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Pe,e:Pe,f:Te,g:We,G:qe,H:De,I:je,j:ke,L:Ce,m:Ne,M:Re,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:yn,s:gn,S:Ae,u:Le,U:ze,V:Ue,w:Ze,W:He,x:null,X:null,y:Fe,Y:Ve,Z:Ye,"%":dn},_={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Xe,e:Xe,f:Qe,g:cn,G:pn,H:Be,I:Ge,j:$e,L:Je,m:Ke,M:tn,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:yn,s:gn,S:en,u:nn,U:rn,V:an,w:sn,W:un,x:null,X:null,y:ln,Y:fn,Z:hn,"%":dn},x={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return O(t,e,n,r)},d:ve,e:ve,f:Se,g:he,G:pe,H:be,I:be,j:me,L:we,m:ge,M:_e,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:ye,Q:Me,s:Ee,S:xe,u:ue,U:le,V:ce,w:se,W:fe,x:function(t,e,r){return O(t,n,e,r)},X:function(t,e,n){return O(t,r,e,n)},y:he,Y:pe,Z:de,"%":Oe};function w(t,e){return function(n){var r,o,i,a=[],s=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(o=Kt[r=t.charAt(++s)])?r=t.charAt(++s):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function S(t,e){return function(n){var r,o,i=Gt(1900,void 0,1);if(O(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Bt(Gt(i.y,0,1))).getUTCDay(),r=o>4||0===o?Tt.ceil(r):Tt(r),r=jt.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Xt(Gt(i.y,0,1))).getDay(),r=o>4||0===o?dt.ceil(r):dt(r),r=ft.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Bt(Gt(i.y,0,1)).getUTCDay():Xt(Gt(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Bt(i)):Xt(i)}}function O(t,e,n,r){for(var o,i,a=0,s=e.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in Kt?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Jt=$t.format,$t.parse,Qt=$t.utcFormat,$t.utcParse;var wn=n(83924),Sn=n(55720);function On(){var t,e,n,r,o,i=0,a=1,s=c.yR,u=!1;function l(e){return null==e||isNaN(e=+e)?o:s(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function f(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(s=t,l):s},l.range=f(wn.Z),l.rangeRound=f(Sn.Z),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),l}}function Mn(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function En(){var t=(0,o.Q)(On()(c.yR));return t.copy=function(){return Mn(t,En())},f.O.apply(t,arguments)}function Pn(){var t=m(On()).domain([1,10]);return t.copy=function(){return Mn(t,Pn()).base(t.base())},f.O.apply(t,arguments)}function Dn(){var t=w(On());return t.copy=function(){return Mn(t,Dn()).constant(t.constant())},f.O.apply(t,arguments)}function jn(){var t=D(On());return t.copy=function(){return Mn(t,jn()).exponent(t.exponent())},f.O.apply(t,arguments)}function kn(){return jn.apply(null,arguments).exponent(.5)}function Cn(){var t=[],e=c.yR;function n(n){if(null!=n&&!isNaN(n=+n))return e(((0,F.ZP)(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(L.Z),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>Z(t,r/e)))},n.copy=function(){return Cn(e).domain(t)},f.O.apply(n,arguments)}function Tn(t,e){void 0===e&&(e=t,t=wn.Z);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}function Nn(){var t,e,n,r,o,i,a,s=0,u=.5,l=1,f=1,p=c.yR,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(f*t<f*e?r:o),p(h?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,p=Tn(t,[n,r,o]),d):[p(0),p(.5),p(1)]}}return d.domain=function(a){return arguments.length?([s,u,l]=a,t=i(s=+s),e=i(u=+u),n=i(l=+l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),f=e<t?-1:1,d):[s,u,l]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(p=t,d):p},d.range=y(wn.Z),d.rangeRound=y(Sn.Z),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(s),e=a(u),n=a(l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),f=e<t?-1:1,d}}function Rn(){var t=(0,o.Q)(Nn()(c.yR));return t.copy=function(){return Mn(t,Rn())},f.O.apply(t,arguments)}function An(){var t=m(Nn()).domain([.1,1,10]);return t.copy=function(){return Mn(t,An()).base(t.base())},f.O.apply(t,arguments)}function Ln(){var t=w(Nn());return t.copy=function(){return Mn(t,Ln()).constant(t.constant())},f.O.apply(t,arguments)}function zn(){var t=D(Nn());return t.copy=function(){return Mn(t,zn()).exponent(t.exponent())},f.O.apply(t,arguments)}function In(){return zn.apply(null,arguments).exponent(.5)}var Un=n(61250)},48348:(t,e,n)=>{"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{O:()=>o,o:()=>r})},50289:(t,e,n)=>{"use strict";n.d(e,{Q:()=>s,Z:()=>u});var r=n(67614),o=n(17693),i=n(48348),a=n(61250);function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,r.ZP)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return(0,a.Z)(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var o,i,a=e(),s=0,u=a.length-1,l=a[s],c=a[u],f=10;for(c<l&&(i=l,l=c,c=i,i=s,s=u,u=i);f-- >0;){if((i=(0,r.G9)(l,c,n))===o)return a[s]=l,a[u]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}o=i}return t},t}function u(){var t=(0,o.ZP)();return t.copy=function(){return(0,o.JG)(t,u())},i.o.apply(t,arguments),s(t)}},34299:(t,e,n)=>{"use strict";function r(t){return+t}n.d(e,{Z:()=>r})},57603:(t,e,n)=>{"use strict";n.d(e,{O:()=>o,Z:()=>i});var r=n(48348);const o=Symbol("implicit");function i(){var t=new Map,e=[],n=[],a=o;function s(r){var i=r+"",s=t.get(i);if(!s){if(a!==o)return a;t.set(i,s=e.push(r))}return n[(s-1)%n.length]}return s.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const r of n){const n=r+"";t.has(n)||t.set(n,e.push(r))}return s},s.range=function(t){return arguments.length?(n=Array.from(t),s):n.slice()},s.unknown=function(t){return arguments.length?(a=t,s):a},s.copy=function(){return i(e,n).unknown(a)},r.o.apply(s,arguments),s}},61250:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(67614),o=n(33085),i=n(46196),a=n(28602);function s(t,e,n,s){var u,l=(0,r.ly)(t,e,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=s.precision||isNaN(u=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(e)/3)))-(0,o.Z)(Math.abs(t)))}(l,c))||(s.precision=u),(0,a.jH)(s,c);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN(u=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,o.Z)(e)-(0,o.Z)(t))+1}(l,Math.max(Math.abs(t),Math.abs(e))))||(s.precision=u-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(u=function(t){return Math.max(0,-(0,o.Z)(Math.abs(t)))}(l))||(s.precision=u-2*("%"===s.type))}return(0,a.WU)(s)}},37633:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(11108),o=n(5742),i=n(93072),a=n(18143),s=n(25049),u=n(78260);function l(t,e,n){var l=null,c=(0,i.Z)(!0),f=null,p=a.Z,h=null;function d(i){var a,s,u,d,y,g=(i=(0,o.Z)(i)).length,v=!1,m=new Array(g),b=new Array(g);for(null==f&&(h=p(y=(0,r.Z)())),a=0;a<=g;++a){if(!(a<g&&c(d=i[a],a,i))===v)if(v=!v)s=a,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),u=a-1;u>=s;--u)h.point(m[u],b[u]);h.lineEnd(),h.areaEnd()}v&&(m[a]=+t(d,a,i),b[a]=+e(d,a,i),h.point(l?+l(d,a,i):m[a],n?+n(d,a,i):b[a]))}if(y)return h=null,y+""||null}function y(){return(0,s.Z)().defined(c).curve(p).context(f)}return t="function"==typeof t?t:void 0===t?u.x:(0,i.Z)(+t),e="function"==typeof e?e:void 0===e?(0,i.Z)(0):(0,i.Z)(+e),n="function"==typeof n?n:void 0===n?u.y:(0,i.Z)(+n),d.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.Z)(+e),l=null,d):t},d.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.Z)(+e),d):t},d.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,i.Z)(+t),d):l},d.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),n=null,d):e},d.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),d):e},d.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,i.Z)(+t),d):n},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(n)},d.lineX1=function(){return y().x(l).y(e)},d.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,i.Z)(!!t),d):c},d.curve=function(t){return arguments.length?(p=t,null!=f&&(h=p(f)),d):p},d.context=function(t){return arguments.length?(null==t?f=h=null:h=p(f=t),d):f},d}},5742:(t,e,n)=>{"use strict";function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{Z:()=>r}),Array.prototype.slice},93072:(t,e,n)=>{"use strict";function r(t){return function(){return t}}n.d(e,{Z:()=>r})},67829:(t,e,n)=>{"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function o(t){this._context=t}function i(t){return new o(t)}n.d(e,{ZP:()=>i,xm:()=>r}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},79938:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(33046),o=n(67829);function i(t){this._context=t}function a(t){return new i(t)}i.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:(0,o.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},99717:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(67829);function o(t){this._context=t}function i(t){return new o(t)}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,o):this._context.moveTo(n,o);break;case 3:this._point=4;default:(0,r.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},18143:(t,e,n)=>{"use strict";function r(t){this._context=t}function o(t){return new r(t)}n.d(e,{Z:()=>o}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},57481:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(33046);function o(t){this._context=t}function i(t){return new o(t)}o.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}}},65165:(t,e,n)=>{"use strict";function r(t){return t<0?-1:1}function o(t,e,n){var o=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(o||i<0&&-0),s=(n-t._y1)/(i||o<0&&-0),u=(a*i+s*o)/(o+i);return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function i(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function a(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,s=(i-r)/3;t._context.bezierCurveTo(r+s,o+s*e,i-s,a-s*n,i,a)}function s(t){this._context=t}function u(t){this._context=new l(t)}function l(t){this._context=t}function c(t){return new s(t)}function f(t){return new u(t)}n.d(e,{Z:()=>c,s:()=>f}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,a(this,i(this,n=o(this,t,e)),n);break;default:a(this,this._t0,n=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(u.prototype=Object.create(s.prototype)).point=function(t,e){s.prototype.point.call(this,e,t)},l.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}}},56732:(t,e,n)=>{"use strict";function r(t){this._context=t}function o(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function i(t){return new r(t)}n.d(e,{Z:()=>i}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=o(t),i=o(e),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}}},77059:(t,e,n)=>{"use strict";function r(t,e){this._context=t,this._t=e}function o(t){return new r(t,.5)}function i(t){return new r(t,0)}function a(t){return new r(t,1)}n.d(e,{RN:()=>i,ZP:()=>o,cD:()=>a}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}}},25049:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(11108),o=n(5742),i=n(93072),a=n(18143),s=n(78260);function u(t,e){var n=(0,i.Z)(!0),u=null,l=a.Z,c=null;function f(i){var a,s,f,p=(i=(0,o.Z)(i)).length,h=!1;for(null==u&&(c=l(f=(0,r.Z)())),a=0;a<=p;++a)!(a<p&&n(s=i[a],a,i))===h&&((h=!h)?c.lineStart():c.lineEnd()),h&&c.point(+t(s,a,i),+e(s,a,i));if(f)return c=null,f+""||null}return t="function"==typeof t?t:void 0===t?s.x:(0,i.Z)(t),e="function"==typeof e?e:void 0===e?s.y:(0,i.Z)(e),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.Z)(+e),f):t},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),f):e},f.defined=function(t){return arguments.length?(n="function"==typeof t?t:(0,i.Z)(!!t),f):n},f.curve=function(t){return arguments.length?(l=t,null!=u&&(c=l(u)),f):l},f.context=function(t){return arguments.length?(null==t?u=c=null:c=l(u=t),f):u},f}},44915:(t,e,n)=>{"use strict";n.d(e,{BZ:()=>o,pi:()=>r}),Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt;var r=Math.PI,o=2*r},33046:(t,e,n)=>{"use strict";function r(){}n.d(e,{Z:()=>r})},57854:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(29766);function o(t,e){if((o=t.length)>0){for(var n,o,i,a=0,s=t[0].length;a<s;++a){for(i=n=0;n<o;++n)i+=t[n][a][1]||0;if(i)for(n=0;n<o;++n)t[n][a][1]/=i}(0,r.Z)(t,e)}}},29766:(t,e,n)=>{"use strict";function r(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],s=a.length;i<o;++i)for(r=a,a=t[e[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}n.d(e,{Z:()=>r})},33585:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(29766);function o(t,e){if((n=t.length)>0){for(var n,o=0,i=t[e[0]],a=i.length;o<a;++o){for(var s=0,u=0;s<n;++s)u+=t[s][o][1]||0;i[o][1]+=i[o][0]=-u/2}(0,r.Z)(t,e)}}},22352:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(29766);function o(t,e){if((i=t.length)>0&&(o=(n=t[e[0]]).length)>0){for(var n,o,i,a=0,s=1;s<o;++s){for(var u=0,l=0,c=0;u<i;++u){for(var f=t[e[u]],p=f[s][1]||0,h=(p-(f[s-1][1]||0))/2,d=0;d<u;++d){var y=t[e[d]];h+=(y[s][1]||0)-(y[s-1][1]||0)}l+=p,c+=h*p}n[s-1][1]+=n[s-1][0]=a,l&&(a-=c/l)}n[s-1][1]+=n[s-1][0]=a,(0,r.Z)(t,e)}}},69681:(t,e,n)=>{"use strict";function r(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}n.d(e,{Z:()=>r})},78260:(t,e,n)=>{"use strict";function r(t){return t[0]}function o(t){return t[1]}n.d(e,{x:()=>r,y:()=>o})},10098:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(5742),o=n(93072),i=n(29766),a=n(69681);function s(t,e){return t[e]}function u(t){const e=[];return e.key=t,e}function l(){var t=(0,o.Z)([]),e=a.Z,n=i.Z,l=s;function c(o){var i,a,s=Array.from(t.apply(this,arguments),u),c=s.length,f=-1;for(const t of o)for(i=0,++f;i<c;++i)(s[i][f]=[0,+l(t,s[i].key,f,o)]).data=t;for(i=0,a=(0,r.Z)(e(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return c.keys=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.Z)(Array.from(e)),c):t},c.value=function(t){return arguments.length?(l="function"==typeof t?t:(0,o.Z)(+t),c):l},c.order=function(t){return arguments.length?(e=null==t?a.Z:"function"==typeof t?t:(0,o.Z)(Array.from(t)),c):e},c.offset=function(t){return arguments.length?(n=null==t?i.Z:t,c):n},c}},77553:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(11108),o=n(33727),i=n(33171),a=n(77539),s=n(62490),u=n(80840),l=n(64458),c=n(97987),f=n(93072);function p(t,e){var n=null;function i(){var o;if(n||(n=o=(0,r.Z)()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return t="function"==typeof t?t:(0,f.Z)(t||o.Z),e="function"==typeof e?e:(0,f.Z)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,f.Z)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,f.Z)(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i}o.Z,i.Z,a.Z,u.Z,s.Z,l.Z,c.Z},33727:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(44915);const o={draw:function(t,e){var n=Math.sqrt(e/r.pi);t.moveTo(n,0),t.arc(0,0,n,0,r.BZ)}}},33171:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},77539:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Math.sqrt(1/3),o=2*r;const i={draw:function(t,e){var n=Math.sqrt(e/o),i=n*r;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}}},80840:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},62490:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(44915),o=Math.sin(r.pi/10)/Math.sin(7*r.pi/10),i=Math.sin(r.BZ/10)*o,a=-Math.cos(r.BZ/10)*o;const s={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),o=i*n,s=a*n;t.moveTo(0,-n),t.lineTo(o,s);for(var u=1;u<5;++u){var l=r.BZ*u/5,c=Math.cos(l),f=Math.sin(l);t.lineTo(f*n,-c*n),t.lineTo(c*o-f*s,f*o+c*s)}t.closePath()}}},64458:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=Math.sqrt(3);const o={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},97987:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=-.5,o=Math.sqrt(3)/2,i=1/Math.sqrt(12),a=3*(i/2+1);const s={draw:function(t,e){var n=Math.sqrt(e/a),s=n/2,u=n*i,l=s,c=n*i+n,f=-l,p=c;t.moveTo(s,u),t.lineTo(l,c),t.lineTo(f,p),t.lineTo(r*s-o*u,o*s+r*u),t.lineTo(r*l-o*c,o*l+r*c),t.lineTo(r*f-o*p,o*f+r*p),t.lineTo(r*s+o*u,r*u-o*s),t.lineTo(r*l+o*c,r*c-o*l),t.lineTo(r*f+o*p,r*p-o*f),t.closePath()}}},29887:function(t,e,n){var r;!function(o){"use strict";var i,a=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,l="[DecimalError] ",c=l+"Invalid argument: ",f=l+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,g=p(1286742750677284.5),v={};function m(t,e){var n,r,o,i,a,s,l,c,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?D(e,p):e;if(l=t.d,c=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),i>(s=(a=Math.ceil(p/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=l.length)-(i=c.length)<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/y|0,l[i]%=y;for(n&&(l.unshift(n),++o),s=l.length;0==l[--s];)l.pop();return e.d=l,e.e=o,u?D(e,p):e}function b(t,e,n){if(t!==~~t||t<e||t>n)throw Error(c+t)}function _(t){var e,n,r,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(n=7-(r=t[e]+"").length)&&(i+=M(n)),i+=r;(n=7-(r=(a=t[e])+"").length)&&(i+=M(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}v.absoluteValue=v.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},v.comparedTo=v.cmp=function(t){var e,n,r,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,n=(r=i.d.length)<(o=t.d.length)?r:o;e<n;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(t){return x(this,new this.constructor(t))},v.dividedToIntegerBy=v.idiv=function(t){var e=this.constructor;return D(x(this,new e(t),0,1),e.precision)},v.equals=v.eq=function(t){return!this.cmp(t)},v.exponent=function(){return S(this)},v.greaterThan=v.gt=function(t){return this.cmp(t)>0},v.greaterThanOrEqualTo=v.gte=function(t){return this.cmp(t)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(t){return this.cmp(t)<0},v.lessThanOrEqualTo=v.lte=function(t){return this.cmp(t)<1},v.logarithm=v.log=function(t){var e,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(u=!1,e=x(E(n,a),E(t,a),a),u=!0,D(e,o))},v.minus=v.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?j(e,t):m(e,(t.s=-t.s,t))},v.modulo=v.mod=function(t){var e,n=this,r=n.constructor,o=r.precision;if(!(t=new r(t)).s)throw Error(l+"NaN");return n.s?(u=!1,e=x(n,t,0,1).times(t),u=!0,n.minus(e)):D(new r(n),o)},v.naturalExponential=v.exp=function(){return w(this)},v.naturalLogarithm=v.ln=function(){return E(this)},v.negated=v.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},v.plus=v.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?m(e,t):j(e,(t.s=-t.s,t))},v.precision=v.sd=function(t){var e,n,r,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(c+t);if(e=S(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},v.squareRoot=v.sqrt=function(){var t,e,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(l+"NaN")}for(t=S(s),u=!1,0==(o=Math.sqrt(+s))||o==1/0?(((e=_(s.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),r=new c(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(x(s,i,a+2)).times(.5),_(i.d).slice(0,a)===(e=_(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(D(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=e)break;a+=4}return u=!0,D(r,n)},v.times=v.mul=function(t){var e,n,r,o,i,a,s,l,c,f=this,p=f.constructor,h=f.d,d=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,n=f.e+t.e,(l=h.length)<(c=d.length)&&(i=h,h=d,d=i,a=l,l=c,c=a),i=[],r=a=l+c;r--;)i.push(0);for(r=c;--r>=0;){for(e=0,o=l+r;o>r;)s=i[o]+d[r]*h[o-r-1]+e,i[o--]=s%y|0,e=s/y|0;i[o]=(i[o]+e)%y|0}for(;!i[--a];)i.pop();return e?++n:i.shift(),t.d=i,t.e=n,u?D(t,p.precision):t},v.toDecimalPlaces=v.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(b(t,0,a),void 0===e?e=r.rounding:b(e,0,8),D(n,t+S(n)+1,e))},v.toExponential=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=k(r,!0):(b(t,0,a),void 0===e?e=o.rounding:b(e,0,8),n=k(r=D(new o(r),t+1,e),!0,t+1)),n},v.toFixed=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?k(o):(b(t,0,a),void 0===e?e=i.rounding:b(e,0,8),n=k((r=D(new i(o),t+S(o)+1,e)).abs(),!1,t+S(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var t=this,e=t.constructor;return D(new e(t),S(t)+1,e.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(t){var e,n,r,o,a,s,c=this,f=c.constructor,h=+(t=new f(t));if(!t.s)return new f(i);if(!(c=new f(c)).s){if(t.s<1)throw Error(l+"Infinity");return c}if(c.eq(i))return c;if(r=f.precision,t.eq(i))return D(c,r);if(s=(e=t.e)>=(n=t.d.length-1),a=c.s,s){if((n=h<0?-h:h)<=9007199254740991){for(o=new f(i),e=Math.ceil(r/7+4),u=!1;n%2&&C((o=o.times(c)).d,e),0!==(n=p(n/2));)C((c=c.times(c)).d,e);return u=!0,t.s<0?new f(i).div(o):D(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,c.s=1,u=!1,o=t.times(E(c,r+12)),u=!0,(o=w(o)).s=a,o},v.toPrecision=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?r=k(o,(n=S(o))<=i.toExpNeg||n>=i.toExpPos):(b(t,1,a),void 0===e?e=i.rounding:b(e,0,8),r=k(o=D(new i(o),t,e),t<=(n=S(o))||n<=i.toExpNeg,t)),r},v.toSignificantDigits=v.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(b(t,1,a),void 0===e?e=n.rounding:b(e,0,8)),D(new n(this),t,e)},v.toString=v.valueOf=v.val=v.toJSON=function(){var t=this,e=S(t),n=t.constructor;return k(t,e<=n.toExpNeg||e>=n.toExpPos)};var x=function(){function t(t,e){var n,r=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+r,t[o]=n%y|0,r=n/y|0;return r&&t.unshift(r),t}function e(t,e,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*y+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,o,i,a){var s,u,c,f,p,h,d,g,v,m,b,_,x,w,O,M,E,P,j=r.constructor,k=r.s==o.s?1:-1,C=r.d,T=o.d;if(!r.s)return new j(r);if(!o.s)throw Error(l+"Division by zero");for(u=r.e-o.e,E=T.length,O=C.length,g=(d=new j(k)).d=[],c=0;T[c]==(C[c]||0);)++c;if(T[c]>(C[c]||0)&&--u,(_=null==i?i=j.precision:a?i+(S(r)-S(o))+1:i)<0)return new j(0);if(_=_/7+2|0,c=0,1==E)for(f=0,T=T[0],_++;(c<O||f)&&_--;c++)x=f*y+(C[c]||0),g[c]=x/T|0,f=x%T|0;else{for((f=y/(T[0]+1)|0)>1&&(T=t(T,f),C=t(C,f),E=T.length,O=C.length),w=E,m=(v=C.slice(0,E)).length;m<E;)v[m++]=0;(P=T.slice()).unshift(0),M=T[0],T[1]>=y/2&&++M;do{f=0,(s=e(T,v,E,m))<0?(b=v[0],E!=m&&(b=b*y+(v[1]||0)),(f=b/M|0)>1?(f>=y&&(f=y-1),1==(s=e(p=t(T,f),v,h=p.length,m=v.length))&&(f--,n(p,E<h?P:T,h))):(0==f&&(s=f=1),p=T.slice()),(h=p.length)<m&&p.unshift(0),n(v,p,m),-1==s&&(s=e(T,v,E,m=v.length))<1&&(f++,n(v,E<m?P:T,m)),m=v.length):0===s&&(f++,v=[0]),g[c++]=f,s&&v[0]?v[m++]=C[w]||0:(v=[C[w]],m=1)}while((w++<O||void 0!==v[0])&&_--)}return g[0]||g.shift(),d.e=u,D(d,a?i+S(d)+1:i)}}();function w(t,e){var n,r,o,a,s,l=0,c=0,p=t.constructor,d=p.precision;if(S(t)>16)throw Error(f+S(t));if(!t.s)return new p(i);for(null==e?(u=!1,s=d):s=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),c+=5;for(s+=Math.log(h(2,c))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=s;;){if(r=D(r.times(t),s),n=n.times(++l),_((a=o.plus(x(r,n,s))).d).slice(0,s)===_(o.d).slice(0,s)){for(;c--;)o=D(o.times(o),s);return p.precision=d,null==e?(u=!0,D(o,d)):o}o=a}}function S(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function O(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(l+"LN10 precision limit exceeded");return D(new t(t.LN10),e)}function M(t){for(var e="";t--;)e+="0";return e}function E(t,e){var n,r,o,a,s,c,f,p,h,d=1,y=t,g=y.d,v=y.constructor,m=v.precision;if(y.s<1)throw Error(l+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new v(0);if(null==e?(u=!1,p=m):p=e,y.eq(10))return null==e&&(u=!0),O(v,p);if(p+=10,v.precision=p,r=(n=_(g)).charAt(0),a=S(y),!(Math.abs(a)<15e14))return f=O(v,p+2,m).times(a+""),y=E(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=m,null==e?(u=!0,D(y,m)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=_((y=y.times(t)).d)).charAt(0),d++;for(a=S(y),r>1?(y=new v("0."+n),a++):y=new v(r+"."+n.slice(1)),c=s=y=x(y.minus(i),y.plus(i),p),h=D(y.times(y),p),o=3;;){if(s=D(s.times(h),p),_((f=c.plus(x(s,new v(o),p))).d).slice(0,p)===_(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(O(v,p+2,m).times(a+""))),c=x(c,new v(d),p),v.precision=m,null==e?(u=!0,D(c,m)):c;c=f,o+=2}}function P(t,e){var n,r,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(r,o)){if(o-=r,n=n-r-1,t.e=p(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&t.d.push(+e.slice(0,r)),o-=7;r<o;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=o;for(;r--;)e+="0";if(t.d.push(+e),u&&(t.e>g||t.e<-g))throw Error(f+n)}else t.s=0,t.e=0,t.d=[0];return t}function D(t,e,n){var r,o,i,a,s,l,c,d,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((r=e-a)<0)r+=7,o=e,c=v[d=0];else{if((d=Math.ceil((r+1)/7))>=(i=v.length))return t;for(c=i=v[d],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=c/(i=h(10,a-o-1))%10|0,l=e<0||void 0!==v[d+1]||c%i,l=n<4?(s||l)&&(0==n||n==(t.s<0?3:2)):s>5||5==s&&(4==n||l||6==n&&(r>0?o>0?c/h(10,a-o):0:v[d-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return l?(i=S(t),v.length=1,e=e-i-1,v[0]=h(10,(7-e%7)%7),t.e=p(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=d,i=1,d--):(v.length=d+1,i=h(10,7-r),v[d]=o>0?(c/h(10,a-o)%h(10,o)|0)*i:0),l)for(;;){if(0==d){(v[0]+=i)==y&&(v[0]=1,++t.e);break}if(v[d]+=i,v[d]!=y)break;v[d--]=0,i=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(t.e>g||t.e<-g))throw Error(f+S(t));return t}function j(t,e){var n,r,o,i,a,s,l,c,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?D(e,d):e;if(l=t.d,p=e.d,r=e.e,c=t.e,l=l.slice(),a=c-r){for((f=a<0)?(n=l,a=-a,s=p.length):(n=p,r=c,s=l.length),a>(o=Math.max(Math.ceil(d/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=l.length)<(s=p.length))&&(s=o),o=0;o<s;o++)if(l[o]!=p[o]){f=l[o]<p[o];break}a=0}for(f&&(n=l,l=p,p=n,e.s=-e.s),s=l.length,o=p.length-s;o>0;--o)l[s++]=0;for(o=p.length;o>a;){if(l[--o]<p[o]){for(i=o;i&&0===l[--i];)l[i]=y-1;--l[i],l[o]+=y}l[o]-=p[o]}for(;0===l[--s];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(e.d=l,e.e=r,u?D(e,d):e):new h(0)}function k(t,e,n){var r,o=S(t),i=_(t.d),a=i.length;return e?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+M(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+M(-o-1)+i,n&&(r=n-a)>0&&(i+=M(r))):o>=a?(i+=M(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+M(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=M(r))),t.s<0?"-"+i:i}function C(t,e){if(t.length>e)return t.length=e,!0}function T(t){if(!t||"object"!=typeof t)throw Error(l+"Object expected");var e,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(r=t[n=o[e]])){if(!(p(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(s=function t(e){var n,r,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(c+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):P(e,t.toString())}if("string"!=typeof t)throw Error(c+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(c+t);P(e,t)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=T,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)e.hasOwnProperty(r=o[n++])||(e[r]=this[r]);return i.config(e),i}(s)).default=s.Decimal=s,i=new s(1),void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()},98141:(t,e,n)=>{"use strict";var r=n(64836);e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var o=r(n(90404));t.exports=e.default},90404:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},10602:t=>{"use strict";function e(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,n){t.classList?t.classList.remove(n):"string"==typeof t.className?t.className=e(t.className,n):t.setAttribute("class",e(t.className&&t.className.baseVal||"",n))}},26729:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,o),!0;case 5:return c.fn.call(c.context,e,r,o,i),!0;case 6:return c.fn.call(c.context,e,r,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var p,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,r);break;case 4:c[l].fn.call(c[l].context,e,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];c[l].fn.apply(c[l].context,u)}}return!0},s.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||o&&!s[u].once||r&&s[u].context!==r)&&l.push(s[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s},58367:function(t,e){!function(t){"use strict";var e="function"==typeof WeakSet,n=Object.keys;function r(t,e){return t===e||t!=t&&e!=e}function o(t){return t.constructor===Object||null==t.constructor}function i(t){return!!t&&"function"==typeof t.then}function a(t){return!(!t||!t.$$typeof)}var s=e?function(){return new WeakSet}:function(){var t=[];return{add:function(e){t.push(e)},has:function(e){return-1!==t.indexOf(e)}}};function u(t){return function(e){var n=t||e;return function(t,e,r){void 0===r&&(r=s());var o=!!t&&"object"==typeof t,i=!!e&&"object"==typeof e;if(o||i){var a=o&&r.has(t),u=i&&r.has(e);if(a||u)return a&&u;o&&r.add(t),i&&r.add(e)}return n(t,e,r)}}}var l=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function c(t,e,r,o){var i=n(t),s=i.length;if(n(e).length!==s)return!1;if(s)for(var u=void 0;s-- >0;){if("_owner"===(u=i[s])){var c=a(t),f=a(e);if((c||f)&&c!==f)return!1}if(!l(e,u)||!r(t[u],e[u],o))return!1}return!0}var f="function"==typeof Map,p="function"==typeof Set;function h(t){var e="function"==typeof t?t(n):n;function n(t,n,a){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(o(t)&&o(n))return c(t,n,e,a);var s=Array.isArray(t),u=Array.isArray(n);return s||u?s===u&&function(t,e,n,r){var o=t.length;if(e.length!==o)return!1;for(;o-- >0;)if(!n(t[o],e[o],r))return!1;return!0}(t,n,e,a):(s=t instanceof Date,u=n instanceof Date,s||u?s===u&&r(t.getTime(),n.getTime()):(s=t instanceof RegExp,u=n instanceof RegExp,s||u?s===u&&function(t,e){return t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.unicode===e.unicode&&t.sticky===e.sticky&&t.lastIndex===e.lastIndex}(t,n):i(t)||i(n)?t===n:f&&(s=t instanceof Map,u=n instanceof Map,s||u)?s===u&&function(t,e,n,r){var o=t.size===e.size;if(o&&t.size){var i={};t.forEach((function(t,a){if(o){var s=!1,u=0;e.forEach((function(e,o){s||i[u]||(s=n(a,o,r)&&n(t,e,r))&&(i[u]=!0),u++})),o=s}}))}return o}(t,n,e,a):p&&(s=t instanceof Set,u=n instanceof Set,s||u)?s===u&&function(t,e,n,r){var o=t.size===e.size;if(o&&t.size){var i={};t.forEach((function(t){if(o){var a=!1,s=0;e.forEach((function(e){a||i[s]||(a=n(t,e,r))&&(i[s]=!0),s++})),o=a}}))}return o}(t,n,e,a):c(t,n,e,a)))}return t!=t&&n!=n}return n}var d=h(),y=h((function(){return r})),g=h(u()),v=h(u(r));t.circularDeepEqual=g,t.circularShallowEqual=v,t.createCustomEqual=h,t.deepEqual=d,t.sameValueZeroEqual=r,t.shallowEqual=y,Object.defineProperty(t,"__esModule",{value:!0})}(e)},72307:(t,e,n)=>{t=n.nmd(t);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",p="[object Number]",h="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",x=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[a]=S[b]=S[s]=S[_]=S[u]=S[l]=S[c]=S[f]=S[p]=S[h]=S[y]=S[g]=S[v]=S[m]=!1;var O="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,M="object"==typeof self&&self&&self.Object===Object&&self,E=O||M||Function("return this")(),P=e&&!e.nodeType&&e,D=P&&t&&!t.nodeType&&t,j=D&&D.exports===P,k=j&&O.process,C=function(){try{return k&&k.binding&&k.binding("util")}catch(t){}}(),T=C&&C.isTypedArray;function N(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function R(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function A(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var L,z,I,U=Array.prototype,Z=Function.prototype,H=Object.prototype,F=E["__core-js_shared__"],W=Z.toString,V=H.hasOwnProperty,q=(L=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",Y=H.toString,X=RegExp("^"+W.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=j?E.Buffer:void 0,G=E.Symbol,$=E.Uint8Array,J=H.propertyIsEnumerable,Q=U.splice,K=G?G.toStringTag:void 0,tt=Object.getOwnPropertySymbols,et=B?B.isBuffer:void 0,nt=(z=Object.keys,I=Object,function(t){return z(I(t))}),rt=Dt(E,"DataView"),ot=Dt(E,"Map"),it=Dt(E,"Promise"),at=Dt(E,"Set"),st=Dt(E,"WeakMap"),ut=Dt(Object,"create"),lt=Tt(rt),ct=Tt(ot),ft=Tt(it),pt=Tt(at),ht=Tt(st),dt=G?G.prototype:void 0,yt=dt?dt.valueOf:void 0;function gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function bt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new mt;++e<n;)this.add(t[e])}function _t(t){var e=this.__data__=new vt(t);this.size=e.size}function xt(t,e){for(var n=t.length;n--;)if(Nt(t[n][0],e))return n;return-1}function wt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":K&&K in Object(t)?function(t){var e=V.call(t,K),n=t[K];try{t[K]=void 0;var r=!0}catch(t){}var o=Y.call(t);return r&&(e?t[K]=n:delete t[K]),o}(t):function(t){return Y.call(t)}(t)}function St(t){return Zt(t)&&wt(t)==i}function Ot(t,e,n,r,o){return t===e||(null==t||null==e||!Zt(t)&&!Zt(e)?t!=t&&e!=e:function(t,e,n,r,o,c){var d=At(t),m=At(e),x=d?a:kt(t),w=m?a:kt(e),S=(x=x==i?h:x)==h,O=(w=w==i?h:w)==h,M=x==w;if(M&&Lt(t)){if(!Lt(e))return!1;d=!0,S=!1}if(M&&!S)return c||(c=new _t),d||Ht(t)?Mt(t,e,n,r,o,c):function(t,e,n,r,o,i,a){switch(n){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!i(new $(t),new $(e)));case s:case u:case p:return Nt(+t,+e);case l:return t.name==e.name&&t.message==e.message;case y:case v:return t==e+"";case f:var c=R;case g:var h=1&r;if(c||(c=A),t.size!=e.size&&!h)return!1;var d=a.get(t);if(d)return d==e;r|=2,a.set(t,e);var m=Mt(c(t),c(e),r,o,i,a);return a.delete(t),m;case"[object Symbol]":if(yt)return yt.call(t)==yt.call(e)}return!1}(t,e,x,n,r,o,c);if(!(1&n)){var E=S&&V.call(t,"__wrapped__"),P=O&&V.call(e,"__wrapped__");if(E||P){var D=E?t.value():t,j=P?e.value():e;return c||(c=new _t),o(D,j,n,r,c)}}return!!M&&(c||(c=new _t),function(t,e,n,r,o,i){var a=1&n,s=Et(t),u=s.length;if(u!=Et(e).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in e:V.call(e,c)))return!1}var f=i.get(t);if(f&&i.get(e))return f==e;var p=!0;i.set(t,e),i.set(e,t);for(var h=a;++l<u;){var d=t[c=s[l]],y=e[c];if(r)var g=a?r(y,d,c,e,t,i):r(d,y,c,t,e,i);if(!(void 0===g?d===y||o(d,y,n,r,i):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=t.constructor,m=e.constructor;v==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof m&&m instanceof m||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,n,r,o,c))}(t,e,n,r,Ot,o))}function Mt(t,e,n,r,o,i){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var c=-1,f=!0,p=2&n?new bt:void 0;for(i.set(t,e),i.set(e,t);++c<s;){var h=t[c],d=e[c];if(r)var y=a?r(d,h,c,e,t,i):r(h,d,c,t,e,i);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!N(e,(function(t,e){if(a=e,!p.has(a)&&(h===t||o(h,t,n,r,i)))return p.push(e);var a}))){f=!1;break}}else if(h!==d&&!o(h,d,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Et(t){return function(t,e,n){var r=e(t);return At(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Ft,jt)}function Pt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Dt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ut(t)||function(t){return!!q&&q in t}(t))&&(zt(t)?X:x).test(Tt(t))}(n)?n:void 0}gt.prototype.clear=function(){this.__data__=ut?ut(null):{},this.size=0},gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt.prototype.get=function(t){var e=this.__data__;if(ut){var n=e[t];return n===r?void 0:n}return V.call(e,t)?e[t]:void 0},gt.prototype.has=function(t){var e=this.__data__;return ut?void 0!==e[t]:V.call(e,t)},gt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ut&&void 0===e?r:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,n=xt(e,t);return!(n<0||(n==e.length-1?e.pop():Q.call(e,n,1),--this.size,0))},vt.prototype.get=function(t){var e=this.__data__,n=xt(e,t);return n<0?void 0:e[n][1]},vt.prototype.has=function(t){return xt(this.__data__,t)>-1},vt.prototype.set=function(t,e){var n=this.__data__,r=xt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},mt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(ot||vt),string:new gt}},mt.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},mt.prototype.get=function(t){return Pt(this,t).get(t)},mt.prototype.has=function(t){return Pt(this,t).has(t)},mt.prototype.set=function(t,e){var n=Pt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,r),this},bt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new vt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof vt){var r=n.__data__;if(!ot||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new mt(r)}return n.set(t,e),this.size=n.size,this};var jt=tt?function(t){return null==t?[]:(t=Object(t),function(e,n){for(var r=-1,o=null==e?0:e.length,i=0,a=[];++r<o;){var s=e[r];u=s,J.call(t,u)&&(a[i++]=s)}var u;return a}(tt(t)))}:function(){return[]},kt=wt;function Ct(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||w.test(t))&&t>-1&&t%1==0&&t<e}function Tt(t){if(null!=t){try{return W.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Nt(t,e){return t===e||t!=t&&e!=e}(rt&&kt(new rt(new ArrayBuffer(1)))!=_||ot&&kt(new ot)!=f||it&&kt(it.resolve())!=d||at&&kt(new at)!=g||st&&kt(new st)!=m)&&(kt=function(t){var e=wt(t),n=e==h?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case lt:return _;case ct:return f;case ft:return d;case pt:return g;case ht:return m}return e});var Rt=St(function(){return arguments}())?St:function(t){return Zt(t)&&V.call(t,"callee")&&!J.call(t,"callee")},At=Array.isArray,Lt=et||function(){return!1};function zt(t){if(!Ut(t))return!1;var e=wt(t);return e==c||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zt(t){return null!=t&&"object"==typeof t}var Ht=T?function(t){return function(e){return t(e)}}(T):function(t){return Zt(t)&&It(t.length)&&!!S[wt(t)]};function Ft(t){return null!=(e=t)&&It(e.length)&&!zt(e)?function(t,e){var n=At(t),r=!n&&Rt(t),o=!n&&!r&&Lt(t),i=!n&&!r&&!o&&Ht(t),a=n||r||o||i,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=s.length;for(var l in t)!e&&!V.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ct(l,u))||s.push(l);return s}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||H))return nt(t);var e,n,r=[];for(var o in Object(t))V.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}t.exports=function(t,e){return Ot(t,e)}},66193:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},44286:t=>{t.exports=function(t){return t.split("")}},93239:(t,e,n)=>{var r=n(89881);t.exports=function(t,e){var n=!0;return r(t,(function(t,r,o){return n=!!e(t,r,o)})),n}},56029:(t,e,n)=>{var r=n(33448);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=e(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,l=a}return l}},53325:t=>{t.exports=function(t,e){return t>e}},70433:t=>{t.exports=function(t,e){return t<e}},40098:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var a=-1,s=n(e((r-t)/(o||1)),0),u=Array(s);s--;)u[i?s:++a]=t,t+=o;return u}},14259:t=>{t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},5076:(t,e,n)=>{var r=n(89881);t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},27561:(t,e,n)=>{var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},40180:(t,e,n)=>{var r=n(14259);t.exports=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:r(t,e,n)}},98805:(t,e,n)=>{var r=n(40180),o=n(62689),i=n(83140),a=n(79833);t.exports=function(t){return function(e){e=a(e);var n=o(e)?i(e):void 0,s=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return s[t]()+u}}},67740:(t,e,n)=>{var r=n(67206),o=n(98612),i=n(3674);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!o(e)){var u=r(n,3);e=i(e),n=function(t){return u(s[t],t,s)}}var l=t(e,n,a);return l>-1?s[u?e[l]:l]:void 0}}},47445:(t,e,n)=>{var r=n(40098),o=n(16612),i=n(18601);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},62689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},83140:(t,e,n)=>{var r=n(44286),o=n(62689),i=n(676);t.exports=function(t){return o(t)?i(t):r(t)}},67990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},676:t=>{var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+e+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",u=s+a+"(?:\\u200d(?:"+[r,o,i].join("|")+")"+s+a+")*",l="(?:"+[r+e+"?",e,o,i,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(n+"(?="+n+")|"+l+u,"g");t.exports=function(t){return t.match(c)||[]}},23279:(t,e,n)=>{var r=n(13218),o=n(7771),i=n(14841),a=Math.max,s=Math.min;t.exports=function(t,e,n){var u,l,c,f,p,h,d=0,y=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=u,r=l;return u=l=void 0,d=e,f=t.apply(r,n)}function b(t){return d=t,p=setTimeout(x,e),y?m(t):f}function _(t){var n=t-h;return void 0===h||n>=e||n<0||g&&t-d>=c}function x(){var t=o();if(_(t))return w(t);p=setTimeout(x,function(t){var n=e-(t-h);return g?s(n,c-(t-d)):n}(t))}function w(t){return p=void 0,v&&u?m(t):(u=l=void 0,f)}function S(){var t=o(),n=_(t);if(u=arguments,l=this,h=t,n){if(void 0===p)return b(h);if(g)return clearTimeout(p),p=setTimeout(x,e),m(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},S.flush=function(){return void 0===p?f:w(o())},S}},711:(t,e,n)=>{var r=n(66193),o=n(93239),i=n(67206),a=n(1469),s=n(16612);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&s(t,e,n)&&(e=void 0),u(t,i(e,3))}},13311:(t,e,n)=>{var r=n(67740)(n(30998));t.exports=r},30998:(t,e,n)=>{var r=n(41848),o=n(67206),i=n(40554),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:i(n);return u<0&&(u=a(s+u,0)),r(t,o(e,3),u)}},94654:(t,e,n)=>{var r=n(21078),o=n(35161);t.exports=function(t,e){return r(o(t,e),1)}},7654:(t,e,n)=>{var r=n(81763);t.exports=function(t){return r(t)&&t!=+t}},14293:t=>{t.exports=function(t){return null==t}},81763:(t,e,n)=>{var r=n(44239),o=n(37005);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},47037:(t,e,n)=>{var r=n(44239),o=n(1469),i=n(37005);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},35161:(t,e,n)=>{var r=n(29932),o=n(67206),i=n(69199),a=n(1469);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},66604:(t,e,n)=>{var r=n(89465),o=n(47816),i=n(67206);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},6162:(t,e,n)=>{var r=n(56029),o=n(53325),i=n(6557);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},84753:(t,e,n)=>{var r=n(56029),o=n(53325),i=n(67206);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},53632:(t,e,n)=>{var r=n(56029),o=n(70433),i=n(6557);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},22762:(t,e,n)=>{var r=n(56029),o=n(67206),i=n(70433);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},7771:(t,e,n)=>{var r=n(55639);t.exports=function(){return r.Date.now()}},96026:(t,e,n)=>{var r=n(47445)();t.exports=r},59704:(t,e,n)=>{var r=n(82908),o=n(67206),i=n(5076),a=n(1469),s=n(16612);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),u(t,o(e,3))}},23493:(t,e,n)=>{var r=n(23279),o=n(13218);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},18601:(t,e,n)=>{var r=n(14841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},40554:(t,e,n)=>{var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},14841:(t,e,n)=>{var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},45578:(t,e,n)=>{var r=n(67206),o=n(45652);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},11700:(t,e,n)=>{var r=n(98805)("toUpperCase");t.exports=r},75966:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=f(n(99196)),o=f(n(91850)),i=f(n(45697)),a=n(10434),s=n(1706),u=n(67493),l=n(7373),c=f(n(94184));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?b(t):e}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t){function e(){var t,n;y(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return x(b(n=v(this,(t=m(e)).call.apply(t,[this].concat(o)))),"state",{resizing:null,dragging:null,className:""}),x(b(n),"currentNode",void 0),x(b(n),"onDragStart",(function(t,e){var r=e.node;if(n.props.onDragStart){var o={top:0,left:0},i=r.offsetParent;if(i){var a=i.getBoundingClientRect(),s=r.getBoundingClientRect(),u=s.left/n.props.transformScale,c=a.left/n.props.transformScale,f=s.top/n.props.transformScale,p=a.top/n.props.transformScale;o.left=u-c+i.scrollLeft,o.top=f-p+i.scrollTop,n.setState({dragging:o});var h=(0,l.calcXY)(n.getPositionParams(),o.top,o.left,n.props.w,n.props.h),d=h.x,y=h.y;return n.props.onDragStart&&n.props.onDragStart.call(b(n),n.props.i,d,y,{e:t,node:r,newPosition:o})}}})),x(b(n),"onDrag",(function(t,e){var r=e.node,o=e.deltaX,i=e.deltaY,a=n.props,s=a.onDrag,u=a.transformScale;if(s){o/=u,i/=u;var c={top:0,left:0};if(!n.state.dragging)throw new Error("onDrag called before onDragStart.");c.left=n.state.dragging.left+o,c.top=n.state.dragging.top+i,n.setState({dragging:c});var f=(0,l.calcXY)(n.getPositionParams(),c.top,c.left,n.props.w,n.props.h),p=f.x,h=f.y;return s&&s.call(b(n),n.props.i,p,h,{e:t,node:r,newPosition:c})}})),x(b(n),"onDragStop",(function(t,e){var r=e.node;if(n.props.onDragStop){var o={top:0,left:0};if(!n.state.dragging)throw new Error("onDragEnd called before onDragStart.");o.left=n.state.dragging.left,o.top=n.state.dragging.top,n.setState({dragging:null});var i=(0,l.calcXY)(n.getPositionParams(),o.top,o.left,n.props.w,n.props.h),a=i.x,s=i.y;return n.props.onDragStop&&n.props.onDragStop.call(b(n),n.props.i,a,s,{e:t,node:r,newPosition:o})}})),x(b(n),"onResizeStop",(function(t,e){n.onResizeHandler(t,e,"onResizeStop")})),x(b(n),"onResizeStart",(function(t,e){n.onResizeHandler(t,e,"onResizeStart")})),x(b(n),"onResize",(function(t,e){n.onResizeHandler(t,e,"onResize")})),n}var n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(e,t),n=e,i=[{key:"shouldComponentUpdate",value:function(t,e){if(this.props.children!==t.children)return!0;if(this.props.droppingPosition!==t.droppingPosition)return!0;var n=(0,l.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),r=(0,l.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,e);return!(0,u.fastPositionEqual)(n,r)||this.props.useCSSTransforms!==t.useCSSTransforms}},{key:"componentDidMount",value:function(){this.moveDroppingItem({})}},{key:"componentDidUpdate",value:function(t){this.moveDroppingItem(t)}},{key:"moveDroppingItem",value:function(t){var e=this.props.droppingPosition;if(e){var n=t.droppingPosition||{left:0,top:0},r=this.state.dragging;this.currentNode||(this.currentNode=o.default.findDOMNode(this));var i=r&&e.left!==n.left||e.top!==n.top;if(r){if(i){var a=e.left-r.left,s=e.top-r.top;this.onDrag(e.e,{node:this.currentNode,deltaX:a,deltaY:s})}}else this.onDragStart(e.e,{node:this.currentNode,deltaX:e.left,deltaY:e.top})}}},{key:"getPositionParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}},{key:"createStyle",value:function(t){var e,n=this.props,r=n.usePercentages,o=n.containerWidth;return n.useCSSTransforms?e=(0,u.setTransform)(t):(e=(0,u.setTopLeft)(t),r&&(e.left=(0,u.perc)(t.left/o),e.width=(0,u.perc)(t.width/o))),e}},{key:"mixinDraggable",value:function(t,e){return r.default.createElement(a.DraggableCore,{disabled:!e,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale},t)}},{key:"mixinResizable",value:function(t,e,n){var o=this.props,i=o.cols,a=o.x,u=o.minW,c=o.minH,f=o.maxW,p=o.maxH,h=o.transformScale,d=this.getPositionParams(),y=(0,l.calcGridItemPosition)(d,0,0,i-a,0).width,g=(0,l.calcGridItemPosition)(d,0,0,u,c),v=(0,l.calcGridItemPosition)(d,0,0,f,p),m=[g.width,g.height],b=[Math.min(v.width,y),Math.min(v.height,1/0)];return r.default.createElement(s.Resizable,{draggableOpts:{disabled:!n},className:n?void 0:"react-resizable-hide",width:e.width,height:e.height,minConstraints:m,maxConstraints:b,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:h},t)}},{key:"onResizeHandler",value:function(t,e,n){var r=e.node,o=e.size,i=this.props[n];if(i){var a=this.props,s=a.cols,u=a.x,c=a.y,f=a.i,p=a.maxW,h=a.minW,d=a.maxH,y=a.minH,g=(0,l.calcWH)(this.getPositionParams(),o.width,o.height,u,c),v=g.w,m=g.h;v=Math.min(v,s-u),v=Math.max(v,1),v=Math.max(Math.min(v,p),h),m=Math.max(Math.min(m,d),y),this.setState({resizing:"onResizeStop"===n?null:o}),i.call(this,f,v,m,{e:t,node:r,size:o})}}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,o=t.w,i=t.h,a=t.isDraggable,s=t.isResizable,u=t.droppingPosition,f=t.useCSSTransforms,p=(0,l.calcGridItemPosition)(this.getPositionParams(),e,n,o,i,this.state),h=r.default.Children.only(this.props.children),y=r.default.cloneElement(h,{className:(0,c.default)("react-grid-item",h.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":a,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(u),cssTransforms:f}),style:d({},this.props.style,{},h.props.style,{},this.createStyle(p))});return y=this.mixinResizable(y,p,s),this.mixinDraggable(y,a)}}],i&&g(n.prototype,i),e}(r.default.Component);e.default=w,x(w,"propTypes",{children:i.default.element,cols:i.default.number.isRequired,containerWidth:i.default.number.isRequired,rowHeight:i.default.number.isRequired,margin:i.default.array.isRequired,maxRows:i.default.number.isRequired,containerPadding:i.default.array.isRequired,x:i.default.number.isRequired,y:i.default.number.isRequired,w:i.default.number.isRequired,h:i.default.number.isRequired,minW:function(t,e){var n=t[e];return"number"!=typeof n?new Error("minWidth not Number"):n>t.w||n>t.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e){var n=t[e];return"number"!=typeof n?new Error("maxWidth not Number"):n<t.w||n<t.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e){var n=t[e];return"number"!=typeof n?new Error("minHeight not Number"):n>t.h||n>t.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e){var n=t[e];return"number"!=typeof n?new Error("maxHeight not Number"):n<t.h||n<t.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:i.default.string.isRequired,onDragStop:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,isDraggable:i.default.bool.isRequired,isResizable:i.default.bool.isRequired,static:i.default.bool,useCSSTransforms:i.default.bool.isRequired,transformScale:i.default.number,className:i.default.string,handle:i.default.string,cancel:i.default.string,droppingPosition:i.default.shape({e:i.default.object.isRequired,left:i.default.number.isRequired,top:i.default.number.isRequired})}),x(w,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},49580:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n(99196)),o=c(n(72307)),i=c(n(94184)),a=n(67493),s=n(7373),u=c(n(75966)),l=c(n(92886));function c(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b="react-grid-layout",_=!1;try{_=/firefox/i.test(navigator.userAgent)}catch(t){}var x=function(t){function e(t,n){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o=function(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?g(t):e}(this,y(e).call(this,t,n)),m(g(o),"state",{activeDrag:null,layout:(0,a.synchronizeLayoutWithChildren)(o.props.layout,o.props.children,o.props.cols,(0,a.compactType)(o.props)),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,droppingDOMNode:null,children:[]}),m(g(o),"dragEnterCounter",0),m(g(o),"onDragOver",(function(t){if(_&&-1===t.nativeEvent.target.className.indexOf(b))return!1;var e,n=o.props,i=n.droppingItem,a=n.margin,u=n.cols,l=n.rowHeight,c=n.maxRows,f=n.width,p=n.containerPadding,d=o.state.layout,y=t.nativeEvent,g=y.layerX,v=y.layerY,m={left:g,top:v,e:t};if(o.state.droppingDOMNode){if(o.state.droppingPosition){var x=o.state.droppingPosition,w=x.left,S=x.top;(w!=g||S!=v)&&o.setState({droppingPosition:m})}}else{var O={cols:u,margin:a,maxRows:c,rowHeight:l,containerWidth:f,containerPadding:p||a},M=(0,s.calcXY)(O,v,g,i.w,i.h);o.setState({droppingDOMNode:r.default.createElement("div",{key:i.i}),droppingPosition:m,layout:[].concat((e=d,function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(e)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),[h({},i,{x:M.x,y:M.y,static:!1,isDraggable:!0})])})}t.stopPropagation(),t.preventDefault()})),m(g(o),"removeDroppingPlaceholder",(function(){var t=o.props,e=t.droppingItem,n=t.cols,r=o.state.layout,i=(0,a.compact)(r.filter((function(t){return t.i!==e.i})),(0,a.compactType)(o.props),n);o.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})})),m(g(o),"onDragLeave",(function(){o.dragEnterCounter--,0===o.dragEnterCounter&&o.removeDroppingPlaceholder()})),m(g(o),"onDragEnter",(function(){o.dragEnterCounter++})),m(g(o),"onDrop",(function(t){var e=o.props.droppingItem,n=o.state.layout.find((function(t){return t.i===e.i}))||{},r=n.x,i=n.y,a=n.w,s=n.h;o.dragEnterCounter=0,o.removeDroppingPlaceholder(),o.props.onDrop({x:r,y:i,w:a,h:s,e:t})})),(0,a.autoBindHandlers)(g(o),["onDragStart","onDrag","onDragStop","onResizeStart","onResize","onResizeStop"]),o}var n,l,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(e,t),n=e,c=[{key:"getDerivedStateFromProps",value:function(t,e){var n;return e.activeDrag?null:((0,o.default)(t.layout,e.propsLayout)&&t.compactType===e.compactType?(0,a.childrenEqual)(t.children,e.children)||(n=e.layout):n=t.layout,n?{layout:(0,a.synchronizeLayoutWithChildren)(n,t.children,t.cols,(0,a.compactType)(t)),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}}],(l=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(t,e){return this.props.children!==t.children||!(0,a.fastRGLPropsEqual)(this.props,t,o.default)||this.state.activeDrag!==e.activeDrag||this.state.droppingPosition!==e.droppingPosition}},{key:"componentDidUpdate",value:function(t,e){if(!this.state.activeDrag){var n=this.state.layout,r=e.layout;this.onLayoutMaybeChanged(n,r)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var t=(0,a.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+2*e+"px"}}},{key:"onDragStart",value:function(t,e,n,r){var o=r.e,i=r.node,s=this.state.layout,u=(0,a.getLayoutItem)(s,t);if(u)return this.setState({oldDragItem:(0,a.cloneLayoutItem)(u),oldLayout:this.state.layout}),this.props.onDragStart(s,u,u,null,o,i)}},{key:"onDrag",value:function(t,e,n,r){var o=r.e,i=r.node,s=this.state.oldDragItem,u=this.state.layout,l=this.props.cols,c=(0,a.getLayoutItem)(u,t);if(c){var f={w:c.w,h:c.h,x:c.x,y:c.y,placeholder:!0,i:t};u=(0,a.moveElement)(u,c,e,n,!0,this.props.preventCollision,(0,a.compactType)(this.props),l),this.props.onDrag(u,s,c,f,o,i),this.setState({layout:(0,a.compact)(u,(0,a.compactType)(this.props),l),activeDrag:f})}}},{key:"onDragStop",value:function(t,e,n,r){var o=r.e,i=r.node;if(this.state.activeDrag){var s=this.state.oldDragItem,u=this.state.layout,l=this.props,c=l.cols,f=l.preventCollision,p=(0,a.getLayoutItem)(u,t);if(p){u=(0,a.moveElement)(u,p,e,n,!0,f,(0,a.compactType)(this.props),c),this.props.onDragStop(u,s,p,null,o,i);var h=(0,a.compact)(u,(0,a.compactType)(this.props),c),d=this.state.oldLayout;this.setState({activeDrag:null,layout:h,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(h,d)}}}},{key:"onLayoutMaybeChanged",value:function(t,e){e||(e=this.state.layout),(0,o.default)(e,t)||this.props.onLayoutChange(t)}},{key:"onResizeStart",value:function(t,e,n,r){var o=r.e,i=r.node,s=this.state.layout,u=(0,a.getLayoutItem)(s,t);u&&(this.setState({oldResizeItem:(0,a.cloneLayoutItem)(u),oldLayout:this.state.layout}),this.props.onResizeStart(s,u,u,null,o,i))}},{key:"onResize",value:function(t,e,n,r){var o=r.e,i=r.node,s=this.state,u=s.layout,l=s.oldResizeItem,c=this.props,f=c.cols,p=c.preventCollision,d=(0,a.getLayoutItem)(u,t);if(d){var y;if(p){var g=(0,a.getAllCollisions)(u,h({},d,{w:e,h:n})).filter((function(t){return t.i!==d.i}));if(y=g.length>0){var v=1/0,m=1/0;g.forEach((function(t){t.x>d.x&&(v=Math.min(v,t.x)),t.y>d.y&&(m=Math.min(m,t.y))})),Number.isFinite(v)&&(d.w=v-d.x),Number.isFinite(m)&&(d.h=m-d.y)}}y||(d.w=e,d.h=n);var b={w:d.w,h:d.h,x:d.x,y:d.y,static:!0,i:t};this.props.onResize(u,l,d,b,o,i),this.setState({layout:(0,a.compact)(u,(0,a.compactType)(this.props),f),activeDrag:b})}}},{key:"onResizeStop",value:function(t,e,n,r){var o=r.e,i=r.node,s=this.state,u=s.layout,l=s.oldResizeItem,c=this.props.cols,f=(0,a.getLayoutItem)(u,t);this.props.onResizeStop(u,l,f,null,o,i);var p=(0,a.compact)(u,(0,a.compactType)(this.props),c),h=this.state.oldLayout;this.setState({activeDrag:null,layout:p,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(p,h)}},{key:"placeholder",value:function(){var t=this.state.activeDrag;if(!t)return null;var e=this.props,n=e.width,o=e.cols,i=e.margin,a=e.containerPadding,s=e.rowHeight,l=e.maxRows,c=e.useCSSTransforms,f=e.transformScale;return r.default.createElement(u.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:"react-grid-placeholder",containerWidth:n,cols:o,margin:i,containerPadding:a||i,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,useCSSTransforms:c,transformScale:f},r.default.createElement("div",null))}},{key:"processGridItem",value:function(t,e){if(t&&t.key){var n=(0,a.getLayoutItem)(this.state.layout,String(t.key));if(!n)return null;var o=this.props,i=o.width,s=o.cols,l=o.margin,c=o.containerPadding,f=o.rowHeight,p=o.maxRows,h=o.isDraggable,d=o.isResizable,y=o.useCSSTransforms,g=o.transformScale,v=o.draggableCancel,m=o.draggableHandle,b=this.state,_=b.mounted,x=b.droppingPosition,w="boolean"==typeof n.isDraggable?n.isDraggable:!n.static&&h,S="boolean"==typeof n.isResizable?n.isResizable:!n.static&&d;return r.default.createElement(u.default,{containerWidth:i,cols:s,margin:l,containerPadding:c||l,maxRows:p,rowHeight:f,cancel:v,handle:m,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:w,isResizable:S,useCSSTransforms:y&&_,usePercentages:!_,transformScale:g,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:e?x:void 0},t)}}},{key:"render",value:function(){var t=this,e=this.props,n=e.className,o=e.style,s=e.isDroppable,u=(0,i.default)(b,n),l=h({height:this.containerHeight()},o);return r.default.createElement("div",{className:u,style:l,onDrop:s?this.onDrop:a.noop,onDragLeave:s?this.onDragLeave:a.noop,onDragEnter:s?this.onDragEnter:a.noop,onDragOver:s?this.onDragOver:a.noop},r.default.Children.map(this.props.children,(function(e){return t.processGridItem(e)})),s&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&d(n.prototype,l),c&&d(n,c),e}(r.default.Component);e.default=x,m(x,"displayName","ReactGridLayout"),m(x,"propTypes",l.default),m(x,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},onLayoutChange:a.noop,onDragStart:a.noop,onDrag:a.noop,onDragStop:a.noop,onResizeStart:a.noop,onResize:a.noop,onResizeStop:a.noop,onDrop:a.noop})},92886:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(45697)),o=i(n(99196));function i(t){return t&&t.__esModule?t:{default:t}}var a={className:r.default.string,style:r.default.object,width:r.default.number,autoSize:r.default.bool,cols:r.default.number,draggableCancel:r.default.string,draggableHandle:r.default.string,verticalCompact:function(t){t.verticalCompact},compactType:r.default.oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;void 0!==e&&n(67493).validateLayout(e,"layout")},margin:r.default.arrayOf(r.default.number),containerPadding:r.default.arrayOf(r.default.number),rowHeight:r.default.number,maxRows:r.default.number,isDraggable:r.default.bool,isResizable:r.default.bool,preventCollision:r.default.bool,useCSSTransforms:r.default.bool,transformScale:r.default.number,isDroppable:r.default.bool,onLayoutChange:r.default.func,onDragStart:r.default.func,onDrag:r.default.func,onDragStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,onResizeStop:r.default.func,onDrop:r.default.func,droppingItem:r.default.shape({i:r.default.string.isRequired,w:r.default.number.isRequired,h:r.default.number.isRequired}),children:function(t,e){var n=t[e],r={};o.default.Children.forEach(n,(function(t){if(r[t.key])throw new Error('Duplicate child key "'+t.key+'" found! This will cause problems in ReactGridLayout.');r[t.key]=!0}))}};e.default=a},65966:(t,e,n)=>{"use strict";e.default=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==f(t)&&"function"!=typeof t)return{default:t};var e=c();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}(n(99196)),o=l(n(45697)),i=l(n(72307)),a=n(67493),s=n(5651),u=l(n(49580));function l(t){return t&&t.__esModule?t:{default:t}}function c(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return c=function(){return t},t}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(){return p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?b(t):e}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t){return Object.prototype.toString.call(t)};function S(t,e){return Array.isArray(t)?t:t[e]}var O=function(t){function e(){var t,n;y(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return x(b(n=v(this,(t=m(e)).call.apply(t,[this].concat(o)))),"state",n.generateInitialState()),x(b(n),"onLayoutChange",(function(t){n.props.onLayoutChange(t,d({},n.props.layouts,x({},n.state.breakpoint,t)))})),n}var n,o,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(e,t),n=e,l=[{key:"getDerivedStateFromProps",value:function(t,e){if(!(0,i.default)(t.layouts,e.layouts)){var n=e.breakpoint,r=e.cols;return{layout:(0,s.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,n,n,r,t.compactType),layouts:t.layouts}}return null}}],(o=[{key:"generateInitialState",value:function(){var t=this.props,e=t.width,n=t.breakpoints,r=t.layouts,o=t.cols,i=(0,s.getBreakpointFromWidth)(n,e),a=(0,s.getColsFromBreakpoint)(i,o),u=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,s.findOrGenerateResponsiveLayout)(r,n,i,i,a,u),breakpoint:i,cols:a}}},{key:"componentDidUpdate",value:function(t){this.props.width==t.width&&this.props.breakpoint===t.breakpoint&&(0,i.default)(this.props.breakpoints,t.breakpoints)&&(0,i.default)(this.props.cols,t.cols)||this.onWidthChange(t)}},{key:"onWidthChange",value:function(t){var e=this.props,n=e.breakpoints,r=e.cols,o=e.layouts,i=e.compactType,u=this.props.breakpoint||(0,s.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),l=this.state.breakpoint,c=(0,s.getColsFromBreakpoint)(u,r),f=d({},o);if(l!==u||t.breakpoints!==n||t.cols!==r){l in f||(f[l]=(0,a.cloneLayout)(this.state.layout));var p=(0,s.findOrGenerateResponsiveLayout)(f,n,u,l,c,i);p=(0,a.synchronizeLayoutWithChildren)(p,this.props.children,c,i),f[u]=p,this.props.onLayoutChange(p,f),this.props.onBreakpointChange(u,c),this.setState({breakpoint:u,layout:p,cols:c})}var h=S(this.props.margin,u),y=S(this.props.containerPadding,u);this.props.onWidthChange(this.props.width,h,c,y)}},{key:"render",value:function(){var t=this.props,e=(t.breakpoint,t.breakpoints,t.cols,t.layouts,t.margin),n=t.containerPadding,o=(t.onBreakpointChange,t.onLayoutChange,t.onWidthChange,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"]));return r.createElement(u.default,p({},o,{margin:S(e,this.state.breakpoint),containerPadding:S(n,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}])&&g(n.prototype,o),l&&g(n,l),e}(r.Component);e.default=O,x(O,"propTypes",{breakpoint:o.default.string,breakpoints:o.default.object,cols:o.default.object,margin:o.default.oneOfType([o.default.array,o.default.object]),containerPadding:o.default.oneOfType([o.default.array,o.default.object]),layouts:function(t,e){if("[object Object]"!==w(t[e]))throw new Error("Layout property must be an object. Received: "+w(t[e]));Object.keys(t[e]).forEach((function(e){if(!(e in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,a.validateLayout)(t.layouts[e],"layouts."+e)}))},width:o.default.number.isRequired,onBreakpointChange:o.default.func,onLayoutChange:o.default.func,onWidthChange:o.default.func}),x(O,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},margin:[10,10],containerPadding:{lg:[0,0],md:[0,0],sm:[0,0],xs:[0,0],xxs:[0,0]},onBreakpointChange:a.noop,onLayoutChange:a.noop,onWidthChange:a.noop})},7373:(t,e)=>{"use strict";function n(t){var e=t.margin,n=t.containerPadding,r=t.containerWidth,o=t.cols;return(r-e[0]*(o-1)-2*n[0])/o}Object.defineProperty(e,"__esModule",{value:!0}),e.calcGridColWidth=n,e.calcGridItemPosition=function(t,e,r,o,i,a){var s=t.margin,u=t.containerPadding,l=t.rowHeight,c=n(t),f={};return a&&a.resizing?(f.width=Math.round(a.resizing.width),f.height=Math.round(a.resizing.height)):(f.width=o===1/0?o:Math.round(c*o+Math.max(0,o-1)*s[0]),f.height=i===1/0?i:Math.round(l*i+Math.max(0,i-1)*s[1])),a&&a.dragging?(f.top=Math.round(a.dragging.top),f.left=Math.round(a.dragging.left)):(f.top=Math.round((l+s[1])*r+u[1]),f.left=Math.round((c+s[0])*e+u[0])),f},e.calcXY=function(t,e,r,o,i){var a=t.margin,s=t.cols,u=t.rowHeight,l=t.maxRows,c=n(t),f=Math.round((r-a[0])/(c+a[0])),p=Math.round((e-a[1])/(u+a[1]));return{x:f=Math.max(Math.min(f,s-o),0),y:p=Math.max(Math.min(p,l-i),0)}},e.calcWH=function(t,e,r,o,i){var a=t.margin,s=t.maxRows,u=t.cols,l=t.rowHeight,c=n(t),f=Math.round((e+a[0])/(c+a[0])),p=Math.round((r+a[1])/(l+a[1]));return{w:f=Math.max(Math.min(f,u-o),0),h:p=Math.max(Math.min(p,s-i),0)}}},27135:(t,e,n)=>{"use strict";(function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var e=o();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var s=r?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=t[a]}n.default=t,e&&e.set(t,n)})(n(99196)),r(n(45697)),r(n(91850));function r(t){return t&&t.__esModule?t:{default:t}}function o(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}},31362:t=>{t.exports=function(t,e,n){return t===e||t.className===e.className&&n(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&n(t.verticalCompact,e.verticalCompact)&&n(t.compactType,e.compactType)&&n(t.layout,e.layout)&&n(t.margin,e.margin)&&n(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&n(t.droppingItem,e.droppingItem)}},5651:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBreakpointFromWidth=function(t,e){for(var n=o(t),r=n[0],i=1,a=n.length;i<a;i++){var s=n[i];e>t[s]&&(r=s)}return r},e.getColsFromBreakpoint=function(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]},e.findOrGenerateResponsiveLayout=function(t,e,n,i,a,s){if(t[n])return(0,r.cloneLayout)(t[n]);for(var u=t[i],l=o(e),c=l.slice(l.indexOf(n)),f=0,p=c.length;f<p;f++){var h=c[f];if(t[h]){u=t[h];break}}return u=(0,r.cloneLayout)(u||[]),(0,r.compact)((0,r.correctBounds)(u,{cols:a}),s,a)},e.sortBreakpoints=o;var r=n(67493);function o(t){return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}},67493:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bottom=u,e.cloneLayout=function(t){for(var e=Array(t.length),n=0,r=t.length;n<r;n++)e[n]=l(t[n]);return e},e.cloneLayoutItem=l,e.childrenEqual=function(t,e){return(0,r.default)(o.default.Children.map(t,(function(t){return t.key})),o.default.Children.map(e,(function(t){return t.key})))},e.fastPositionEqual=function(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height},e.collides=f,e.compact=p,e.compactItem=y,e.correctBounds=g,e.getLayoutItem=v,e.getFirstCollision=m,e.getAllCollisions=b,e.getStatics=_,e.moveElement=x,e.moveElementAwayFromCollision=w,e.perc=function(t){return 100*t+"%"},e.setTransform=function(t){var e=t.top,n=t.left,r=t.width,o=t.height,i="translate(".concat(n,"px,").concat(e,"px)");return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}},e.setTopLeft=function(t){var e=t.top,n=t.left,r=t.width,o=t.height;return{top:"".concat(e,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(o,"px"),position:"absolute"}},e.sortLayoutItems=S,e.sortLayoutItemsByRowCol=O,e.sortLayoutItemsByColRow=M,e.synchronizeLayoutWithChildren=function(t,e,n,r){t=t||[];var i=[];return o.default.Children.forEach(e,(function(e,n){var r=v(t,String(e.key));if(r)i[n]=l(r);else{var o=e.props["data-grid"]||e.props._grid;i[n]=l(o?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},o,{i:e.key}):{w:1,h:1,x:0,y:u(i),i:String(e.key)})}})),p(g(i,{cols:n}),r,n)},e.validateLayout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,o=t.length;r<o;r++){for(var i=t[r],a=0;a<n.length;a++)if("number"!=typeof i[n[a]])throw new Error("ReactGridLayout: "+e+"["+r+"]."+n[a]+" must be a number!");if(i.i&&"string"!=typeof i.i)throw new Error("ReactGridLayout: "+e+"["+r+"].i must be a string!");if(void 0!==i.static&&"boolean"!=typeof i.static)throw new Error("ReactGridLayout: "+e+"["+r+"].static must be a boolean!")}},e.compactType=function(t){var e=t||{},n=e.verticalCompact,r=e.compactType;return!1===n?null:r},e.autoBindHandlers=function(t,e){e.forEach((function(e){return t[e]=t[e].bind(t)}))},e.noop=e.fastRGLPropsEqual=void 0;var r=i(n(72307)),o=i(n(99196));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){for(var e,n=0,r=0,o=t.length;r<o;r++)(e=t[r].y+t[r].h)>n&&(n=e);return n}function l(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:Boolean(t.moved),static:Boolean(t.static),isDraggable:t.isDraggable,isResizable:t.isResizable}}var c=n(31362);function f(t,e){return!(t.i===e.i||t.x+t.w<=e.x||t.x>=e.x+e.w||t.y+t.h<=e.y||t.y>=e.y+e.h)}function p(t,e,n){for(var r=_(t),o=S(t,e),i=Array(t.length),a=0,s=o.length;a<s;a++){var u=l(o[a]);u.static||(u=y(r,u,e,n,o),r.push(u)),i[t.indexOf(o[a])]=u,u.moved=!1}return i}e.fastRGLPropsEqual=c;var h={x:"w",y:"h"};function d(t,e,n,r){var o=h[r];e[r]+=1;for(var i=t.map((function(t){return t.i})).indexOf(e.i)+1;i<t.length;i++){var a=t[i];if(!a.static){if(a.y>e.y+e.h)break;f(e,a)&&d(t,a,n+e[o],r)}}e[r]=n}function y(t,e,n,r,o){var i,a="horizontal"===n;if("vertical"===n)for(e.y=Math.min(u(t),e.y);e.y>0&&!m(t,e);)e.y--;else if(a)for(e.y=Math.min(u(t),e.y);e.x>0&&!m(t,e);)e.x--;for(;i=m(t,e);)a?d(o,e,i.x+i.w,"x"):d(o,e,i.y+i.h,"y"),a&&e.x+e.w>r&&(e.x=r-e.w,e.y++);return e}function g(t,e){for(var n=_(t),r=0,o=t.length;r<o;r++){var i=t[r];if(i.x+i.w>e.cols&&(i.x=e.cols-i.w),i.x<0&&(i.x=0,i.w=e.cols),i.static)for(;m(n,i);)i.y++;else n.push(i)}return t}function v(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function m(t,e){for(var n=0,r=t.length;n<r;n++)if(f(t[n],e))return t[n]}function b(t,e){return t.filter((function(t){return f(t,e)}))}function _(t){return t.filter((function(t){return t.static}))}function x(t,e,n,r,o,i,a,s){if(e.static&&!0!==e.isDraggable)return t;if(e.y===r&&e.x===n)return t;"Moving element ".concat(e.i," to [").concat(String(n),",").concat(String(r),"] from [").concat(e.x,",").concat(e.y,"]");var u=e.x,l=e.y;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var c=S(t,a);("vertical"===a&&"number"==typeof r?l>=r:"horizontal"===a&&"number"==typeof n&&u>=n)&&(c=c.reverse());var f=b(c,e);if(i&&f.length)return"Collision prevented on ".concat(e.i,", reverting."),e.x=u,e.y=l,e.moved=!1,t;for(var p=0,h=f.length;p<h;p++){var d=f[p];"Resolving collision between ".concat(e.i," at [").concat(e.x,",").concat(e.y,"] and ").concat(d.i," at [").concat(d.x,",").concat(d.y,"]"),d.moved||(t=d.static?w(t,d,e,o,a,s):w(t,e,d,o,a,s))}return t}function w(t,e,n,r,o,i){var a="horizontal"===o,s="horizontal"!==o,u=e.static;if(r){r=!1;var l={x:a?Math.max(e.x-n.w,0):n.x,y:s?Math.max(e.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"};if(!m(t,l))return"Doing reverse collision on ".concat(n.i," up to [").concat(l.x,",").concat(l.y,"]."),x(t,n,a?l.x:void 0,s?l.y:void 0,r,u,o,i)}return x(t,n,a?n.x+1:void 0,s?n.y+1:void 0,r,u,o,i)}function S(t,e){return"horizontal"===e?M(t):O(t)}function O(t){return t.slice(0).sort((function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1}))}function M(t){return t.slice(0).sort((function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1}))}e.noop=function(){}},69968:(t,e,n)=>{t.exports=n(49580).default,n(67493),t.exports.Responsive=n(65966).default,t.exports.Responsive.utils=n(5651),n(27135)},48917:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),e.default=void 0;var o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=y(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(99196)),i=d(n(45697)),a=d(n(91850)),s=d(n(86010)),u=n(73655),l=n(83524),c=n(80365),f=d(n(66436)),p=d(n(39103)),h=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function d(t){return t&&t.__esModule?t:{default:t}}function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g.apply(this,arguments)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x(t,e){return x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},x(t,e)}function w(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}(y,t);var e,n,r,i,c,d=(i=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=O(i);if(c){var n=O(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return w(this,t)});function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),M(S(e=d.call(this,t)),"onDragStart",(function(t,n){if((0,p.default)("Draggable: onDragStart: %j",n),!1===e.props.onStart(t,(0,l.createDraggableData)(S(e),n)))return!1;e.setState({dragging:!0,dragged:!0})})),M(S(e),"onDrag",(function(t,n){if(!e.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",n);var r,o,i=(0,l.createDraggableData)(S(e),n),a={x:i.x,y:i.y};if(e.props.bounds){var s=a.x,u=a.y;a.x+=e.state.slackX,a.y+=e.state.slackY;var c=(r=(0,l.getBoundPosition)(S(e),a.x,a.y),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(r,o)||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.")}()),f=c[0],h=c[1];a.x=f,a.y=h,a.slackX=e.state.slackX+(s-a.x),a.slackY=e.state.slackY+(u-a.y),i.x=a.x,i.y=a.y,i.deltaX=a.x-e.state.x,i.deltaY=a.y-e.state.y}if(!1===e.props.onDrag(t,i))return!1;e.setState(a)})),M(S(e),"onDragStop",(function(t,n){if(!e.state.dragging)return!1;if(!1===e.props.onStop(t,(0,l.createDraggableData)(S(e),n)))return!1;(0,p.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(e.props.position)){var o=e.props.position,i=o.x,a=o.y;r.x=i,r.y=a}e.setState(r)})),e.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:m({},t.position),slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),e}return e=y,r=[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.position,r=e.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:m({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var t,e,n;return null!==(t=null===(e=this.props)||void 0===e||null===(n=e.nodeRef)||void 0===n?void 0:n.current)&&void 0!==t?t:a.default.findDOMNode(this)}},{key:"render",value:function(){var t,e=this.props,n=(e.axis,e.bounds,e.children),r=e.defaultPosition,i=e.defaultClassName,a=e.defaultClassNameDragging,c=e.defaultClassNameDragged,p=e.position,d=e.positionOffset,y=(e.scale,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,h)),v={},b=null,_=!Boolean(p)||this.state.dragging,x=p||r,w={x:(0,l.canDragX)(this)&&_?this.state.x:x.x,y:(0,l.canDragY)(this)&&_?this.state.y:x.y};this.state.isElementSVG?b=(0,u.createSVGTransform)(w,d):v=(0,u.createCSSTransform)(w,d);var S=(0,s.default)(n.props.className||"",i,(M(t={},a,this.state.dragging),M(t,c,this.state.dragged),t));return o.createElement(f.default,g({},y,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:S,style:m(m({},n.props.style),v),transform:b}))}}])&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(o.Component);e.default=E,M(E,"displayName","Draggable"),M(E,"propTypes",m(m({},f.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),M(E,"defaultProps",m(m({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},66436:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(99196)),i=f(n(45697)),a=f(n(91850)),s=n(73655),u=n(83524),l=n(80365),c=f(n(39103));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||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 d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={start:"touchstart",move:"touchmove",stop:"touchend"},S={start:"mousedown",move:"mousemove",stop:"mouseup"},O=S,M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(f,t);var e,n,r,i,l=(r=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_(r);if(i){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return m(this,t)});function f(){var t;y(this,f);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return x(b(t=l.call.apply(l,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),x(b(t),"mounted",!1),x(b(t),"handleDragStart",(function(e){if(t.props.onMouseDown(e),!t.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;var n=t.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(t.props.disabled||!(e.target instanceof r.defaultView.Node)||t.props.handle&&!(0,s.matchesSelectorAndParentsTo)(e.target,t.props.handle,n)||t.props.cancel&&(0,s.matchesSelectorAndParentsTo)(e.target,t.props.cancel,n))){"touchstart"===e.type&&e.preventDefault();var o=(0,s.getTouchIdentifier)(e);t.setState({touchIdentifier:o});var i=(0,u.getControlPosition)(e,o,b(t));if(null!=i){var a=i.x,l=i.y,f=(0,u.createCoreData)(b(t),a,l);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",t.props.onStart),!1!==t.props.onStart(e,f)&&!1!==t.mounted&&(t.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(r),t.setState({dragging:!0,lastX:a,lastY:l}),(0,s.addEvent)(r,O.move,t.handleDrag),(0,s.addEvent)(r,O.stop,t.handleDragStop))}}})),x(b(t),"handleDrag",(function(e){var n=(0,u.getControlPosition)(e,t.state.touchIdentifier,b(t));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(t.props.grid)){var i=r-t.state.lastX,a=o-t.state.lastY,s=h((0,u.snapToGrid)(t.props.grid,i,a),2);if(i=s[0],a=s[1],!i&&!a)return;r=t.state.lastX+i,o=t.state.lastY+a}var l=(0,u.createCoreData)(b(t),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",l),!1!==t.props.onDrag(e,l)&&!1!==t.mounted)t.setState({lastX:r,lastY:o});else try{t.handleDragStop(new MouseEvent("mouseup"))}catch(e){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(f)}}})),x(b(t),"handleDragStop",(function(e){if(t.state.dragging){var n=(0,u.getControlPosition)(e,t.state.touchIdentifier,b(t));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(t.props.grid)){var i=r-t.state.lastX||0,a=o-t.state.lastY||0,l=h((0,u.snapToGrid)(t.props.grid,i,a),2);i=l[0],a=l[1],r=t.state.lastX+i,o=t.state.lastY+a}var f=(0,u.createCoreData)(b(t),r,o);if(!1===t.props.onStop(e,f)||!1===t.mounted)return!1;var p=t.findDOMNode();p&&t.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(p.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),p&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(p.ownerDocument,O.move,t.handleDrag),(0,s.removeEvent)(p.ownerDocument,O.stop,t.handleDragStop))}}})),x(b(t),"onMouseDown",(function(e){return O=S,t.handleDragStart(e)})),x(b(t),"onMouseUp",(function(e){return O=S,t.handleDragStop(e)})),x(b(t),"onTouchStart",(function(e){return O=w,t.handleDragStart(e)})),x(b(t),"onTouchEnd",(function(e){return O=w,t.handleDragStop(e)})),t}return e=f,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.findDOMNode();t&&(0,s.addEvent)(t,w.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.findDOMNode();if(t){var e=t.ownerDocument;(0,s.removeEvent)(e,S.move,this.handleDrag),(0,s.removeEvent)(e,w.move,this.handleDrag),(0,s.removeEvent)(e,S.stop,this.handleDragStop),(0,s.removeEvent)(e,w.stop,this.handleDragStop),(0,s.removeEvent)(t,w.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(e)}}},{key:"findDOMNode",value:function(){var t,e,n;return null!==(t=this.props)&&void 0!==t&&t.nodeRef?null===(e=this.props)||void 0===e||null===(n=e.nodeRef)||void 0===n?void 0:n.current:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.Component);e.default=M,x(M,"displayName","DraggableCore"),x(M,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(M,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},10434:(t,e,n)=>{"use strict";var r=n(48917),o=r.default,i=r.DraggableCore;t.exports=o,t.exports.default=o,t.exports.DraggableCore=i},73655:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addClassName=h,e.addEvent=function(t,e,n,r){if(t){var o=u({capture:!0},r);t.addEventListener?t.addEventListener(e,n,o):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}},e.addUserSelectStyles=function(t){if(t){var e=t.getElementById("react-draggable-style-el");e||((e=t.createElement("style")).type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e)),t.body&&h(t.body,"react-draggable-transparent-selection")}},e.createCSSTransform=function(t,e){var n=p(t,e,"px");return l({},(0,i.browserPrefixToKey)("transform",i.default),n)},e.createSVGTransform=function(t,e){return p(t,e,"")},e.getTouch=function(t,e){return t.targetTouches&&(0,o.findInArray)(t.targetTouches,(function(t){return e===t.identifier}))||t.changedTouches&&(0,o.findInArray)(t.changedTouches,(function(t){return e===t.identifier}))},e.getTouchIdentifier=function(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0},e.getTranslation=p,e.innerHeight=function(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e-=(0,o.int)(n.paddingTop))-(0,o.int)(n.paddingBottom)},e.innerWidth=function(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e-=(0,o.int)(n.paddingLeft))-(0,o.int)(n.paddingRight)},e.matchesSelector=f,e.matchesSelectorAndParentsTo=function(t,e,n){var r=t;do{if(f(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},e.offsetXYFromParent=function(t,e,n){var r=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:(t.clientX+e.scrollLeft-r.left)/n,y:(t.clientY+e.scrollTop-r.top)/n}},e.outerHeight=function(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e+=(0,o.int)(n.borderTopWidth))+(0,o.int)(n.borderBottomWidth)},e.outerWidth=function(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e+=(0,o.int)(n.borderLeftWidth))+(0,o.int)(n.borderRightWidth)},e.removeClassName=d,e.removeEvent=function(t,e,n,r){if(t){var o=u({capture:!0},r);t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}},e.removeUserSelectStyles=function(t){if(t)try{if(t.body&&d(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{var e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}};var o=n(80365),i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,n&&n.set(t,o),o}(n(61e3));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c="";function f(t,e){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(e){return(0,o.isFunction)(t[e])}))),!!(0,o.isFunction)(t[c])&&t[c](e)}function p(t,e,n){var r=t.x,o=t.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(e){var a="".concat("string"==typeof e.x?e.x:e.x+n),s="".concat("string"==typeof e.y?e.y:e.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function h(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function d(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}},61e3:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserPrefixToKey=o,e.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t},e.default=void 0,e.getPrefix=r;var n=["Moz","Webkit","O","ms"];function r(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(t=window.document)||void 0===t||null===(e=t.documentElement)||void 0===e?void 0:e.style;if(!i)return"";if(r in i)return"";for(var a=0;a<n.length;a++)if(o(r,n[a])in i)return n[a];return""}function o(t,e){return e?"".concat(e).concat(function(t){for(var e="",n=!0,r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):"-"===t[r]?n=!0:e+=t[r];return e}(t)):t}var i=r();e.default=i},39103:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},83524:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},e.createCoreData=function(t,e,n){var o=t.state,a=!(0,r.isNum)(o.lastX),s=i(t);return a?{node:s,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:s,deltaX:e-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:e,y:n}},e.createDraggableData=function(t,e){var n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}},e.getBoundPosition=function(t,e,n){if(!t.props.bounds)return[e,n];var a=t.props.bounds;a="string"==typeof a?a:function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);var s=i(t);if("string"==typeof a){var u,l=s.ownerDocument,c=l.defaultView;if(!((u="parent"===a?s.parentNode:l.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=u,p=c.getComputedStyle(s),h=c.getComputedStyle(f);a={left:-s.offsetLeft+(0,r.int)(h.paddingLeft)+(0,r.int)(p.marginLeft),top:-s.offsetTop+(0,r.int)(h.paddingTop)+(0,r.int)(p.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(h.paddingRight)-(0,r.int)(p.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(h.paddingBottom)-(0,r.int)(p.marginBottom)}}return(0,r.isNum)(a.right)&&(e=Math.min(e,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(e=Math.max(e,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[e,n]},e.getControlPosition=function(t,e,n){var r="number"==typeof e?(0,o.getTouch)(t,e):null;if("number"==typeof e&&!r)return null;var a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||t,s,n.props.scale)},e.snapToGrid=function(t,e,n){return[Math.round(e/t[0])*t[0],Math.round(n/t[1])*t[1]]};var r=n(80365),o=n(73655);function i(t){var e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}},80365:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dontSetMe=function(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))},e.findInArray=function(t,e){for(var n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]},e.int=function(t){return parseInt(t,10)},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},e.isNum=function(t){return"number"==typeof t&&!isNaN(t)}},46871:(t,e,n)=>{"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,l="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},22827:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(99196))&&r.__esModule?r:{default:r},i=n(26422),a=n(59069),s=n(448);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p(f(e=t.call.apply(t,[this].concat(r))||this),"state",void 0),p(f(e),"lastHandleRect",null),p(f(e),"slack",null),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=r.prototype;return s.componentWillUnmount=function(){this.resetData()},s.lockAspectRatio=function(t,e,n){return[t=(e=t/n)*n,e]},s.resetData=function(){this.lastHandleRect=this.slack=null},s.runConstraints=function(t,e){var n=[this.props.minConstraints,this.props.maxConstraints],r=n[0],o=n[1];if(!r&&!o)return[t,e];if(this.props.lockAspectRatio)if(e===this.props.height){var i=this.props.width/this.props.height;t=(e=t/i)*i}else{var a=this.props.height/this.props.width;e=(t=e/a)*a}var s=t,u=e,l=this.slack||[0,0],c=l[0],f=l[1];return t+=c,e+=f,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),o&&(t=Math.min(o[0],t),e=Math.min(o[1],e)),this.slack=[c+(s-t),f+(u-e)],[t,e]},s.resizeHandler=function(t,e){var n=this;return function(r,o){var i=o.node,a=o.deltaX,s=o.deltaY;"onResizeStart"===t&&n.resetData();var u=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,l=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(u||l){var c=e[0],f=e[e.length-1],p=i.getBoundingClientRect();null!=n.lastHandleRect&&("w"===f&&(a+=p.left-n.lastHandleRect.left),"n"===c&&(s+=p.top-n.lastHandleRect.top)),n.lastHandleRect=p,"w"===f&&(a=-a),"n"===c&&(s=-s);var h=n.props.width+(u?a/n.props.transformScale:0),d=n.props.height+(l?s/n.props.transformScale:0),y=n.runConstraints(h,d);h=y[0],d=y[1];var g=h!==n.props.width||d!==n.props.height,v="function"==typeof n.props[t]?n.props[t]:null;v&&!("onResize"===t&&!g)&&("function"==typeof r.persist&&r.persist(),v(r,{node:i,size:{width:h,height:d},handle:e})),"onResizeStop"===t&&n.resetData()}}},s.renderResizeHandle=function(t){var e=this.props.handle;return e?"function"==typeof e?e(t):e:o.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t})},s.render=function(){var t=this,e=this.props,n=e.children,r=e.className,s=e.draggableOpts,l=(e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart,e.resizeHandles),f=(e.transformScale,function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]));return(0,a.cloneElement)(n,c(c({},f),{},{className:(r?r+" ":"")+"react-resizable",children:[].concat(n.props.children,l.map((function(e){return o.default.createElement(i.DraggableCore,u({},s,{key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e))})))}))},r}(o.default.Component);e.default=h,p(h,"propTypes",s.resizableProps),p(h,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},8735:(t,e,n)=>{"use strict";e.default=void 0;var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=u();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}(n(99196)),o=s(n(45697)),i=s(n(22827)),a=n(448);function s(t){return t&&t.__esModule?t:{default:t}}function u(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}function l(){return l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){var e,n;function o(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return h(p(e=t.call.apply(t,[this].concat(r))||this),"state",{width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height}),h(p(e),"onResize",(function(t,n){var r=n.size;e.props.onResize?(t.persist&&t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)})),e}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},o.prototype.render=function(){var t=this.props,e=t.handle,n=t.handleSize,o=(t.onResize,t.onResizeStart),a=t.onResizeStop,s=t.draggableOpts,u=t.minConstraints,c=t.maxConstraints,p=t.lockAspectRatio,h=t.axis,d=(t.width,t.height,t.resizeHandles),y=t.style,g=t.transformScale,v=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return r.createElement(i.default,{axis:h,draggableOpts:s,handle:e,handleSize:n,height:this.state.height,lockAspectRatio:p,maxConstraints:c,minConstraints:u,onResizeStart:o,onResize:this.onResize,onResizeStop:a,resizeHandles:d,transformScale:g,width:this.state.width},r.createElement("div",l({},v,{style:f(f({},y),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},o}(r.Component);e.default=d,h(d,"propTypes",f(f({},a.resizableProps),{},{children:o.default.element}))},448:(t,e,n)=>{"use strict";e.__esModule=!0,e.resizableProps=void 0;var r,o=(r=n(45697))&&r.__esModule?r:{default:r};n(26422);var i={axis:o.default.oneOf(["both","x","y","none"]),className:o.default.string,children:o.default.element.isRequired,draggableOpts:o.default.shape({allowAnyClick:o.default.bool,cancel:o.default.string,children:o.default.node,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:o.default.node,grid:o.default.arrayOf(o.default.number),handle:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number}),height:o.default.number.isRequired,handle:o.default.oneOfType([o.default.node,o.default.func]),handleSize:o.default.arrayOf(o.default.number),lockAspectRatio:o.default.bool,maxConstraints:o.default.arrayOf(o.default.number),minConstraints:o.default.arrayOf(o.default.number),onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,resizeHandles:o.default.arrayOf(o.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:o.default.number,width:o.default.number.isRequired};e.resizableProps=i},59069:(t,e,n)=>{"use strict";e.__esModule=!0,e.cloneElement=function(t,e){return e.style&&t.props.style&&(e.style=a(a({},t.props.style),e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),o.default.cloneElement(t,e)};var r,o=(r=n(99196))&&r.__esModule?r:{default:r};function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},1706:(t,e,n)=>{"use strict";t.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=n(22827).default,t.exports.ResizableBox=n(8735).default},18385:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),e.default=void 0;var o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=y(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(99196)),i=d(n(45697)),a=d(n(91850)),s=d(n(86010)),u=n(75323),l=n(63669),c=n(16723),f=d(n(49285)),p=d(n(5042)),h=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function d(t){return t&&t.__esModule?t:{default:t}}function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g.apply(this,arguments)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x(t,e){return x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},x(t,e)}function w(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}(y,t);var e,n,r,i,c,d=(i=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=O(i);if(c){var n=O(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return w(this,t)});function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),M(S(e=d.call(this,t)),"onDragStart",(function(t,n){if((0,p.default)("Draggable: onDragStart: %j",n),!1===e.props.onStart(t,(0,l.createDraggableData)(S(e),n)))return!1;e.setState({dragging:!0,dragged:!0})})),M(S(e),"onDrag",(function(t,n){if(!e.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",n);var r,o,i=(0,l.createDraggableData)(S(e),n),a={x:i.x,y:i.y};if(e.props.bounds){var s=a.x,u=a.y;a.x+=e.state.slackX,a.y+=e.state.slackY;var c=(r=(0,l.getBoundPosition)(S(e),a.x,a.y),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(r,o)||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.")}()),f=c[0],h=c[1];a.x=f,a.y=h,a.slackX=e.state.slackX+(s-a.x),a.slackY=e.state.slackY+(u-a.y),i.x=a.x,i.y=a.y,i.deltaX=a.x-e.state.x,i.deltaY=a.y-e.state.y}if(!1===e.props.onDrag(t,i))return!1;e.setState(a)})),M(S(e),"onDragStop",(function(t,n){if(!e.state.dragging)return!1;if(!1===e.props.onStop(t,(0,l.createDraggableData)(S(e),n)))return!1;(0,p.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(e.props.position)){var o=e.props.position,i=o.x,a=o.y;r.x=i,r.y=a}e.setState(r)})),e.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:m({},t.position),slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),e}return e=y,r=[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.position,r=e.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:m({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var t,e,n;return null!==(t=null===(e=this.props)||void 0===e||null===(n=e.nodeRef)||void 0===n?void 0:n.current)&&void 0!==t?t:a.default.findDOMNode(this)}},{key:"render",value:function(){var t,e=this.props,n=(e.axis,e.bounds,e.children),r=e.defaultPosition,i=e.defaultClassName,a=e.defaultClassNameDragging,c=e.defaultClassNameDragged,p=e.position,d=e.positionOffset,y=(e.scale,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,h)),v={},b=null,_=!Boolean(p)||this.state.dragging,x=p||r,w={x:(0,l.canDragX)(this)&&_?this.state.x:x.x,y:(0,l.canDragY)(this)&&_?this.state.y:x.y};this.state.isElementSVG?b=(0,u.createSVGTransform)(w,d):v=(0,u.createCSSTransform)(w,d);var S=(0,s.default)(n.props.className||"",i,(M(t={},a,this.state.dragging),M(t,c,this.state.dragged),t));return o.createElement(f.default,g({},y,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:S,style:m(m({},n.props.style),v),transform:b}))}}])&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(o.Component);e.default=E,M(E,"displayName","Draggable"),M(E,"propTypes",m(m({},f.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),M(E,"defaultProps",m(m({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},49285:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(99196)),i=f(n(45697)),a=f(n(91850)),s=n(75323),u=n(63669),l=n(16723),c=f(n(5042));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||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 d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function m(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={start:"touchstart",move:"touchmove",stop:"touchend"},S={start:"mousedown",move:"mousemove",stop:"mouseup"},O=S,M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(f,t);var e,n,r,i,l=(r=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_(r);if(i){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return m(this,t)});function f(){var t;y(this,f);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return x(b(t=l.call.apply(l,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),x(b(t),"mounted",!1),x(b(t),"handleDragStart",(function(e){if(t.props.onMouseDown(e),!t.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;var n=t.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(t.props.disabled||!(e.target instanceof r.defaultView.Node)||t.props.handle&&!(0,s.matchesSelectorAndParentsTo)(e.target,t.props.handle,n)||t.props.cancel&&(0,s.matchesSelectorAndParentsTo)(e.target,t.props.cancel,n))){"touchstart"===e.type&&e.preventDefault();var o=(0,s.getTouchIdentifier)(e);t.setState({touchIdentifier:o});var i=(0,u.getControlPosition)(e,o,b(t));if(null!=i){var a=i.x,l=i.y,f=(0,u.createCoreData)(b(t),a,l);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",t.props.onStart),!1!==t.props.onStart(e,f)&&!1!==t.mounted&&(t.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(r),t.setState({dragging:!0,lastX:a,lastY:l}),(0,s.addEvent)(r,O.move,t.handleDrag),(0,s.addEvent)(r,O.stop,t.handleDragStop))}}})),x(b(t),"handleDrag",(function(e){var n=(0,u.getControlPosition)(e,t.state.touchIdentifier,b(t));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(t.props.grid)){var i=r-t.state.lastX,a=o-t.state.lastY,s=h((0,u.snapToGrid)(t.props.grid,i,a),2);if(i=s[0],a=s[1],!i&&!a)return;r=t.state.lastX+i,o=t.state.lastY+a}var l=(0,u.createCoreData)(b(t),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",l),!1!==t.props.onDrag(e,l)&&!1!==t.mounted)t.setState({lastX:r,lastY:o});else try{t.handleDragStop(new MouseEvent("mouseup"))}catch(e){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(f)}}})),x(b(t),"handleDragStop",(function(e){if(t.state.dragging){var n=(0,u.getControlPosition)(e,t.state.touchIdentifier,b(t));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(t.props.grid)){var i=r-t.state.lastX||0,a=o-t.state.lastY||0,l=h((0,u.snapToGrid)(t.props.grid,i,a),2);i=l[0],a=l[1],r=t.state.lastX+i,o=t.state.lastY+a}var f=(0,u.createCoreData)(b(t),r,o);if(!1===t.props.onStop(e,f)||!1===t.mounted)return!1;var p=t.findDOMNode();p&&t.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(p.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),p&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(p.ownerDocument,O.move,t.handleDrag),(0,s.removeEvent)(p.ownerDocument,O.stop,t.handleDragStop))}}})),x(b(t),"onMouseDown",(function(e){return O=S,t.handleDragStart(e)})),x(b(t),"onMouseUp",(function(e){return O=S,t.handleDragStop(e)})),x(b(t),"onTouchStart",(function(e){return O=w,t.handleDragStart(e)})),x(b(t),"onTouchEnd",(function(e){return O=w,t.handleDragStop(e)})),t}return e=f,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var t=this.findDOMNode();t&&(0,s.addEvent)(t,w.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.findDOMNode();if(t){var e=t.ownerDocument;(0,s.removeEvent)(e,S.move,this.handleDrag),(0,s.removeEvent)(e,w.move,this.handleDrag),(0,s.removeEvent)(e,S.stop,this.handleDragStop),(0,s.removeEvent)(e,w.stop,this.handleDragStop),(0,s.removeEvent)(t,w.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(e)}}},{key:"findDOMNode",value:function(){var t,e,n;return null!==(t=this.props)&&void 0!==t&&t.nodeRef?null===(e=this.props)||void 0===e||null===(n=e.nodeRef)||void 0===n?void 0:n.current:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.Component);e.default=M,x(M,"displayName","DraggableCore"),x(M,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(M,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},26422:(t,e,n)=>{"use strict";var r=n(18385),o=r.default,i=r.DraggableCore;t.exports=o,t.exports.default=o,t.exports.DraggableCore=i},75323:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addClassName=h,e.addEvent=function(t,e,n,r){if(t){var o=u({capture:!0},r);t.addEventListener?t.addEventListener(e,n,o):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}},e.addUserSelectStyles=function(t){if(t){var e=t.getElementById("react-draggable-style-el");e||((e=t.createElement("style")).type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e)),t.body&&h(t.body,"react-draggable-transparent-selection")}},e.createCSSTransform=function(t,e){var n=p(t,e,"px");return l({},(0,i.browserPrefixToKey)("transform",i.default),n)},e.createSVGTransform=function(t,e){return p(t,e,"")},e.getTouch=function(t,e){return t.targetTouches&&(0,o.findInArray)(t.targetTouches,(function(t){return e===t.identifier}))||t.changedTouches&&(0,o.findInArray)(t.changedTouches,(function(t){return e===t.identifier}))},e.getTouchIdentifier=function(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0},e.getTranslation=p,e.innerHeight=function(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e-=(0,o.int)(n.paddingTop))-(0,o.int)(n.paddingBottom)},e.innerWidth=function(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e-=(0,o.int)(n.paddingLeft))-(0,o.int)(n.paddingRight)},e.matchesSelector=f,e.matchesSelectorAndParentsTo=function(t,e,n){var r=t;do{if(f(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},e.offsetXYFromParent=function(t,e,n){var r=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:(t.clientX+e.scrollLeft-r.left)/n,y:(t.clientY+e.scrollTop-r.top)/n}},e.outerHeight=function(t){var e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e+=(0,o.int)(n.borderTopWidth))+(0,o.int)(n.borderBottomWidth)},e.outerWidth=function(t){var e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return(e+=(0,o.int)(n.borderLeftWidth))+(0,o.int)(n.borderRightWidth)},e.removeClassName=d,e.removeEvent=function(t,e,n,r){if(t){var o=u({capture:!0},r);t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}},e.removeUserSelectStyles=function(t){if(t)try{if(t.body&&d(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{var e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}};var o=n(16723),i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=i?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=t[s]}return o.default=t,n&&n.set(t,o),o}(n(21227));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c="";function f(t,e){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(e){return(0,o.isFunction)(t[e])}))),!!(0,o.isFunction)(t[c])&&t[c](e)}function p(t,e,n){var r=t.x,o=t.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(e){var a="".concat("string"==typeof e.x?e.x:e.x+n),s="".concat("string"==typeof e.y?e.y:e.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function h(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function d(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}},21227:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserPrefixToKey=o,e.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t},e.default=void 0,e.getPrefix=r;var n=["Moz","Webkit","O","ms"];function r(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(t=window.document)||void 0===t||null===(e=t.documentElement)||void 0===e?void 0:e.style;if(!i)return"";if(r in i)return"";for(var a=0;a<n.length;a++)if(o(r,n[a])in i)return n[a];return""}function o(t,e){return e?"".concat(e).concat(function(t){for(var e="",n=!0,r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):"-"===t[r]?n=!0:e+=t[r];return e}(t)):t}var i=r();e.default=i},5042:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},63669:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},e.createCoreData=function(t,e,n){var o=t.state,a=!(0,r.isNum)(o.lastX),s=i(t);return a?{node:s,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:s,deltaX:e-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:e,y:n}},e.createDraggableData=function(t,e){var n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}},e.getBoundPosition=function(t,e,n){if(!t.props.bounds)return[e,n];var a=t.props.bounds;a="string"==typeof a?a:function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);var s=i(t);if("string"==typeof a){var u,l=s.ownerDocument,c=l.defaultView;if(!((u="parent"===a?s.parentNode:l.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=u,p=c.getComputedStyle(s),h=c.getComputedStyle(f);a={left:-s.offsetLeft+(0,r.int)(h.paddingLeft)+(0,r.int)(p.marginLeft),top:-s.offsetTop+(0,r.int)(h.paddingTop)+(0,r.int)(p.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(h.paddingRight)-(0,r.int)(p.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(h.paddingBottom)-(0,r.int)(p.marginBottom)}}return(0,r.isNum)(a.right)&&(e=Math.min(e,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(e=Math.max(e,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[e,n]},e.getControlPosition=function(t,e,n){var r="number"==typeof e?(0,o.getTouch)(t,e):null;if("number"==typeof e&&!r)return null;var a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||t,s,n.props.scale)},e.snapToGrid=function(t,e,n){return[Math.round(e/t[0])*t[0],Math.round(n/t[1])*t[1]]};var r=n(16723),o=n(75323);function i(t){var e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}},16723:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dontSetMe=function(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))},e.findInArray=function(t,e){for(var n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]},e.int=function(t){return parseInt(t,10)},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},e.isNum=function(t){return"number"==typeof t&&!isNaN(t)}},80129:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0,function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(45697));var r=s(n(98141)),o=s(n(10602)),i=s(n(99196)),a=s(n(60644));function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}n(54726);var l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},f=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),l(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=n?r+" "+o:o;e.removeClasses(t,n?"appear":"enter"),l(t,i),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),l(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),l(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+t:n[t];return{className:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&c(t,r),o&&c(t,o),i&&c(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,l(t,e))},o.render=function(){var t=u({},this.props);return delete t.classNames,i.default.createElement(a.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;e.default=p,t.exports=e.default},26093:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0,a(n(45697));var r=a(n(99196)),o=n(91850),i=a(n(92381));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(t,e,n){var i,a=this.props.children,s=r.default.Children.toArray(a)[e];s.props[t]&&(i=s.props)[t].apply(i,n),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},s.render=function(){var t=this.props,e=t.children,n=t.in,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["children","in"]),a=r.default.Children.toArray(e),s=a[0],u=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var u=s;e.default=u,t.exports=e.default},60644:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(45697)),o=s(n(99196)),i=s(n(91850)),a=n(46871);function s(t){return t&&t.__esModule?t:{default:t}}n(54726);var u="unmounted";e.UNMOUNTED=u;var l="exited";e.EXITED=l;var c="entering";e.ENTERING=c;var f="entered";e.ENTERED=f;var p="exiting";e.EXITING=p;var h=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=l,r.appearStatus=c):o=f:o=e.unmountOnExit||e.mountOnEnter?u:l,r.state={status:o},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==f&&(e=c):n!==c&&n!==f||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=i.default.findDOMNode(this);e===c?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},a.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||r?(this.props.onEnter(t,o),this.safeSetState({status:c},(function(){n.props.onEntering(t,o),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(t,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:l},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function d(){}h.contextTypes={transitionGroup:r.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var y=(0,a.polyfill)(h);e.default=y},92381:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(45697)),o=s(n(99196)),i=n(46871),a=n(40537);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,n;function r(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(l(l(r)));return r.state={handleExited:o,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},i.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=u({},e.children);return delete n[t.key],{children:n}})))},i.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["component","childFactory"]),i=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:o.default.createElement(e,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},64317:(t,e,n)=>{"use strict";var r=s(n(80129)),o=s(n(26093)),i=s(n(92381)),a=s(n(60644));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},40537:(t,e,n)=>{"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var s=o(t.children),u=i(e,s);return Object.keys(u).forEach((function(o){var i=u[o];if((0,r.isValidElement)(i)){var l=o in e,c=o in s,f=e[o],p=(0,r.isValidElement)(f)&&!f.props.in;!c||l&&!p?c||!l||p?c&&l&&(0,r.isValidElement)(f)&&(u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):u[o]=(0,r.cloneElement)(i,{in:!1}):u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),u};var r=n(99196);function o(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in e){if(o[u])for(r=0;r<o[u].length;r++){var l=o[u][r];s[o[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},54726:(t,e,n)=>{"use strict";var r;e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,(r=n(45697))&&r.__esModule,e.timeoutsShape=null,e.classNamesShape=null},63145:(t,e,n)=>{"use strict";n.d(e,{Zj:()=>D,wZ:()=>j});var r=n(29887),o=n.n(r);function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=function(t){return t},u={"@@functional/placeholder":!0},l=function(t){return t===u},c=function(t){return function e(){return 0===arguments.length||1===arguments.length&&l(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},f=function t(e,n){return 1===e?n:c((function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=o.filter((function(t){return t!==u})).length;return s>=e?n.apply(void 0,o):t(e-s,c((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var a=o.map((function(t){return l(t)?e.shift():t}));return n.apply(void 0,i(a).concat(e))})))}))},p=function(t){return f(t.length,t)},h=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},d=p((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),y=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return s;var r=e.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},g=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},v=function(t){var e=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e&&o.every((function(t,n){return t===e[n]}))?n:(e=o,n=t.apply(void 0,o))}};const m=function(t,e,n){for(var r=new(o())(t),i=0,a=[];r.lt(e)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a},b=function(t){return 0===t?1:Math.floor(new(o())(t).abs().log(10).toNumber())+1};p((function(t,e,n){var r=+t;return r+n*(+e-r)})),p((function(t,e,n){var r=e-+t;return(n-t)/(r||1/0)})),p((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}));function _(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,e)||w(t,e)||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 w(t,e){if(t){if("string"==typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(t){var e=x(t,2),n=e[0],r=e[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function M(t,e,n){if(t.lte(0))return new(o())(0);var r=b(t.toNumber()),i=new(o())(10).pow(r),a=t.div(i),s=1!==r?.05:.1,u=new(o())(Math.ceil(a.div(s).toNumber())).add(n).mul(s).mul(i);return e?u:new(o())(Math.ceil(u))}function E(t,e,n){var r=1,i=new(o())(t);if(!i.isint()&&n){var a=Math.abs(t);a<1?(r=new(o())(10).pow(b(t)-1),i=new(o())(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new(o())(Math.floor(t)))}else 0===t?i=new(o())(Math.floor((e-1)/2)):n||(i=new(o())(Math.floor(t)));var s=Math.floor((e-1)/2);return y(d((function(t){return i.add(new(o())(t-s).mul(r)).toNumber()})),h)(0,e)}function P(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(o())(0),tickMin:new(o())(0),tickMax:new(o())(0)};var a,s=M(new(o())(e).sub(t).div(n-1),r,i);a=t<=0&&e>=0?new(o())(0):(a=new(o())(t).add(e).div(2)).sub(new(o())(a).mod(s));var u=Math.ceil(a.sub(t).div(s).toNumber()),l=Math.ceil(new(o())(e).sub(a).div(s).toNumber()),c=u+l+1;return c>n?P(t,e,n,r,i+1):(c<n&&(l=e>0?l+(n-c):l,u=e>0?u:u+(n-c)),{step:s,tickMin:a.sub(new(o())(u).mul(s)),tickMax:a.add(new(o())(l).mul(s))})}var D=v((function(t){var e=x(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(i,2),u=O([n,r]),l=x(u,2),c=l[0],f=l[1];if(c===-1/0||f===1/0){var p=f===1/0?[c].concat(_(h(0,i-1).map((function(){return 1/0})))):[].concat(_(h(0,i-1).map((function(){return-1/0}))),[f]);return n>r?g(p):p}if(c===f)return E(c,i,a);var d=P(c,f,s,a),y=d.step,v=d.tickMin,b=d.tickMax,w=m(v,b.add(new(o())(.1).mul(y)),y);return n>r?g(w):w})),j=(v((function(t){var e=x(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(i,2),u=O([n,r]),l=x(u,2),c=l[0],f=l[1];if(c===-1/0||f===1/0)return[n,r];if(c===f)return E(c,i,a);var p=M(new(o())(f).sub(c).div(s-1),a,0),v=y(d((function(t){return new(o())(c).add(new(o())(t).mul(p)).toNumber()})),h),m=v(0,s).filter((function(t){return t>=c&&t<=f}));return n>r?g(m):m})),v((function(t,e){var n=x(t,2),r=n[0],i=n[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=O([r,i]),u=x(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0)return[r,i];if(l===c)return[l];var f=Math.max(e,2),p=M(new(o())(c).sub(l).div(f-1),a,0),h=[].concat(_(m(new(o())(l),new(o())(c).sub(new(o())(.99).mul(p)),p)),[c]);return r>i?g(h):h})))},84275:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(98336)),o=n(70210),i=s(n(40174)),a=s(n(53697));function s(t){return t&&t.__esModule?t:{default:t}}var u=/((?:\-[a-z]+\-)?calc)/;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(t).walk((function(t){if("function"===t.type&&u.test(t.value)){var n=r.default.stringify(t.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var s=o.parser.parse(n),l=(0,i.default)(s,e);t.type="word",t.value=(0,a.default)(t.value,l,e)}}}),!0).toString()},t.exports=e.default},70460:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=(r=n(33258))&&r.__esModule?r:{default:r};e.default=function(t,e,n){switch(t.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(t,e,n){return e.type===t.type&&(e={type:t.type,value:(0,o.default)(e.value,e.unit,t.unit,n),unit:t.unit}),{left:t,right:e}}(t,e,n);default:return{left:t,right:e}}},t.exports=e.default},40174:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flip=s;var r,o=(r=n(70460))&&r.__esModule?r:{default:r};function i(t,e){return t.type===e.type&&t.value===e.value}function a(t){switch(t){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function s(t){return"+"===t?"-":"+"}function u(t){return a(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=u(t.left),t.right=u(t.right)),t}e.default=function t(e,n){return"MathExpression"===e.type?function(e,n){switch(e=function(e,n){var r=(0,o.default)(e.left,e.right,n),a=t(r.left,n),s=t(r.right,n);return"MathExpression"===a.type&&"MathExpression"===s.type&&("/"===a.operator&&"*"===s.operator||"-"===a.operator&&"+"===s.operator||"*"===a.operator&&"/"===s.operator||"+"===a.operator&&"-"===s.operator)&&(i(a.right,s.right)?r=(0,o.default)(a.left,s.left,n):i(a.right,s.left)&&(r=(0,o.default)(a.left,s.right,n)),a=t(r.left,n),s=t(r.right,n)),e.left=a,e.right=s,e}(e,n),e.operator){case"+":case"-":return function(e,n){var r=e,o=r.left,i=r.right,l=r.operator;if("CssVariable"===o.type||"CssVariable"===i.type)return e;if(0===i.value)return o;if(0===o.value&&"+"===l)return i;if(0===o.value&&"-"===l)return u(i);if(o.type===i.type&&a(o.type)&&((e=Object.assign({},o)).value="+"===l?o.value+i.value:o.value-i.value),a(o.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(o.type===i.left.type)return(e=Object.assign({},e)).left=t({type:"MathExpression",operator:l,left:o,right:i.left},n),e.right=i.right,e.operator="-"===l?s(i.operator):i.operator,t(e,n);if(o.type===i.right.type)return(e=Object.assign({},e)).left=t({type:"MathExpression",operator:"-"===l?s(i.operator):i.operator,left:o,right:i.right},n),e.right=i.left,t(e,n)}if("MathExpression"===o.type&&("+"===o.operator||"-"===o.operator)&&a(i.type)){if(i.type===o.left.type)return(e=Object.assign({},o)).left=t({type:"MathExpression",operator:l,left:o.left,right:i},n),t(e,n);if(i.type===o.right.type)return e=Object.assign({},o),"-"===o.operator?(e.right=t({type:"MathExpression",operator:"-"===l?"+":"-",left:i,right:o.right},n),e.operator="-"===l?"-":"+"):e.right=t({type:"MathExpression",operator:l,left:o.right,right:i},n),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),t(e,n)}return e}(e,n);case"/":return function(e,n){if(!a(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");return"MathExpression"===e.left.type?a(e.left.left.type)&&a(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,t(e.left,n)):e:a(e.left.type)?(e.left.value/=e.right.value,e.left):e}(e,n);case"*":return function(t){if("MathExpression"===t.left.type&&"Value"===t.right.type){if(a(t.left.left.type)&&a(t.left.right.type))return t.left.left.value*=t.right.value,t.left.right.value*=t.right.value,t.left}else{if(a(t.left.type)&&"Value"===t.right.type)return t.left.value*=t.right.value,t.left;if("Value"===t.left.type&&"MathExpression"===t.right.type){if(a(t.right.left.type)&&a(t.right.right.type))return t.right.left.value*=t.left.value,t.right.right.value*=t.left.value,t.right}else if("Value"===t.left.type&&a(t.right.type))return t.right.value*=t.left.value,t.right}return t}(e)}return e}(e,n):"Calc"===e.type?t(e.value,n):e}},53697:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=a(e,n);return"MathExpression"===e.type&&(r=t+"("+r+")"),r};var r=n(40174),o={"*":0,"/":0,"+":1,"-":1};function i(t,e){if(!1!==e){var n=Math.pow(10,e);return Math.round(t*n)/n}return t}function a(t,e){switch(t.type){case"MathExpression":var n=t.left,s=t.right,u=t.operator,l="";return"MathExpression"===n.type&&o[u]<o[n.operator]?l+="("+a(n,e)+")":l+=a(n,e),l+=" "+t.operator+" ","MathExpression"===s.type&&o[u]<o[s.operator]?l+="("+a(s,e)+")":"MathExpression"===s.type&&"-"===u&&["+","-"].includes(s.operator)?(s.operator=(0,r.flip)(s.operator),l+=a(s,e)):l+=a(s,e),l;case"Value":return i(t.value,e);case"CssVariable":return t.fallback?"var("+t.value+", "+a(t.fallback,e)+")":"var("+t.value+")";case"Calc":return t.prefix?"-"+t.prefix+"-calc("+a(t.value,e)+")":"calc("+a(t.value,e)+")";default:return i(t.value,e)+t.unit}}t.exports=e.default},70210:(t,e)=>{var n=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}function e(t,e,n){n=n||0;for(var r=0;r<e;r++)this.push(t),t+=n}function n(t,e){for(e+=t=this.length-t;t<e;t++)this.push(this[t])}function r(t){for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];"function"==typeof o?(n++,o.apply(e,t[n])):e.push(o)}return e}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonParserError";var o={trace:function(){},JisonParserError:t,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(t){return'"'+t+'"'},getSymbolName:function(t){if(this.terminals_[t])return this.terminals_[t];var e=this.symbols_;for(var n in e)if(e[n]===t)return n;return null},describeSymbol:function(t){if(t!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[t])return this.terminal_descriptions_[t];if(t===this.EOF)return"end of input";var e=this.getSymbolName(t);return e?this.quoteName(e):null},collect_expected_token_set:function(t,e){var n=this.TERROR,r=[],o={};if(!e&&this.state_descriptions_&&this.state_descriptions_[t])return[this.state_descriptions_[t]];for(var i in this.table[t])if((i=+i)!==n){var a=e?i:this.describeSymbol(i);a&&!o[a]&&(r.push(a),o[a]=!0)}return r},productions_:function(t){for(var e=[],n=t.pop,r=t.rule,o=0,i=n.length;o<i;o++)e.push([n[o],r[o]]);return e}({pop:r([29,e,[30,10],31,31,32,32,e,[33,15]]),rule:r([2,e,[3,5],4,7,e,[1,4],2,4,6,e,[1,14],2])}),performAction:function(t,e,n){var r=this.yy;switch(r.parser,r.lexer,t){case 0:case 6:this.$=n[e-1];break;case 1:return this.$=n[e-1],n[e-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:n[e-1],left:n[e-2],right:n[e]};break;case 7:this.$={type:"Calc",value:n[e-1]};break;case 8:this.$={type:"Calc",value:n[e-1],prefix:n[e-5]};break;case 9:case 10:case 11:this.$=n[e];break;case 12:this.$={type:"Value",value:parseFloat(n[e])};break;case 13:this.$={type:"Value",value:-1*parseFloat(n[e])};break;case 14:this.$={type:"CssVariable",value:n[e-1]};break;case 15:this.$={type:"CssVariable",value:n[e-3],fallback:n[e-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(n[e]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(n[e]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(n[e]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(n[e]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(n[e]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(n[e]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(n[e]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(n[e]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(n[e]),unit:"%"};break;case 30:var o=n[e];o.value*=-1,this.$=o}},table:function(t){for(var e=[],n=t.len,r=t.symbol,o=t.type,i=t.state,a=t.mode,s=t.goto,u=0,l=n.length;u<l;u++){for(var c=n[u],f={},p=0;p<c;p++){var h=r.shift();switch(o.shift()){case 2:f[h]=[a.shift(),s.shift()];break;case 0:f[h]=i.shift();break;default:f[h]=[3]}}e.push(f)}return e}({len:r([24,1,5,23,1,18,e,[0,3],1,e,[0,16],e,[23,4],n,[28,3],0,0,16,1,6,6,e,[0,3],5,1,2,n,[37,3],n,[20,3],5,0,0]),symbol:r([4,7,9,11,12,e,[15,19,1],1,1,e,[3,4,1],n,[30,19],n,[29,4],7,4,10,11,n,[22,14],n,[19,3],n,[43,22],n,[23,69],n,[139,4],8,n,[51,24],4,n,[138,15],13,n,[186,5],8,n,[6,6],n,[5,5],9,8,14,n,[159,47],n,[60,10]]),type:r([e,[2,19],e,[0,5],1,e,[2,24],e,[0,4],n,[22,19],n,[43,42],n,[23,70],n,[28,25],n,[45,25],n,[113,54]]),state:r([1,2,8,6,7,30,n,[4,3],33,37,n,[5,3],38,n,[4,3],39,n,[4,3],40,n,[4,3],42,n,[21,4],50,n,[5,3],51,n,[4,3]]),mode:r([e,[1,179],e,[2,3],n,[5,5],n,[6,4],e,[1,57]]),goto:r([5,3,4,24,e,[9,15,1],e,[25,5,1],n,[24,19],31,35,32,34,n,[18,14],36,n,[38,19],n,[19,57],n,[118,4],41,n,[24,19],43,35,n,[16,14],44,e,[2,3],28,29,2,e,[3,3],28,29,3,n,[53,4],e,[45,5,1],n,[100,42],52,n,[5,4],53])}),defaultActions:function(t){for(var e={},n=t.idx,r=t.goto,o=0,i=n.length;o<i;o++)e[n[o]]=r[o];return e}({idx:r([6,7,8,e,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:r([9,10,11,e,[16,14,1],12,1,30,13,e,[4,4,1],14,15,8])}),parseError:function(t,e,n){if(!e.recoverable)throw"function"==typeof this.trace&&this.trace(t),n||(n=this.JisonParserError),new n(t,e);"function"==typeof this.trace&&this.trace(t),e.destroy()},parse:function(t){var e,n=this,r=new Array(128),o=new Array(128),i=new Array(128),a=this.table,s=0,u=0,l=(this.TERROR,this.EOF),c=(this.options.errorRecoveryTokenDiscardCount,[0,54]);e=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var f={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};"function"!=typeof assert||assert,this.yyGetSharedState=function(){return f},function(t,e){for(var n in e)void 0===t[n]&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}(f,this.yy),f.lexer=e,f.parser=this,"function"==typeof f.parseError?this.parseError=function(t,e,n){return n||(n=this.JisonParserError),f.parseError.call(this,t,e,n)}:this.parseError=this.originalParseError,"function"==typeof f.quoteName?this.quoteName=function(t){return f.quoteName.call(this,t)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(t,n,a){var u,l;if(n&&((f.post_parse||this.post_parse)&&(l=this.constructParseErrorInfo(null,null,null,!1)),f.post_parse&&void 0!==(u=f.post_parse.call(this,f,t,l))&&(t=u),this.post_parse&&void 0!==(u=this.post_parse.call(this,f,t,l))&&(t=u),l&&l.destroy&&l.destroy()),this.__reentrant_call_depth>1)return t;if(e.cleanupAfterLex&&e.cleanupAfterLex(a),f&&(f.lexer=void 0,f.parser=void 0,e.yy===f&&(e.yy=void 0)),f=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,o.length=0,i.length=0,s=0,!a){for(var c=this.__error_infos.length-1;c>=0;c--){var p=this.__error_infos[c];p&&"function"==typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return t},this.constructParseErrorInfo=function(t,n,a,l){var c={errStr:t,exception:n,text:e.match,value:e.yytext,token:this.describeSymbol(u)||u,token_id:u,line:e.yylineno,expected:a,recoverable:l,state:p,action:h,new_state:b,symbol_stack:r,state_stack:o,value_stack:i,stack_pointer:s,yy:f,lexer:e,parser:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"==typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(c),c};var p,h,d,y,g,v,m,b,_=function(){var t=e.lex();return"number"!=typeof t&&(t=n.symbols_[t]||t),t||l},x={$:!0,_$:void 0,yy:f},w=!1;try{for(this.__reentrant_call_depth++,e.setInput(t,f),"function"==typeof e.canIUse&&e.canIUse().fastLex&&(_=function(){var t=e.fastLex();return"number"!=typeof t&&(t=n.symbols_[t]||t),t||l}),i[s]=null,o[s]=0,r[s]=0,++s,this.pre_parse&&this.pre_parse.call(this,f),f.pre_parse&&f.pre_parse.call(this,f),b=o[s-1];;){if(p=b,this.defaultActions[p])h=2,b=this.defaultActions[p];else if(u||(u=_()),y=a[p]&&a[p][u]||c,b=y[1],!(h=y[0])){var S,O=this.describeSymbol(u)||u,M=this.collect_expected_token_set(p);S="number"==typeof e.yylineno?"Parse error on line "+(e.yylineno+1)+": ":"Parse error: ","function"==typeof e.showPosition&&(S+="\n"+e.showPosition(69,10)+"\n"),M.length?S+="Expecting "+M.join(", ")+", got unexpected "+O:S+="Unexpected "+O,g=this.constructParseErrorInfo(S,null,M,!1),void 0!==(d=this.parseError(g.errStr,g,this.JisonParserError))&&(w=d);break}switch(h){default:if(h instanceof Array){g=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+p+", token: "+u,null,null,!1),void 0!==(d=this.parseError(g.errStr,g,this.JisonParserError))&&(w=d);break}g=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),void 0!==(d=this.parseError(g.errStr,g,this.JisonParserError))&&(w=d);break;case 1:r[s]=u,i[s]=e.yytext,o[s]=b,++s,u=0;continue;case 2:if(v=(m=this.productions_[b-1])[1],void 0!==(d=this.performAction.call(x,b,s-1,i))){w=d;break}s-=v;var E=m[0];r[s]=E,i[s]=x.$,b=a[o[s-1]][E],o[s]=b,++s;continue;case 3:-2!==s&&(w=!0,s--,void 0!==i[s]&&(w=i[s]))}break}}catch(t){if(t instanceof this.JisonParserError)throw t;if(e&&"function"==typeof e.JisonLexerError&&t instanceof e.JisonLexerError)throw t;g=this.constructParseErrorInfo("Parsing aborted due to exception.",t,null,!1),w=!1,void 0!==(d=this.parseError(g.errStr,g,this.JisonParserError))&&(w=d)}finally{w=this.cleanupAfterParse(w,!0,!0),this.__reentrant_call_depth--}return w}};o.originalParseError=o.parseError,o.originalQuoteName=o.quoteName;var i=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonLexerError";var e={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(t,e,n){if(t=""+t,null==n&&(n=!(t.indexOf("\n")>0&&t.indexOf("^")>0)),this.yylloc&&n)if("function"==typeof this.prettyPrintRange)this.prettyPrintRange(this.yylloc),/\n\s*$/.test(t)||(t+="\n"),t+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc);else if("function"==typeof this.showPosition){var r=this.showPosition();r&&(t.length&&"\n"!==t[t.length-1]&&"\n"!==r[0]?t+="\n"+r:t+=r)}var o={errStr:t,recoverable:!!e,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"==typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(o),o},parseError:function(t,e,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"==typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,t,e,n)||this.ERROR;if("function"==typeof this.yy.parseError)return this.yy.parseError.call(this,t,e,n)||this.ERROR}throw new n(t,e)},yyerror:function(t){var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+e+": "+t,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(t){if(this.setInput("",{}),!t){for(var e=this.__error_infos.length-1;e>=0;e--){var n=this.__error_infos[e];n&&"function"==typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var t=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:t,last_line:this.yylineno+1,last_column:t,range:[this.offset,this.offset]}},setInput:function(t,e){if(this.yy=e||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,o=n.length;r<o;r++)"number"==typeof(p=n[r])&&(n[r]=n[p]);var i=this.conditions;for(var a in i){var s=i[a],u=s.rules,l=(o=u.length,new Array(o+1)),c=new Array(o+1);for(r=0;r<o;r++){var f=u[r],p=n[f];l[r+1]=p,c[r+1]=f}s.rules=c,s.__rule_regexes=l,s.__rule_count=o}this.__decompressed=!0}return this._input=t||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(t,e){var n=t.call(this,this._input,e);return"string"!=typeof n?n&&(this._input=""+n):this._input=n,this},input:function(){if(!this._input)return null;var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=1,n=!1;if("\n"===t)n=!0;else if("\r"===t){n=!0;var r=this._input[1];"\n"===r&&(e++,t+=r,this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,this.yylloc.range[1]++)}return n?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(e),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);if(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.yyleng=this.yytext.length,this.offset-=e,this.match=this.match.substr(0,this.match.length-e),this.matched=this.matched.substr(0,this.matched.length-e),n.length>1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,o=r.split(/(?:\r\n?|\n)/g);1===o.length&&(o=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=o[o.length-1].length}else this.yylloc.last_column-=e;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var e=this.constructLexErrorInfo("Lexical error"+t+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(e.errStr,e,this.JisonLexerError)||this.ERROR}return this},less:function(t){return this.unput(this.match.slice(t))},pastInput:function(t,e){var n=this.matched.substring(0,this.matched.length-this.match.length);t<0?t=n.length:t||(t=20),e<0?e=n.length:e||(e=1);var r=(n=n.substr(2*-t-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-e)).join("\n")).length>t&&(n="..."+n.substr(-t)),n},upcomingInput:function(t,e){var n=this.match;t<0?t=n.length+this._input.length:t||(t=20),e<0?e=t:e||(e=1),n.length<2*t+2&&(n+=this._input.substring(0,2*t+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,e)).join("\n")).length>t&&(n=n.substring(0,t)+"..."),n},showPosition:function(t,e){var n=this.pastInput(t).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(e).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(t,e,n,r){var o={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return t&&(o.first_line=0|t.first_line,o.last_line=0|t.last_line,o.first_column=0|t.first_column,o.last_column=0|t.last_column,t.range&&(o.range[0]=0|t.range[0],o.range[1]=0|t.range[1])),(o.first_line<=0||o.last_line<o.first_line)&&(o.first_line<=0&&e&&(o.first_line=0|e.last_line,o.first_column=0|e.last_column,e.range&&(o.range[0]=0|t.range[1])),(o.last_line<=0||o.last_line<o.first_line)&&n&&(o.last_line=0|n.first_line,o.last_column=0|n.first_column,n.range&&(o.range[1]=0|t.range[0])),o.first_line<=0&&r&&(o.last_line<=0||r.last_line<=o.last_line)&&(o.first_line=0|r.first_line,o.first_column=0|r.first_column,r.range&&(o.range[0]=0|r.range[0])),o.last_line<=0&&r&&(o.first_line<=0||r.first_line>=o.first_line)&&(o.last_line=0|r.last_line,o.last_column=0|r.last_column,r.range&&(o.range[1]=0|r.range[1]))),o.last_line<=0&&(o.first_line<=0?(o.first_line=this.yylloc.first_line,o.last_line=this.yylloc.last_line,o.first_column=this.yylloc.first_column,o.last_column=this.yylloc.last_column,o.range[0]=this.yylloc.range[0],o.range[1]=this.yylloc.range[1]):(o.last_line=this.yylloc.last_line,o.last_column=this.yylloc.last_column,o.range[1]=this.yylloc.range[1])),o.first_line<=0&&(o.first_line=o.last_line,o.first_column=0,o.range[1]=o.range[0]),o.first_column<0&&(o.first_column=0),o.last_column<0&&(o.last_column=o.first_column>0?o.first_column:80),o},prettyPrintRange:function(t,e,n){t=this.deriveLocationInfo(t,e,n);var r=(this.matched+this._input).split("\n"),o=Math.max(1,e?e.first_line:t.first_line-3),i=Math.max(1,n?n.last_line:t.last_line+1),a=1+Math.log10(1|i)|0,s=new Array(a).join(" "),u=[],l=r.slice(o-1,i+1).map((function(e,n){var r=n+o,i=(s+r).substr(-a)+": "+e,l=new Array(a+1).join("^"),c=3,f=0;return r===t.first_line?(c+=t.first_column,f=Math.max(2,(r===t.last_line?t.last_column:e.length)-t.first_column+1)):r===t.last_line?f=Math.max(2,t.last_column+1):r>t.first_line&&r<t.last_line&&(f=Math.max(2,e.length+1)),f&&(i+="\n"+l+new Array(c).join(".")+new Array(f).join("^"),e.trim().length>0&&u.push(n)),i.replace(/\t/g," ")}));if(u.length>4){var c=u[1]+1,f=u[u.length-2]-1,p=new Array(a+1).join(" ")+" (...continued...)";p+="\n"+new Array(a+1).join("-")+" (---------------)",l.splice(c,f-c+1,p)}return l.join("\n")},describeYYLLOC:function(t,e){var n,r=t.first_line,o=t.last_line,i=t.first_column,a=t.last_column;if(0==o-r?(n="line "+r+", ",n+=a-i<=1?"column "+i:"columns "+i+" .. "+a):n="lines "+r+"(column "+i+") .. "+o+"(column "+a+")",t.range&&e){var s=t.range[0],u=t.range[1]-1;n+=u<=s?" {String Offset: "+s+"}":" {String Offset range: "+s+" .. "+u+"}"}return n},test_match:function(t,e){var n,r,o,i,a;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(i=t[0]).length,(r=i.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=a,this.yytext+=i,this.match+=i,this.matched+=i,this.matches=t,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),n=this.performAction.call(this,this.yy,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in o)this[s]=o[s];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||this.clear();var o=this.__currentRuleSet__;if(!(o||(o=this.__currentRuleSet__=this._currentRules())&&o.rules)){var i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+i+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var s=o.rules,u=o.__rule_regexes,l=o.__rule_count,c=1;c<=l;c++)if((n=this._input.match(u[c]))&&(!e||n[0].length>e[0].length)){if(e=n,r=c,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[c])))return t;if(this._backtrack){e=void 0;continue}return!1}if(!this.options.flex)break}if(e)return!1!==(t=this.test_match(e,s[r]))&&t;if(this._input){i="",this.options.trackPosition&&(i=" on line "+(this.yylineno+1)),a=this.constructLexErrorInfo("Lexical error"+i+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var f=this._input,p=this.topState(),h=this.conditionStack.length;return(t=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||f!==this._input||p!==this.topState()||h!==this.conditionStack.length||this.input()),t}return this.done=!0,this.clear(),this.EOF},lex:function(){var t;for("function"==typeof this.pre_lex&&(t=this.pre_lex.call(this,0)),"function"==typeof this.options.pre_lex&&(t=this.options.pre_lex.call(this,t)||t),this.yy&&"function"==typeof this.yy.pre_lex&&(t=this.yy.pre_lex.call(this,t)||t);!t;)t=this.next();return this.yy&&"function"==typeof this.yy.post_lex&&(t=this.yy.post_lex.call(this,t)||t),"function"==typeof this.options.post_lex&&(t=this.options.post_lex.call(this,t)||t),"function"==typeof this.post_lex&&(t=this.post_lex.call(this,t)||t),t},fastLex:function(){for(var t;!t;)t=this.next();return t},canIUse:function(){return{fastLex:!("function"==typeof this.pre_lex||"function"==typeof this.options.pre_lex||this.yy&&"function"==typeof this.yy.pre_lex||this.yy&&"function"==typeof this.yy.post_lex||"function"==typeof this.options.post_lex||"function"==typeof this.post_lex)&&"function"==typeof this.fastLex}},begin:function(t){return this.pushState(t)},pushState:function(t){return this.conditionStack.push(t),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:t,performAction:function(t,e,n){if(1!==e)return this.simpleCaseActionClusters[e]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return e}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)}},98336:(t,e,n)=>{var r=n(98219),o=n(46461),i=n(21088);function a(t){return this instanceof a?(this.nodes=r(t),this):new a(t)}a.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},a.prototype.walk=function(t,e){return o(this.nodes,t,e),this},a.unit=n(4386),a.walk=o,a.stringify=i,t.exports=a},98219:t=>{var e="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),u=":".charCodeAt(0),l="*".charCodeAt(0);t.exports=function(t){for(var c,f,p,h,d,y,g,v,m=[],b=t,_=0,x=b.charCodeAt(_),w=b.length,S=[{nodes:m}],O=0,M="",E="",P="";_<w;)if(x<=32){c=_;do{c+=1,x=b.charCodeAt(c)}while(x<=32);h=b.slice(_,c),p=m[m.length-1],x===n&&O?P=h:p&&"div"===p.type?p.after=h:x===s||x===u||x===a&&b.charCodeAt(c+1)!==l?E=h:m.push({type:"space",sourceIndex:_,value:h}),_=c}else if(x===r||x===o){c=_,h={type:"string",sourceIndex:_,quote:f=x===r?"'":'"'};do{if(d=!1,~(c=b.indexOf(f,c+1)))for(y=c;b.charCodeAt(y-1)===i;)y-=1,d=!d;else c=(b+=f).length-1,h.unclosed=!0}while(d);h.value=b.slice(_+1,c),m.push(h),_=c+1,x=b.charCodeAt(_)}else if(x===a&&b.charCodeAt(_+1)===l)h={type:"comment",sourceIndex:_},-1===(c=b.indexOf("*/",_))&&(h.unclosed=!0,c=b.length),h.value=b.slice(_+2,c),m.push(h),_=c+2,x=b.charCodeAt(_);else if(x===a||x===s||x===u)h=b[_],m.push({type:"div",sourceIndex:_-E.length,value:h,before:E,after:""}),E="",_+=1,x=b.charCodeAt(_);else if(e===x){c=_;do{c+=1,x=b.charCodeAt(c)}while(x<=32);if(h={type:"function",sourceIndex:_-M.length,value:M,before:b.slice(_+1,c)},_=c,"url"===M&&x!==r&&x!==o){c-=1;do{if(d=!1,~(c=b.indexOf(")",c+1)))for(y=c;b.charCodeAt(y-1)===i;)y-=1,d=!d;else c=(b+=")").length-1,h.unclosed=!0}while(d);g=c;do{g-=1,x=b.charCodeAt(g)}while(x<=32);h.nodes=_!==g+1?[{type:"word",sourceIndex:_,value:b.slice(_,g+1)}]:[],h.unclosed&&g+1!==c?(h.after="",h.nodes.push({type:"space",sourceIndex:g+1,value:b.slice(g+1,c)})):h.after=b.slice(g+1,c),_=c+1,x=b.charCodeAt(_),m.push(h)}else O+=1,h.after="",m.push(h),S.push(h),m=h.nodes=[],v=h;M=""}else if(n===x&&O)_+=1,x=b.charCodeAt(_),v.after=P,P="",O-=1,S.pop(),m=(v=S[O]).nodes;else{c=_;do{x===i&&(c+=1),c+=1,x=b.charCodeAt(c)}while(c<w&&!(x<=32||x===r||x===o||x===s||x===u||x===a||x===e||x===n&&O));h=b.slice(_,c),e===x?M=h:m.push({type:"word",sourceIndex:_,value:h}),_=c}for(_=S.length-1;_;_-=1)S[_].unclosed=!0;return S[0].nodes}},21088:t=>{function e(t,e){var r,o,i=t.type,a=t.value;return e&&void 0!==(o=e(t))?o:"word"===i||"space"===i?a:"string"===i?(r=t.quote||"")+a+(t.unclosed?"":r):"comment"===i?"/*"+a+(t.unclosed?"":"*/"):"div"===i?(t.before||"")+a+(t.after||""):Array.isArray(t.nodes)?(r=n(t.nodes),"function"!==i?r:a+"("+(t.before||"")+r+(t.after||"")+(t.unclosed?"":")")):a}function n(t,n){var r,o;if(Array.isArray(t)){for(r="",o=t.length-1;~o;o-=1)r=e(t[o],n)+r;return r}return e(t,n)}t.exports=n},4386:t=>{var e="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),o="e".charCodeAt(0),i="E".charCodeAt(0);t.exports=function(t){for(var a,s=0,u=t.length,l=!1,c=-1,f=!1;s<u;){if((a=t.charCodeAt(s))>=48&&a<=57)f=!0;else if(a===o||a===i){if(c>-1)break;c=s}else if(a===r){if(l)break;l=!0}else{if(a!==n&&a!==e)break;if(0!==s)break}s+=1}return c+1===s&&s--,!!f&&{number:t.slice(0,s),unit:t.slice(s)}}},46461:t=>{t.exports=function t(e,n,r){var o,i,a,s;for(o=0,i=e.length;o<i;o+=1)a=e[o],r||(s=n(a,o,e)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&t(a.nodes,n,r),r&&n(a,o,e)}},64836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}}]);
dist/904.js.LICENSE.txt ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! Conditions:: INITIAL */
2
+
3
+ /*! Production:: css_value : ANGLE */
4
+
5
+ /*! Production:: css_value : CHS */
6
+
7
+ /*! Production:: css_value : EMS */
8
+
9
+ /*! Production:: css_value : EXS */
10
+
11
+ /*! Production:: css_value : FREQ */
12
+
13
+ /*! Production:: css_value : LENGTH */
14
+
15
+ /*! Production:: css_value : PERCENTAGE */
16
+
17
+ /*! Production:: css_value : REMS */
18
+
19
+ /*! Production:: css_value : RES */
20
+
21
+ /*! Production:: css_value : SUB css_value */
22
+
23
+ /*! Production:: css_value : TIME */
24
+
25
+ /*! Production:: css_value : VHS */
26
+
27
+ /*! Production:: css_value : VMAXS */
28
+
29
+ /*! Production:: css_value : VMINS */
30
+
31
+ /*! Production:: css_value : VWS */
32
+
33
+ /*! Production:: css_variable : CSS_VAR LPAREN CSS_CPROP COMMA math_expression RPAREN */
34
+
35
+ /*! Production:: css_variable : CSS_VAR LPAREN CSS_CPROP RPAREN */
36
+
37
+ /*! Production:: expression : math_expression EOF */
38
+
39
+ /*! Production:: math_expression : LPAREN math_expression RPAREN */
40
+
41
+ /*! Production:: math_expression : NESTED_CALC LPAREN math_expression RPAREN */
42
+
43
+ /*! Production:: math_expression : SUB PRE